@import url("https://cdnjs.cloudflare.com/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/style.min.css");

:root {
  color-scheme: light;
  --ink: #121715;
  --soft-ink: #303936;
  --muted: #68716d;
  --paper: #f5efe3;
  --ivory: #fffaf0;
  --panel: #fffdf8;
  --deep: #14221e;
  --deep-2: #20342e;
  --gold: #c8a46a;
  --gold-soft: #efe1c3;
  --wine: #783c35;
  --sage: #6f8277;
  --line: rgba(31, 42, 38, 0.14);
  --shadow: 0 22px 70px rgba(19, 29, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(20, 34, 30, 0.1), transparent 360px),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 0 calc(56px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 23, 21, 0.84), rgba(18, 23, 21, 0.38) 48%, rgba(18, 23, 21, 0.08)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1900&q=86");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: var(--ivory);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(18, 23, 21, 0.66));
}

.topbar,
.hero-copy {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-size: 30px;
  line-height: 1.08;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
}

.topbar-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(18, 23, 21, 0.22);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy {
  max-width: 750px;
  padding: 80px 52px 48px;
}

.eyebrow,
.section-kicker,
.chapter-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: 18px;
}

.hero-proof,
.delivery-steps,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  margin-top: 30px;
}

.hero-proof span,
.delivery-steps span,
.meta-row span {
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 250, 240, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.access-panel,
.preview-strip,
.reader-shell,
.notice-panel {
  margin-top: 24px;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  padding: 30px;
  box-shadow: 0 16px 46px rgba(19, 29, 25, 0.08);
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.access-copy p,
.notice-panel p,
.locked-state p,
.chapter-stage p,
.chapter-card p {
  color: var(--muted);
}

.access-copy p {
  max-width: 650px;
}

.delivery-steps {
  margin-top: 18px;
}

.delivery-steps span {
  border-color: rgba(20, 34, 30, 0.12);
  background: #f7f2e8;
  color: var(--deep);
}

.code-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 18px;
}

.code-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(31, 42, 38, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  text-transform: uppercase;
}

.input-row input:focus {
  outline: 3px solid rgba(200, 164, 106, 0.24);
  border-color: var(--gold);
}

.input-row button,
.quiz-submit,
.chapter-back,
.city-tools button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.input-row button,
.quiz-submit {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1f170d;
}

.form-hint {
  min-height: 26px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-hint.error {
  color: var(--wine);
}

.form-hint.success {
  color: var(--deep-2);
  font-weight: 900;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-strip article {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 20px;
}

.preview-strip span {
  display: block;
  margin-bottom: 16px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.preview-strip b {
  display: block;
  font-size: 20px;
}

.preview-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.reader-shell {
  position: relative;
  --reader-font: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reader-shell.font-small {
  --reader-font: 14px;
}

.reader-shell.font-large {
  --reader-font: 18px;
}

.watermark {
  pointer-events: none;
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  max-width: min(260px, calc(100% - 32px));
  border: 1px solid rgba(31, 42, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  padding: 8px 12px;
  color: rgba(18, 23, 21, 0.22);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transform: none;
  word-break: break-all;
  backdrop-filter: blur(10px);
}

.reader-shell.is-unlocked .watermark {
  display: flex;
}

.locked-state {
  padding: 34px;
}

.reader-layout {
  display: none;
}

.reader-shell.is-unlocked .locked-state {
  display: none;
}

.reader-shell.is-unlocked .reader-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 720px;
}

.chapter-library {
  position: sticky;
  top: 0;
  z-index: 6;
  align-self: start;
  max-height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 34, 30, 0.04), transparent 220px),
    #f9f4ea;
  padding: 20px;
}

.library-head {
  display: block;
  margin-bottom: 16px;
}

.library-head h2 {
  margin: 0;
  font-size: 22px;
}

.library-head .section-kicker {
  margin-bottom: 4px;
}

.font-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: auto;
  margin-top: 12px;
}

.font-control button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--deep);
  font-weight: 900;
}

.font-control button.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--ivory);
}

.chapter-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.chapter-card {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
}

.chapter-card small,
.chapter-card b {
  display: block;
}

.chapter-card small {
  margin: 0 0 4px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 900;
}

.chapter-card b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.25;
}

.chapter-card.is-active,
.chapter-card:hover {
  border-color: rgba(200, 164, 106, 0.68);
  background: #fff8e9;
}

.chapter-stage {
  min-width: 0;
  min-height: 720px;
  padding: 34px;
  background: #fffdf8;
  font-size: var(--reader-font);
}

.chapter-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.chapter-title h2 {
  max-width: 780px;
  font-size: 36px;
}

.chapter-title p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--soft-ink);
  font-size: calc(var(--reader-font) + 1px);
}

.chapter-back {
  display: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
  padding: 0 12px;
}

.chapter-body {
  display: grid;
  gap: 18px;
}

.rich-section,
.note-box,
.quiz-result-panel,
.template-card,
.checklist label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.rich-section {
  padding: 20px;
}

.rich-section h3 {
  margin-bottom: 10px;
}

.rich-section p {
  margin: 8px 0 0;
}

.lux-list,
.compact-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.lux-list li,
.compact-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.78;
}

.lux-list li::before,
.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.two-col,
.three-col,
.method-grid,
.template-grid {
  display: grid;
  gap: 12px;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.three-col,
.method-grid {
  grid-template-columns: repeat(3, 1fr);
}

.template-grid {
  grid-template-columns: repeat(2, 1fr);
}

.meta-row {
  margin-top: 14px;
}

.meta-row span {
  border-color: rgba(31, 42, 38, 0.12);
  background: #f5efe3;
  color: var(--deep);
}

.note-box {
  padding: 18px;
  background: #f6eddb;
  border-left: 4px solid var(--gold);
}

.note-box p {
  margin: 6px 0 0;
}

.reader-letter {
  border: 1px solid rgba(200, 164, 106, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 233, 0.96), rgba(246, 237, 219, 0.82)),
    #fffaf0;
  padding: 22px;
}

.reader-letter h3 {
  font-size: 24px;
}

.reader-letter p {
  color: var(--soft-ink);
  font-weight: 650;
}

.text-highlight {
  border-radius: 5px;
  background: linear-gradient(180deg, transparent 48%, rgba(200, 164, 106, 0.34) 48%);
  color: var(--ink);
  font-weight: 900;
  padding: 0 2px;
}

.highlight-box {
  border: 1px solid rgba(200, 164, 106, 0.46);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e9, #f6eddb);
  padding: 14px 16px;
  color: var(--deep);
  font-weight: 900;
}

.quiz-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quiz-dashboard div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
}

.quiz-dashboard span,
.quiz-dashboard small {
  display: block;
}

.quiz-dashboard span {
  font-size: 24px;
  font-weight: 900;
}

.quiz-dashboard small {
  margin-top: 4px;
  color: var(--muted);
}

.quiz-form {
  display: grid;
  gap: 14px;
}

.quiz-question {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 16px;
}

.quiz-question.is-reality {
  background: #f7f2e8;
}

.quiz-question legend {
  padding: 0;
  font-weight: 900;
}

.quiz-question legend small {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 12px;
}

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

.quiz-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(31, 42, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
  line-height: 1.6;
}

.quiz-options label:has(input:checked) {
  border-color: rgba(200, 164, 106, 0.78);
  background: #f6eddb;
}

.quiz-options input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.quiz-options b {
  display: inline-flex;
  min-width: 28px;
  color: var(--wine);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-reset,
.city-tools button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--deep);
  padding: 0 14px;
  font-weight: 900;
}

.quiz-result-panel {
  padding: 18px;
  background: #f6eddb;
}

.result-lead {
  color: var(--soft-ink);
  font-weight: 800;
}

.recommend-panel {
  border: 1px solid rgba(31, 42, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}

.recommend-panel p {
  margin-top: 6px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.recommend-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.recommend-card span,
.recommend-card b,
.recommend-card small {
  display: block;
}

.recommend-card span {
  font-size: 28px;
}

.recommend-card b {
  margin-top: 8px;
  font-size: 18px;
}

.recommend-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.score-row span {
  border-radius: 999px;
  background: #fffdf8;
  padding: 7px 10px;
  color: var(--deep);
  font-weight: 900;
}

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

.city-tools button.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--ivory);
}

.route-playbook {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}

.route-planner {
  border: 1px solid rgba(200, 164, 106, 0.38);
  border-radius: 8px;
  background: #fffaf0;
  padding: 18px;
}

.route-planner h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.route-planner p {
  color: var(--muted);
}

.route-city-bank {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  margin: 14px 0;
  padding-right: 4px;
}

.route-city-chip {
  min-height: 48px;
  border: 1px solid rgba(31, 42, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--deep);
  padding: 8px;
  text-align: left;
  font-weight: 900;
}

.route-city-chip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.route-city-chip.is-selected {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--ivory);
}

.route-city-chip.is-selected small {
  color: rgba(255, 253, 248, 0.72);
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-result {
  margin-top: 14px;
  border: 1px solid rgba(31, 42, 38, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}

.route-result strong {
  color: var(--deep);
}

.route-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.route-order span {
  border: 1px solid rgba(200, 164, 106, 0.38);
  border-radius: 999px;
  background: #f6eddb;
  padding: 8px 10px;
  color: var(--deep);
  font-weight: 900;
}

.route-order i {
  color: var(--wine);
  font-style: normal;
  font-weight: 900;
}

.route-advice {
  margin-top: 10px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #f6eddb;
  padding: 12px 14px;
}

.route-advice b {
  display: block;
  color: var(--wine);
}

.route-advice p {
  margin: 6px 0 0;
  color: var(--text);
}

.route-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.route-guide h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--deep);
  font-size: 18px;
}

.route-guide-card {
  border: 1px solid rgba(31, 42, 38, 0.1);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.route-guide-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.route-guide-head > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--deep);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 900;
}

.route-guide-card b,
.route-guide-card small {
  display: block;
}

.route-guide-card b {
  color: var(--deep);
  font-size: 16px;
}

.route-guide-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.route-guide-card p {
  margin: 10px 0;
  color: var(--text);
  font-weight: 800;
}

.route-guide-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.route-more-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.route-playbook h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.route-card {
  border: 1px solid rgba(31, 42, 38, 0.1);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.route-card b,
.route-card span {
  display: block;
}

.route-card b {
  color: var(--deep);
  font-size: 15px;
}

.route-card span {
  margin-top: 6px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.route-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.route-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.route-city-links button,
.route-jump-button {
  border: 1px solid rgba(200, 164, 106, 0.38);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--deep);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.route-jump-button {
  margin-top: 12px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--ivory);
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.section-title-row h3 {
  margin: 0;
}

.section-title-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(200, 164, 106, 0.42);
  border-radius: 999px;
  background: #f6eddb;
  color: var(--wine);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.city-explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.72fr);
  gap: 16px;
  align-items: start;
}

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

.city-icon-card {
  min-width: 0;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 12px 8px;
  text-align: center;
}

.city-icon-card:hover,
.city-icon-card.is-active {
  border-color: rgba(200, 164, 106, 0.78);
  background: #f6eddb;
  box-shadow: 0 10px 28px rgba(19, 29, 25, 0.08);
}

.city-mark,
.city-detail-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 42, 38, 0.1);
  border-radius: 50%;
  background: #fffdf8;
}

.city-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  font-size: 24px;
}

.city-icon-card b,
.city-icon-card small {
  display: block;
  overflow-wrap: anywhere;
}

.city-icon-card b {
  font-size: 16px;
  line-height: 1.26;
}

.city-icon-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.city-detail-panel {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}

.city-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.city-detail-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  font-size: 31px;
}

.city-detail-hero small {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
}

.city-tagline {
  margin-top: 0;
  color: var(--soft-ink);
  font-weight: 900;
}

.city-highlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.city-highlight-row span {
  border: 1px solid rgba(200, 164, 106, 0.35);
  border-radius: 8px;
  background: #f6eddb;
  padding: 10px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}

.city-detail-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.city-detail-panel dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.city-detail-panel dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.city-detail-panel dd {
  margin: 0;
  line-height: 1.65;
}

.city-detail-panel h4 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.city-detail-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
}

.city-fit {
  margin: 12px 0;
  border: 1px solid rgba(31, 42, 38, 0.08);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px 12px;
  color: var(--soft-ink);
  line-height: 1.65;
}

.city-route-list {
  display: grid;
  gap: 8px;
}

.city-route-list div {
  border: 1px solid rgba(200, 164, 106, 0.32);
  border-radius: 8px;
  background: #f6eddb;
  padding: 10px;
}

.city-route-list b,
.city-route-list span {
  display: block;
}

.city-route-list b {
  color: var(--deep);
  font-size: 14px;
}

.city-route-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.xiaowu-says {
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #f6eddb;
  padding: 12px;
}

.city-empty {
  display: none;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.template-card {
  padding: 16px;
}

.template-card p {
  margin: 8px 0 0;
}

.checklist {
  display: grid;
  gap: 12px;
}

.prep-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.prep-tabs button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--deep);
  font-weight: 900;
}

.prep-tabs button.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--ivory);
}

.prep-check-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.prep-check-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.prep-check-head p {
  margin: 0 0 12px;
  color: var(--muted);
}

.checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(31, 42, 38, 0.08);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
  line-height: 1.72;
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--gold);
}

.notice-panel {
  border-radius: 8px;
  background: var(--deep);
  color: var(--ivory);
  padding: 28px;
}

.notice-panel p {
  max-width: 780px;
  color: rgba(255, 250, 240, 0.74);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(360px, calc(100% - 32px));
  transform: translate(-50%, 120%);
  border-radius: 8px;
  background: rgba(18, 23, 21, 0.96);
  color: var(--ivory);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

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

.welcome-flash {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 48px;
  background:
    radial-gradient(circle at 50% 18%, rgba(200, 164, 106, 0.22), transparent 34%),
    rgba(18, 23, 21, 0.68);
  backdrop-filter: blur(18px);
}

.welcome-flash.is-open {
  display: flex;
}

.welcome-card {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100vw - 96px));
  height: min(680px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  border: 1px solid rgba(200, 164, 106, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(200, 164, 106, 0.13) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(247, 241, 229, 0.98));
  background-size: 100% 34px, auto;
  padding: 40px 54px 30px;
  box-shadow: 0 28px 90px rgba(18, 23, 21, 0.34);
  overflow: hidden;
}

.welcome-card h2 {
  flex: 0 0 auto;
  color: var(--deep);
  font-size: 28px;
}

.welcome-card .section-kicker {
  font-size: 18px;
  letter-spacing: 0;
}

.welcome-type {
  flex: 1 1 auto;
  min-height: 0;
  margin: 18px 0 0;
  padding-right: 8px;
  color: #26312d;
  font-family: "HanziPen SC", "HanziPen TC", "Xingkai SC", "STXingkai", "LXGW WenKai Screen", "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.48;
  overflow: auto;
  white-space: pre-line;
  text-wrap: pretty;
}

.welcome-type::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--gold);
  vertical-align: -0.18em;
  animation: cursorBlink 0.82s steps(1) infinite;
}

.welcome-closing {
  flex: 0 0 auto;
  margin: 18px 0 0;
  color: var(--wine);
  font-family: "HanziPen SC", "HanziPen TC", "Xingkai SC", "STXingkai", "LXGW WenKai Screen", "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.welcome-closing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.welcome-enter {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 18px;
  min-height: 50px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  background: var(--deep);
  color: var(--ivory);
  padding: 0 22px;
  font-weight: 900;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.support-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 25;
  min-width: 94px;
  height: 48px;
  border: 1px solid rgba(255, 250, 240, 0.35);
  border-radius: 999px;
  background: var(--deep);
  color: var(--ivory);
  padding: 0 16px;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(19, 29, 25, 0.22);
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 23, 21, 0.46);
}

.support-modal.is-open {
  display: flex;
}

.support-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 8px;
  background: #fffdf8;
  padding: 24px;
  box-shadow: var(--shadow);
}

.support-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--deep);
  font-size: 22px;
  line-height: 1;
}

.qr-placeholder {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 18px auto;
  border: 1px dashed rgba(31, 42, 38, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(200, 164, 106, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200, 164, 106, 0.14) 25%, transparent 25%),
    #fffaf0;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .access-panel {
    grid-template-columns: 1fr;
  }

  .reader-shell.is-unlocked .reader-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .city-explorer {
    grid-template-columns: 1fr;
  }

  .route-grid {
    grid-template-columns: 1fr;
    max-height: 300px;
  }

  .route-city-bank {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-detail-panel {
    position: static;
  }

  .chapter-library {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .chapter-list {
    display: grid;
  }

  .three-col,
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    background: var(--paper);
  }

  .app-shell {
    width: 100%;
    padding-top: 0;
  }

  .hero {
    min-height: 430px;
    border-radius: 0 0 8px 8px;
    background:
      linear-gradient(180deg, rgba(18, 23, 21, 0.1), rgba(18, 23, 21, 0.78)),
      url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=82");
    background-position: center;
    background-size: cover;
    box-shadow: none;
  }

  .topbar {
    padding: 16px;
  }

  .brand b {
    font-size: 22px;
  }

  .topbar-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-copy {
    padding: 86px 20px 24px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.72;
  }

  .access-panel,
  .preview-strip,
  .reader-shell,
  .notice-panel {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .access-panel,
  .locked-state,
  .chapter-stage,
  .notice-panel {
    padding: 20px;
  }

  .input-row,
  .preview-strip,
  .quiz-dashboard,
  .quiz-options,
  .recommend-grid,
  .city-highlight-row,
  .two-col,
  .three-col,
  .method-grid,
  .template-grid,
  .prep-tabs,
  .city-detail-panel dl {
    grid-template-columns: 1fr;
  }

  .input-row button,
  .quiz-submit,
  .quiz-reset {
    width: 100%;
  }

  h2 {
    font-size: 24px;
    line-height: 1.34;
  }

  .chapter-title h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    line-height: 1.74;
  }

  .reader-shell.is-unlocked .reader-layout,
  .chapter-stage {
    min-height: auto;
  }

  .reader-shell.is-unlocked .reader-layout {
    grid-template-columns: 1fr;
  }

  .chapter-library {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .library-head {
    align-items: flex-start;
  }

  .chapter-topbar {
    display: block;
  }

  .chapter-back {
    display: inline-flex;
    margin-bottom: 16px;
  }

  .city-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .route-playbook {
    padding: 14px;
  }

  .route-city-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 280px;
  }

  .route-guide {
    grid-template-columns: 1fr;
  }

  .city-icon-card {
    min-height: 102px;
    padding: 10px 6px;
  }

  .city-mark {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    font-size: 21px;
  }

  .city-icon-card b {
    font-size: 15px;
  }

  .city-icon-card small {
    font-size: 11px;
  }

  .watermark {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-width: min(230px, calc(100% - 24px));
    font-size: 11px;
  }

  .welcome-card {
    width: min(100%, 560px);
    height: min(640px, calc(100vh - 36px));
    padding: 28px 22px 22px;
  }

  .welcome-card h2 {
    font-size: 24px;
  }

  .welcome-card .section-kicker {
    font-size: 15px;
  }

  .welcome-type {
    font-size: 18px;
    line-height: 1.48;
  }

  .welcome-closing {
    font-size: 24px;
  }
}
