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

:root{
  --ink:#0B0E14;
  --ink2:#10151F;
  --ink3:#161D2A;
  --sky:#7FC8F8;
  --amber:#F2B24C;
  --text:#E7EEF7;
  --muted:#9DAFC3;
  --line:rgba(127,200,248,.16);
  --line-2:rgba(127,200,248,.3);
  --rail:200px;
  --pad:clamp(18px,3.4vw,48px);
}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:"Be Vietnam Pro","Noto Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.012em;
  overflow-x:hidden;
  min-height:100%;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(127,200,248,.16) 1px,transparent 1px);
  background-size:28px 28px;
  opacity:.55;
}

body::after{
  content:"";
  position:fixed;
  inset:-20% -30% auto auto;
  width:120vw;
  height:120vh;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(40% 45% at 78% 8%,rgba(127,200,248,.16),transparent 70%),
             radial-gradient(36% 40% at 12% 82%,rgba(242,178,76,.1),transparent 72%);
}

img{max-width:100%;height:auto;display:block}
a{color:var(--sky);text-decoration:none}
a:hover{color:var(--amber)}
p{margin:0 0 1.05em}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.2;letter-spacing:-.015em;font-weight:600}
ul,ol{margin:0 0 1.1em;padding-left:1.3em}
li{margin:.34em 0}
input,button{font:inherit;color:inherit}

[id]{scroll-margin-top:104px}

/* ---------- 左侧固定导轨 ---------- */
.site-head{
  position:fixed;
  inset:0 auto 0 0;
  z-index:30;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:22px 18px 26px;
  background:linear-gradient(180deg,rgba(11,14,20,.96),rgba(11,14,20,.88));
  border-right:1px solid var(--line);
  backdrop-filter:blur(8px);
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:var(--ink3);
  color:var(--ink);
  border-left:3px solid var(--amber);
  flex:0 0 auto;
}
.mark-img{width:44px;height:44px;object-fit:contain}
.mark-t{
  font-size:20px;
  font-weight:700;
  color:var(--amber);
  letter-spacing:.04em;
}

.top-nav{flex:1 1 auto;min-height:0}
.top-nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.top-nav a{
  display:block;
  padding:11px 2px;
  font-size:16px;
  line-height:1.5;
  color:var(--text);
  border-bottom:1px solid var(--line);
  transition:color .2s ease,padding-left .2s ease;
}
.top-nav a:last-child{border-bottom:0}
.top-nav a:hover,.top-nav a:focus-visible{color:var(--amber);padding-left:8px}
.top-nav a.is-off{display:none}

.find{display:flex;flex-direction:column;gap:6px}
.find-in{
  width:100%;
  min-height:40px;
  padding:8px 10px;
  background:var(--ink2);
  border:1px solid var(--line);
  border-radius:0;
  font-size:16px;
}
.find-in::placeholder{color:#6C7C90}
.find-in:focus{outline:2px solid var(--sky);outline-offset:1px}
.find-btn{
  min-height:40px;
  padding:8px 10px;
  border:0;
  border-radius:0;
  background:var(--sky);
  color:#08111A;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease;
}
.find-btn:hover{background:var(--amber)}

/* ---------- 主栅格 ---------- */
main{
  position:relative;
  z-index:1;
  margin-left:var(--rail);
  padding:0 var(--pad) clamp(40px,7vh,90px);
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:clamp(18px,3vw,46px);
  align-items:start;
  max-width:1420px;
}

.rail{
  grid-column:1;
  grid-row:1;
  position:sticky;
  top:26px;
  padding-top:clamp(26px,4vh,46px);
  font-size:16px;
}
.rail-t{
  font-size:16px;
  letter-spacing:.12em;
  color:var(--muted);
  font-weight:500;
  margin:0;
}
.rail hr{
  border:0;
  height:2px;
  width:46px;
  margin:10px 0 14px;
  background:var(--amber);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:r;
}
.rail-list li{counter-increment:r;margin:0}
.rail-list a{
  display:block;
  padding:8px 0;
  color:var(--muted);
  border-top:1px solid var(--line);
  line-height:1.5;
}
.rail-list a::before{
  content:counter(r,decimal-leading-zero);
  font-size:13px;
  color:var(--amber);
  letter-spacing:.08em;
  margin-right:8px;
}
.rail-list a:hover{color:var(--text)}

section{grid-column:2;grid-row:1;min-width:0}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:grid;
  align-content:end;
  overflow:hidden;
  padding:clamp(30px,8vh,70px) 0 clamp(30px,7vh,64px);
  isolation:isolate;
}
.hero-layer{position:absolute;inset:-10% 0;pointer-events:none;will-change:transform}
.hl-a{
  background-image:
    repeating-linear-gradient(90deg,rgba(127,200,248,.12) 0 1px,transparent 1px 84px),
    repeating-linear-gradient(0deg,rgba(127,200,248,.1) 0 1px,transparent 1px 84px);
  z-index:1;
  opacity:.9;
}
.hl-b{
  background:radial-gradient(46% 40% at 82% 18%,rgba(127,200,248,.28),transparent 68%);
  z-index:2;
}
.hl-c{
  background:radial-gradient(38% 34% at 22% 74%,rgba(242,178,76,.16),transparent 70%);
  z-index:3;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  filter:saturate(.85) contrast(1.06) brightness(.62);
}
.hero-mask{
  position:absolute;
  inset:0;
  z-index:4;
  background:linear-gradient(180deg,rgba(11,14,20,.5),rgba(11,14,20,.72) 48%,var(--ink) 100%);
}
.hero-body{
  position:relative;
  z-index:5;
  margin-left:auto;
  max-width:min(100%,44ch);
  text-align:right;
}
.rule{display:block;width:88px;height:3px;background:var(--amber);margin:0 0 22px auto}
.hero h1{
  font-size:clamp(32px,5.6vw,68px);
  line-height:1.08;
  letter-spacing:-.03em;
  margin:0 0 16px;
}
.lede{
  margin:0 0 0 auto;
  max-width:36ch;
  color:var(--muted);
  font-size:clamp(16px,1.5vw,19px);
}

/* ---------- 正文区块 ---------- */
section > article:not(.hero){
  padding-block:clamp(40px,6vw,78px);
  border-top:1px solid var(--line);
}
section > article:not(.hero):nth-of-type(odd){
  background:linear-gradient(180deg,rgba(22,29,42,.42),transparent 88%);
}

section h2{
  font-size:clamp(24px,3.1vw,40px);
  letter-spacing:-.02em;
  margin:0 0 12px;
}
section h3{
  font-size:clamp(19px,2vw,24px);
  color:var(--sky);
  margin:30px 0 10px;
}
section hr{
  border:0;
  height:2px;
  max-width:112px;
  margin:0 0 24px;
  background:linear-gradient(90deg,var(--amber),rgba(242,178,76,0));
}
section p{max-width:70ch;color:#D3DEEB}
section ul,section ol{max-width:68ch}
section li::marker{color:var(--amber)}
section strong{color:#fff;font-weight:600}
section a{border-bottom:1px solid var(--line-2)}
section img{margin:22px 0;filter:brightness(.92)}
section blockquote{
  margin:24px 0;
  padding:14px 0 14px 20px;
  border-left:3px solid var(--sky);
  color:var(--muted);
  font-size:16px;
}
section code{
  font-size:15px;
  background:var(--ink3);
  padding:2px 6px;
}

/* ---------- 页脚 ---------- */
footer{
  position:relative;
  z-index:1;
  margin-left:var(--rail);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px 26px;
  padding:44px var(--pad) 30px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,transparent,rgba(16,21,31,.9));
  font-size:16px;
}
footer p{margin:0}
.f-brand{
  font-size:20px;
  font-weight:600;
  letter-spacing:.02em;
  color:#fff;
}
.f-sub{display:flex;flex-wrap:wrap;gap:8px}
.f-in{
  flex:1 1 110px;
  min-height:42px;
  padding:8px 10px;
  background:var(--ink2);
  border:1px solid var(--line);
  border-radius:0;
  font-size:16px;
}
.f-in::placeholder{color:#6C7C90}
.f-btn{
  min-height:42px;
  padding:8px 16px;
  border:0;
  border-radius:0;
  background:var(--amber);
  color:#131313;
  font-weight:600;
  cursor:pointer;
}
.f-btn:hover{background:var(--sky)}
.f-top a{
  display:inline-block;
  padding:10px 14px;
  border:1px solid var(--line-2);
  color:var(--sky);
  min-height:42px;
}
.f-top a:hover{background:var(--sky);color:#08111A}
footer small{
  grid-column:1/-1;
  display:block;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:16px;
}

/* ---------- 动效 ---------- */
html.js [data-reveal],
html.js section > article:not(.hero){
  opacity:0;
  transform:translateY(30px);
  transition:opacity .78s ease,transform .78s cubic-bezier(.2,.72,.2,1);
}
html.js [data-reveal].in,
html.js section > article:not(.hero).in{
  opacity:1;
  transform:none;
}
html.js .top-nav a,
html.js .rail-list a{
  opacity:0;
  animation:drop .55s ease forwards;
  animation-delay:calc(var(--i,0) * 55ms);
}
@keyframes drop{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js [data-reveal],
  html.js section > article:not(.hero){opacity:1;transform:none;transition:none}
  html.js .top-nav a,
  html.js .rail-list a{opacity:1;animation:none}
  .hero-layer{transform:none!important}
}

/* ---------- 断点 ---------- */
@media (max-width:1080px){
  .site-head{
    position:sticky;
    inset:auto;
    top:0;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:10px 14px;
    padding:12px 16px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .mark{width:42px;height:42px}
  .mark-img{width:38px;height:38px}
  .find{flex:1 1 150px;flex-direction:row;order:2}
  .find-in{min-height:42px}
  .find-btn{min-height:42px;padding:8px 14px}
  .top-nav{order:3;flex:1 0 100%;overflow-x:auto;scrollbar-width:thin}
  .top-nav p{flex-direction:row;flex-wrap:nowrap;gap:6px}
  .top-nav a{
    padding:10px 13px;
    white-space:nowrap;
    border:1px solid var(--line);
    border-bottom:1px solid var(--line);
    min-height:42px;
  }
  .top-nav a:hover,.top-nav a:focus-visible{padding-left:13px;background:var(--ink3)}
  main{margin-left:0;grid-template-columns:minmax(0,1fr);padding:0 var(--pad) 40px}
  section{grid-column:1;order:1}
  .rail{grid-column:1;grid-row:auto;order:2;position:static;padding-top:34px}
  .rail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
  footer{margin-left:0}
  .hero{min-height:0;padding-top:22px}
  .hero-body{max-width:100%}
}

@media (max-width:640px){
  body{font-size:16px}
  [id]{scroll-margin-top:150px}
  .hero{padding-bottom:26px}
  .hero h1{font-size:clamp(30px,9.2vw,44px)}
  .rule{margin-bottom:16px;width:64px}
  .lede{font-size:16px;max-width:100%}
  footer{grid-template-columns:minmax(0,1fr);gap:16px}
  .rail-list{grid-template-columns:minmax(0,1fr)}
  .f-top a{display:block;text-align:center}
  section h2{font-size:clamp(22px,6.4vw,30px)}
}

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