:root {
  color-scheme: light;
  /* 中国色语义色板：以低饱和传统色建立稳定层级。 */
  --paper: #f8f5f0;
  --paper-deep: #f0ebe3;
  --surface: #fffdf9;
  --surface-soft: #f6f1e9;
  --ink: #1a3b2e;
  --ink-soft: #596a62;
  --jade: #2e5d4a;
  --jade-dark: #1a3b2e;
  --jade-wash: #e7eee9;
  --gold: #b8a996;
  --accent-ink: #735f49;
  --line: #ded6ca;
  --danger: #8a4d43;
  --shadow: 0 18px 50px rgba(21, 60, 53, 0.08);
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, serif;
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hotel-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 76px 1fr 44px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(222, 214, 202, 0.86);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
}

.hotel-logo {
  display: block;
  width: 72px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.hotel-header-copy p,
.hotel-header-copy span { margin: 0; }
.hotel-header-copy p { font-size: 12px; font-weight: 650; color: var(--ink); }
.hotel-header-copy span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-soft); }

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--jade);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible { border-color: var(--line); background: var(--surface-soft); }

.screen {
  min-height: calc(100vh - 126px);
  padding: 32px 24px 44px;
}

.screen[hidden] { display: none; }

.screen-home {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 126px);
  padding-top: clamp(44px, 7vh, 62px);
  padding-bottom: 24px;
  overflow: hidden;
}

.home-wash {
  position: absolute;
  inset: 0 0 auto;
  height: min(43%, 330px);
  background: var(--jade-wash);
  pointer-events: none;
}

.screen-home > *:not(.home-wash) { position: relative; }

.kicker {
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  width: 100%;
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(38px, 10vw, 52px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h2 { margin-bottom: 12px; font-size: 28px; line-height: 1.3; overflow-wrap: break-word; }
h3 { margin-bottom: 10px; font-size: 18px; overflow-wrap: break-word; }
p { color: var(--ink-soft); line-height: 1.8; }

.lead { max-width: 28em; margin-bottom: 20px; font-size: 15px; }

.entry-note {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.72);
  font-size: 12px;
}

.home-actions,
.action-stack,
.practice-actions {
  display: grid;
  gap: 10px;
}

.button {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--jade); }
.button-primary:hover { background: var(--jade-dark); }
.button-primary:disabled { color: #9a9f9b; background: #e6e4dc; cursor: not-allowed; }
.button-quiet { color: var(--ink); border-color: var(--line); background: rgba(255, 253, 249, 0.82); }
.button-quiet:hover { border-color: var(--jade); background: var(--jade-wash); }

.text-button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  color: var(--jade);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.journey-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 34px;
  color: var(--ink-soft);
  font-size: 11px;
}

.journey-hint i { flex: 1; height: 1px; background: var(--line); }

.progress {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 11px;
}

.progress span { height: 1px; background: var(--line); }
.progress em { color: var(--ink-soft); font-style: normal; text-align: right; }

.section-heading { margin-bottom: 26px; }
.section-heading p:last-child { margin-bottom: 0; }
.compact-heading { margin-bottom: 18px; }

.boundary-list {
  display: grid;
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}

.boundary-list article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-list b { display: block; margin-bottom: 6px; font-family: var(--serif); }
.boundary-list p { margin: 0; font-size: 14px; }

.option-list { display: grid; gap: 10px; }

.option {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.option:hover,
.option:focus-visible,
.option.selected { border-color: var(--jade); background: var(--jade-wash); }
.option-index { color: var(--gold); font-family: Georgia, serif; font-size: 12px; }
.option-copy strong { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 650; }
.option-copy span { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.option-arrow { color: var(--jade); font-size: 18px; }

.recommendation {
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recommendation-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.recommendation-meta span {
  padding: 4px 7px;
  color: var(--jade);
  background: var(--jade-wash);
  font-size: 11px;
}
.recommendation h3 { font-size: 22px; line-height: 1.4; }
.recommendation p { margin-bottom: 12px; font-size: 14px; }
.recommendation small { color: var(--ink-soft); }

.video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 60vh;
  border: 1px solid var(--line);
  background: #16211e;
}

#review-entry {
  min-height: 44px;
}

.video-shell video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #e9e5da;
  background: #17211f;
  text-align: center;
}
.video-placeholder[hidden] { display: none; }
.video-placeholder span { color: #aeb7b2; font-size: 12px; }

.vod-retry-button {
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid rgba(233, 229, 218, 0.4);
  border-radius: 4px;
  color: #e9e5da;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vod-retry-button:hover,
.vod-retry-button:focus-visible { border-color: #e9e5da; background: rgba(255, 255, 255, 0.06); }

.practice-boundary {
  margin: 14px 0 18px;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  font-size: 12px;
}

.feedback-options .option { grid-template-columns: 34px 1fr; }
.feedback-options .option-arrow { display: none; }

.note-field { display: grid; gap: 8px; margin: 20px 0; color: var(--ink); font-size: 13px; }
.note-field textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}
.note-field small { justify-self: end; color: var(--ink-soft); }

.next-card,
.handoff-summary,
.handoff-route {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}
.next-card strong,
.handoff-route b { display: block; margin-bottom: 8px; font-family: var(--serif); }
.next-card p,
.handoff-route p { margin: 0; font-size: 13px; }
.handoff-summary dl { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin: 0; font-size: 13px; }
.handoff-summary dt { color: var(--ink-soft); }
.handoff-summary dd { margin: 0; color: var(--ink); }

.screen-review code { color: var(--jade); }
.review-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.review-metrics article { padding: 14px 8px; border: 1px solid var(--line); text-align: center; }
.review-metrics b { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 24px; color: var(--jade); }
.review-metrics span { font-size: 11px; color: var(--ink-soft); }
.review-section { margin-bottom: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-row span:last-child { color: var(--jade); }
.asset-lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.asset-line { padding: 12px; background: var(--surface-soft); }
.asset-line b { display: block; font-size: 20px; font-family: Georgia, serif; }
.asset-line span { color: var(--ink-soft); font-size: 11px; }

.app-footer {
  padding: 18px 24px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}
.app-footer p { margin: 0; font-size: 10px; }
.app-footer button { min-height: 44px; margin-top: 8px; border: 0; color: var(--jade); background: transparent; cursor: pointer; }

button:focus-visible,
textarea:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

h1:focus,
h2:focus { outline: none; }

@media (min-width: 700px) {
  body { padding: 28px 0; }
  .app { min-height: calc(100vh - 56px); }
  .hotel-header { position: relative; }
  .screen { min-height: 720px; padding: 48px 42px 56px; }
  .screen-home { min-height: 720px; padding-top: 68px; padding-bottom: 32px; }
  .home-actions { grid-template-columns: 1.2fr 0.8fr; }
}

@media (max-width: 360px) {
  .hotel-header { grid-template-columns: 64px 1fr 44px; padding-inline: 14px; }
  .hotel-logo { width: 62px; }
  .hotel-header-copy p { font-size: 11px; }
  .screen { padding: 28px 16px 38px; }
  .screen-home { padding-top: 38px; padding-bottom: 20px; }
  h1 { font-size: 37px; }
  h2 { font-size: 25px; }
}

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