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

:root{
--green:#00ff80;
--blue:#0000ff;
--ink:#000000;
--txt:#eaffef;
--soft:rgba(0,255,128,.08);
--edge:rgba(0,255,128,.38);
}

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

html{
scroll-behavior:smooth;
-webkit-text-size-adjust:100%;
background:var(--ink);
}

body{
margin:0;
overflow-x:hidden;
background:var(--ink);
color:var(--txt);
font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Noto Sans SC",sans-serif;
font-size:17px;
line-height:1.65;
font-weight:400;
}

img{max-width:100%;display:block}

a{color:var(--green)}

:focus-visible{outline:3px solid var(--green);outline-offset:2px}

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

p{margin:0 0 14px}

/* ---------- 顶部细条 ---------- */
.strip{
margin:0;
padding:7px 16px;
background:var(--green);
color:#000;
font-weight:800;
font-size:13px;
letter-spacing:.22em;
border-bottom:3px solid #000;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

/* ---------- 顶部栏 ---------- */
.topbar{
position:sticky;
top:0;
z-index:40;
display:flex;
align-items:center;
gap:14px;
padding:10px 14px;
background:#000;
border-bottom:3px solid var(--green);
}

.brand{
flex:0 0 auto;
display:inline-flex;
align-items:center;
justify-content:center;
width:46px;
height:46px;
border:3px solid var(--green);
background:var(--blue);
color:var(--green);
font-weight:800;
font-size:20px;
line-height:1;
text-decoration:none;
}

.brand img{width:100%;height:100%;object-fit:cover}

.pills{
flex:1 1 auto;
min-width:0;
overflow-x:auto;
scrollbar-width:none;
}

.pills::-webkit-scrollbar{display:none}

.pills ul{
display:flex;
gap:8px;
margin:0;
padding:2px;
list-style:none;
}

.pills a{
display:inline-flex;
align-items:center;
min-height:40px;
padding:8px 15px;
border:2px solid var(--green);
border-radius:999px;
background:var(--soft);
color:var(--green);
font-size:15px;
font-weight:700;
text-decoration:none;
white-space:nowrap;
backdrop-filter:blur(6px);
transition:none;
}

.pills a:hover,
.pills a:focus-visible,
.pills a.is-active{
background:var(--green);
color:#000;
}

/* ---------- 首屏 ---------- */
.hero{
position:relative;
display:grid;
grid-template-columns:1.15fr .85fr;
align-items:center;
gap:32px;
min-height:100vh;
min-height:100svh;
padding:36px 16px 56px;
border-bottom:4px solid var(--green);
background-color:#000;
background-image:radial-gradient(rgba(0,255,128,.32) 1px,transparent 1px);
background-size:22px 22px;
overflow:hidden;
}

.hero-text{position:relative;min-width:0}

.hero h1{
margin:0 0 20px;
max-width:16ch;
font-size:clamp(2.1rem,7.4vw,5rem);
line-height:1.05;
font-weight:800;
letter-spacing:-.02em;
color:#fff;
text-shadow:6px 6px 0 var(--blue);
word-break:break-word;
}

.hero-lead{
max-width:44ch;
margin:0;
padding:12px 14px;
border-left:6px solid var(--green);
background:rgba(0,0,0,.62);
color:#d9ffe7;
font-size:16px;
font-weight:600;
}

.hero-media{
position:relative;
width:100%;
aspect-ratio:4/5;
max-height:74vh;
border:4px solid var(--green);
border-radius:18px;
overflow:hidden;
background:var(--soft);
backdrop-filter:blur(8px);
box-shadow:14px 14px 0 var(--blue);
will-change:transform;
}

.hero-media img{width:100%;height:100%;object-fit:cover}

.hero-media--empty{
background-image:repeating-linear-gradient(45deg,rgba(0,255,128,.22) 0 12px,transparent 12px 24px);
}

/* ---------- 主区 ---------- */
.wrap{
display:grid;
grid-template-columns:250px minmax(0,1fr);
align-items:start;
gap:34px;
max-width:1180px;
margin:0 auto;
padding:44px 16px 72px;
}

.side{
position:sticky;
top:88px;
align-self:start;
padding:16px;
border:3px solid var(--green);
border-radius:18px;
background:rgba(0,255,128,.06);
backdrop-filter:blur(8px);
}

.side h2{
margin:0 0 10px;
font-size:15px;
font-weight:800;
letter-spacing:.12em;
color:var(--green);
word-break:break-all;
line-height:1.3;
}

.side hr{
margin:0 0 12px;
border:0;
border-top:3px solid var(--green);
}

.side ul{
display:grid;
gap:4px;
margin:0;
padding:0;
list-style:none;
}

.side a{
display:block;
min-height:40px;
padding:9px 8px;
border-left:4px solid transparent;
color:var(--txt);
font-size:15px;
font-weight:700;
text-decoration:none;
}

.side a:hover,
.side a:focus-visible,
.side a.is-active{
background:var(--blue);
border-left-color:var(--green);
color:#fff;
}

main article{min-width:0}

/* ---------- 正文 ---------- */
.article{font-size:17px;overflow-wrap:break-word}

.article > article{
padding:32px 0;
border-top:3px solid var(--edge);
scroll-margin-top:118px;
}

.article > article:first-child{border-top:0;padding-top:0}

.article h2{
margin:0 0 10px;
font-size:clamp(1.45rem,4vw,2.15rem);
line-height:1.2;
font-weight:800;
letter-spacing:-.01em;
color:var(--green);
}

.article h2 + hr{
margin:0 0 20px;
border:0;
border-top:4px solid var(--green);
width:96px;
}

.article hr{
border:0;
border-top:2px solid var(--edge);
margin:22px 0;
}

.article h3{
margin:26px 0 10px;
padding-left:12px;
border-left:6px solid var(--green);
font-size:1.2rem;
line-height:1.35;
font-weight:800;
color:#fff;
}

.article h4{margin:20px 0 8px;font-size:1.05rem;font-weight:800;color:#fff}

.article p{color:#e4ffee}

.article ul,.article ol{pargin:0;margin:0 0 16px;padding-left:24px}

.article li{margin-bottom:8px}

.article li::marker{color:var(--green);font-weight:800}

.article strong{color:var(--green);font-weight:800}

.article a{
font-weight:700;
text-decoration:underline;
text-decoration-thickness:2px;
text-underline-offset:3px;
}

.article a:hover{background:var(--green);color:#000}

.article blockquote{
margin:0 0 18px;
padding:12px 16px;
border-left:6px solid var(--blue);
background:rgba(0,0,255,.18);
}

.article blockquote p:last-child{margin:0}

.article img{
border:3px solid var(--green);
border-radius:12px;
margin:0 0 16px;
height:auto;
}

.article figure{margin:0 0 18px}

.article table{
width:100%;
border-collapse:collapse;
font-size:15px;
margin:0 0 18px;
display:block;
overflow-x:auto;
}

.article th,.article td{
border:2px solid var(--edge);
padding:8px 10px;
text-align:left;
}

.article th{background:rgba(0,255,128,.14);color:var(--green);font-weight:800}

.article code{
font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
background:rgba(0,255,128,.14);
padding:1px 5px;
color:var(--green);
}

/* ---------- 页脚 ---------- */
footer{
display:flex;
flex-wrap:wrap;
align-items:center;
justify-content:space-between;
gap:18px;
padding:26px 16px;
margin-top:44px;
border-top:4px solid var(--green);
background:var(--blue);
}

.f-brand a{
display:inline-flex;
align-items:center;
min-height:44px;
color:#fff;
font-size:clamp(1.5rem,7vw,3.2rem);
line-height:1;
font-weight:800;
letter-spacing:-.03em;
text-decoration:none;
}

.f-nav ul{
display:flex;
flex-wrap:wrap;
gap:6px;
margin:0;
padding:0;
list-style:none;
}

.f-nav a{
display:inline-flex;
align-items:center;
min-height:40px;
padding:6px 11px;
border:2px solid #fff;
border-radius:999px;
color:#fff;
font-size:14px;
font-weight:700;
text-decoration:none;
}

.f-nav a:hover,
.f-nav a:focus-visible{background:#fff;color:var(--blue)}

.f-copy{
display:flex;
align-items:center;
gap:12px;
color:#fff;
font-size:14px;
font-weight:700;
}

.f-copy a{
display:inline-flex;
align-items:center;
min-height:40px;
color:#fff;
text-decoration:underline;
text-decoration-thickness:2px;
}

/* ---------- 动效 ---------- */
.js .reveal{
opacity:0;
transition:opacity 0s linear var(--d,0s);
}

.js .reveal.is-in{opacity:1}

@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.js .reveal{opacity:1}
.hero-media{transform:none!important}
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
.hero{
grid-template-columns:1fr;
gap:26px;
min-height:0;
padding:26px 14px 44px;
background-size:18px 18px;
}
.hero h1{max-width:none;text-shadow:4px 4px 0 var(--blue)}
.hero-media{aspect-ratio:3/2;max-height:none;box-shadow:9px 9px 0 var(--blue)}
.wrap{grid-template-columns:1fr;gap:26px;padding:28px 14px 52px}
.side{position:static;top:auto}
.side ul{grid-template-columns:1fr 1fr;gap:4px}
.side a{padding:9px 6px;font-size:14px}
footer{flex-direction:column;align-items:flex-start;gap:14px;padding:22px 14px}
}

@media (max-width:560px){
.strip{font-size:11px;letter-spacing:.14em}
.topbar{padding:8px 10px;gap:10px}
.hero h1{font-size:clamp(1.9rem,9.5vw,2.8rem)}
.article h2{font-size:1.4rem}
}

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