:root {
  color-scheme: light;
  --bg: #e8f0eb;
  --paper: #f7faf7;
  --panel: #ffffff;
  --ink: #203d38;
  --muted: #6f817b;
  --soft: #e9f2ed;
  --line: rgba(52, 87, 79, .16);
  --gold: #b38e4e;
  --rose: #d97884;
  --rose-dark: #c86673;
  --green: #3f8b69;
  --danger: #b85862;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: #dfe9e3;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(232, 240, 235, .92), rgba(232, 240, 235, .92)),
    url("./参考图/source/city-night.jpg") center / cover fixed;
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100svh;
  display: grid;
  justify-items: center;
}

.app {
  position: relative;
  width: min(100%, 460px);
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfa, #eef5f1);
  box-shadow: 0 0 64px rgba(37, 62, 55, .14);
}

.screen {
  min-height: 100svh;
  animation: screen-in .36s ease both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid rgba(49, 80, 72, .09);
  background: rgba(249, 252, 249, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font: 16px/1.1 var(--serif);
}

.brand small,
.eyebrow {
  color: var(--gold);
  font: 10px/1.4 var(--sans);
  letter-spacing: 2px;
}

.top-actions { display: flex; gap: 8px; }

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #4e6c64;
  background: rgba(67, 104, 94, .09);
  cursor: pointer;
}

.icon-button:focus-visible,
.button:focus-visible,
.choice:focus-visible,
.chip:focus-visible,
.plan-select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(63, 139, 105, .28);
  outline-offset: 2px;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.progress {
  position: sticky;
  top: 64px;
  z-index: 19;
  height: 3px;
  background: rgba(47, 93, 79, .08);
}

.progress span {
  display: block;
  height: 100%;
  background: #8ab7a4;
  transition: width .3s ease;
}

.content {
  padding: 28px 20px 132px;
}

.review-content {
  padding-bottom: calc(240px + env(safe-area-inset-bottom));
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 10px;
  font: 400 31px/1.28 var(--serif);
}

h2 { font: 400 22px/1.35 var(--serif); }
h3 { margin-bottom: 8px; font: 500 18px/1.35 var(--serif); }

.lead {
  margin-bottom: 28px;
  color: #5c706a;
  font-size: 14px;
  line-height: 1.8;
}

.muted { color: var(--muted); }
.tiny { font-size: 11px; }

.home {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: #dfe8e3;
}

.home::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("./参考图/source/city-night.jpg") center / cover no-repeat;
  animation: hero-push 16s ease-out both;
}

.home::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 246, 242, .60), rgba(233, 241, 236, .08) 34%, rgba(240, 246, 242, .23) 60%, #edf4ef 100%);
}

.home .topbar { position: relative; background: rgba(244, 249, 246, .57); }

.hero-copy {
  position: relative;
  margin-top: auto;
  padding: 32px 28px 26px;
  color: #153b34;
  background: linear-gradient(90deg, rgba(245, 249, 246, .88) 0%, rgba(245, 249, 246, .68) 58%, rgba(245, 249, 246, .08) 100%);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .92),
    0 0 14px rgba(250, 252, 250, .92),
    0 0 28px rgba(250, 252, 250, .76);
}

.hero-copy .eyebrow {
  color: #966c25;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 8px 0 10px;
  color: #103a32;
  font-size: 46px;
  font-weight: 600;
}

.hero-copy p:last-child {
  margin: 0;
  color: #173f37;
  font: 600 17px/1.7 var(--serif);
}

.booking-panel {
  margin: 0 14px calc(14px + env(safe-area-inset-bottom));
  padding: 20px 16px 16px;
  border: 1px solid rgba(93, 124, 112, .24);
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 16px 42px rgba(47, 78, 68, .12);
  backdrop-filter: blur(12px);
}

.booking-facts {
  display: grid;
  grid-template-columns: 1.1fr .62fr 1.38fr;
  gap: 12px;
  margin-bottom: 17px;
}

.fact span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.fact strong { display: block; font-size: 12px; line-height: 1.45; }

.bottom-bar {
  position: fixed;
  z-index: 30;
  right: max(0px, calc((100vw - 460px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 460px) / 2));
  padding: 12px 20px var(--safe-bottom);
  border-top: 1px solid rgba(49, 80, 72, .10);
  background: rgba(249, 251, 248, .94);
  box-shadow: 0 -12px 32px rgba(44, 71, 63, .06);
  backdrop-filter: blur(16px);
}

.button {
  min-height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(54, 88, 79, .20);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, .74);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.button:active { transform: scale(.985); }
.button:disabled { opacity: .56; cursor: not-allowed; }
.button.primary { border-color: var(--rose); color: #fff; background: var(--rose); }
.button.primary:hover { background: var(--rose-dark); }
.button.green { border-color: #b1d4c5; background: #b9d8cb; }
.button.quiet { background: rgba(255, 255, 255, .52); }
.button.danger { border-color: rgba(184, 88, 98, .24); color: var(--danger); }
.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.section-label {
  margin: 28px 0 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.choice {
  min-width: 0;
  min-height: 58px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}

.choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.choice.selected,
.chip.selected {
  border-color: #8fb6a6;
  color: #39745e;
  background: #e5f0ea;
  box-shadow: inset 0 0 0 1px rgba(143, 182, 166, .15);
}

.custom-choice {
  width: 100%;
  min-height: 52px;
  margin-top: 9px;
  padding: 0 14px;
  text-align: left;
}

.custom-time {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.custom-time input { min-width: 0; }

.notice {
  margin-top: 18px;
  padding: 14px 15px;
  border-left: 2px solid var(--gold);
  color: #526a62;
  background: #e7f0ea;
  font-size: 12px;
  line-height: 1.7;
}

.error-text {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.plan-list { margin: 0 -20px; }

.plan-card {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--line);
}

.plan-card + .plan-card { padding-top: 20px; }

.plan-photo {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  margin-bottom: 14px;
  border-radius: 4px;
  object-fit: cover;
  filter: brightness(1.05) saturate(.86);
}

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.plan-description {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
  padding: 4px 8px;
  border: 1px solid rgba(179, 142, 78, .28);
  border-radius: 999px;
  color: #97743a;
  background: #fffaf0;
  font-size: 9px;
}

.plan-select {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--rose-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.extras {
  margin-top: 28px;
  padding-top: 4px;
}

.field { margin-bottom: 24px; }

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #304d46;
  font-size: 12px;
}

.required { color: var(--rose-dark); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input[aria-invalid="true"] { border-color: var(--danger); }

textarea.input {
  min-height: 100px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
  line-height: 1.7;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #405c54;
  background: #fff;
  cursor: pointer;
}

.helper { margin: 7px 0 0; color: #84938e; font-size: 10px; line-height: 1.6; }

.summary { margin: 0; border-top: 1px solid var(--line); }

.summary-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row dt { color: var(--muted); font-size: 11px; }
.summary-row dd { margin: 0; text-align: right; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }

.reveal {
  margin: 26px 0 20px;
  padding: 26px 18px;
  border: 1px solid rgba(179, 142, 78, .28);
  background: #faf6ed;
  text-align: center;
}

.reveal strong { display: block; margin-bottom: 16px; font: 400 21px/1.65 var(--serif); }
.reveal p { margin-bottom: 16px; color: #53675f; font: 15px/1.95 var(--serif); }
.signature { color: var(--gold); font: 14px var(--serif); }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 18px;
  color: #50675f;
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.privacy { margin: 9px 0 0; color: #7b8a85; font-size: 9px; line-height: 1.55; text-align: center; }

.mode-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #6f634e;
  background: #f5efe3;
  font-size: 10px;
  line-height: 1.6;
}

.state-wrap {
  min-height: calc(100svh - 67px);
  padding: 48px 20px;
}

.state-panel {
  margin-top: 16px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 44px rgba(46, 75, 67, .08);
}

.state-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--danger);
  border-radius: 50%;
  color: var(--danger);
  font: 24px var(--serif);
}

.saved-box {
  margin: 18px 0;
  padding: 13px;
  color: #60716b;
  background: var(--soft);
  font-size: 11px;
  line-height: 1.7;
}

.stack { display: grid; gap: 9px; }

.success {
  position: relative;
  min-height: 100svh;
  padding: max(62px, calc(env(safe-area-inset-top) + 36px)) 20px 36px;
  isolation: isolate;
  background: #dae6e0;
}

.success::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("./参考图/source/city-lights.jpg") center / cover no-repeat;
  animation: success-light 2.4s ease-out both;
}

.success::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(224, 239, 232, .20), rgba(238, 246, 241, .56) 55%, rgba(239, 246, 241, .92));
}

.star-bridge {
  position: absolute;
  z-index: -1;
  top: 13%;
  left: -5%;
  width: 110%;
  height: 160px;
  opacity: 0;
  background:
    radial-gradient(circle at 8% 72%, #fff7d8 0 1px, transparent 2px),
    radial-gradient(circle at 18% 59%, #fff7d8 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 30% 48%, #fff7d8 0 1px, transparent 2px),
    radial-gradient(circle at 44% 40%, #fff7d8 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 58% 43%, #fff7d8 0 1px, transparent 2px),
    radial-gradient(circle at 72% 51%, #fff7d8 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 84% 62%, #fff7d8 0 1px, transparent 2px),
    radial-gradient(circle at 94% 78%, #fff7d8 0 1.5px, transparent 2.5px);
  animation: bridge-in 2.2s .3s ease-out forwards;
}

.status {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 2px;
}

.success h1 { font-size: 34px; }

.ticket {
  margin-top: 34px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(156, 127, 73, .42);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 48px rgba(38, 67, 58, .14);
  backdrop-filter: blur(16px);
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ticket-code { color: var(--gold); font: 20px/1.4 var(--serif); }

.checkmark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
}

.talk {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: #dce8e1;
}

.talk::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("./参考图/source/city-night.jpg") 62% center / cover no-repeat;
}

.talk::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(232, 242, 236, .56), rgba(234, 243, 237, .54) 58%, rgba(234, 243, 237, .93));
}

.talk .topbar { position: relative; background: rgba(248, 251, 249, .54); }

.talk-card {
  margin: auto 20px 42px;
  padding: 28px 22px 22px;
  border: 1px solid rgba(127, 155, 143, .44);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(39, 67, 58, .14);
  backdrop-filter: blur(16px);
}

.talk-card h1 { margin-top: 8px; }

.toast {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 16px;
  border-radius: 4px;
  color: #fff;
  background: rgba(31, 57, 50, .92);
  box-shadow: 0 10px 30px rgba(22, 45, 39, .20);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 10px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show { opacity: 1; transform: translate(50%, 0); }

@keyframes screen-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-push {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@keyframes success-light {
  from { filter: brightness(.74) saturate(.76); transform: scale(1.04); }
  to { filter: brightness(1.08) saturate(.95); transform: scale(1); }
}

@keyframes bridge-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: .82; transform: none; }
}

@media (max-width: 360px) {
  .content { padding-right: 16px; padding-left: 16px; }
  .plan-list { margin-right: -16px; margin-left: -16px; }
  .plan-card { padding-right: 16px; padding-left: 16px; }
  .booking-facts { gap: 7px; }
  .fact strong { font-size: 11px; }
  .time-grid { gap: 5px; }
  .choice { font-size: 12px; }
  .summary-row { grid-template-columns: 82px minmax(0, 1fr); }
}

@media (min-width: 780px) {
  .shell { padding: 28px 0; }
  .app { min-height: calc(100svh - 56px); border: 1px solid rgba(42, 75, 66, .12); }
  .screen,
  .home,
  .success,
  .talk { min-height: calc(100svh - 58px); }
  .bottom-bar { bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
