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

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  padding-bottom:168px;
  font-family:"Outfit","PingFang SC","Hiragino Sans GB","Noto Sans SC",system-ui,sans-serif;
  font-size:17px;line-height:1.6;color:#000;background:#f7f4ec;overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block;border:3px solid #000;border-radius:12px}
a{color:#000}
h1,h2,h3,h4{
  font-family:"Outfit","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  font-weight:900;line-height:1.15;letter-spacing:.01em;margin:0;
}
p{line-height:1.8}
hr{border:0;border-top:3px solid #000;margin:0 0 16px}
:focus-visible{outline:4px solid #ff5252;outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* 顶部主视觉 */
.hero{
  position:relative;min-height:70vh;display:flex;flex-direction:column;
  justify-content:center;gap:18px;padding:44px 20px 78px;
  background:#3bb1ff;border-bottom:3px solid #000;overflow:hidden;
}
.hero .eyebrow{
  align-self:flex-start;margin:0;background:#000;color:#fff;
  padding:7px 13px;font-weight:700;font-size:16px;letter-spacing:.14em;
  border-radius:10px;box-shadow:4px 4px 0 #3bb1ff,0 0 0 0 #000;
}
.hero h1{
  margin:0;font-size:clamp(2.1rem,7.6vw,5.2rem);line-height:1.08;
  max-width:16ch;text-wrap:balance;
}
.hero-band{
  position:absolute;left:0;right:0;bottom:0;height:30px;background:#ff5252;
  clip-path:polygon(0 100%,100% 0,100% 100%);
}

/* 版面 */
.wrap{
  max-width:1180px;margin:0 auto;padding:26px 18px 44px;
  display:grid;gap:26px;
}
.paper{display:grid;gap:24px;min-width:0}
.paper > article{
  border:3px solid #000;border-bottom-width:12px;border-radius:18px;
  background:#fff;box-shadow:6px 6px 0 #000;padding:22px 20px 26px;
  scroll-margin-top:20px;animation:rise .45s ease-out both;
}
.paper > article:nth-child(3n+1){border-bottom-color:#3bb1ff}
.paper > article:nth-child(3n+2){border-bottom-color:#ff5252}
.paper > article:nth-child(3n+3){border-bottom-color:#000}
.paper > article:nth-child(1){animation-delay:.03s}
.paper > article:nth-child(2){animation-delay:.09s}
.paper > article:nth-child(3){animation-delay:.15s}
.paper > article:nth-child(4){animation-delay:.21s}
.paper > article:nth-child(5){animation-delay:.27s}
.paper > article:nth-child(6){animation-delay:.33s}
.paper > article:nth-child(7){animation-delay:.39s}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

.paper > article h2{font-size:1.62rem;margin:0 0 8px}
.paper > article h3{font-size:1.24rem;margin:26px 0 8px}
.paper > article p{margin:0 0 1.05em}
.paper > article p:last-child{margin-bottom:0}
.paper > article a{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:3px}
.paper > article a:hover{background:#3bb1ff}
.paper > article ul,.paper > article ol{padding-left:1.3em;margin:0 0 1em}
.paper > article li{margin:0 0 .5em;line-height:1.8}
.paper > article blockquote{
  margin:0 0 1em;padding:14px 16px;border:3px solid #000;
  border-left-width:12px;border-color:#ff5252;background:#fff;border-radius:12px;
}
.paper > article blockquote p:last-child{margin:0}
.paper > article table{width:100%;border-collapse:collapse;margin:0 0 1em;font-size:16px}
.paper > article th,.paper > article td{border:3px solid #000;padding:8px 10px;text-align:left}

/* 侧栏 */
.side{
  border:3px solid #000;border-radius:18px;background:#fff;
  box-shadow:6px 6px 0 #ff5252;padding:18px 16px 20px;align-self:start;
}
.side h2{font-size:1.5rem;margin:0 0 10px}
.toc{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:9px}
.toc a{
  display:inline-flex;align-items:center;min-height:40px;padding:6px 13px;
  border:3px solid #000;border-radius:999px;background:#fff;
  box-shadow:3px 3px 0 #000;text-decoration:none;font-weight:700;font-size:16px;
  transition:transform .12s,box-shadow .12s,background .12s;
}
.toc a:hover{background:#3bb1ff;transform:translate(-2px,-2px);box-shadow:5px 5px 0 #000}
.side-top{margin:18px 0 0}
.side-top a{
  display:inline-flex;align-items:center;min-height:42px;padding:8px 16px;
  border:3px solid #000;border-radius:12px;background:#ff5252;color:#fff;
  font-weight:700;text-decoration:none;box-shadow:4px 4px 0 #000;
  transition:transform .12s,box-shadow .12s;
}
.side-top a:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #000}

/* 页脚 */
.foot{background:#000;color:#fff;padding:38px 18px 34px;border-top:3px solid #000}
.foot a{color:#fff;text-decoration:none}
.foot article + article{margin-top:26px}
.f-brand{margin:0 0 16px;font-weight:900;font-size:1.5rem;letter-spacing:.04em}
.f-brand a{display:inline-flex;align-items:center;min-height:44px;padding:4px 14px;
  border:3px solid #fff;border-radius:12px;box-shadow:4px 4px 0 #3bb1ff}
.sub{display:flex;flex-wrap:wrap;gap:10px;max-width:420px}
.sub-input{
  flex:1 1 160px;min-height:46px;padding:8px 12px;font:inherit;font-size:16px;
  color:#000;background:#fff;border:3px solid #fff;border-radius:12px;
}
.sub-btn{
  min-height:46px;padding:8px 22px;font:inherit;font-weight:900;font-size:16px;
  color:#000;background:#3bb1ff;border:3px solid #fff;border-radius:12px;
  box-shadow:4px 4px 0 #ff5252;cursor:pointer;transition:transform .12s,box-shadow .12s;
}
.sub-btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #ff5252}
.sub-btn[disabled]{cursor:default;transform:none;opacity:.85}
.f-links nav dl{margin:0;display:flex;flex-wrap:wrap;gap:8px 22px}
.f-links dt,.f-links dd{margin:0}
.f-links a{
  display:inline-flex;align-items:center;min-height:40px;padding:4px 0;
  border-bottom:3px solid transparent;
}
.f-links a:hover{border-bottom-color:#ff5252;color:#3bb1ff}
.f-base{border-top:3px solid #fff;padding-top:18px;
  display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}
.copy{margin:0;font-size:16px}
.f-top{margin:0;display:flex;flex-wrap:wrap;gap:6px 16px}
.f-top a{display:inline-flex;align-items:center;min-height:40px;padding:4px 0;
  border-bottom:3px solid #ff5252}

/* 底部固定条 */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;
  padding:9px 10px;background:#fff;border-top:3px solid #000;
  box-shadow:0 -5px 0 rgba(0,0,0,.12);
}
.dock-left,.dock-right{display:contents}
.dock-brand{
  order:-1;flex:0 0 100%;text-align:center;justify-content:center;
  display:inline-flex;align-items:center;min-height:42px;padding:6px 16px;
  background:#000;color:#fff;border:3px solid #000;border-radius:12px;
  font-weight:900;letter-spacing:.08em;text-decoration:none;
}
.dock a{
  display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:6px 11px;
  border:3px solid #000;border-radius:999px;background:#fff;color:#000;
  font-weight:700;font-size:16px;text-decoration:none;box-shadow:3px 3px 0 #000;
  transition:transform .12s,box-shadow .12s,background .12s;
  animation:rise .4s ease-out both;
}
.dock a:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 #000;background:#3bb1ff}
.dock-left > a:nth-child(1){animation-delay:.04s}
.dock-left > a:nth-child(2){animation-delay:.08s}
.dock-left > a:nth-child(3){animation-delay:.12s}
.dock-right > a:nth-child(1){animation-delay:.16s}
.dock-right > a:nth-child(2){animation-delay:.2s}
.dock-right > a:nth-child(3){animation-delay:.24s}
.dock-brand{animation-delay:0s}
.ico{width:9px;height:9px;background:#000;display:block;flex:0 0 auto}
.dock-left > a:nth-child(1) .ico{border-radius:50%}
.dock-left > a:nth-child(2) .ico{transform:rotate(45deg)}
.dock-left > a:nth-child(3) .ico{clip-path:polygon(50% 0,100% 100%,0 100%)}
.dock-right > a .ico{border-radius:50%;background:#ff5252}
.dock-cta{background:#ff5252;color:#fff;box-shadow:4px 4px 0 #000;padding:6px 16px}
.dock-cta:hover{background:#3bb1ff;color:#000}

@media (min-width:900px){
  body{padding-bottom:98px}
  .dock{flex-wrap:nowrap;justify-content:space-between;padding:0 22px;min-height:70px;box-shadow:0 -6px 0 rgba(0,0,0,.12)}
  .dock-brand{order:0;flex:0 0 auto;min-height:46px}
  .dock-left,.dock-right{display:flex;gap:8px;align-items:center}
  .dock-cta{margin-left:8px}
}

@media (min-width:1000px){
  .wrap{grid-template-columns:minmax(0,1fr) 310px;align-items:start;padding:44px 24px 80px;gap:30px}
  .side{position:sticky;top:22px}
  .paper > article{padding:30px 30px 34px}
  .hero{padding:64px 48px 96px}
  .foot{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px;padding:48px 48px 28px}
  .foot article + article{margin-top:0}
  .f-base{grid-column:1 / -1;margin-top:26px}
}

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

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