@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#f7f7f7;
  --mut:#c3c3c3;
  --edge:3px solid #fff;
  --edge-ink:3px solid #000;
}

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

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

body{
  margin:0;
  padding:64px 0 108px;
  background:#000;
  color:#fff;
  font-family:Inter,"Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg,rgba(255,255,255,.055) 0 1px,transparent 1px 56px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.055) 0 1px,transparent 1px 56px);
}

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

a{color:inherit}
img{max-width:100%}

.sr-only{
  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:fixed;
  top:0;left:0;right:0;
  height:64px;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 12px;
  background:#000;
  border-bottom:3px solid var(--blue);
}

.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:44px;height:44px;
  background:var(--red);
  border:3px solid #fff;
  box-shadow:4px 4px 0 var(--blue);
  text-decoration:none;
}

.brand-mark{
  font-family:"Space Grotesk","Inter",sans-serif;
  font-weight:700;
  font-size:20px;
  color:#000;
  line-height:1;
}

.find{display:flex;align-items:center;gap:8px}

.find-in{
  width:min(46vw,240px);
  height:44px;
  padding:0 10px;
  font-family:inherit;
  font-size:16px;
  color:#fff;
  background:#141414;
  border:3px solid #fff;
  border-radius:0;
  outline:none;
  -webkit-appearance:none;
}

.find-in::placeholder{color:#9c9c9c}
.find-in:focus{background:#000;border-color:var(--blue)}

.find-btn{
  height:44px;
  min-width:44px;
  padding:0 10px;
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  color:#000;
  background:var(--blue);
  border:3px solid #fff;
  border-radius:0;
  cursor:pointer;
}

.find-btn:hover{background:var(--red)}
.find-btn:active{transform:translate(2px,2px)}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  z-index:1;
  overflow:hidden;
  min-height:70vh;
  padding:26px 16px 44px;
  border-bottom:3px solid #fff;
  background:#000;
}

.hero-bg{
  position:absolute;
  right:-1vw;
  bottom:-2.5vw;
  margin:0;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-weight:700;
  font-size:clamp(76px,21vw,230px);
  line-height:.78;
  letter-spacing:-.05em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:3px rgba(59,177,255,.5);
  user-select:none;
  pointer-events:none;
}

.hero-in{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding-top:7vh;
  text-align:right;
}

.hero-icon{
  flex:0 0 auto;
  width:clamp(62px,9vw,108px);
  height:auto;
  filter:drop-shadow(6px 6px 0 rgba(255,82,82,.85));
}

.dot{animation:blink 1.6s steps(2,end) infinite}
@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:.2}}

.hero-copy{min-width:0}

.hero-h1{
  margin:0;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-weight:700;
  font-size:clamp(27px,5.4vw,54px);
  line-height:1.1;
  letter-spacing:-.025em;
  color:#fff;
  text-shadow:4px 4px 0 rgba(59,177,255,.55);
}

.hero-desc{
  max-width:34ch;
  margin:12px 0 0 auto;
  color:var(--mut);
  font-size:16px;
}

/* ---------- 正文骨架 ---------- */
main{position:relative;z-index:1;display:block}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:28px;
  align-items:start;
  max-width:1160px;
  margin:0 auto;
  padding:34px 16px 0;
}

.content{min-width:0}

article{font-size:16px}

article > div{
  margin:0 0 26px;
  padding:20px 18px;
  background:var(--paper);
  color:#000;
  border:var(--edge-ink);
  box-shadow:8px 8px 0 var(--blue);
}

article > div:last-child{margin-bottom:0}

article h2{
  margin:0 0 10px;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-size:clamp(22px,3.2vw,30px);
  line-height:1.22;
  font-weight:700;
  letter-spacing:-.02em;
}

article h2 + hr{
  margin:0 0 16px;
  border:0;
  border-top:3px solid #000;
}

article h3{
  margin:22px 0 8px;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-size:19px;
  line-height:1.3;
}

article p{margin:0 0 14px}
article p:last-child{margin-bottom:0}

article ul,article ol{margin:0 0 14px;padding-left:24px}
article li{margin:0 0 6px}

article a{
  color:#000;
  text-decoration:none;
  border-bottom:3px solid var(--red);
  font-weight:600;
}

article a:hover{background:var(--blue)}

article strong{background:var(--blue);padding:0 3px}

article img{
  display:block;
  margin:14px 0;
  border:var(--edge-ink);
  height:auto;
}

article blockquote{
  margin:0 0 14px;
  padding:10px 14px;
  background:#fff;
  border-left:6px solid var(--blue);
}

article hr{border:0;border-top:3px solid #000;margin:18px 0}

article table{width:100%;border-collapse:collapse;margin:0 0 14px}
article th,article td{border:2px solid #000;padding:8px;text-align:left}

article > div.hide{display:none}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:84px;
  padding:16px;
  background:var(--blue);
  color:#000;
  border:var(--edge);
  box-shadow:8px 8px 0 var(--red);
}

.side-h{
  margin:0 0 8px;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.04em;
}

.side hr{margin:0 0 12px;border:0;border-top:3px solid #000}

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

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  font-size:16px;
  font-weight:600;
  color:#000;
  text-decoration:none;
  background:#fff;
  border:2px solid #000;
}

.side-list a:hover{background:var(--red);color:#000}

/* ---------- 页脚 ---------- */
.ft{
  position:relative;
  z-index:1;
  max-width:1160px;
  margin:44px auto 0;
  padding:30px 16px 24px;
  background:#000;
  border-top:3px solid var(--red);
}

.ft-mark{
  margin:0 0 20px;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-weight:700;
  font-size:clamp(38px,10.5vw,104px);
  line-height:.9;
  letter-spacing:-.04em;
  color:#fff;
  -webkit-text-stroke:2px var(--blue);
}

.ft-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding-bottom:18px;
  border-bottom:3px solid #fff;
}

.ft-col{margin:0}

.ft-col dt{
  margin:0 0 8px;
  font-family:"Space Grotesk","Inter",sans-serif;
  font-size:16px;
  font-weight:700;
  color:var(--blue);
  letter-spacing:.05em;
}

.ft-col dd{margin:0 0 4px}

.ft-col a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:#fff;
  text-decoration:none;
  border-bottom:2px solid transparent;
}

.ft-col a:hover{color:var(--red);border-bottom-color:var(--red)}

.ft-copy{
  margin:16px 0 0;
  font-size:16px;
  color:#b6b6b6;
}

/* ---------- 底部固定导航 ---------- */
.nav{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  padding:8px 10px;
  background:#000;
  border-top:3px solid #fff;
}

.nav-list{
  display:flex;
  gap:8px;
  margin:0;
  padding:0 2px 2px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.nav-list::-webkit-scrollbar{display:none}

.nav-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  white-space:nowrap;
  font-size:16px;
  font-weight:700;
  color:#fff;
  text-decoration:none;
  background:#141414;
  border:3px solid #fff;
}

.nav-list a:hover{background:var(--blue);color:#000}

.nav-list a.is-on{background:var(--red);color:#000;border-color:#000;box-shadow:3px 3px 0 #fff}

/* ---------- 滚动出现 ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .45s ease, transform .45s ease;
}

.reveal.on{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:24px;padding-top:26px}
  .side{position:static;order:2}
  .side-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:600px){
  body{padding-top:64px;padding-bottom:104px}
  .hero{min-height:62vh;padding:18px 14px 34px}
  .hero-in{padding-top:5vh;gap:12px}
  .hero-desc{font-size:16px}
  .wrap{padding:22px 14px 0}
  article > div{padding:16px 14px;box-shadow:6px 6px 0 var(--blue)}
  .side{box-shadow:6px 6px 0 var(--red)}
  .ft{padding:24px 14px 20px}
  .ft-cols{gap:8px}
  .find-in{width:min(42vw,180px)}
  .side-list{grid-template-columns:minmax(0,1fr)}
}

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

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