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

:root{
  --g:#00ff80;
  --b:#0000ff;
  --b2:#9a9aff;
  --k:#000000;
  --ink:#ebebeb;
  --dim:#9a9a9a;
  --panel:#0c0c0c;
  --line:#232323;
  --fh:'Amatic SC','Segoe UI',system-ui,sans-serif;
  --fb:'Cabin',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  background:var(--k);
  color:var(--ink);
  font-family:var(--fb);
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
}

img{max-width:100%;display:block;height:auto}
a{color:var(--g);text-decoration:none}

/* ---------- 顶部细条 ---------- */
.ticker{
  background:var(--g);
  color:var(--k);
  border-bottom:3px solid var(--b);
}
.ticker p{
  margin:0;
  padding:7px 14px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  text-align:center;
}

/* ---------- 页头 ---------- */
.top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background:var(--k);
  border-bottom:3px solid var(--b);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:4px 12px;
  background:var(--g);
  color:var(--k);
  border:3px solid var(--g);
  font-family:var(--fh);
  font-size:31px;
  font-weight:700;
  line-height:1.05;
  letter-spacing:.05em;
}
.brand:hover,.brand:focus-visible{background:var(--k);color:var(--g)}
.logo{
  width:34px;height:34px;
  object-fit:contain;
  background:var(--k);
}
.top nav{flex:1 1 100%;min-width:0}
.top nav ol{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.top nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  padding:8px 10px;
  border:2px solid var(--g);
  background:#050505;
  color:var(--g);
  font-size:16px;
  font-weight:600;
  line-height:1.1;
}
.top nav a:hover,.top nav a:focus-visible{background:var(--g);color:var(--k)}
.num{
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--b2);
}
.top nav a:hover .num{color:var(--b)}

/* ---------- 首屏 ---------- */
.hero{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
  min-height:45vh;
  padding:30px 16px 26px;
  text-align:center;
  border-bottom:4px solid var(--b);
  background-color:var(--k);
  background-image:radial-gradient(rgba(0,255,128,.30) 1px,transparent 1px);
  background-size:14px 14px;
}
.hero h1{
  margin:0;
  max-width:16ch;
  font-family:var(--fh);
  font-weight:700;
  font-size:clamp(2.4rem,9vw,5rem);
  line-height:1.02;
  letter-spacing:.02em;
  color:var(--g);
  text-shadow:4px 4px 0 var(--b);
  overflow-wrap:anywhere;
}
.hero figure{margin:0;width:min(100%,860px)}
.hero figure img{
  width:100%;
  height:180px;
  object-fit:cover;
  border:4px solid var(--g);
  border-radius:18px;
}

/* ---------- 主体骨架 ---------- */
.shell{
  display:block;
  max-width:1180px;
  margin:0 auto;
  padding:20px 14px 42px;
}

/* ---------- 侧栏 ---------- */
.side{
  background:var(--g);
  color:var(--k);
  border-radius:18px;
  padding:16px 16px 14px;
  margin-bottom:20px;
}
.side h2{
  margin:0;
  font-family:var(--fh);
  font-size:38px;
  font-weight:700;
  line-height:1;
  letter-spacing:.05em;
}
.side .subtitle{
  margin:6px 0 12px;
  padding-bottom:8px;
  border-bottom:3px solid var(--k);
  font-size:16px;
  font-weight:700;
  line-height:1.4;
}
.side-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}
.side-list a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:6px 2px;
  color:var(--k);
  font-size:16px;
  font-weight:600;
  border-bottom:1px solid rgba(0,0,0,.32);
}
.side-list a:hover,.side-list a:focus-visible{background:var(--k);color:var(--g)}
.side-list a:hover .num,.side-list a:focus-visible .num{color:var(--g)}

/* ---------- 正文 ---------- */
.body{min-width:0}
.body > div{
  background:var(--panel);
  border-left:6px solid var(--b);
  border-radius:18px;
  padding:22px 16px;
  margin:0 0 18px;
  scroll-margin-top:18px;
}
.body > div:nth-child(3n+2){background:#0a1a12}
.body > div:last-child{margin-bottom:0}

.body h2{
  margin:0 0 10px;
  font-family:var(--fh);
  font-size:clamp(1.9rem,6vw,2.9rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:.02em;
  color:var(--g);
}
.body h3{
  margin:22px 0 8px;
  font-family:var(--fh);
  font-size:clamp(1.5rem,4.6vw,2rem);
  font-weight:700;
  line-height:1.1;
  color:#fff;
}
.body h4{
  margin:18px 0 6px;
  font-size:17px;
  font-weight:700;
  color:var(--g);
}
.body p{margin:0 0 14px}
.body .subtitle{
  margin:-4px 0 16px;
  padding-bottom:10px;
  border-bottom:2px solid var(--line);
  color:var(--dim);
  font-size:16px;
  line-height:1.6;
}
.body ul,.body ol{margin:0 0 16px;padding-left:1.25em}
.body li{margin-bottom:6px}
.body a{
  color:var(--g);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.body a:hover{background:var(--g);color:var(--k);text-decoration:none}
.body strong{color:#fff}
.body blockquote{
  margin:0 0 16px;
  padding:14px 16px;
  background:#0f1d16;
  border-left:6px solid var(--g);
  border-radius:18px;
}
.body blockquote p:last-child{margin-bottom:0}
.body figure{margin:0 0 16px}
.body figure img{
  width:100%;
  border:3px solid var(--g);
  border-radius:18px;
}
.body figcaption{
  margin-top:6px;
  font-size:16px;
  color:var(--dim);
}
.body hr{
  border:0;
  border-top:3px solid var(--b);
  margin:22px 0;
}
.body table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
  margin-bottom:16px;
}
.body th,.body td{
  border:2px solid var(--line);
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
}
.body th{background:#111;color:var(--g)}
.body code,.body pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* ---------- 页脚 ---------- */
footer{
  margin-top:12px;
  padding:26px 14px 14px;
  background:var(--k);
  border-top:4px solid var(--b);
}
.fcols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  max-width:1180px;
  margin:0 auto;
}
.fcol-brand{grid-column:1 / -1}
footer address{
  font-style:normal;
  line-height:1.15;
}
footer .fmark{
  display:block;
  font-family:var(--fh);
  font-size:34px;
  font-weight:700;
  letter-spacing:.05em;
  color:var(--g);
}
footer .fkw{
  display:block;
  margin-top:8px;
  font-size:16px;
  letter-spacing:.06em;
  color:var(--dim);
}
footer ul{list-style:none;margin:0;padding:0;display:grid;gap:0}
footer ul a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:4px 0;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  font-size:16px;
  line-height:1.3;
}
footer ul a:hover,footer ul a:focus-visible{color:var(--g)}
.fbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  max-width:1180px;
  margin:20px auto 0;
  padding-top:12px;
  border-top:2px solid var(--g);
}
.fbar p{margin:0;font-size:16px;color:var(--dim)}
.fbar ul{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  list-style:none;
  margin:0;
  padding:0;
}
.fbar ul a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--g);
  font-weight:700;
  border-bottom:0;
}

/* ---------- 动效 ---------- */
.js .reveal{opacity:0;transform:translateY(16px)}
.js .reveal.shown{
  opacity:1;
  transform:none;
  transition:opacity .2s linear,transform .2s linear;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
}

/* ---------- 断点 ---------- */
@media (min-width:560px){
  .fcols{grid-template-columns:repeat(4,1fr)}
  .fcol-brand{grid-column:1 / -1}
  .hero figure img{height:220px}
}

@media (min-width:700px){
  .top{flex-wrap:nowrap}
  .top nav{flex:1 1 auto}
  .top nav ol{justify-content:flex-end}
  .body > div{scroll-margin-top:20px;padding:28px 24px}
  .body table{display:block;overflow-x:auto;max-width:100%}
}

@media (min-width:780px){
  .fcols{grid-template-columns:1.5fr 1fr 1fr 1fr}
  .fcol-brand{grid-column:auto}
}

@media (min-width:880px){
  .shell{
    display:grid;
    grid-template-columns:235px minmax(0,1fr);
    gap:26px;
    align-items:start;
    padding:26px 18px 56px;
  }
  .side{
    position:sticky;
    top:18px;
    margin-bottom:0;
  }
  .hero h1{max-width:20ch}
}

@media (min-width:1060px){
  body{font-size:18px}
  .body > div{padding:32px 30px}
}

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