:root {
  --ink: #281923;
  --muted: #755f66;
  --bg: #fff8f1;
  --paper: #fffdf9;
  --wash: #f5e8dc;
  --line: #e7d0c0;
  --red: #8b2039;
  --red-deep: #571325;
  --gold: #b98535;
  --green: #2d7b68;
  --blue: #4c748d;
  --shadow: 0 20px 60px rgba(84, 37, 43, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(139, 32, 57, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 32, 57, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fff8f1 0%, #fbede3 46%, #fffdf9 100%);
  background-size: 30px 30px, 30px 30px, auto;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", "PingFang SC", serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-grid {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.side-dock {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px 20px;
  color: #fff9f2;
  background:
    linear-gradient(180deg, rgba(42, 20, 30, 0.94), rgba(87, 19, 37, 0.96)),
    url("img/tu5.jpg") center / cover;
  box-shadow: 16px 0 44px rgba(64, 24, 32, 0.18);
}

.side-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(35, 18, 27, 0.86), rgba(87, 19, 37, 0.94)),
    radial-gradient(circle at top left, rgba(233, 184, 99, 0.22), transparent 16rem);
}

.dock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  line-height: 1.28;
}

.brand img {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 248, 241, 0.36);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 241, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff8ef;
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-toggle.is-open span:not(.sr-only):nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:not(.sr-only):nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:not(.sr-only):nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: grid;
  gap: 8px;
}

.nav-links a {
  border: 1px solid rgba(255, 248, 241, 0.14);
  border-radius: 6px;
  padding: 11px 12px;
  color: rgba(255, 249, 242, 0.88);
  background: rgba(255, 248, 241, 0.08);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(233, 184, 99, 0.7);
  background: rgba(255, 248, 241, 0.16);
  transform: translateX(2px);
}

.dock-facts {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

.dock-facts div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 248, 241, 0.16);
  padding-bottom: 10px;
}

.dock-facts dt {
  color: rgba(255, 249, 242, 0.62);
  font-size: 13px;
}

.dock-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.dock-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  color: #2b171f;
  background: linear-gradient(135deg, #f1c875, #bd8a34);
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dock-download:hover,
.dock-download:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.page-canvas {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 34px);
}

.cover-stage {
  position: relative;
  display: grid;
  min-height: min(74vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(139, 32, 57, 0.16);
  border-radius: var(--radius);
  background: #2b1722;
  box-shadow: var(--shadow);
}

.cover-stage picture,
.cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-art {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(38, 18, 28, 0.88) 0%, rgba(38, 18, 28, 0.4) 52%, rgba(38, 18, 28, 0.1) 100%),
    linear-gradient(90deg, rgba(38, 18, 28, 0.72) 0%, rgba(38, 18, 28, 0.2) 58%, rgba(38, 18, 28, 0.7) 100%);
}

.cover-copy {
  position: relative;
  align-self: end;
  width: min(820px, calc(100% - 48px));
  margin: 0 0 clamp(24px, 5vw, 58px) clamp(22px, 5vw, 62px);
  color: #fff8f1;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 248, 241, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 248, 241, 0.84);
  background: rgba(255, 248, 241, 0.1);
  font-size: 14px;
}

.cover-copy h1 {
  margin: 0;
  color: #f1c875;
  font-size: clamp(34px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
  text-wrap: balance;
}

.cover-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 248, 241, 0.88);
  font-size: clamp(17px, 1.6vw, 22px);
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 132px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #b63d55);
  box-shadow: 0 12px 24px rgba(139, 32, 57, 0.24);
}

.btn-ghost {
  color: #fff8f1;
  border: 1px solid rgba(255, 248, 241, 0.4);
  background: rgba(255, 248, 241, 0.1);
}

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

.intel-cell {
  border: 1px solid rgba(139, 32, 57, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 12px 32px rgba(84, 37, 43, 0.08);
}

.intel-cell span,
.feature-node span,
.route-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.intel-cell h2 {
  margin: 12px 0 4px;
  color: var(--red-deep);
  font-size: 20px;
}

.intel-cell p {
  margin: 0;
  color: var(--muted);
}

.content-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  margin-top: clamp(42px, 7vw, 82px);
  scroll-margin-top: 24px;
}

.section-label {
  position: sticky;
  top: 24px;
  align-self: start;
  border-left: 4px solid var(--red);
  padding: 2px 0 2px 16px;
}

.section-label span {
  display: block;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.section-label p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-intro,
.intro-copy {
  max-width: 920px;
}

.section-intro h2,
.intro-copy h2,
.principle-copy h2,
.download-panel h2 {
  margin: 0;
  color: var(--red-deep);
  font-size: clamp(24px, 3.1vw, 36px);
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
}

.principle-copy h2,
.download-panel h2 {
  color: #f1c875;
}

.section-intro p,
.intro-copy p,
.principle-copy p,
.download-panel p {
  color: var(--muted);
  font-size: 17px;
}

.intro-ledger {
  grid-template-areas:
    "label copy"
    "label image";
}

.intro-ledger .section-label {
  grid-area: label;
}

.intro-copy {
  grid-area: copy;
}

.intro-visual {
  grid-area: image;
  margin: 8px 0 0;
}

.intro-visual,
.shot,
.principle-image {
  overflow: hidden;
  border: 1px solid rgba(139, 32, 57, 0.15);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(84, 37, 43, 0.12);
}

.intro-visual img,
.shot img,
.principle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.intro-visual:hover img,
.shot:hover img,
.principle-image:hover img {
  transform: scale(1.035);
}

.feature-ledger,
.gallery-ledger,
.guide-ledger,
.update-ledger,
.faq-ledger {
  align-items: start;
}

.feature-ledger .section-intro,
.gallery-ledger .section-intro,
.guide-ledger .section-intro,
.update-ledger .section-intro,
.faq-ledger .section-intro {
  grid-column: 2;
}

.feature-matrix,
.gallery-board,
.route-map,
.update-stack,
.faq-columns {
  grid-column: 2;
}

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(139, 32, 57, 0.15);
  border-radius: var(--radius);
  background: rgba(139, 32, 57, 0.14);
  box-shadow: 0 16px 42px rgba(84, 37, 43, 0.08);
}

.feature-node {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 253, 249, 0.92);
}

.feature-node:nth-child(2n) span {
  background: var(--green);
}

.feature-node:nth-child(3n) span {
  background: var(--gold);
}

.feature-node h3,
.route-panel h3,
.update-entry h3 {
  margin: 16px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-node p,
.route-panel p,
.route-panel li,
.update-entry li,
.faq-item p {
  color: var(--muted);
}

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

.shot {
  margin: 0;
  aspect-ratio: 16 / 10;
}

.shot-wide {
  grid-column: auto;
  grid-row: auto;
}

.shot-tall {
  grid-row: auto;
}

.route-map {
  display: grid;
  gap: 18px;
}

.route-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 32, 57, 0.14);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.96), rgba(255, 248, 241, 0.9)),
    linear-gradient(135deg, rgba(185, 133, 53, 0.12), transparent);
  box-shadow: 0 16px 42px rgba(84, 37, 43, 0.09);
}

.route-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}

.route-tag {
  background: var(--blue);
}

.route-panel ul,
.update-entry ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.route-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-list li {
  counter-increment: route;
  position: relative;
  border-top: 1px solid rgba(139, 32, 57, 0.12);
  padding: 14px 0 0 58px;
}

.route-list li::before {
  content: counter(route, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--red);
  font-weight: 900;
}

.route-list strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.route-list p {
  margin: 6px 0 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid > div {
  border: 1px solid rgba(139, 32, 57, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.resource-grid h4 {
  margin: 0;
  font-size: 18px;
}

.principle-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-top: clamp(42px, 7vw, 82px);
  border: 1px solid rgba(139, 32, 57, 0.16);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(135deg, rgba(87, 19, 37, 0.94), rgba(45, 123, 104, 0.88));
  color: #fff8f1;
  box-shadow: var(--shadow);
}

.principle-image {
  min-height: 320px;
  border-color: rgba(255, 248, 241, 0.2);
}

.principle-copy span {
  color: #f0ca79;
  font-weight: 800;
}

.principle-copy p {
  color: rgba(255, 248, 241, 0.82);
}

.update-stack {
  display: grid;
  gap: 14px;
}

.update-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(139, 32, 57, 0.14);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 12px 34px rgba(84, 37, 43, 0.08);
}

.update-entry time {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.update-entry h3 {
  margin-top: 0;
}

.faq-columns {
  columns: 2 320px;
  column-gap: 16px;
}

.faq-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border: 1px solid rgba(139, 32, 57, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 12px 30px rgba(84, 37, 43, 0.07);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 18px;
  color: var(--red-deep);
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  margin-right: -24px;
  color: var(--red);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  border-top: 1px solid rgba(139, 32, 57, 0.11);
  padding: 0 18px 18px;
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: clamp(42px, 7vw, 82px);
  border: 1px solid rgba(139, 32, 57, 0.16);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  background: var(--red-deep);
  color: #fff8f1;
  box-shadow: var(--shadow);
}

.download-panel img {
  border: 1px solid rgba(255, 248, 241, 0.3);
  border-radius: var(--radius);
}

.download-panel h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}

.download-panel p {
  margin: 8px 0 0;
  color: rgba(255, 248, 241, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  border-top: 1px solid rgba(139, 32, 57, 0.14);
  padding: 24px 0 8px;
  color: var(--muted);
}

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

.site-footer p {
  margin: 4px 0 0;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(139, 32, 57, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  background: #a8324c;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .site-grid {
    grid-template-columns: 248px minmax(0, 1fr);
  }

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

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

@media (max-width: 920px) {
  .site-grid {
    display: block;
  }

  .side-dock {
    position: sticky;
    height: auto;
    min-height: 70px;
    padding: 12px 18px;
  }

  .dock-top {
    width: 100%;
  }

  .brand span {
    font-size: 16px;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links.is-open {
    display: grid;
  }

  .dock-facts,
  .dock-download {
    display: none;
  }

  .page-canvas {
    padding: 18px;
  }

  .cover-stage {
    min-height: 620px;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .section-label,
  .section-intro,
  .feature-matrix,
  .gallery-board,
  .route-map,
  .update-stack,
  .faq-columns,
  .feature-ledger .section-intro,
  .gallery-ledger .section-intro,
  .guide-ledger .section-intro,
  .update-ledger .section-intro,
  .faq-ledger .section-intro {
    grid-column: 1;
  }

  .section-label {
    position: static;
  }

  .intro-ledger {
    grid-template-areas:
      "label"
      "copy"
      "image";
  }

  .intel-strip {
    grid-template-columns: 1fr;
  }

  .principle-band,
  .resource-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel .btn {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .page-canvas {
    padding: 12px;
  }

  .cover-stage {
    min-height: 560px;
  }

  .cover-copy {
    width: calc(100% - 32px);
    margin: 0 16px 22px;
  }

  .cover-copy h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .eyebrow {
    border-radius: 6px;
  }

  .cover-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-matrix,
  .gallery-board {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot-wide,
  .shot-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .feature-node {
    min-height: auto;
  }

  .update-entry {
    grid-template-columns: 1fr;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .faq-columns {
    columns: 1;
  }
}

@media (max-width: 420px) {
  .cover-copy h1,
  .section-intro h2,
  .intro-copy h2,
  .principle-copy h2,
  .download-panel h2 {
    overflow-wrap: anywhere;
  }

  .cover-lead,
  .section-intro p,
  .intro-copy p,
  .principle-copy p,
  .download-panel p {
    font-size: 16px;
  }

  .route-panel,
  .feature-node {
    padding: 18px;
  }

  .side-dock {
    padding-inline: 12px;
  }
}
