@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#172617;
  --ink-deep:#0d1a0d;
  --neon:#69ff69;
  --cyan:#00ffff;
  --text:#d9efd9;
  --line:rgba(105,255,105,.28);
  --line-cyan:rgba(0,255,255,.34);
  --serif:'EB Garamond','Times New Roman',serif;
  --body:'Crimson Text',Georgia,'Songti SC','SimSun',serif;
  --chrome:linear-gradient(180deg,#ffffff 0%,#c8ffd8 24%,#69ff69 42%,#0b3320 52%,#69ff69 61%,#e6ffe9 82%,#7dffa0 100%);
}

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

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

body{
  margin:0;
  min-width:0;
  color:var(--text);
  font-family:var(--body);
  font-size:18px;
  line-height:1.75;
  background:
    radial-gradient(1100px 520px at 82% -14%, rgba(0,255,255,.17), transparent 62%),
    radial-gradient(880px 460px at 4% 2%, rgba(105,255,105,.15), transparent 58%),
    var(--ink);
  overflow-x:hidden;
}

a{color:var(--neon);text-decoration:none;transition:color .16s ease}
a:hover{color:#fff}
img{display:block;max-width:100%;height:auto}
::selection{background:var(--neon);color:var(--ink-deep)}

:focus-visible{outline:2px solid var(--cyan);outline-offset:3px;border-radius:12px}

.skip{
  position:absolute;left:12px;top:-60px;z-index:60;
  padding:8px 16px;border-radius:999px;
  background:var(--neon);color:var(--ink-deep);font-size:.9rem;
}
.skip:focus{top:12px}

/* ---------- 顶部：品牌居中，菜单分列两侧 ---------- */
.top{padding:16px clamp(14px,4vw,26px) 4px}

.head-inner{
  max-width:1240px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}

.menu{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 0;min-width:0}
.menu-l{justify-content:flex-start}
.menu-r{justify-content:flex-end}

.brand{
  display:inline-flex;align-items:center;gap:9px;
  min-height:44px;padding:0 8px;flex:0 0 auto;
}
.brand-mark{
  width:30px;height:30px;border-radius:50%;object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(0,255,255,.55));
}
.brand-name{
  font-family:var(--serif);font-weight:800;
  font-size:clamp(1.1rem,2.6vw,1.55rem);line-height:1.15;
  letter-spacing:.03em;
  background:var(--chrome);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 10px rgba(105,255,105,.5));
  white-space:nowrap;
}

.pill{
  display:inline-flex;align-items:center;
  min-height:40px;padding:0 14px;
  border-radius:999px;
  font-size:.93rem;line-height:1.2;white-space:nowrap;
  color:#e9ffe9;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(105,255,105,.26),rgba(0,255,255,.10) 55%,rgba(105,255,105,.18));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45);
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.pill:hover,.pill:focus-visible{
  color:var(--ink-deep);
  background:linear-gradient(180deg,#d6ffdd,#69ff69 58%,#00ffff);
  box-shadow:0 0 20px rgba(105,255,105,.55),inset 0 1px 0 rgba(255,255,255,.6);
  transform:translateY(-1px);
}

/* ---------- 二级粘性锚点条 ---------- */
.anchors{
  position:sticky;top:0;z-index:40;
  margin-top:10px;
  border-top:1px solid var(--line-cyan);
  border-bottom:1px solid var(--line-cyan);
  background:linear-gradient(180deg,rgba(13,26,13,.96),rgba(23,38,23,.88));
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 22px rgba(0,255,255,.12);
}
.anchors-in{
  max-width:1240px;margin:0 auto;
  display:flex;gap:8px;
  padding:9px clamp(14px,4vw,26px);
  overflow-x:auto;
  scrollbar-width:thin;
}
.anchors .pill{font-size:.84rem;min-height:40px;padding:0 12px}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;isolation:isolate;
  min-height:70vh;
  display:flex;align-items:flex-end;justify-content:flex-end;
  padding:60px clamp(18px,5vw,60px) 44px;
  text-align:right;
  overflow:hidden;
  border-bottom:1px solid var(--line-cyan);
  background:
    radial-gradient(circle at 78% 16%,rgba(105,255,105,.24),transparent 56%),
    linear-gradient(135deg,rgba(0,255,255,.16),transparent 58%),
    var(--ink-deep);
}
.hero-fig{
  position:absolute;inset:0;margin:0;z-index:-1;
}
.hero-fig img{
  width:100%;height:100%;object-fit:cover;
  filter:saturate(1.18) contrast(1.06);
}
.hero-fig::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to left,rgba(13,26,13,.94) 4%,rgba(23,38,23,.74) 44%,rgba(23,38,23,.2) 78%,rgba(23,38,23,.6));
}

.hero-copy{position:relative;max-width:min(700px,94%)}
.hero-copy::before{
  content:'✦';
  position:absolute;top:-2.1em;right:.15em;
  font-size:1.05rem;color:var(--cyan);
  text-shadow:0 0 14px var(--cyan);
}
.hero-kicker{
  margin:0 0 10px;
  font-size:.82rem;letter-spacing:.22em;
  color:var(--cyan);
  text-shadow:0 0 12px rgba(0,255,255,.7);
}
.hero-copy h1{
  margin:0;
  font-family:var(--serif);font-weight:800;
  font-size:clamp(2rem,6.2vw,4rem);
  line-height:1.1;
  color:#f4fff4;
  text-shadow:0 0 18px rgba(105,255,105,.5),0 0 48px rgba(0,255,255,.3);
}

/* ---------- 正文区：左内容 右 aside ---------- */
.stage{
  max-width:1240px;margin:0 auto;
  padding:clamp(28px,5vw,56px) clamp(16px,4vw,26px) 76px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:clamp(24px,4vw,52px);
  align-items:start;
}

.prose{min-width:0}
.prose article{padding:4px 0}
.prose article + article{
  margin-top:38px;padding-top:34px;
  border-top:1px dashed rgba(105,255,105,.24);
}
.prose article[id]{scroll-margin-top:110px}

.prose h2,.prose h3{
  font-family:var(--serif);font-weight:700;
  line-height:1.28;color:#f0fff0;
  text-shadow:0 0 14px rgba(105,255,105,.32);
}
.prose h2{font-size:clamp(1.45rem,3.4vw,2.05rem);margin:0 0 8px}
.prose h3{font-size:1.22rem;margin:26px 0 8px}

.prose p{margin:0 0 14px}
.prose ul,.prose ol{padding-left:1.25em;margin:0 0 14px}
.prose li{margin:6px 0}
.prose strong{color:#efffef}
.prose blockquote{
  margin:20px 0;padding:12px 18px;
  border-left:3px solid var(--neon);
  border-radius:0 18px 18px 0;
  background:rgba(105,255,105,.08);
}
.prose img{border-radius:18px;border:1px solid var(--line)}
.prose figure{margin:20px 0}
.prose table{width:100%;border-collapse:collapse;font-size:.96rem}
.prose th,.prose td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.prose code{font-size:.94em;color:var(--cyan)}

hr{
  border:0;height:2px;margin:10px 0 20px;border-radius:2px;
  background:linear-gradient(90deg,var(--neon),var(--cyan) 45%,rgba(0,255,255,0));
}

/* ---------- 右侧 aside ---------- */
.rail{
  position:sticky;top:76px;align-self:start;
  padding:16px 16px 18px;
  border:1px solid var(--line-cyan);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(0,255,255,.1),rgba(105,255,105,.05));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}
.rail h2{
  margin:0 0 6px;
  font-family:var(--serif);font-weight:700;
  font-size:1.08rem;letter-spacing:.05em;
  color:#dcfff2;
  text-shadow:0 0 12px rgba(0,255,255,.4);
}
.rail hr{margin:8px 0 12px}
.rail-list{
  list-style:none;margin:0;padding:0;
  display:grid;gap:2px;
  counter-reset:rail;
}
.rail-list li{counter-increment:rail}
.rail-list a{
  display:flex;align-items:center;gap:9px;
  min-height:40px;padding:6px 6px;
  border-radius:12px;
  font-size:.94rem;color:#d2efd2;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-family:var(--serif);font-size:.78rem;
  color:var(--cyan);
  text-shadow:0 0 10px rgba(0,255,255,.6);
}
.rail-list a:hover{color:#fff;background:rgba(105,255,105,.15)}

/* ---------- 页脚：单行三栏 ---------- */
.foot{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:16px 28px;
  max-width:1240px;margin:0 auto;
  padding:28px clamp(16px,4vw,26px) 48px;
  border-top:1px solid var(--line-cyan);
}
.foot-brand{
  font-family:var(--serif);font-weight:800;
  font-size:clamp(1.65rem,6vw,3rem);line-height:1;
  letter-spacing:.02em;
  background:var(--chrome);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 14px rgba(105,255,105,.5));
  padding:4px 0;
}
.foot-nav dl{display:flex;flex-wrap:wrap;gap:2px 18px;margin:0}
.foot-nav dt{margin:0}
.foot-nav a{
  display:inline-flex;align-items:center;
  min-height:40px;padding:2px 0;
  font-size:.92rem;color:#cfeecf;
}
.foot-nav a:hover{color:#fff;text-shadow:0 0 12px rgba(105,255,105,.8)}
.copy{margin:0 0 0 auto;font-size:.85rem;color:#8fbb8f}

/* ---------- 动效 ---------- */
@keyframes rise{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}
.menu .pill{animation:rise .5s ease both}
.menu .pill:nth-child(1){animation-delay:.03s}
.menu .pill:nth-child(2){animation-delay:.09s}
.menu .pill:nth-child(3){animation-delay:.15s}
.menu .pill:nth-child(4){animation-delay:.21s}
.menu .pill:nth-child(5){animation-delay:.27s}
.menu .pill:nth-child(6){animation-delay:.33s}
.menu .pill:nth-child(7){animation-delay:.39s}
.prose article{animation:rise .5s ease both}

/* ---------- 断点 ---------- */
@media (max-width:980px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:-1}
  .rail-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  body{font-size:18px}
  .head-inner{flex-wrap:wrap;justify-content:center;gap:8px}
  .brand{order:-1;flex:1 0 100%;justify-content:center}
  .menu{flex:1 1 auto;justify-content:center}
  .hero{
    min-height:58vh;text-align:left;justify-content:flex-start;
    padding:48px 18px 34px;
  }
  .hero-copy{max-width:100%}
  .hero-copy::before{top:-1.9em;right:auto;left:0}
  .hero-fig::after{
    background:linear-gradient(to top,rgba(13,26,13,.96) 8%,rgba(23,38,23,.6) 54%,rgba(23,38,23,.34));
  }
  .rail-list{grid-template-columns:minmax(0,1fr)}
  .copy{margin-left:0;width:100%}
  .foot{gap:12px 20px}
}

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

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