:root {
  --bg: #fffaf3;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #ece7df;

  /* 粉色主题 */
  --accent: #F7CED7;
  --accent-dark: #f2827f;

  --success-bg: #eef9f0;
  --success-text: #157347;
  --error-bg: #fff1f0;
  --error-text: #b42318;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7f8 0%, #fffafc 100%);
}

.content-loader {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  color: #f07870;
  background: #fff8f7;
  animation: loader-background 3.2s ease-in-out infinite;
}

.content-loader p {
  margin: 0;
}

.loading-brand {
  position: relative;
  width: min(68vw, 290px);
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 24px rgba(105, 28, 21, 0.12));
  animation: logo-float 1.8s ease-in-out infinite;
}

.loading-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loading-logo-coral {
  animation: coral-logo 3.2s ease-in-out infinite;
}

.loading-logo-white {
  animation: white-logo 3.2s ease-in-out infinite;
}

.loading-message {
  max-width: 460px;
  font-size: clamp(18px, 4vw, 25px);
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: message-color 3.2s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.content-loader.error {
  background: #fff8f7;
  animation: none;
}

.content-loader.error .loading-brand,
.content-loader.error .loading-dots {
  display: none;
}

.retry-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--accent);
  color: #222;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@keyframes loader-background {
  0%, 45%, 100% {
    background: #fff8f7;
  }
  55%, 90% {
    background: #f07870;
  }
}

@keyframes coral-logo {
  0%, 45%, 100% {
    opacity: 1;
  }
  55%, 90% {
    opacity: 0;
  }
}

@keyframes white-logo {
  0%, 45%, 100% {
    opacity: 0;
  }
  55%, 90% {
    opacity: 1;
  }
}

@keyframes message-color {
  0%, 45%, 100% {
    color: #f07870;
  }
  55%, 90% {
    color: #fff;
  }
}

@keyframes logo-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.025);
  }
}

@keyframes dot-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-loader,
  .loading-brand,
  .loading-logo,
  .loading-message,
  .loading-dots span {
    animation: none;
  }

  .loading-logo-coral {
    opacity: 1;
  }

  .loading-logo-white {
    opacity: 0;
  }
}

code {
  background: #f7f2ea;
  padding: 2px 6px;
  border-radius: 6px;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.intro,
.note {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.note {
  margin-top: 14px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.event-item {
  padding: 14px;
  border-radius: 14px;
  background: #FDF1F4;
  border: 1px solid #F7CED7;
}

.event-item.full {
  grid-column: 1 / -1;
}

.label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.value {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.form-card {
  padding: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.field-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

label span {
  color: #d92d20;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ded7cd;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(242,130,127,0.15);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #222;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.message.show {
  display: block;
}

.message.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #cdebd5;
}

.message.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #f5c6c0;
}

@media (max-width: 640px) {
  .page {
    padding: 16px 12px 28px;
  }

  .hero,
  .form-card {
    padding: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-item.full {
    grid-column: auto;
  }
}
