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

:root {
  --void: #000000;
  --panel: #121212;
  --panel-2: #17171a;
  --line: #232327;
  --line-2: #31313a;
  --text: #e9e9ee;
  --dim: #9c9caa;
  --faint: #6e6e7d;
  --beam: #3f63c8;
  --neon: #7ea8ff;
  --gold: #c9a86a;
  --maxw: 1180px;
  --r: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--neon); text-decoration: none; }
a:hover { color: #a9c6ff; }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.1rem; padding-inline-start: 1.3rem; }
li { margin: .3rem 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .8rem; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); color: #f2f2f7; }
strong { color: #fff; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote {
  margin: 1.4rem 0;
  padding: .9rem 1.2rem;
  border-left: 2px solid var(--beam);
  background: #0b0c11;
  border-radius: 0 var(--r) var(--r) 0;
  color: #d3d3dd;
}
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .95em; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
main [id] { scroll-margin-top: 132px; }
#main { scroll-margin-top: 0; }

/* ---------- 顶部细条 ---------- */
.ticker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem clamp(.9rem, 4vw, 2.2rem);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .16em;
  color: #cfd8ee;
  background: linear-gradient(90deg, #070a14, #0d1424 46%, #05060a);
  border-bottom: 1px solid #131a2a;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__txt { overflow: hidden; text-overflow: ellipsis; }
.ticker__txt--dim { color: var(--faint); letter-spacing: .1em; }
.ticker__rule { width: 26px; height: 1px; background: var(--beam); flex: none; box-shadow: 0 0 8px rgba(126, 168, 255, .55); }

/* ---------- 头部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem clamp(.9rem, 4vw, 2.2rem);
  background: rgba(0, 0, 0, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: .05em;
}
.brand:hover { color: #fff; }
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
  background: radial-gradient(circle at 30% 25%, var(--beam), #0a1024 70%);
  border: 1px solid #2a3860;
  box-shadow: 0 0 14px rgba(63, 99, 200, .45);
}
.brand__name { font-size: 1rem; white-space: nowrap; }

.masthead__menu { position: relative; }
.menu__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #0c0c10;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--neon); border-bottom: 1.5px solid var(--neon); transform: translateY(-2px) rotate(45deg); }
.masthead__menu[open] > .menu__btn::after { transform: translateY(2px) rotate(-135deg); }

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu__list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .72rem;
  color: var(--dim);
  font-size: 1rem;
  border-radius: 10px;
  white-space: nowrap;
}
.menu__list a:hover, .menu__list a:focus-visible { color: #fff; background: #14141a; }

/* ---------- 二级粘性锚点条 ---------- */
.railbar {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: rgba(6, 6, 9, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.railbar__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 clamp(.5rem, 3vw, 1.6rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.railbar__list::-webkit-scrollbar { display: none; }
.railbar__list li { margin: 0; flex: none; }
.railbar__list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .82rem;
  font-size: 1rem;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.railbar__list a:hover { color: var(--neon); border-bottom-color: var(--beam); }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 45vh;
  overflow: hidden;
  background:
    radial-gradient(125% 82% at 50% -18%, rgba(63, 99, 200, .3), transparent 62%),
    var(--void);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, .88));
}
.hero__stack {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(2.2rem, 7vh, 4rem) 1.1rem;
}
.hero__title {
  margin: 0;
  max-width: 24ch;
  text-align: center;
  font-size: clamp(2rem, 7.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.028em;
  text-shadow: 0 0 30px rgba(126, 168, 255, .3);
  text-wrap: balance;
}
.hero__plate {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 150px;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: linear-gradient(120deg, #0a0c14, #131b30 52%, #08090d);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.92); }

/* ---------- 正文 + 右侧栏 ---------- */
.reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3.2rem;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1rem, 4vw, 2.2rem) 3.4rem;
}

.reader__main { min-width: 0; counter-reset: sec; }
.reader__main > div {
  position: relative;
  counter-increment: sec;
  padding: 2.5rem 2.6rem 1.3rem 0;
  border-top: 1px solid var(--line);
}
.reader__main > div::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 2.5rem;
  right: 0;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .18em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.reader__main > div:first-child { border-top: 0; padding-top: .4rem; }
.reader__main > div:first-child::before { top: .5rem; }

.reader__main small {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .26em;
  color: var(--neon);
  margin-bottom: .45rem;
  text-shadow: 0 0 10px rgba(126, 168, 255, .28);
}
.reader__main small + h2, .reader__main small + h3 { margin-top: 0; }
.reader__main h2 { padding-right: 2.4rem; }

.reader__main figure { margin: 1.7rem 0; }
.reader__main figure img, .reader__main img { border-radius: var(--r); }
.reader__main figcaption { margin-top: .55rem; font-size: 1rem; color: var(--dim); }
.reader__main table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 1rem; }
.reader__main th, .reader__main td { border: 1px solid var(--line-2); padding: .6rem .75rem; text-align: left; }
.reader__main th { background: var(--panel); color: #fff; }
.reader__main > div > ul, .reader__main > div > ol { color: #dcdce6; }

/* ---------- 右侧栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 124px;
  padding: 1.3rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.rail__kicker {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .26em;
  color: var(--gold);
  margin-bottom: .35rem;
}
.rail__title { font-size: 1.2rem; margin: 0 0 .9rem; }
.rail__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.rail__list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .55rem;
  color: var(--dim);
  font-size: 1rem;
  border-radius: 11px;
  border-left: 2px solid transparent;
}
.rail__list a:hover { color: #fff; background: #1b1b22; border-left-color: var(--neon); }
.rail__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  font-size: 1rem;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #0d0d11;
}
.rail__top:hover { color: var(--neon); border-color: var(--beam); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #06060a, #000);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.2rem) 1.2rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot__brand { font-weight: 600; letter-spacing: .05em; color: #fff; margin: 0 0 .6rem; font-size: 1.05rem; }
.foot__addr { font-style: normal; display: grid; gap: .25rem; color: var(--dim); font-size: 1rem; line-height: 1.6; }
.foot__cap { display: block; font-size: 1rem; letter-spacing: .22em; color: var(--faint); margin-bottom: .7rem; font-weight: 500; }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 42px; font-size: 1rem; color: var(--dim); padding: 0 .2rem; }
.foot__nav a:hover { color: var(--neon); }

.sub { display: grid; gap: .55rem; }
.sub__label { font-size: 1rem; color: var(--dim); }
.sub__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.sub__input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 46px;
  padding: 0 .85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #0c0c11;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.sub__input::placeholder { color: var(--faint); }
.sub__input:focus { border-color: var(--beam); outline: none; box-shadow: 0 0 0 3px rgba(63, 99, 200, .22); }
.sub__btn {
  min-height: 46px;
  padding: 0 1.15rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #05070f;
  background: linear-gradient(180deg, #a9c6ff, #6f9bf5);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.sub__btn:hover { filter: brightness(1.08); }

.foot__base {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot__copy { margin: 0; font-size: 1rem; color: var(--faint); letter-spacing: .12em; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .62s ease, transform .62s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  .reader { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .rail { position: static; top: auto; }
  .reader__main > div { padding-right: 2.2rem; }
}

@media (max-width: 860px) {
  .menu__btn { padding: 0 .85rem; }
  .menu__list {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 220px;
    padding: .45rem;
    background: #0b0b0f;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: 0 30px 60px -28px #000;
  }
  .menu__list a { display: flex; width: 100%; }
  .railbar { top: 58px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__col:last-child { grid-column: 1 / -1; }
}

@media (min-width: 861px) {
  .menu__list { display: flex; align-items: center; gap: .05rem; }
  .menu__btn { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .ticker { font-size: 1rem; letter-spacing: .1em; }
  .hero__plate { aspect-ratio: 16 / 10; min-height: 130px; }
  .hero__title { max-width: 18ch; }
  .reader__main > div { padding-right: 2rem; padding-top: 2.1rem; }
  .reader__main > div::before { top: 2.1rem; }
  .reader__main > div:first-child::before { top: .4rem; }
  .foot__cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .reader { padding-bottom: 2.4rem; }
}

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