:root{
  --bg:#ffffff;
  --fg:#000000;
  --line:#000000;
  --soft:#5a5a5a;
  --pad:clamp(18px,4vw,44px);
  --sans:system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --pixel:"Press Start 2P",monospace;
  --mono:"VT323",ui-monospace,SFMono-Regular,Menlo,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
body{
  margin:0;
  padding-bottom:78px;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  letter-spacing:.01em;
  overflow-x:clip;
  max-width:100%;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{line-height:1.25;letter-spacing:.02em}
p{margin:0}

/* 角标 */
.corner{position:fixed;top:0;left:0;z-index:50}
.mark{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  background:#000;
  color:#fff;
  border-right:2px solid #000;
  border-bottom:2px solid #000;
  overflow:hidden;
}
.mark-img{width:54px;height:54px;object-fit:cover;filter:grayscale(1)}
.mark-glyph{font-family:var(--pixel);font-size:15px;line-height:1}
.mark:hover{background:#fff;color:#000}

/* 骨架 */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  align-items:start;
  max-width:1400px;
  margin:0 auto;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}
.doc{grid-column:1;min-width:0;border-right:2px solid var(--line)}
.side{
  grid-column:2;
  min-width:0;
  position:sticky;
  top:0;
  padding:78px 20px 34px;
  border-left:0;
}

/* Hero */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:70vh;
  padding:clamp(88px,14vh,132px) var(--pad) clamp(34px,6vw,60px);
  background:#000;
  background-image:radial-gradient(rgba(255,255,255,.32) 1px,transparent 1px);
  background-size:14px 14px;
  color:#fff;
  overflow:hidden;
  border-bottom:2px solid var(--line);
}
.hero.has-img{background-image:none}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.05)}
.hero.has-img::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.62)}
.hero-in{position:relative;z-index:2;max-width:44rem;min-width:0}
.kicker{
  display:inline-block;
  margin:0 0 18px;
  padding:3px 9px;
  border:1px solid #fff;
  font-family:var(--mono);
  font-size:16px;
  letter-spacing:.24em;
}
.hero h1{
  margin:0 0 .45em;
  font-size:clamp(27px,4.6vw,54px);
  font-weight:800;
  letter-spacing:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.lede{max-width:52ch;color:#e6e6e6;font-size:16px;line-height:1.7;overflow-wrap:anywhere}

/* 正文 */
.doc > div{padding:clamp(30px,4.6vw,62px) var(--pad);border-bottom:1px solid var(--line);min-width:0}
.doc > div:last-child{border-bottom:0}
.doc h2{
  margin:0 0 .85em;
  padding-top:14px;
  border-top:2px solid var(--line);
  font-size:clamp(20px,2.6vw,28px);
  font-weight:800;
  overflow-wrap:anywhere;
}
.doc h2 span{display:inline-block}
.doc h3{
  margin:1.6em 0 .6em;
  font-size:19px;
  font-weight:800;
  overflow-wrap:anywhere;
}
.doc h3 span{display:inline-block}
.doc p{margin:0 0 1.05em;max-width:64ch;overflow-wrap:anywhere}
.doc ul,.doc ol{margin:0 0 1.15em;padding-left:1.35em;max-width:62ch}
.doc li{margin:.4em 0;overflow-wrap:anywhere}
.doc a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;overflow-wrap:anywhere}
.doc a:hover{background:#000;color:#fff;text-decoration:none}
.doc strong{font-weight:800}
.doc blockquote{
  margin:0 0 1.2em;
  padding:10px 16px;
  border-left:4px solid var(--line);
  color:var(--soft);
  max-width:62ch;
}
.doc table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:16px;table-layout:fixed}
.doc th,.doc td{border:1px solid var(--line);padding:9px 11px;text-align:left;vertical-align:top;overflow-wrap:anywhere}

/* 侧栏 */
.side-h{
  margin:0 0 12px;
  font-family:var(--mono);
  font-size:16px;
  letter-spacing:.24em;
  font-weight:400;
}
.side-list{list-style:none;margin:0 0 22px;padding:0}
.side-list li{border-top:1px solid var(--line)}
.side-list li:last-child{border-bottom:1px solid var(--line)}
.side-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:0 6px;
  font-size:15px;
  transition:background .2s ease,color .2s ease;
}
.side-list a:hover{background:#000;color:#fff}
.n{font-family:var(--mono);font-size:15px;color:var(--soft)}
.side-list a:hover .n{color:#fff}
.side-brand{
  font-family:var(--pixel);
  font-size:12px;
  letter-spacing:.1em;
  word-break:break-all;
}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  max-width:1400px;
  margin:0 auto;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  border-top:2px solid var(--line);
}
.foot div{padding:clamp(26px,3.6vw,46px) var(--pad);border-right:1px solid var(--line);min-width:0}
.foot div:last-child{border-right:0}
.f-mark{
  margin:0 0 12px;
  font-size:clamp(24px,3.4vw,38px);
  font-weight:800;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
.f-desc{max-width:36ch;color:var(--soft);font-size:16px;margin:0 0 20px;overflow-wrap:anywhere}
.f-btn{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 22px;
  background:#000;
  color:#fff;
  font-weight:700;
  transition:background .2s ease,color .2s ease;
}
.f-btn:hover{background:#fff;color:#000;outline:2px solid #000;outline-offset:-2px}
.f-h{margin:0 0 12px;font-size:15px;font-weight:700;letter-spacing:.2em}
.f-list{list-style:none;margin:0;padding:0;columns:2;column-gap:16px}
.f-list li{break-inside:avoid;margin:0 0 2px}
.f-list a{display:flex;align-items:center;gap:7px;min-height:40px;font-size:15px;transition:background .2s ease,color .2s ease}
.f-list a:hover{background:#000;color:#fff}
.f-list .n{font-family:var(--mono)}
.f-bar{display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.f-copy{margin:0;font-family:var(--mono);font-size:16px}
.f-top{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  min-height:44px;
  padding:0 16px;
  border:2px solid var(--line);
  font-weight:700;
  transition:background .2s ease,color .2s ease;
}
.f-top:hover{background:#000;color:#fff}

/* 底部导航条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:stretch;
  width:100%;
  max-width:100%;
  background:#fff;
  border-top:2px solid var(--line);
}
.dock-list{
  display:flex;
  flex:1 1 0;
  min-width:0;
  list-style:none;
  margin:0;
  padding:0;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.dock-list::-webkit-scrollbar{height:0}
.dock-list li{flex:0 0 auto;border-right:1px solid var(--line)}
.dock-list a{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:54px;
  padding:0 13px;
  font-family:var(--mono);
  font-size:16px;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease;
}
.dock-list a:hover{background:#000;color:#fff}
.dock-list .n{font-family:var(--mono);color:var(--soft)}
.dock-list a:hover .n{color:#fff}
.dock-cta{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
  min-height:54px;
  padding:0 18px;
  background:#000;
  color:#fff;
  font-weight:700;
  white-space:nowrap;
  border-left:2px solid var(--line);
  transition:background .2s ease,color .2s ease;
}
.dock-cta:hover{background:#fff;color:#000}

/* 段落锚点与动效 */
div[id]{scroll-margin-top:64px}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.doc > div{animation:rise .5s ease both}
.doc > div:nth-child(1){animation-delay:.02s}
.doc > div:nth-child(2){animation-delay:.06s}
.doc > div:nth-child(3){animation-delay:.1s}
.doc > div:nth-child(4){animation-delay:.14s}
.doc > div:nth-child(5){animation-delay:.18s}
.doc > div:nth-child(6){animation-delay:.22s}
.doc > div:nth-child(7){animation-delay:.26s}
.doc > div:nth-child(8){animation-delay:.3s}

@media (max-width:980px){
  main{grid-template-columns:minmax(0,1fr)}
  .doc{grid-column:1;border-right:0}
  .side{grid-column:1;position:static;padding:28px var(--pad) 34px;border-top:1px solid var(--line)}
  .side-brand{display:none}
  .foot{grid-template-columns:1fr}
  .foot div{border-right:0;border-bottom:1px solid var(--line)}
  .foot div:last-child{border-bottom:0}
  .f-bar{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}
  .hero{min-height:64vh}
  .dock-list a{padding:0 11px}
}
@media (max-width:560px){
  body{font-size:16px;padding-bottom:72px}
  .hero{min-height:60vh;padding-top:96px}
  .lede{font-size:16px}
  .f-list{columns:1}
  .dock-list a{font-size:15px;min-height:50px;padding:0 10px}
  .dock-cta{min-height:50px;font-size:15px;padding:0 13px}
  .side-list a{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

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