:root{
  --ink:#000;
  --blue:#3bb1ff;
  --red:#ff5252;
  --paper:#fff;
  --tint:#e9f5ff;
  --edge:3px solid #000;
  --hard:5px 5px 0 #000;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"JetBrains Mono","PingFang SC","Microsoft YaHei",ui-monospace,monospace;
  font-size:17px;
  line-height:1.65;
  overflow-x:hidden;
}
h1,h2,h3,.mega,.mark-txt,.hero-btn,.badge,.burger,.foot-title{
  font-family:Orbitron,"JetBrains Mono","PingFang SC","Microsoft YaHei",sans-serif;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
[id]{scroll-margin-top:86px}
a:focus-visible,button:focus-visible,input:focus-visible{outline:4px solid var(--red);outline-offset:3px}

/* 跳转链接 */
.jump{
  position:absolute;left:10px;top:0;z-index:99;
  transform:translateY(-160%);
  padding:10px 16px;background:var(--red);border:var(--edge);
  font-weight:700;text-decoration:none;
  transition:transform .18s ease;
}
.jump:focus-visible{transform:translateY(0)}

/* 顶栏 */
.topbar{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px;
  padding:12px 16px;background:var(--ink);color:#fff;
  border-bottom:3px solid #000;position:relative;z-index:60;
}
.mark{
  width:46px;height:46px;flex:none;display:grid;place-items:center;
  background:var(--blue);border:3px solid #fff;box-shadow:4px 4px 0 var(--red);
  text-decoration:none;
}
.mark img{width:100%;height:100%;object-fit:cover}
.mark-txt{font-weight:900;font-size:17px;color:#000;letter-spacing:.03em}
.burger{
  min-height:44px;padding:0 16px;
  background:var(--red);color:#000;border:3px solid #fff;
  font-weight:700;font-size:16px;cursor:pointer;
}
.burger:hover{background:var(--blue)}
.find{display:flex;gap:8px;flex:1 1 210px;min-width:0}
.find input{
  flex:1 1 auto;min-width:0;min-height:44px;
  border:3px solid #fff;background:#fff;color:#000;
  font:inherit;font-size:16px;padding:0 12px;border-radius:0;
}
.find button{
  min-height:44px;padding:0 14px;
  border:3px solid #fff;background:var(--blue);color:#000;
  font:inherit;font-weight:700;font-size:16px;cursor:pointer;
}
.find button:hover{background:var(--red)}

/* 下拉分组菜单 */
.menu{
  position:absolute;left:14px;top:68px;z-index:70;
  display:none;flex-direction:column;gap:2px;
  min-width:min(280px,86vw);
  background:var(--paper);color:var(--ink);
  border:var(--edge);box-shadow:8px 8px 0 #000;
  padding:10px;
}
.menu.open{display:flex}
.group+.group{margin-top:8px}
.group-label{
  margin:0 0 6px;font-size:16px;font-weight:700;
  background:var(--blue);border:2px solid #000;padding:4px 10px;
  display:inline-block;
}
.group ul{list-style:none;margin:0;padding:0}
.group a{
  display:flex;align-items:center;min-height:44px;
  padding:6px 10px;text-decoration:none;font-weight:700;
  border-bottom:2px solid #000;
}
.group li:last-child a{border-bottom:0}
.group a:hover{background:var(--red)}

/* 粘性锚点条 */
.railbar{
  position:sticky;top:0;z-index:50;
  background:var(--blue);border-bottom:3px solid #000;border-top:3px solid #000;
  overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.railbar ul{display:flex;list-style:none;margin:0;padding:0;min-width:max-content}
.railbar a{
  display:flex;align-items:center;min-height:44px;padding:0 16px;
  text-decoration:none;font-weight:700;white-space:nowrap;
  border-right:2px solid #000;
}
.railbar a:hover{background:var(--red)}

/* 首屏 */
.hero{
  display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:center;
  width:100%;max-width:1180px;margin:0 auto;
  padding:26px 20px 32px;border-bottom:3px solid #000;
  min-height:45vh;
}
.hero-copy{min-width:0}
.badge{
  display:inline-block;margin:0 0 16px;
  background:var(--red);border:var(--edge);box-shadow:4px 4px 0 #000;
  padding:6px 12px;font-weight:700;font-size:16px;
  transform:rotate(-2deg);
}
.hero h1{
  margin:0 0 16px;font-size:clamp(28px,5.6vw,54px);
  line-height:1.14;font-weight:900;letter-spacing:.01em;
}
.lede{margin:0 0 20px;font-size:17px;max-width:46ch}
.hero-btn{
  display:inline-flex;align-items:center;min-height:46px;padding:0 20px;
  background:var(--blue);border:var(--edge);box-shadow:var(--hard);
  font-weight:700;text-decoration:none;
}
.hero-btn:hover{background:var(--red);box-shadow:2px 2px 0 #000;transform:translate(3px,3px)}
.hero-fig{
  position:relative;margin:0;overflow:hidden;
  border:var(--edge);box-shadow:9px 9px 0 #000;
  background:var(--blue);aspect-ratio:4/3;
  animation:hue 7s steps(1,end) infinite;
}
@keyframes hue{
  0%,100%{background:var(--blue)}
  50%{background:var(--red)}
}
.hero-img{width:100%;height:100%;object-fit:cover}
.chip{position:absolute;display:block;border:3px solid #000}
.chip-a{width:64px;height:64px;right:14%;bottom:12%;background:#fff;transform:rotate(8deg)}
.chip-b{width:36px;height:36px;left:12%;bottom:16%;background:var(--red);transform:rotate(-10deg)}
.chip-c{width:22px;height:22px;right:18%;top:14%;background:#000}

/* 主体三明治：aside 在左 */
main{
  display:grid;grid-template-columns:248px minmax(0,1fr);
  grid-template-areas:"rail doc";
  gap:26px;align-items:start;
  max-width:1180px;margin:0 auto;
  padding:30px 20px 54px;
}
.rail{
  grid-area:rail;position:sticky;top:64px;
  border:var(--edge);box-shadow:var(--hard);
  background:#fff;padding:14px;
}
.rail-title{margin:0 0 12px;font-size:18px;line-height:1.3}
.rail-title span{display:inline-block;background:var(--blue);border:2px solid #000;padding:2px 10px}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list a{
  display:flex;align-items:center;min-height:44px;
  padding:4px 8px;text-decoration:none;font-weight:700;
  border-bottom:2px solid #000;word-break:break-word;
}
.rail-list li:last-child a{border-bottom:0}
.rail-list a:hover{background:var(--tint)}

.doc{grid-area:doc;min-width:0}

/* 正文区块 */
.flow > article{
  border:var(--edge);border-radius:28px;background:#fff;
  padding:24px 20px;margin:0 0 22px;
}
.flow > article:nth-child(even){background:var(--tint)}
.flow > article:last-child{margin-bottom:0}
.flow h2{
  margin:0 0 14px;font-size:clamp(22px,3vw,29px);line-height:1.28;
  padding-left:14px;box-shadow:inset 6px 0 0 var(--red);
}
.flow h3{margin:20px 0 10px;font-size:20px;line-height:1.35}
.flow p{margin:0 0 14px}
.flow p:last-child{margin-bottom:0}
.flow ul,.flow ol{margin:0 0 14px;padding-left:22px}
.flow li{margin:0 0 8px}
.flow blockquote{
  margin:0 0 14px;padding:12px 16px;background:#fff;
  border:var(--edge);box-shadow:4px 4px 0 #000;
}
.flow code{
  background:#000;color:var(--blue);padding:1px 6px;
  font-size:15px;
}
.flow img{border:var(--edge);box-shadow:4px 4px 0 #000;margin:0 0 14px}
.flow a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.flow a:hover{background:var(--blue)}
.flow strong{background:#fff59a;padding:0 2px}
.flow table{width:100%;border-collapse:collapse;margin:0 0 14px;font-size:16px}
.flow th,.flow td{border:2px solid #000;padding:8px;text-align:left}

/* 滚动揭示 */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .5s ease,transform .5s ease;transition-delay:var(--d,0ms)}
.reveal.in{opacity:1;transform:none}
.flash{outline:6px solid var(--red);outline-offset:5px}

/* 页脚 */
.site-foot{
  background:#000;color:#fff;
  border-top:3px solid #000;padding:30px 20px 20px;
}
.mega{
  margin:0 0 24px;font-size:clamp(30px,8vw,88px);line-height:.98;
  font-weight:900;color:var(--blue);letter-spacing:.02em;
  text-shadow:6px 6px 0 var(--red);word-break:break-word;
}
.foot-grid{
  display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:26px;
  padding:24px 0;
  border-top:3px solid #fff;border-bottom:3px solid #fff;
}
.addr{font-style:normal;display:grid;gap:8px}
.addr-name{font-weight:700;font-size:17px}
.addr-kw{color:var(--blue);word-break:break-all}
.foot-title{margin:0 0 12px;font-size:17px;line-height:1.3}
.foot-title span{display:inline-block;background:var(--red);color:#000;border:2px solid #fff;padding:2px 10px}
.foot-nav dl{margin:0}
.foot-nav dt{color:var(--blue);font-weight:700;margin:10px 0 4px}
.foot-nav dt:first-child{margin-top:0}
.foot-nav dd{margin:0}
.foot-nav a,.foot-list a{
  display:flex;align-items:center;min-height:44px;
  text-decoration:none;color:#fff;border-bottom:2px solid #3a3a3a;
}
.foot-nav dd:last-of-type a,.foot-list li:last-child a{border-bottom:0}
.foot-nav a:hover,.foot-list a:hover{background:var(--blue);color:#000}
.foot-list{list-style:none;margin:0;padding:0}
.foot-base{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;
  padding-top:16px;font-size:16px;
}
.foot-base a{
  display:inline-flex;align-items:center;min-height:44px;padding:0 14px;
  border:3px solid var(--blue);color:var(--blue);
  text-decoration:none;font-weight:700;
}
.foot-base a:hover{background:var(--blue);color:#000}

/* 断点 */
@media (max-width:900px){
  main{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"doc" "rail";
    gap:22px;padding:22px 16px 44px;
  }
  .rail{position:static}
  .hero{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0;padding:22px 16px 28px}
  .hero-fig{order:2;aspect-ratio:16/9}
  .foot-grid{grid-template-columns:1fr;gap:20px}
  .menu{top:122px}
}
@media (max-width:560px){
  body{font-size:16px}
  .topbar{padding:10px 14px;gap:8px}
  .find{flex:1 1 100%}
  .railbar a{padding:0 13px}
  .flow > article{padding:20px 16px;border-radius:22px}
  .hero h1{font-size:clamp(26px,8.4vw,38px)}
  .mega{font-size:clamp(26px,9vw,44px)}
  .foot-base{justify-content:space-between}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-fig{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-btn:hover{transform:none}
}

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