:root {
  --canvas: #f0efea;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-light: #333;
  --muted: #777;
  --rule: #d6d3cb;
  --rule-soft: #e8e6df;
  --green: #2c5545;
  --green-soft: #e5eee9;
  --green-dark: #1e3d31;
  --warm: #8b5e3c;
  --warm-soft: #faf4ed;
  --link: #2c5545;
  --max: 1040px;
  --narrow: 720px;
  --bar-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Georgia", "Songti SC", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── top bar ─── */
.bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 239, 234, .92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.bar-nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a { color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .15s; }
.bar-nav a:hover { color: var(--ink); text-decoration: none; }

/* ─── shell ─── */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin: 0 auto; }

/* ─── hero ─── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex; align-items: flex-end;
  background: var(--green-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .55;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max); width: 100%;
  margin: 0 auto; padding: 60px 24px 48px;
}
.hero h1 {
  color: #fff; font-size: 34px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-bottom: 10px;
}
.hero .sub {
  color: rgba(255,255,255,.85); font-size: 15px;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}

/* ─── overview cards ─── */
.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -40px auto 0;
  position: relative; z-index: 2;
  max-width: var(--max);
  padding: 0 24px;
}
.card {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.card-img {
  width: 100%; height: 180px;
  object-fit: cover;
}
.card-body { padding: 18px 20px 20px; }
.card-num {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--green); background: var(--green-soft);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.card .tag { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.card .desc { font-size: 14px; line-height: 1.6; color: var(--ink-light); margin-bottom: 14px; }
.card .stats {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: 12px; color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--rule-soft);
}
.card .stats strong { color: var(--ink); font-weight: 600; }

/* ─── route detail ─── */
.route { padding: 56px 0 48px; }
.route + .route { border-top: 1px solid var(--rule); }

.route-hero {
  border-radius: 14px; overflow: hidden;
  margin-bottom: 28px;
  position: relative;
}
.route-hero img {
  width: 100%; height: 320px;
  object-fit: cover;
}
.route-hero .credit {
  position: absolute; bottom: 10px; right: 14px;
  font-size: 11px; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.3); padding: 2px 8px;
  border-radius: 4px; backdrop-filter: blur(4px);
}

.route-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.route-head .num {
  font-size: 12px; font-weight: 600;
  color: var(--green); background: var(--green-soft);
  padding: 2px 10px; border-radius: 4px;
}
.route h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.route .zh-name { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.route .intro {
  font-family: var(--serif);
  font-size: 16px; line-height: 1.85; color: var(--ink-light);
  margin-bottom: 24px;
}
.route .route-note {
  color: var(--muted); font-size: 13px;
  margin: -16px 0 20px;
  padding-left: 14px;
  border-left: 2px solid var(--rule);
}

/* data strip */
.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; margin-bottom: 24px;
}
.data-strip > div { background: var(--paper); padding: 14px 16px; }
.data-strip dt {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: 4px;
}
.data-strip dd { font-size: 14px; font-weight: 600; margin: 0; }

/* photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0 28px;
}
.gallery img {
  width: 100%; height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .15s;
}
.gallery img:hover { opacity: .85; }

/* section titles */
.sec-title {
  font-size: 16px; font-weight: 700;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-soft);
  color: var(--ink);
}

/* links */
.ext-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.ext-links a {
  font-size: 13px; padding: 7px 14px;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper);
  transition: all .15s;
}
.ext-links a:hover {
  background: var(--green-soft); border-color: var(--green);
  text-decoration: none;
}

/* look items */
.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 14px 0 24px;
}
.look-card {
  background: var(--paper); border: 1px solid var(--rule-soft);
  border-radius: 10px; padding: 16px 18px;
}
.look-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.look-card span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 14px 0 14px 44px; position: relative;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px; line-height: 1.7;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }

/* timeline */
.timeline { list-style: none; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px;
}
.timeline li:last-child { border-bottom: none; }
.tl-time {
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--green); font-size: 13px;
  text-align: right; padding-top: 1px;
}
.tl-label { font-weight: 600; }
.tl-note { color: var(--muted); font-size: 13px; }

/* cautions */
.cautions {
  background: var(--warm-soft);
  border-left: 3px solid var(--warm);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 20px 0;
}
.cautions p { font-size: 13px; font-weight: 700; color: var(--warm); margin-bottom: 6px; }
.cautions ul { padding-left: 18px; font-size: 14px; line-height: 1.7; }
.cautions li { margin-bottom: 4px; }

/* info block */
.info-block {
  background: var(--paper); border: 1px solid var(--rule-soft);
  border-radius: 10px; padding: 16px 20px;
  margin: 12px 0; font-size: 14px; line-height: 1.7;
}
.info-block .note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ─── reviews ─── */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 14px 0 24px;
}
.review {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 16px 18px;
}
.review-stars { color: #d4a017; font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.review-text {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 8px;
}
.review-author { font-size: 12px; color: var(--muted); font-weight: 600; }
.review-source { font-size: 11px; color: var(--muted); }

/* ─── footer ─── */
.foot {
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  line-height: 1.7;
}
.foot a { color: var(--muted); text-decoration: underline; }

/* back to top */
.to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff;
  border: none; cursor: pointer; font-size: 18px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 50; transition: opacity .2s;
}
.to-top.show { display: flex; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

/* ─── responsive ─── */
@media (max-width: 768px) {
  .hero { min-height: 320px; }
  .hero h1 { font-size: 26px; }
  .overview { grid-template-columns: 1fr; margin-top: -24px; }
  .card-img { height: 160px; }
  .route-hero img { height: 220px; }
  .data-strip { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { min-height: 260px; }
  .hero h1 { font-size: 22px; }
  .hero-content { padding: 40px 20px 32px; }
  .bar-inner { padding: 0 16px; }
  .shell { padding: 0 16px; }
  .route { padding: 36px 0 32px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 200px; }
}
