:root {
  --bg: #fbf7f1;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #2f2723;
  --muted: #6f625a;
  --accent: #c96f4a;
  --accent-soft: #f3d5c6;
  --accent-deep: #9e4e2f;
  --line: rgba(84, 62, 50, 0.12);
  --shadow: 0 18px 48px rgba(87, 57, 41, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 203, 173, 0.42), transparent 35%),
    radial-gradient(circle at top right, rgba(214, 228, 222, 0.5), transparent 30%),
    var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 241, 0.8);
  border-bottom: 1px solid rgba(84, 62, 50, 0.08);
}

.nav {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: linear-gradient(145deg, #f9decd, #f0c3aa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.page {
  width: var(--container);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 18px;
}

.hero-compact {
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.hero h1,
.section-title {
  margin: 14px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
}

.hero h1 span,
.section-title span {
  color: var(--accent-deep);
}

.hero-copy {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 28px rgba(158, 78, 47, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(84, 62, 50, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.hero-panel,
.card,
.story-card,
.survey-card,
.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 20px;
}

.photo-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.photo-main,
.photo-stack {
  min-height: 420px;
}

.hero-compact .photo-main,
.hero-compact .photo-stack {
  min-height: 360px;
}

.photo-main {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.photo-main img,
.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(33, 21, 15, 0.05), rgba(33, 21, 15, 0.66));
}

.photo-stack {
  display: grid;
  gap: 16px;
}

.photo-mini {
  position: relative;
  min-height: 202px;
  overflow: hidden;
  border-radius: 22px;
}

.hero-compact .photo-mini {
  min-height: 172px;
}

.photo-mini span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(27, 18, 13, 0.46);
  font-size: 0.92rem;
}

.section {
  padding: 34px 0;
}

.section-note {
  margin: -4px 0 18px;
  padding: 14px 18px;
  border-left: 3px solid rgba(201, 111, 74, 0.4);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.home-focus-copy {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 241, 234, 0.86)),
    radial-gradient(circle at top right, rgba(243, 213, 198, 0.22), transparent 30%);
}

.home-focus-copy .section-head {
  margin-bottom: 18px;
}

.home-focus-copy .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-focus-copy .section-note {
  font-size: 0.98rem;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.72);
}

.poem-step {
  margin: 10px 0 8px;
  color: var(--accent-deep);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.home-focus-copy-last {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-desc {
  max-width: 62ch;
  color: var(--muted);
}

.stats-grid,
.feature-grid,
.story-grid,
.question-grid,
.tips-grid,
.memory-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.story-grid,
.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.memory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.story-card,
.survey-card,
.panel {
  padding: 22px;
}

.card h3,
.story-card h3,
.survey-card h3,
.panel h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.metric {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

.highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.highlight-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.page-hero {
  padding-top: 24px;
}

.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: start;
}

.map-layout-single {
  grid-template-columns: 1fr;
}

.slice-toolbar {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.map-panel {
  padding: 18px;
}

.map-surface {
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(84, 62, 50, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 246, 240, 0.92)),
    radial-gradient(circle at top right, rgba(243, 213, 198, 0.35), transparent 28%);
  position: relative;
}

.map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.96rem;
}

.china-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.china-map-base,
.china-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.china-map-base {
  object-fit: contain;
  padding: 10px;
}

.china-map-overlay {
  overflow: visible;
}

.china-map-legend {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.85rem;
}

.china-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.china-map-legend i {
  width: 16px;
  height: 4px;
  border-radius: 999px;
  display: inline-block;
}

.china-route {
  fill: none;
  stroke: var(--route-color, rgba(201, 111, 74, 0.75));
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 10;
  opacity: 0.9;
}

.china-point-group {
  animation: fadeUp 0.5s ease both;
}

.china-point-ring {
  fill: rgba(201, 111, 74, 0.12);
}

.china-point {
  fill: var(--accent-deep);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 4;
}

.china-point-label {
  fill: var(--accent-deep);
  font-size: 24px;
  font-weight: 700;
  text-anchor: middle;
}

.china-city-tag {
  fill: #5e5149;
  font-size: 20px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 5;
  stroke-linejoin: round;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(87, 57, 41, 0.08);
}

.filter-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(84, 62, 50, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(87, 57, 41, 0.08);
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201, 111, 74, 0.18);
}

.timeline-item + .timeline-item {
  border-top: 1px dashed rgba(84, 62, 50, 0.12);
  padding-top: 16px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.place-tag {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 213, 198, 0.7);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.memory-card {
  overflow: hidden;
}

.memory-image {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
}

.memory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-summary {
  color: var(--muted);
}

.survey-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.survey-card strong {
  color: var(--accent-deep);
}

.note-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.survey-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group label {
  font-weight: 600;
}

.form-control,
.choice-group label {
  border: 1px solid rgba(84, 62, 50, 0.12);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
}

.form-control {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--text);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choice-group.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
}

.choice-group input {
  accent-color: var(--accent-deep);
}

.form-help {
  color: var(--muted);
  font-size: 0.95rem;
}

.success-banner {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(223, 238, 228, 0.88);
  color: #295844;
  border: 1px solid rgba(41, 88, 68, 0.12);
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 48px;
}

.footer-panel {
  padding: 22px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .map-layout,
  .survey-layout,
  .feature-grid,
  .story-grid,
  .tips-grid,
  .question-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-collage {
    grid-template-columns: 1fr;
  }

  .photo-main,
  .photo-stack,
  .photo-mini {
    min-height: unset;
  }

  .map-surface {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: space-between;
  }

  .page {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .choice-group.columns-2 {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-title,
  .page-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .hero {
    gap: 18px;
    padding-top: 16px;
  }

  .hero-copy,
  .section-desc,
  .memory-summary,
  .timeline-item p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-panel,
  .panel,
  .card,
  .survey-card {
    padding: 16px;
    border-radius: 22px;
  }

  .home-focus-copy {
    padding: 18px;
  }

  .home-focus-copy .section-note,
  .section-note {
    font-size: 0.9rem;
    line-height: 1.8;
    padding: 12px 14px;
  }

  .photo-main {
    min-height: 280px !important;
  }

  .photo-mini {
    min-height: 150px !important;
  }

  .photo-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .filter-bar {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 0;
    border-radius: 24px;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 0.92rem;
  }

  .survey-card,
  .survey-form .form-group,
  .survey-form .hero-actions {
    position: relative;
    border-radius: 22px;
  }

  .survey-card {
    padding: 20px;
  }

  .survey-form .form-group {
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 26px rgba(87, 57, 41, 0.08);
  }

  .survey-form .form-group:nth-of-type(odd) {
    transform: translateX(-6px);
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .survey-form .form-group:nth-of-type(even) {
    transform: translateX(6px);
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
  }

  .survey-form .hero-actions {
    display: grid;
    gap: 12px;
    margin-top: 8px;
  }

  .survey-form .button {
    width: 100%;
  }
}
