@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
  --ink: #000000;
  --panel: #121212;
  --night: #0a1230;
  --night-2: #16224a;
  --line: #202741;
  --txt: #e8ecf5;
  --dim: #9aa5bd;
  --blue: #7fb4ff;
  --gold: #e6c377;
  --serif: "Newsreader", "Songti SC", Georgia, serif;
  --sans: "Roboto", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font: 400 17px/1.8 var(--sans);
  padding-bottom: 78px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
  background: radial-gradient(120% 90% at 12% 0%, var(--night) 0%, #04060d 58%, #000 100%);
}

.hero-copy {
  padding: clamp(30px, 7vw, 70px) 20px 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 18px;
  font-size: .82rem;
  letter-spacing: .42em;
  color: var(--blue);
  text-shadow: 0 0 10px rgba(127, 180, 255, .55);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  margin: 0 0 26px;
  max-width: 46ch;
  color: var(--dim);
  font-size: 1.02rem;
}

.hero-plate {
  position: relative;
  margin-top: auto;
  flex: 1 1 auto;
  min-height: 26vh;
  overflow: hidden;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .045) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, #0b1330, #101a3c 46%, #05070f 100%);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.84) contrast(1.05);
}

.slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 9px;
  background: linear-gradient(90deg, var(--blue), var(--gold) 52%, transparent 96%);
  transform: skewY(-2.2deg);
  opacity: .85;
}

/* ---------- stage ---------- */

.stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 48px;
  align-items: start;
}

.stage-main { min-width: 0; }

/* ---------- 正文 ---------- */

.doc { padding: 64px 0 40px; }

.doc section {
  scroll-margin-top: 92px;
  padding-bottom: 8px;
}

.doc > section:first-child { padding-top: 0; }

.doc section + section {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.doc h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.doc h2 + hr {
  border: 0;
  height: 3px;
  width: 58px;
  margin: 0 0 26px;
  background: linear-gradient(90deg, var(--blue), var(--night-2));
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.doc h3 {
  margin: 36px 0 10px;
  font-size: 1.22rem;
  color: #fff;
}

.doc h3 + hr {
  border: 0;
  height: 1px;
  width: 40px;
  margin: 10px 0 20px;
  background: var(--night-2);
}

.doc p { margin: 0 0 18px; max-width: 68ch; }

.doc ul, .doc ol { padding-left: 1.15em; margin: 0 0 22px; }
.doc li { margin: .45em 0; max-width: 62ch; }
.doc li::marker { color: var(--blue); }

.doc strong { color: #fff; font-weight: 500; }

.doc blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.14rem;
  color: #cfd7e8;
}

.doc blockquote p { margin: 0 0 10px; }

.doc img {
  border: 1px solid var(--line);
  filter: brightness(.9);
}

.doc figure { margin: 28px 0; }
.doc figcaption { font-size: .88rem; color: var(--dim); margin-top: 8px; }

.doc table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.doc th { background: #0b0d16; font-weight: 500; }

/* 动画 */

html.js .doc > section { opacity: 0; transform: translateY(20px); }
html.js .doc > section.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

/* ---------- 侧栏 ---------- */

.rail {
  position: sticky;
  top: 22px;
  align-self: start;
  margin-top: 64px;
  padding: 18px 18px 22px;
  background: #08090f;
  border: 1px solid var(--line);
}

.rail h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: .3em;
  font-family: var(--sans);
  font-weight: 500;
  color: #fff;
}

.rail hr {
  border: 0;
  height: 3px;
  width: 44px;
  margin: 0 0 14px;
  background: var(--blue);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li { border-bottom: 1px dashed #1b2237; }
.rail-list li:last-child { border-bottom: 0; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: .97rem;
  color: #dbe2f0;
  text-decoration: none;
}

.rail-list a:hover { color: var(--gold); padding-left: 6px; }

.rail-close {
  display: none;
  margin: 0 0 14px;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--txt);
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  font-size: .92rem;
  color: var(--dim);
  text-decoration: none;
}

.to-top:hover { color: var(--blue); }

/* 遮罩态（移动与桌面通用） */

.rail[data-open] {
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: 0;
  border: 0;
  background: #05070d;
  padding: 22px 20px 110px;
  overflow-y: auto;
  align-self: auto;
}

.rail[data-open] .rail-close { display: inline-block; }

.rail[data-open] .rail-list a {
  font-size: 1.16rem;
  min-height: 52px;
  font-family: var(--serif);
}

body.lock { overflow: hidden; }

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #05060a;
  padding: 54px 20px 30px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px 26px;
  align-items: end;
  max-width: 100%;
}

.foot p { margin: 0; }

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 30px !important;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.4vw, 2.3rem);
  line-height: 1.15;
}

.foot-cta a { color: #fff; text-decoration: none; }
.foot-cta a:hover { color: var(--gold); }

.foot-brand { color: var(--dim); letter-spacing: .18em; font-size: .95rem; }

.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .93rem;
  color: #c9d2e4;
  text-decoration: none;
}
.foot-links a:hover { color: var(--blue); }

.foot-copy { color: #69738a; font-size: .85rem; justify-self: end; }

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: rgba(5, 6, 10, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.burger, .dock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--txt);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.burger:hover, .dock-cta:hover { border-color: var(--blue); color: var(--blue); }

.dock-cta { border-color: #2a3350; color: var(--gold); }

.dock-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: .2em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(127, 180, 255, .28);
}

.dock-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  font-size: .93rem;
  color: #c3ccdf;
  text-decoration: none;
  white-space: nowrap;
}

.dock-nav a:hover { color: var(--blue); }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .stage { grid-template-columns: minmax(0, 1fr) 232px; gap: 32px; }
}

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dock-nav { display: none; }
  .doc { padding-top: 44px; }
  .rail {
    position: fixed;
    inset: 0;
    z-index: 90;
    margin: 0;
    border: 0;
    background: #05070d;
    padding: 22px 20px 110px;
    overflow-y: auto;
    transform: translateY(101%);
    transition: transform .32s ease;
    visibility: hidden;
  }
  .rail[data-open] { transform: translateY(0); visibility: visible; }
  .rail-list a { font-size: 1.16rem; min-height: 52px; font-family: var(--serif); }
  .foot { grid-template-columns: 1fr; gap: 14px; }
  .foot-copy { justify-self: start; }
  .foot-cta { margin-bottom: 16px !important; }
}

@media (max-width: 860px) and (min-width: 0px) {
  .rail:not([data-open]) { transition: transform .32s ease, visibility .32s ease; }
}

@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .hero-copy { padding-left: 16px; padding-right: 16px; }
  .stage { padding: 0 16px; }
  .foot { padding: 44px 16px 24px; }
  .dock-cta { padding: 10px 10px; font-size: .86rem; }
  .dock-brand { font-size: .98rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .doc > section { opacity: 1; transform: none; transition: none; }
  .rail { transition: none; }
  .rail-list a:hover { padding-left: 2px; }
}

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