:root {
  --ink: #f0e6d3;
  --ink-deep: #1a1410;
  --muted: #a89880;
  --paper: #16100b;
  --sand: #e8a850;
  --flame: #c94b2a;
  --ember: #8b3a1f;
  --sandstone: #8b5e3c;
  --ash: #2a221c;
  --obsidian: #1a1410;
  --dust: rgba(232, 168, 80, 0.12);
  --line: rgba(232, 168, 80, 0.18);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --card-bg: rgba(42, 34, 28, 0.75);
  --card-border: rgba(232, 168, 80, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(22, 16, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  color: var(--sand);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  background: var(--dust);
  color: var(--sand);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 18px));
  display: grid;
  align-items: end;
  padding: 112px clamp(20px, 5vw, 72px) 72px;
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 16, 11, 0.92), rgba(22, 16, 11, 0.55) 48%, rgba(22, 16, 11, 0.18)),
    linear-gradient(0deg, rgba(22, 16, 11, 0.78), transparent 50%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("https://commons.wikimedia.org/wiki/Special:FilePath/Flaming_Mountains,_Turpan,_Xinjiang.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.4) brightness(0.8);
}

.hero-copy {
  width: min(860px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
}

.hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(232, 168, 80, 0.4);
  border-radius: 8px;
  font-weight: 800;
  color: var(--sand);
}

.button:hover {
  border-color: var(--sand);
  background: rgba(232, 168, 80, 0.1);
}

.button.primary {
  background: var(--flame);
  border-color: var(--flame);
  color: white;
}

.button.primary:hover {
  background: var(--ember);
}

.button.ghost {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Quick Strip ── */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--ash);
}

.quick-strip div {
  min-height: 112px;
  padding: 22px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.quick-strip div:last-child {
  border-right: 0;
}

.quick-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.quick-strip strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.28;
  color: var(--sand);
}

/* ── Sections ── */
.section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin: 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  color: var(--sand);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

/* ── Route Section ── */
.route-section {
  background: var(--ash);
}

.route-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 22px;
  align-items: stretch;
}

.route-map,
.route-stats,
.comfort-card,
.checklist,
.food-panel,
.note-grid article {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.route-map {
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
}

.route-map svg {
  width: 100%;
  height: 100%;
  min-height: 310px;
}

.map-path {
  fill: none;
  stroke: var(--flame);
  stroke-width: 10;
  stroke-linecap: round;
}

.map-path.shadow {
  stroke: rgba(201, 75, 42, 0.22);
  stroke-width: 24;
}

.pin circle {
  fill: var(--sand);
  stroke: var(--obsidian);
  stroke-width: 5;
}

.pin.end circle {
  fill: var(--flame);
}

.pin text {
  font-size: 24px;
  font-weight: 800;
  text-anchor: middle;
  fill: var(--ink);
}

.route-stats {
  padding: 24px;
}

.route-stats h3,
.checklist h3,
.comfort-card h3,
.food-panel h3,
.note-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
  color: var(--sand);
}

.route-stats ol {
  margin: 0;
  padding-left: 22px;
}

.route-stats li + li,
.checklist li + li {
  margin-top: 10px;
}

/* ── Timeline / Day Cards ── */
.timeline {
  display: grid;
  gap: 16px;
}

.day-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
}

.date {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  color: white;
}

.date span,
.date strong {
  display: block;
  line-height: 1;
}

.date span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.date strong {
  font-size: 42px;
}

.day-body h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: var(--sand);
}

.day-body p {
  margin: 8px 0;
  color: var(--ink);
}

.day-body b {
  color: var(--sand);
}

.drive-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(232, 168, 80, 0.12);
  border: 1px solid rgba(232, 168, 80, 0.25);
  color: var(--sand);
  font-size: 14px;
  font-weight: 700;
}

/* ── Spot Section ── */
.spot-section {
  background: var(--obsidian);
  color: white;
}

.spot-section .section-heading h2 {
  color: var(--flame);
}

.spot-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.6);
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.spot-card {
  overflow: hidden;
  border: 1px solid rgba(201, 75, 42, 0.2);
  border-radius: 8px;
  background: rgba(201, 75, 42, 0.06);
}

.spot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #2a1a10;
}

.spot-card div {
  padding: 18px;
}

.spot-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--sand);
}

.spot-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

/* ── Two Column (Car + Comfort) ── */
.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(280px, 1fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: start;
  background: var(--ash);
}

.checklist,
.comfort-card {
  padding: 24px;
}

.checklist ul {
  margin: 0;
  padding-left: 20px;
}

.comfort-card {
  background: linear-gradient(135deg, #3d1c0f, #2a1410);
  border-color: rgba(201, 75, 42, 0.35);
  color: white;
}

.comfort-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Food Section ── */
.food-section {
  background: var(--paper);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.food {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.food:hover {
  border-color: var(--sand);
  color: var(--sand);
  background: var(--dust);
}

.food.active {
  border-color: transparent;
  background: var(--flame);
  color: white;
}

.food-panel {
  padding: clamp(22px, 4vw, 34px);
  min-height: 140px;
}

.food-panel p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* ── Notes Section ── */
.notes-section {
  background: var(--ash);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .note-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.note-grid article {
  padding: 22px;
  box-shadow: none;
}

.note-grid p {
  margin: 0;
  color: var(--muted);
}

.source-line {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Footer ── */
footer {
  padding: 30px clamp(20px, 5vw, 72px);
  background: var(--obsidian);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0 0 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .quick-strip,
  .spot-grid,
  .note-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-board,
  .two-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
    padding-top: 70px;
  }

  .quick-strip,
  .spot-grid,
  .note-grid,
  .food-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day-card {
    grid-template-columns: 1fr;
  }

  .date {
    min-height: 92px;
    grid-template-columns: auto auto;
    gap: 12px;
    justify-content: start;
    padding: 18px;
  }

  .section {
    padding-block: 64px;
  }
}
