@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root{
  color-scheme: dark;
  --ink:#000000;
  --panel:#121212;
  --panel-2:#0a0a0a;
  --line:#242424;
  --line-soft:#181818;
  --txt:#e8e8e8;
  --dim:#9c9c9c;
  --neon:#57e3ff;
  --gold:#ffc857;
  --ff:'Source Sans 3',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --fd:'Bebas Neue','Source Sans 3',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
  --r:4px;
}

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

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

body{
  margin:0;
  overflow-x:clip;
  background:var(--ink);
  color:var(--txt);
  font-family:var(--ff);
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ max-width:100%; }

a{ color:var(--neon); text-decoration-thickness:1px; text-underline-offset:3px; }

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:2px solid var(--neon);
  outline-offset:2px;
  border-radius:var(--r);
}

::selection{ background:var(--neon); color:#000; }

.sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------- 顶栏 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  padding:10px clamp(14px,4vw,40px) 8px;
  background:rgba(0,0,0,.94);
  border-bottom:1px solid var(--line-soft);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.bar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:9px;
  border-bottom:1px solid #131313;
}

.logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:34px;height:34px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel-2);
  text-decoration:none;
  overflow:hidden;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.logo:hover{ border-color:var(--neon); box-shadow:0 0 12px rgba(87,227,255,.3); }
.logo-img{ width:100%;height:100%;object-fit:contain;display:block; }
.logo-txt{
  font-family:var(--fd);
  font-size:20px;
  line-height:1;
  color:var(--neon);
}

.brand{
  font-family:var(--fd);
  font-size:20px;
  letter-spacing:.06em;
  color:#fff;
  line-height:1.2;
}

.pills{
  padding-top:9px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.pills::-webkit-scrollbar{ display:none; }

.pills ul{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  gap:7px;
  width:max-content;
  min-width:100%;
}

.pills a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 15px;
  border:1px solid #303030;
  border-radius:999px;
  color:#cfcfcf;
  font-size:16px;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
  transition:color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pills a:hover,
.pills a:focus-visible{
  color:#001014;
  background:var(--neon);
  border-color:var(--neon);
  box-shadow:0 0 16px rgba(87,227,255,.35);
}

/* ---------- 主骨架 ---------- */
.page{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:clamp(20px,3.6vw,46px);
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:clamp(14px,2.6vw,30px) clamp(14px,4vw,40px) 56px;
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:clamp(380px,70vh,720px);
  padding:clamp(22px,5vw,56px);
  margin-bottom:clamp(22px,4vw,42px);
  border:1px solid #1d1d1d;
  border-radius:6px 6px 0 0;
  border-bottom-left-radius:clamp(40px,8vw,88px);
  border-bottom-right-radius:clamp(40px,8vw,88px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(87,227,255,.13), transparent 62%),
    var(--panel-2);
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:-2;
}
.hero-media img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(.6) saturate(.92);
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.24) 44%, #000 97%);
}

.hero-ghost{
  position:absolute;
  z-index:0;
  top:clamp(8px,3vh,34px);
  right:0;
  transform:translateX(6%);
  font-family:var(--fd);
  font-weight:400;
  font-size:clamp(62px,15vw,178px);
  line-height:.8;
  letter-spacing:.02em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:1px rgba(120,220,255,.26);
  pointer-events:none;
  user-select:none;
}

.hero-copy{
  position:relative;
  z-index:1;
  max-width:760px;
  text-align:right;
}

.hero-copy h1{
  margin:0 0 14px;
  font-family:var(--fd);
  font-size:clamp(30px,6.2vw,60px);
  font-weight:700;
  line-height:1.14;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 0 10px rgba(87,227,255,.42);
}

.dek{
  margin:0 0 0 auto;
  max-width:48ch;
  font-size:16px;
  line-height:1.7;
  color:#c6c6c6;
}

/* ---------- 正文 ---------- */
.doc{ min-width:0; }

.doc > article{
  scroll-margin-top:130px;
  padding:28px 0 32px;
  border-top:1px solid #161616;
}
.doc > article:first-child{
  border-top:0;
  padding-top:0;
}

.doc h2{
  margin:0 0 8px;
  font-family:var(--fd);
  font-size:clamp(21px,3.3vw,28px);
  font-weight:700;
  line-height:1.34;
  letter-spacing:.01em;
  color:#fff;
}
.doc > article:target h2{ color:var(--neon); }

.doc h3{
  margin:24px 0 8px;
  font-size:18px;
  font-weight:700;
  line-height:1.5;
  color:#f0f0f0;
}

.doc hr{
  border:0;
  height:1px;
  margin:0 0 20px;
  background:linear-gradient(90deg, var(--neon) 0%, #2a2a2a 62%, transparent 100%);
  opacity:.6;
}

.doc p{ margin:0 0 16px; }
.doc p:last-child{ margin-bottom:0; }

.doc ul,.doc ol{
  margin:0 0 16px;
  padding-left:1.35em;
}
.doc li{ margin:0 0 8px; }
.doc li::marker{ color:var(--neon); }

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

.doc a{ border-bottom:1px solid rgba(87,227,255,.35); text-decoration:none; }
.doc a:hover{ border-bottom-color:var(--neon); }

.doc blockquote{
  margin:22px 0;
  padding:14px 18px;
  border-left:2px solid var(--neon);
  border-radius:0 var(--r) var(--r) 0;
  background:var(--panel);
  color:#d4d4d4;
}
.doc blockquote > :last-child{ margin-bottom:0; }

.doc code{
  padding:1px 5px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel);
  font-size:.94em;
}
.doc pre{
  overflow-x:auto;
  margin:20px 0;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel);
  line-height:1.6;
}
.doc pre code{ border:0; padding:0; background:none; }

/* ---------- 右侧aside ---------- */
.rail{
  position:sticky;
  top:130px;
  padding:16px 16px 20px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:#080808;
}

.rail-h{
  margin:0 0 8px;
  font-family:var(--fd);
  font-size:19px;
  font-weight:600;
  letter-spacing:.08em;
  color:#fff;
}

.rail hr{
  border:0;
  height:1px;
  margin:0 0 10px;
  background:linear-gradient(90deg, var(--gold), #222 72%, transparent);
  opacity:.65;
}

.rail-nav ul{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  gap:1px;
}

.rail-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:7px 2px;
  border-bottom:1px dashed #1c1c1c;
  color:#b9b9b9;
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  transition:color .18s ease, padding-left .18s ease;
}
.rail-nav li:last-child a{ border-bottom:0; }
.rail-nav a:hover,
.rail-nav a:focus-visible{ color:var(--neon); padding-left:6px; }

/* ---------- 页脚 ---------- */
.foot{
  margin-top:44px;
  padding:38px clamp(14px,4vw,40px) 32px;
  border-top:1px solid var(--line-soft);
  background:#050505;
}

.foot-row{
  display:grid;
  grid-template-columns:1.1fr 1.5fr auto;
  gap:26px 34px;
  align-items:start;
  max-width:1120px;
  margin:0 auto;
}

.f-brand{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.f-sub{
  display:flex;
  gap:8px;
  width:100%;
  max-width:320px;
  margin-top:6px;
}
.f-sub input{
  flex:1 1 auto;
  min-width:0;
  min-height:40px;
  padding:8px 11px;
  border:1px solid #2b2b2b;
  border-radius:var(--r);
  background:#101010;
  color:#eee;
  font-family:inherit;
  font-size:16px;
}
.f-sub input::placeholder{ color:#6f6f6f; }
.f-sub button{
  flex:0 0 auto;
  min-height:40px;
  padding:8px 16px;
  border:1px solid var(--neon);
  border-radius:var(--r);
  background:transparent;
  color:var(--neon);
  font-family:inherit;
  font-size:16px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
.f-sub button:hover{ background:var(--neon); color:#001014; box-shadow:0 0 14px rgba(87,227,255,.4); }

.f-nav ul{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 18px;
}
.f-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  color:#a9a9a9;
  font-size:16px;
  text-decoration:none;
  transition:color .18s ease;
}
.f-nav a:hover,
.f-nav a:focus-visible{ color:var(--neon); }

.f-copy{ text-align:right; }
.f-copy p{
  margin:0;
  color:#6f6f6f;
  font-size:16px;
  line-height:1.6;
}

/* ---------- 滚动揭示 ---------- */
.rv{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .55s ease, transform .55s cubic-bezier(.22,.7,.3,1);
}
.rv.in{
  opacity:1;
  transform:none;
}

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

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .topbar{ position:static; }
  .page{ grid-template-columns:minmax(0,1fr); }
  .hero{ min-height:clamp(340px,62vh,520px); }
  .doc > article{ scroll-margin-top:20px; }
  .rail{ position:static; top:auto; order:3; }
  .foot-row{ grid-template-columns:1fr; }
  .f-copy{ text-align:left; }
  .f-copy p{ padding-top:4px; }
}

@media (max-width:520px){
  body{ font-size:16px; }
  .hero{ padding:22px 18px 26px; }
  .hero-copy h1{ text-shadow:0 0 8px rgba(87,227,255,.5); }
  .dek{ font-size:16px; }
  .foot{ margin-top:32px; }
}

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