@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --ink: #000000;
  --paper: #f2f2f2;
  --card: #ffffff;
  --rail: 150px;
  --display: 'Abril Fatface', 'Songti SC', 'STSong', Georgia, serif;
  --body: 'Merriweather', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

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

.skip {
  position: absolute;
  left: 0;
  top: -70px;
  z-index: 90;
  background: #000;
  color: #fff;
  padding: 16px 22px;
  font-size: 16px;
  text-decoration: none;
}
.skip:focus { top: 0; }

.frame { min-height: 100vh; }

/* ---------- 左侧竖排栏 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px 22px;
  z-index: 30;
  overflow-y: auto;
}

.mark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
}
.mark-glyph { font-size: 24px; line-height: 1; }
.mark-txt {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: .03em;
}

.rail-nav ul { list-style: none; margin: 0; padding: 0; }
.rail-nav li { margin: 0; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 4px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible {
  background: #fff;
  color: #000;
  padding-left: 11px;
}
.rail-nav a:hover .ico,
.rail-nav a:focus-visible .ico { border-color: #000; background: #000; }

.ico {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid #fff;
  transition: border-color .2s ease, background .2s ease;
}
.rail-nav li:nth-child(2) .ico { border-radius: 50%; }
.rail-nav li:nth-child(3) .ico { transform: rotate(45deg); }
.rail-nav li:nth-child(4) .ico { border-radius: 50%; border-width: 3px; }
.rail-nav li:nth-child(5) .ico { width: 13px; height: 0; border-width: 0; border-top: 3px solid #fff; }
.rail-nav li:nth-child(6) .ico { border: 0; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rail-nav li:nth-child(7) .ico { background: #fff; }

.rail-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .32);
  padding-top: 14px;
}
.rail-foot .lbl {
  display: block;
  font-size: 12px;
  letter-spacing: .28em;
  color: #9c9c9c;
  margin-bottom: 4px;
}
.rail-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- 主区域 ---------- */
.stage {
  margin-left: var(--rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 104px 24px 150px;
  background: #000;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  opacity: .42;
}
.hero-inner { max-width: min(100%, 1080px); }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 8.5vw, 8rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hero .lead {
  margin: 28px auto 0;
  max-width: 30ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: #e0e0e0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 88px) clamp(18px, 5vw, 64px) clamp(48px, 7vw, 96px);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.band > section { grid-column: 1; min-width: 0; }
.band > aside { grid-column: 2; }

/* ---------- 正文 ---------- */
.doc > div {
  background: var(--card);
  border-radius: 18px;
  border-bottom: 4px solid #000;
  padding: clamp(22px, 3vw, 44px) clamp(18px, 2.6vw, 40px);
  margin: 0 0 clamp(34px, 5vw, 68px);
  transition: transform .35s ease, box-shadow .35s ease;
}
.doc > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 0 -12px rgba(0, 0, 0, .18);
}
.doc > div:last-child { margin-bottom: 0; }

.doc div[id] { scroll-margin-top: 92px; }

.doc h2 {
  margin: 0 0 .55em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.doc h3 {
  margin: 1.7em 0 .5em;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.35;
}
.doc h4 { margin: 1.4em 0 .4em; font-size: 1.05rem; }
.doc p { margin: 0 0 1.05em; font-size: 17px; line-height: 1.85; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.doc li { margin-bottom: .5em; line-height: 1.8; }
.doc a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background .2s ease, color .2s ease;
}
.doc a:hover { background: #000; color: #fff; text-decoration-color: #fff; }
.doc strong { font-weight: 700; }
.doc img { border-radius: 12px; margin: 1.4em 0; }
.doc blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 6px solid #000;
  font-style: italic;
}
.doc hr { border: 0; border-top: 2px solid #000; margin: 2em 0; }

/* ---------- 右侧信息块 ---------- */
.side {
  position: sticky;
  top: 30px;
  background: #000;
  color: #fff;
  border-radius: 18px;
  border-bottom: 6px solid #fff;
  padding: 26px 20px 18px;
}
.side h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
}
.side .subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #c9c9c9;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 16px;
}
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: padding-left .2s ease, color .2s ease;
}
.side-links a:hover,
.side-links a:focus-visible { padding-left: 8px; color: #b5b5b5; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: auto;
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 36px 48px;
  padding: clamp(40px, 6vw, 78px) clamp(20px, 5vw, 64px) 26px;
}
.f-top { min-width: 0; }
.f-mark {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
}
.f-brand {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.6vw, 5.2rem);
  line-height: .94;
  letter-spacing: -.02em;
}
.f-desc {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: #b4b4b4;
}

.f-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.f-nav a:hover,
.f-nav a:focus-visible { border-color: #fff; color: #b4b4b4; }

.f-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: 14.5px;
  color: #a8a8a8;
}
.f-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
}
.f-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  :root { --rail: 0px; }

  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 60px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .mark { gap: 6px; flex: none; }
  .mark-glyph { font-size: 18px; }
  .mark-txt { font-size: 13px; white-space: nowrap; }
  .rail-nav { flex: 1 1 auto; overflow-x: auto; }
  .rail-nav ul { display: flex; gap: 2px; }
  .rail-nav a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 0;
  }
  .rail-nav a:hover,
  .rail-nav a:focus-visible { padding-left: 12px; }
  .rail-nav .ico { display: none; }
  .rail-foot { display: none; }

  .stage { margin-left: 0; padding-top: 60px; }

  .hero {
    min-height: 0;
    padding: 58px 18px 96px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero .lead { margin-top: 20px; font-size: 16px; }

  .band { grid-template-columns: minmax(0, 1fr); }
  .band > section, .band > aside { grid-column: 1; }
  .side { position: static; margin-top: 10px; }

  .doc > div:hover { transform: none; box-shadow: none; }
  .doc p { font-size: 17px; }

  .foot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .f-bar { grid-column: 1; }
}

@media (max-width: 420px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .doc > div { padding: 20px 15px; }
  .hero { padding: 46px 14px 86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .doc > div, .rail-nav a, .side-links a { transition: none; }
}

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