:root {
  --accent: #2d5a4a;
  --accent-ink: #ffffff;
  --accent-deep: #173d32;
  --accent-soft: #e5ede5;
  --accent-wash: #f0f4ec;
  --ink: #1b2924;
  --ink-soft: #40534a;
  --muted: #778179;
  --faint: #a3aaa4;
  --paper: #fffdf8;
  --canvas: #f3efe6;
  --canvas-deep: #e9e2d5;
  --line: #e6e0d5;
  --line-strong: #d8d0c1;
  --error: #a84231;
  --error-soft: #fbece7;
  --warm: #c77758;
  --warm-soft: #f7e9dd;
  --shadow-lg: 0 28px 80px rgba(31, 55, 45, 0.14);
  --shadow-md: 0 14px 36px rgba(31, 55, 45, 0.08);
  --shadow-sm: 0 6px 18px rgba(31, 55, 45, 0.06);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --app-width: 560px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(197, 174, 136, 0.18), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(58, 103, 83, 0.12), transparent 35%),
    var(--canvas-deep);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(40, 73, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 73, 59, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: -1;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot-screen,
.fatal-screen {
  width: min(100%, var(--app-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 32px;
  background: var(--canvas);
  color: var(--muted);
}

@media (min-width: 640px) {
  .boot-screen,
  .fatal-screen {
    min-height: 70vh;
    margin: 32px auto;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
  }
}

.boot-mark {
  position: relative;
  width: 64px;
  height: 64px;
}

.boot-mark span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  animation: boot-ring 1.6s ease-in-out infinite;
}

.boot-mark span:nth-child(2) {
  inset: 10px;
  animation-delay: 0.18s;
}

.boot-mark span:nth-child(3) {
  inset: 20px;
  border-color: var(--accent);
  animation-delay: 0.36s;
}

@keyframes boot-ring {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.45;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.boot-screen p {
  letter-spacing: 0.08em;
  font-size: 13px;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 100;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--error);
  color: white;
  text-align: center;
}

.app-frame {
  position: relative;
  width: min(100%, var(--app-width));
  margin: 0 auto;
  background: var(--canvas);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

@media (min-width: 640px) {
  .app-frame {
    margin: 36px auto 56px;
    border-radius: 38px;
    box-shadow: var(--shadow-lg);
  }
}

.fade-in {
  animation: fade-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* 注意：页面容器不能保留 transform，否则 fixed 底部操作栏会改为相对页面定位。 */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- 活动详情 ---------- */

.hero {
  position: relative;
  min-height: min(72svh, 590px);
  height: max(470px, 62svh);
  color: #fffdf7;
  background:
    radial-gradient(circle at 82% 12%, rgba(231, 213, 181, 0.14), transparent 32%),
    linear-gradient(145deg, #1b4439, #315c4b 58%, #244d40);
  overflow: hidden;
}

.hero__backdrop {
  display: none;
  position: absolute;
  top: -24px;
  left: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(20px) saturate(0.88);
  opacity: 0.58;
  transform: scale(1.04);
}

.hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-x, 50%) var(--hero-y, 50%);
  transform: scale(var(--hero-zoom, 1));
  transform-origin: var(--hero-x, 50%) var(--hero-y, 50%);
  background: #f6f5ee;
}

.hero--fit .hero__backdrop {
  display: block;
}

.hero--fit .hero__image {
  object-fit: contain;
  background: transparent;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 24, 18, 0.55) 0%, rgba(7, 24, 18, 0.03) 26%, rgba(7, 24, 18, 0.08) 46%, rgba(7, 24, 18, 0.55) 56%, rgba(7, 24, 18, 0.93) 66%, rgba(7, 24, 18, 0.985) 75%, rgba(7, 24, 18, 0.995) 100%),
    linear-gradient(94deg, rgba(7, 24, 18, 0.5) 0%, rgba(7, 24, 18, 0.03) 66%);
}

.hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(22px, env(safe-area-inset-top)) 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 12px;
  background: #fbf5e8;
  border: 1px solid rgba(255, 253, 247, 0.48);
  box-shadow: 0 5px 16px rgba(3, 22, 15, 0.16);
  display: grid;
  place-items: center;
}

.brand-logo,
.brand__mark img,
.topbar__brand-mark img,
.success-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.brand__en {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.74;
  line-height: 1.5;
  white-space: nowrap;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 37, 30, 0.22);
  backdrop-filter: blur(12px);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8e6ba;
  box-shadow: 0 0 0 4px rgba(216, 230, 186, 0.12);
}

.hero__content {
  position: absolute;
  inset: auto 0 46px;
  z-index: 2;
  padding: 0 24px;
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 12px;
  border-radius: 100px;
  color: #2d4538;
  background: #efe2c9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero__quota {
  font-size: 11px;
  color: rgba(255, 253, 247, 0.78);
  letter-spacing: 0.02em;
}

.hero__title {
  max-width: 8.8em;
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 53px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.015em;
  text-wrap: balance;
  word-break: keep-all;
  text-shadow: 0 2px 20px rgba(6, 29, 22, 0.16);
}

.hero__subtitle {
  max-width: 25em;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 253, 247, 0.78);
  letter-spacing: 0.02em;
}

.detail-content {
  position: relative;
  z-index: 4;
  margin-top: -30px;
  padding: 0 20px 144px;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 90% 6%, rgba(200, 180, 143, 0.12), transparent 24%),
    var(--canvas);
}

.detail-content::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: var(--line-strong);
  opacity: 0.65;
}

.detail-section {
  padding-top: 30px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.section-note {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.event-card {
  padding: 4px 20px;
  border: 1px solid rgba(216, 208, 193, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 13px;
  align-items: start;
  padding: 14px 0;
}

.info-row + .info-row {
  border-top: 1px solid var(--line);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 8%, white);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.info-value {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
  word-break: keep-all;
}

.info-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.doctor-list {
  display: grid;
  gap: 12px;
}

.doctor-card {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(245, 240, 230, 0.92));
  border: 1px solid rgba(216, 208, 193, 0.8);
  box-shadow: var(--shadow-md);
}

.doctor-card::after {
  content: "“";
  position: absolute;
  top: -36px;
  right: 12px;
  font-family: Georgia, serif;
  font-size: 160px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.055;
  pointer-events: none;
}

.doctor-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doctor-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #f9f1df;
  background:
    radial-gradient(circle at 32% 22%, #718f7c, transparent 42%),
    linear-gradient(145deg, #355e4f, #1c3b31);
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 5px rgba(45, 90, 74, 0.15);
  font-family: var(--serif);
  font-size: 24px;
}

.doctor-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-meta {
  min-width: 0;
}

.doctor-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.04em;
}

.doctor-role {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doctor-hospital {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.doctor-specialty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 9px;
  border-radius: 100px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.doctor-specialty::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.doctor-intro {
  position: relative;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.tips-card {
  display: flex;
  gap: 13px;
  padding: 17px 18px;
  border-radius: 18px;
  background: var(--warm-soft);
  border: 1px solid rgba(199, 119, 88, 0.12);
}

.tips-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #9b553a;
  background: rgba(255, 253, 248, 0.55);
}

.tips-icon svg {
  width: 16px;
  height: 16px;
}

.tips-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #7f4833;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tips-copy p {
  color: #815d4b;
  font-size: 12px;
  line-height: 1.75;
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 32px 8px 0;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: center;
}

.trust-line svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}

.action-dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--app-width));
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.92);
  border-top: 1px solid rgba(216, 208, 193, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 -10px 30px rgba(50, 66, 55, 0.055);
}

.action-dock__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-dock__note {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.action-dock__note strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 51px;
  padding: 0 23px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  box-shadow: 0 9px 24px color-mix(in srgb, var(--accent) 24%, transparent);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.button-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 32%, transparent);
}

.button-primary:active {
  transform: scale(0.985);
}

.button-primary svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.button-primary:hover svg {
  transform: translateX(3px);
}

.action-dock .button-primary {
  flex: 0 0 auto;
  min-width: 168px;
}

/* ---------- 报名页 ---------- */

.page-form {
  min-height: 100svh;
  background:
    radial-gradient(circle at 100% 0, rgba(197, 174, 136, 0.16), transparent 28%),
    var(--canvas);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: max(9px, env(safe-area-inset-top)) 16px 9px;
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid rgba(216, 208, 193, 0.65);
  backdrop-filter: blur(16px) saturate(1.15);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.icon-button:hover {
  background: rgba(255, 253, 248, 0.7);
  border-color: var(--line);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.topbar__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 9px;
  background: #fbf5e8;
  border: 1px solid var(--line);
  overflow: hidden;
}

.topbar__step {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.form-wrap {
  padding: 30px 20px 128px;
}

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}

.progress__seg {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress__seg.is-done {
  background: var(--accent);
}

.form-heading {
  position: relative;
  margin-bottom: 22px;
}

.form-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.form-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.form-title {
  font-family: var(--serif);
  font-size: clamp(29px, 8vw, 35px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
  text-wrap: balance;
  word-break: keep-all;
}

.form-description {
  margin-top: 11px;
  max-width: 28em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.mini-event {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(216, 208, 193, 0.62);
}

.mini-event__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-wash);
}

.mini-event__icon svg {
  width: 17px;
  height: 17px;
}

.mini-event__copy {
  min-width: 0;
}

.mini-event__copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-event__copy span {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-event__deadline {
  display: block;
  margin-top: 4px;
  color: var(--warm);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-card {
  padding: 22px 19px 7px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(216, 208, 193, 0.7);
  box-shadow: var(--shadow-md);
}

.form-groups {
  display: grid;
}

.form-group-block + .form-group-block {
  margin-top: 15px;
}

.form-optional-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 4px 8px;
  color: #9a6649;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.form-optional-note::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.form-group-block--optional .optional-mark {
  display: none;
}

.form-card--group {
  padding-bottom: 0;
}

.form-card--group .form-field:last-child {
  padding-bottom: 21px;
}

.form-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.form-group-heading h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-wrap: balance;
  word-break: keep-all;
}

.form-group-heading > span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.form-group-heading + .form-field {
  padding-top: 18px;
}

.form-consent-block {
  margin-top: 16px;
}

.choice-detail {
  margin-top: 11px;
  padding: 12px;
  border-radius: 13px;
  background: var(--accent-wash);
  border: 1px dashed color-mix(in srgb, var(--accent) 26%, var(--line));
  animation: detail-in 0.2s ease both;
}

.choice-detail[hidden] {
  display: none;
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-detail__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.choice-detail__label span {
  color: var(--faint);
  font-size: 9px;
  font-weight: 400;
}

.choice-detail__input {
  min-height: 45px;
  background: var(--paper);
  font-size: 13px;
}

#registration-form {
  counter-reset: question;
}

.form-field {
  counter-increment: question;
  padding-bottom: 23px;
}

.form-field .field-label::before {
  content: counter(question) ".";
  margin-right: 1px;
  color: var(--warm);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.form-field + .form-field {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.field-label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.required-mark {
  margin-left: 3px;
  color: var(--warm);
  font-size: 13px;
  line-height: 1;
}

.optional-mark {
  margin-left: 6px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.field-help {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.control,
.select-wrap select {
  display: block;
  width: 100%;
  min-height: 51px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf9f4;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  appearance: none;
}

.control::placeholder {
  color: #a9afa9;
  font-size: 12px;
}

.control[type="number"]::-webkit-inner-spin-button,
.control[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.control[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.control:hover,
.select-wrap select:hover {
  border-color: var(--line-strong);
}

.control:focus,
.select-wrap select:focus {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--accent) 65%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent);
}

textarea.control {
  min-height: 108px;
  resize: vertical;
  line-height: 1.8;
}

.form-field.has-error .control,
.form-field.has-error .select-wrap select {
  border-color: color-mix(in srgb, var(--error) 55%, white);
  background: #fffaf8;
}

.form-field.has-error .choice {
  border-color: color-mix(in srgb, var(--error) 34%, var(--line));
  background: #fffaf8;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--error);
  font-size: 10px;
  line-height: 1.5;
}

.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  color: white;
  background: var(--error);
  font-size: 9px;
  font-weight: 700;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  padding-right: 42px;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border-radius: 14px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf9f4;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.choice:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.choice:active {
  transform: scale(0.98);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__dot {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.choice__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ink);
  transform: scale(0);
  transition: transform 0.16s ease;
}

.choice--checkbox .choice__dot {
  border-radius: 5px;
}

.choice--checkbox .choice__dot::after {
  width: 8px;
  height: 5px;
  border-radius: 0;
  border-left: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  background: transparent;
  transform: translateY(-1px) rotate(-45deg) scale(0);
}

.choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 60%, white);
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.choice:has(input:checked) .choice__dot {
  border-color: var(--accent);
  background: var(--accent);
}

.choice:has(input:checked) .choice__dot::after {
  transform: scale(1);
}

.choice--checkbox:has(input:checked) .choice__dot::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.choice:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, white);
  outline-offset: 2px;
}

.consent-block {
  margin-top: 18px;
  padding: 16px 14px;
  border-radius: 16px;
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 7%, white);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #b5beb5;
  border-radius: 6px;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.consent-box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.8px solid white;
  border-bottom: 1.8px solid white;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.16s ease;
}

.consent-check input:checked + .consent-box {
  border-color: var(--accent);
  background: var(--accent);
}

.consent-check input:checked + .consent-box::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.consent-check input:focus-visible + .consent-box {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, white);
  outline-offset: 2px;
}

.consent-copy {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.consent-link {
  display: inline;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-error {
  margin-top: 7px;
  color: var(--error);
  font-size: 10px;
}

.form-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 19px 8px 0;
  color: var(--faint);
  font-size: 9px;
  text-align: center;
}

.form-footnote svg {
  width: 12px;
  height: 12px;
}

.form-dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--app-width));
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid rgba(216, 208, 193, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 -10px 30px rgba(50, 66, 55, 0.055);
}

.form-dock .button-primary {
  width: 100%;
}

.form-dock__hint {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.button-primary[disabled] {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.button-primary.is-disabled,
.button-primary.is-disabled:hover {
  color: #fbf7ef;
  background: #96a198;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.closed-panel {
  display: grid;
  justify-items: center;
  margin-top: 28px;
  padding: 38px 24px 32px;
  border: 1px solid rgba(216, 208, 193, 0.8);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0, rgba(199, 119, 88, 0.08), transparent 38%),
    var(--paper);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.closed-panel__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, white);
}

.closed-panel__icon svg {
  width: 28px;
  height: 28px;
}

.closed-panel .form-eyebrow {
  justify-content: center;
  margin-bottom: 9px;
}

.closed-panel .form-title {
  font-size: clamp(28px, 8vw, 34px);
}

.closed-panel__desc {
  max-width: 25em;
  margin: 12px auto 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.closed-panel__desc strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.closed-panel .button-primary {
  width: 100%;
  max-width: 260px;
}

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 成功页 ---------- */

.page-success {
  min-height: 100svh;
  padding: 26px 20px calc(34px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -10%, rgba(231, 213, 181, 0.55), transparent 38%),
    linear-gradient(180deg, #f4efe4, #f8f4ec 52%, #f1ece2);
}

.success-top {
  display: flex;
  justify-content: center;
  margin-bottom: 33px;
}

.success-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.success-brand__mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 3px;
  border-radius: 10px;
  background: #fbf5e8;
  border: 1px solid var(--line);
}

.success-brand__mark svg {
  width: 19px;
  height: 19px;
}

.success-center {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

.success-orbit {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
}

.success-orbit::before,
.success-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

.success-orbit::before {
  inset: 0;
  animation: orbit-pulse 4.5s ease-in-out infinite;
}

.success-orbit::after {
  inset: 14px;
  border-style: dashed;
  animation: orbit-spin 22s linear infinite;
}

.success-orbit__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  top: 13px;
  right: 13px;
  box-shadow:
    -82px 59px 0 -1px rgba(45, 90, 74, 0.35),
    25px 88px 0 -1px rgba(199, 119, 88, 0.28);
}

@keyframes orbit-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.success-check {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow:
    0 0 0 9px rgba(255, 253, 248, 0.65),
    0 16px 35px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: check-pop 0.65s cubic-bezier(0.25, 1.5, 0.45, 1) 0.12s both;
}

.success-check svg {
  width: 30px;
  height: 30px;
}

@keyframes check-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.success-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  word-break: keep-all;
  text-wrap: balance;
}

.success-description {
  max-width: 25em;
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.ticket {
  position: relative;
  margin-top: 26px;
  padding: 20px 20px 19px;
  border: 1px solid rgba(216, 208, 193, 0.85);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #f4efe5;
  border: 1px solid rgba(216, 208, 193, 0.85);
}

.ticket::before {
  left: -8px;
  border-right-color: transparent;
}

.ticket::after {
  right: -8px;
  border-left-color: transparent;
}

.ticket-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.ticket-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--line-strong);
}

.ticket-no strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-wash);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.copy-button svg {
  width: 12px;
  height: 12px;
}

.ticket-info {
  display: grid;
  gap: 12px;
  padding-top: 15px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.ticket-row span {
  color: var(--muted);
}

.ticket-row strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.success-actions {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 15px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.button-secondary:hover {
  background: rgba(255, 253, 248, 0.6);
  border-color: #c5bcae;
}

.success-actions .button-primary {
  width: 100%;
}

.success-help {
  margin-top: 17px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.7;
}

/* ---------- 弹层与提示 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 34, 27, 0.48);
  backdrop-filter: blur(6px);
  animation: fade-in 0.22s ease both;
}

.modal-sheet {
  width: min(100%, 430px);
  max-height: min(78svh, 700px);
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(6, 21, 15, 0.25);
  animation: modal-in 0.3s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  overflow: hidden;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
}

.modal-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--canvas);
}

.modal-body {
  overflow-y: auto;
  padding: 4px 22px 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
  overscroll-behavior: contain;
}

.modal-body p + p {
  margin-top: 12px;
}

.toast-region {
  position: fixed;
  z-index: 200;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 32px), 400px);
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  justify-self: center;
  padding: 11px 16px;
  border-radius: 12px;
  color: #fffdf7;
  background: rgba(27, 45, 37, 0.94);
  box-shadow: 0 12px 36px rgba(13, 28, 21, 0.22);
  backdrop-filter: blur(12px);
  font-size: 11px;
  line-height: 1.5;
  animation: toast-in 0.25s ease both;
}

.toast.is-leaving {
  animation: toast-out 0.2s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.fatal-card {
  max-width: 350px;
  text-align: center;
}

.fatal-card h1 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 26px;
}

.fatal-card p {
  color: var(--muted);
  font-size: 12px;
}

.fatal-card .button-primary {
  margin-top: 20px;
}

/* ---------- 桌面细节 ---------- */

@media (min-width: 640px) {
  .hero {
    min-height: 540px;
    height: 64vh;
    max-height: 630px;
  }

  .hero__content {
    bottom: 50px;
    padding: 0 36px;
  }

  .hero__top {
    padding: 27px 30px 0;
  }

  .hero__title {
    font-size: 53px;
  }

  .detail-content {
    padding: 0 26px 144px;
  }

  .form-wrap {
    padding: 38px 30px 130px;
  }

  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }

  .page-success {
    padding-top: 38px;
  }

  .action-dock,
  .form-dock {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 369px) {
  .hero__title {
    font-size: 35px;
  }

  .hero__content {
    bottom: 38px;
    padding: 0 20px;
  }

  .detail-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .action-dock {
    padding-left: 14px;
    padding-right: 14px;
  }

  .action-dock__inner {
    gap: 9px;
  }

  .action-dock .button-primary {
    min-width: 146px;
    padding: 0 16px;
  }

  .action-dock__note strong {
    font-size: 10px;
  }

  .form-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
