:root {
  --bg: #fff8f4;
  --surface: #ffffff;
  --surface-soft: #fff1ec;
  --ink: #322824;
  --muted: #766b66;
  --line: rgba(135, 92, 83, .18);
  --rose: #d96879;
  --rose-dark: #a64255;
  --peach: #f3b18f;
  --cream: #fff6df;
  --mint: #93d3bf;
  --blue: #82b6d9;
  --shadow: 0 22px 60px rgba(128, 74, 62, .16);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 244, .94), rgba(255, 248, 244, .98)),
    radial-gradient(circle at 18% 4%, rgba(255, 222, 176, .46), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(142, 204, 222, .32), transparent 26%),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .24) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
}

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

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--peach), var(--mint));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 10px max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(255, 248, 244, .74);
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(102, 69, 58, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 60px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(115, 78, 78, .18);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--rose-dark);
  outline: none;
}

.hero {
  min-height: min(780px, calc(100vh - 20px));
  display: grid;
  align-items: end;
  padding: 118px max(22px, calc((100vw - var(--max)) / 2)) 54px;
  background:
    linear-gradient(90deg, rgba(54, 38, 48, .62) 0%, rgba(67, 45, 56, .36) 36%, rgba(255, 248, 244, .72) 72%, rgba(255, 248, 244, .9) 100%),
    url("assets/images/hero.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.hero__inner {
  max-width: 670px;
  color: #fff;
  text-shadow: 0 2px 22px rgba(49, 35, 37, .5);
}

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

.hero .eyebrow {
  color: #ffe6dc;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff7ef;
}

h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--rose-dark);
}

h2::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: min(100%, 92px);
  height: 4px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--rose), var(--peach), var(--mint));
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.34;
}

p {
  margin: 0;
}

.hero__copy {
  max-width: 620px;
  color: rgba(255, 255, 255, .94);
  font-size: 18px;
}

.hero__copy strong {
  color: #ffe2a8;
  font-weight: 900;
}

.section__head strong,
.prose strong,
.guide-aside strong,
.route-note strong,
details strong {
  color: var(--rose-dark);
  font-weight: 900;
}

.prose strong {
  padding: 0 2px;
  background: linear-gradient(180deg, transparent 58%, rgba(246, 214, 207, .72) 0);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  background: #fff;
  color: var(--rose-dark);
  box-shadow: 0 18px 38px rgba(74, 39, 44, .2);
}

.button--ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 34px 0 0;
}

.hero__facts div {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}

.hero__facts dt {
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
}

.hero__facts dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 78px 0;
}

.section + .section {
  border-top: 1px solid rgba(135, 92, 83, .12);
}

.section__head {
  max-width: 800px;
  margin-bottom: 30px;
}

.section__head p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: center;
}

.media-frame,
.mini-figure,
.gallery figure {
  margin: 0;
}

.media-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.prose {
  color: var(--muted);
}

.prose h3 {
  color: var(--ink);
}

.prose p + p {
  margin-top: 14px;
}

.notice {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(217, 104, 121, .2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 241, 236, .92));
}

.notice strong {
  color: var(--rose-dark);
}

.metric-grid,
.feature-grid,
.strategy-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid article,
.feature,
.strategy-grid article,
.analysis-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 40px rgba(118, 86, 72, .08);
}

.metric-grid strong {
  display: block;
  color: var(--rose-dark);
  font-size: 15px;
}

.metric-grid span,
.feature p,
.strategy-grid p,
.analysis-grid p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.feature__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--peach));
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.guide-aside,
.route-panel,
.note-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 42px rgba(102, 69, 58, .09);
}

.guide-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.guide-aside ol {
  margin: 12px 0 18px;
  padding-left: 22px;
  color: var(--muted);
}

.guide-aside li + li {
  margin-top: 8px;
}

.mini-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.mini-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.route-panel {
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 246, 240, .78);
}

.tab {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab:hover,
.tab:focus-visible {
  border-color: rgba(217, 104, 121, .28);
  outline: none;
}

.tab.is-active {
  background: var(--rose);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(217, 104, 121, .26);
}

.route {
  padding: 24px;
}

.route__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

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

.route__head picture {
  overflow: hidden;
  height: 150px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.route__head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

caption {
  padding: 12px 14px;
  color: var(--rose-dark);
  font-weight: 900;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid rgba(135, 92, 83, .12);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff5ef;
  color: var(--ink);
  font-size: 14px;
}

td {
  color: var(--muted);
  font-size: 14px;
}

tbody td:first-child {
  color: var(--rose-dark);
  font-weight: 900;
}

tbody td:nth-child(3) {
  color: #2f8d78;
  font-weight: 900;
}

.route-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  background: #fff7f2;
  color: var(--muted);
}

.gallery-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: -60px;
  margin-bottom: 18px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--rose-dark);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 38%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.gallery figure {
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
}

.timeline time {
  color: var(--rose-dark);
  font-weight: 900;
}

.timeline h3 {
  margin-bottom: 6px;
}

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

.notes {
  padding-bottom: 48px;
}

.note-box {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.note-box span {
  font-weight: 900;
  color: var(--rose-dark);
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

textarea:focus {
  border-color: rgba(217, 104, 121, .65);
  outline: 3px solid rgba(217, 104, 121, .14);
}

.note-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
}

details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
  color: var(--rose-dark);
  font-weight: 800;
  text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(22px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #fff3ec;
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
}

.site-footer p {
  max-width: 720px;
  margin-top: 6px;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
    padding-top: 136px;
    background:
      linear-gradient(180deg, rgba(44, 31, 36, .52) 0%, rgba(74, 50, 58, .42) 48%, rgba(255, 248, 244, .92) 100%),
      url("assets/images/hero.webp");
    background-size: cover;
    background-position: center top;
  }

  .split,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
  }

  .metric-grid,
  .feature-grid,
  .strategy-grid,
  .analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: auto;
    padding: 8px 16px 10px;
  }

  .brand img {
    width: 44px;
    height: 50px;
  }

  .brand strong {
    font-size: 15px;
  }

  .nav a {
    padding: 7px 11px;
    font-size: 13px;
  }

  .hero {
    min-height: 640px;
    padding: 124px 18px 34px;
    align-items: end;
  }

  .hero__copy {
    font-size: 16px;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .section {
    width: calc(100% - 32px);
    padding: 54px 0;
  }

  .metric-grid,
  .feature-grid,
  .strategy-grid,
  .analysis-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .route {
    padding: 16px;
  }

  .route__head {
    grid-template-columns: 1fr;
  }

  .route__head picture {
    height: 210px;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    flex: 0 0 auto;
  }

  .gallery-toolbar {
    justify-content: flex-start;
    margin-top: 0;
  }

  .gallery {
    grid-auto-columns: 86%;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 18px;
  }
}

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