@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --teal: #5cc6b0;
  --sand: #d4c4a8;
  --ink: #172623;
  --paper: #f3ece0;
  --paper-2: #fbf6ee;
  --paper-3: #ebe0cf;
  --clay: #c98b6b;
  --olive: #6b7b3c;
  --line: rgba(23, 38, 35, 0.13);
  --rail: 262px;
  --r: 18px;
  --shadow: 0 18px 40px -28px rgba(23, 38, 35, 0.55);
}

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

body {
  margin: 0;
  padding-left: var(--rail);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% 0%, #f7f0e4 0%, rgba(247, 240, 228, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, #efe6d7 55%, var(--paper-3) 100%);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

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

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 20px 32px;
  overflow-y: auto;
  background: linear-gradient(175deg, #e7dcc9 0%, #f1e9dc 46%, #e4d8c3 100%);
  border-right: 1px solid var(--line);
}

.rail__top { padding-bottom: 4px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.brand__img {
  border-radius: 9px;
  flex: 0 0 auto;
}

.brand:hover .brand__txt { color: #0d5f52; }

.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grp {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.grp summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #56634e;
  border-radius: 10px;
}

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

.grp summary:hover { color: var(--ink); }

.chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease-out;
}

.grp:not([open]) .chev { transform: rotate(-45deg) translateX(-2px); }

.grp ul {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
}

.grp a {
  display: block;
  padding: 12px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #2c3d35;
  text-decoration: none;
  border-radius: 11px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease-out, border-color 0.2s ease-out;
}

.grp a:hover,
.grp a:focus-visible {
  background: rgba(92, 198, 176, 0.2);
  border-left-color: var(--teal);
}

.grp a[aria-current="true"] {
  background: rgba(92, 198, 176, 0.28);
  border-left-color: #1c8a76;
  font-weight: 700;
}

/* ---------- 首屏 ---------- */
.main { display: block; }

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 84px 48px 60px;
  overflow: hidden;
}

.hero__word {
  position: absolute;
  right: -2vw;
  top: 9%;
  font-size: clamp(3.4rem, 12.6vw, 10rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: rgba(23, 38, 35, 0.085);
  pointer-events: none;
  will-change: transform;
}

.hero__in {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: right;
}

.hero__h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5.4vw, 4.3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero__sub {
  margin: 0 0 28px auto;
  max-width: 42ch;
  font-size: 18px;
  line-height: 1.72;
  color: #3c4a41;
}

.hero__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 26px -18px rgba(23, 38, 35, 0.9);
  transition: transform 0.25s ease-out, background 0.25s ease-out;
}

.hero__go:hover {
  transform: translateY(-3px);
  background: #0f3b32;
}

.hero__fig {
  position: absolute;
  left: 48px;
  bottom: 62px;
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.hero__fig .b {
  display: block;
  width: 15px;
  border-radius: 9px;
  background: var(--sand);
}

.hero__fig .b1 { height: 46px; }
.hero__fig .b2 { height: 78px; background: var(--teal); }
.hero__fig .b3 { height: 30px; background: var(--clay); }

/* ---------- 正文区 ---------- */
.stage {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 38px;
  max-width: 1200px;
  padding: 0 48px 90px;
}

.index {
  position: sticky;
  top: 30px;
  align-self: start;
  padding: 18px 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(251, 246, 238, 0.72);
  box-shadow: var(--shadow);
}

.index__t {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #56634e;
}

.index__t span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tick {
  display: inline-block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sand));
}

.index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: idx;
}

.index__list li {
  counter-increment: idx;
}

.index__list a {
  display: block;
  padding: 10px 4px 10px 26px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  color: #364539;
  text-decoration: none;
  border-bottom: 1px dashed rgba(23, 38, 35, 0.15);
}

.index__list a::before {
  content: counter(idx, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 13px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #8a9b83;
}

.index__list a:hover { color: #0d5f52; }
.index__list a[aria-current="true"] { color: #0d5f52; font-weight: 700; }

.doc {
  min-width: 0;
  max-width: 764px;
  overflow-wrap: break-word;
}

.doc > section {
  position: relative;
  margin: 0 0 24px;
  padding: 30px 32px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.doc > section:target {
  border-color: rgba(92, 198, 176, 0.7);
}

.doc h2 {
  margin: 0.1em 0 0.75em;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.doc h2 > span {
  position: relative;
  display: inline-block;
}

.doc h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--sand));
}

.doc h2 > span > span { display: inline-block; }

.doc h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.16rem;
  line-height: 1.4;
  font-weight: 700;
}

.doc h3 > span { display: inline-block; }

.doc p {
  margin: 0 0 1.05em;
  line-height: 1.85;
}

.doc ul,
.doc ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.doc li { margin: 0.35em 0; line-height: 1.8; }

.doc strong { color: #0b2c25; }

.doc a {
  color: #0e7a67;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--sand);
  border-radius: 0 var(--r) var(--r) 0;
  background: #f6efe2;
  color: #3b4a3f;
}

.doc figure { margin: 1.2em 0; }
.doc figcaption { font-size: 15px; color: #62705f; }
.doc aside { margin: 1.2em 0; padding: 16px 18px; border-radius: var(--r); background: #f0ead9; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.9fr;
  gap: 26px;
  align-items: start;
  padding: 46px 48px 40px;
  background: var(--ink);
  color: #d8e3d9;
}

.foot .brand {
  color: #eef5ee;
  padding: 6px 0;
  min-height: 44px;
}

.foot__t {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sand);
}

.foot__t span { display: inline-flex; align-items: center; gap: 8px; }

.foot dl {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-auto-flow: column;
  gap: 0 22px;
  margin: 0;
}

.foot dt {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #9db3a4;
  margin-bottom: 6px;
}

.foot dd {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.foot dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  color: #cfe2d4;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(212, 196, 168, 0.16);
}

.foot dd a:hover { color: var(--teal); }

.foot__copy {
  text-align: center;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foot__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #a9bdad;
}

/* ---------- 回到顶部 ---------- */
.top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  min-height: 46px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 24px -16px rgba(23, 38, 35, 0.9);
  cursor: pointer;
}

.top[hidden] { display: none; }
.top:hover { background: #fff; }

/* ---------- 断点 ---------- */
@media (max-width: 1180px) {
  .stage { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding-inline: 32px; }
  .hero { padding-inline: 32px; }
  .hero__fig { left: 32px; }
  .foot { padding-inline: 32px; }
}

@media (max-width: 900px) {
  body { padding-left: 0; }

  .rail {
    position: sticky;
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px 12px;
    max-height: 42vh;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail__top { padding-bottom: 0; }
  .brand { padding: 8px 4px; min-height: 44px; }

  .rail__nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .grp {
    flex: 0 0 auto;
    border-top: 0;
    padding-top: 0;
  }

  .grp summary { display: none; }

  .grp ul,
  .grp:not([open]) ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .grp a {
    padding: 12px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    font-size: 16px;
  }

  .grp a:hover,
  .grp a:focus-visible,
  .grp a[aria-current="true"] {
    border-left: 0;
    border-bottom-color: var(--teal);
  }

  .hero {
    min-height: 62vh;
    padding: 56px 20px 44px;
  }

  .hero__word {
    top: 4%;
    right: -6vw;
    font-size: clamp(2.6rem, 15vw, 5rem);
  }

  .hero__fig { left: 20px; bottom: 20px; gap: 7px; }
  .hero__fig .b { width: 11px; }
  .hero__fig .b1 { height: 26px; }
  .hero__fig .b2 { height: 42px; }
  .hero__fig .b3 { height: 18px; }

  .hero__h1 { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .hero__sub { font-size: 17px; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0 18px 56px;
  }

  .index { display: none; }

  .doc { max-width: none; }

  .doc > section {
    padding: 22px 18px 26px;
    scroll-margin-top: 128px;
    margin-bottom: 16px;
  }

  .foot {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 18px 30px;
  }

  .foot__copy { justify-content: flex-start; text-align: left; }
  .foot dl { grid-auto-flow: row; grid-template-rows: none; }
  .foot dt { grid-column: auto; margin-top: 8px; }
  .foot dd { display: block; }
  .foot dd a { display: inline-flex; margin-right: 16px; }

  .top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__go,
  .chev,
  .grp a { transition: none; }
  .hero__word { transform: none !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
