:root {
  --ink: #18231f;
  --muted: #61706a;
  --line: #d9ded7;
  --paper: #f3f1e7;
  --surface: #fffdf6;
  --mist: #e6f0e6;
  --moss: #496f52;
  --moss-dark: #23483f;
  --clay: #ba6648;
  --gold: #c79745;
  --blue: #426879;
  --shadow: 0 20px 55px rgba(24, 35, 31, .14);
  --radius: 8px;
  --rail: 244px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(73, 111, 82, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(73, 111, 82, .08) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  line-height: 1.72;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

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

strong {
  color: var(--moss-dark);
  font-weight: 900;
}

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

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

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.rail-header {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-right: 1px solid rgba(24, 35, 31, .12);
  background: rgba(255, 253, 246, .88);
  backdrop-filter: blur(16px);
  z-index: 50;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border: 2px solid rgba(73, 111, 82, .24);
  border-radius: 50%;
}

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

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #42504b;
  font-weight: 800;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.rail-nav a:hover,
.rail-nav a.is-active {
  color: var(--moss-dark);
  border-color: rgba(73, 111, 82, .24);
  background: var(--mist);
  transform: translateX(2px);
}

.rail-nav .rail-download {
  margin-top: 8px;
  justify-content: center;
  color: #fff;
  border-color: transparent;
  background: var(--moss-dark);
}

.rail-nav .rail-download:hover {
  color: #fff;
  background: var(--clay);
}

.rail-note {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #6a756f;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.content-flow {
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.opening-board {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  grid-template-rows: 1fr auto;
  gap: 22px;
  align-items: stretch;
}

.opening-copy,
.opening-media,
.info-ledger,
.text-panel,
.plain-list,
.daily-flow,
.download-panel,
.faq-stack details,
.version-log article {
  border: 1px solid rgba(24, 35, 31, .12);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, .92);
  box-shadow: var(--shadow);
}

.opening-copy {
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.opening-copy h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--moss-dark);
}

.lead {
  max-width: 680px;
  margin-bottom: 26px;
  color: #566760;
  font-size: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--clay);
  box-shadow: 0 12px 28px rgba(186, 102, 72, .28);
}

.button-primary:hover {
  background: #9f543c;
  box-shadow: 0 16px 34px rgba(159, 84, 60, .28);
}

.button-secondary {
  color: var(--moss-dark);
  border-color: rgba(73, 111, 82, .32);
  background: var(--mist);
}

.button-secondary:hover {
  border-color: rgba(73, 111, 82, .5);
  background: #f8fbf2;
}

.opening-media {
  overflow: hidden;
  min-height: 520px;
  position: relative;
}

.opening-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(24, 35, 31, .5), transparent);
  pointer-events: none;
}

.info-ledger {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.info-ledger div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.info-ledger div:last-child {
  border-right: 0;
}

.info-ledger dt {
  margin-bottom: 4px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.info-ledger dd {
  margin: 0;
  color: #40534c;
  font-weight: 800;
}

.keyword-dock {
  margin-top: 24px;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(24, 35, 31, .12);
  border-bottom: 1px solid rgba(24, 35, 31, .12);
}

.keyword-dock span {
  padding: 7px 11px;
  border: 1px solid rgba(66, 104, 121, .22);
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(255, 253, 246, .72);
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: 88px 0 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.download-panel h2 {
  margin-bottom: 14px;
  color: var(--moss-dark);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p {
  font-size: 17px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.text-panel,
.plain-list {
  padding: 26px;
}

.text-panel p:last-child,
.plain-list p:last-child {
  margin-bottom: 0;
}

.plain-list {
  grid-column: 1 / -1;
  box-shadow: none;
}

.plain-list ul {
  margin: 0;
  padding-left: 20px;
  color: #445851;
}

.plain-list li + li {
  margin-top: 8px;
}

.side-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 35, 31, .12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.side-shot img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px 14px;
  color: #5d6f69;
  font-size: 14px;
  background: var(--surface);
}

.system-table {
  border-top: 1px solid rgba(24, 35, 31, .18);
  background: rgba(255, 253, 246, .72);
}

.system-table article {
  display: grid;
  grid-template-columns: 72px minmax(160px, .34fr) minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(24, 35, 31, .16);
  align-items: start;
}

.system-table span {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.system-table h3 {
  margin-bottom: 0;
  color: var(--moss-dark);
  font-size: 20px;
}

.system-table p {
  margin-bottom: 0;
}

.gallery-track {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.gallery-track figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 35, 31, .12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-track figure:first-child {
  grid-row: span 2;
}

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

.gallery-track figure:first-child img {
  height: calc(100% - 76px);
}

.route-steps {
  position: relative;
  display: grid;
  gap: 16px;
}

.route-steps::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: rgba(73, 111, 82, .28);
}

.route-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(140px, .28fr) minmax(0, 1fr);
  gap: 16px;
  padding-left: 56px;
  align-items: baseline;
}

.route-steps article::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 1px rgba(73, 111, 82, .3);
}

.route-steps span {
  color: var(--clay);
  font-weight: 900;
}

.route-steps h3 {
  margin-bottom: 0;
  color: var(--moss-dark);
}

.route-steps p {
  margin-bottom: 0;
}

.daily-flow {
  margin-top: 34px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.daily-flow div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf2;
}

.daily-flow h3 {
  margin-bottom: 8px;
  color: var(--moss-dark);
}

.daily-flow p {
  margin-bottom: 0;
  font-size: 14px;
}

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

.audit-list li {
  counter-increment: audit;
  min-height: 76px;
  padding: 16px 18px 16px 54px;
  position: relative;
  border: 1px solid rgba(24, 35, 31, .12);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, .9);
}

.audit-list li::before {
  content: counter(audit);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.audit-list strong {
  display: block;
  margin-bottom: 2px;
}

.audit-list span {
  color: var(--muted);
}

.version-log {
  display: grid;
  gap: 12px;
}

.version-log article {
  padding: 20px;
  display: grid;
  grid-template-columns: 150px minmax(180px, .35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  box-shadow: none;
}

.version-log time {
  color: var(--clay);
  font-weight: 900;
}

.version-log h3 {
  margin-bottom: 0;
  color: var(--moss-dark);
}

.version-log p {
  margin-bottom: 0;
}

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

.faq-stack details {
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.faq-stack summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--moss-dark);
  font-weight: 900;
}

.faq-stack p {
  margin: 0;
  padding: 0 20px 20px;
}

.download-panel {
  margin-top: 88px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.download-panel p {
  max-width: 660px;
}

.download-panel p:last-child {
  margin-bottom: 0;
}

.not-found-shell {
  min-height: 100vh;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.not-found-shell h1 {
  margin: 0 0 14px;
  color: var(--moss-dark);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

.not-found-shell .download-panel {
  margin-top: 0;
}

.site-footer {
  margin-left: var(--rail);
  padding: 32px max(22px, calc((100vw - var(--rail) - var(--content)) / 2)) 42px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(24, 35, 31, .12);
  background: rgba(255, 253, 246, .76);
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: flex-start;
}

.site-footer nav a {
  color: #485c55;
  font-weight: 800;
}

.site-footer nav a:hover {
  color: var(--clay);
}

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

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

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

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

@media (max-width: 1120px) {
  :root {
    --rail: 214px;
  }

  .content-flow {
    width: min(100% - 34px, var(--content));
  }

  .opening-board {
    grid-template-columns: 1fr;
  }

  .opening-media {
    min-height: 420px;
  }

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

@media (max-width: 860px) {
  .page-shell {
    display: block;
  }

  .rail-header {
    position: sticky;
    min-height: 0;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .rail-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

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

  .rail-note {
    display: none;
  }

  .content-flow {
    padding-top: 18px;
  }

  .site-footer {
    margin-left: 0;
    padding: 30px 18px 38px;
  }

  .overview-grid,
  .gallery-track,
  .audit-list {
    grid-template-columns: 1fr;
  }

  .gallery-track figure:first-child {
    grid-row: auto;
  }

  .gallery-track figure:first-child img {
    height: auto;
  }

  .system-table article,
  .route-steps article,
  .version-log article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-steps article {
    padding-left: 48px;
  }

  .info-ledger {
    grid-template-columns: 1fr;
  }

  .info-ledger div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-ledger div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .content-flow {
    width: calc(100% - 24px);
  }

  .opening-copy {
    padding: 24px;
  }

  .opening-media {
    min-height: 300px;
  }

  .section {
    padding-top: 68px;
  }

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

  .daily-flow {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
