/* 重味分区 · Neubrutalism 硬描边 + 45 度硬阴影 */

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

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

body{
  margin:0;
  padding-bottom:118px;
  font-family:"Open Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:#000;
  background:#f2efe6;
  overflow-x:hidden;
}

h1,h2,h3,h4,
.brand,.dock-cta,.foot-brand,.rail-title,.badge,.prose h2,.prose h3{
  font-family:"Poppins","Open Sans","PingFang SC","Microsoft YaHei",sans-serif;
}

a{color:inherit}
img{max-width:100%}
p{margin:0 0 1em}

/* ===== 底部固定条 ===== */

.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  background:#fff;
  border-top:3px solid #000;
  padding:10px clamp(10px,3vw,22px) 15px;
}

.brand{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 13px;
  background:#3bb1ff;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
  font-weight:800;
  font-size:17px;
  letter-spacing:.02em;
  text-decoration:none;
  white-space:nowrap;
}
.brand:hover{background:#ff5252}

.dock-nav{
  min-width:0;
  overflow-x:auto;
  padding:5px 2px;
  scrollbar-width:thin;
}
.dock-nav ol{
  display:flex;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.dock-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 12px;
  white-space:nowrap;
  border:3px solid #000;
  border-radius:10px;
  background:#fff;
  font-weight:600;
  font-size:16px;
  text-decoration:none;
}
.dock-nav a:hover,
.dock-nav a[aria-current="page"]{
  background:#3bb1ff;
  box-shadow:3px 3px 0 #000;
}

.dock-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 15px;
  background:#ff5252;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
  font-weight:800;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
}
.dock-cta:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #000}

/* ===== 外壳 ===== */

.shell{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(18px,4vw,44px) clamp(14px,3vw,28px) 0;
}

/* ===== 首屏 ===== */

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(16px,3vw,34px);
  align-items:center;
  min-height:45vh;
  padding:clamp(20px,3vw,36px);
  margin-bottom:clamp(22px,4vw,44px);
  background:#3bb1ff;
  border:3px solid #000;
  border-radius:18px;
  box-shadow:8px 8px 0 #000;
}
.hero:not(.has-img){grid-template-columns:minmax(0,1fr)}

.badge{
  position:absolute;
  top:-15px;
  right:20px;
  transform:rotate(3deg);
  padding:4px 15px;
  background:#ff5252;
  border:3px solid #000;
  border-radius:999px;
  box-shadow:4px 4px 0 #000;
  font-weight:800;
  font-size:16px;
  letter-spacing:.02em;
}

.hero-fig{
  margin:0;
  border:3px solid #000;
  border-radius:18px;
  overflow:hidden;
  box-shadow:6px 6px 0 #000;
  background:#fff;
}
.hero-fig img{
  display:block;
  width:100%;
  height:100%;
  max-height:44vh;
  object-fit:cover;
}

.hero-txt{text-align:right;justify-self:end;min-width:0}

.hero h1{
  margin:0 0 12px;
  font-size:clamp(30px,5.4vw,56px);
  line-height:1.08;
  letter-spacing:-.012em;
  font-weight:800;
}

.hero-lead{
  margin:0 0 0 auto;
  max-width:40ch;
  font-size:clamp(16px,1.7vw,19px);
  font-weight:600;
}

/* ===== 侧栏 + 正文 ===== */

.cols{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:clamp(16px,3vw,32px);
  align-items:start;
}

.rail{
  position:sticky;
  top:16px;
  display:grid;
  gap:10px;
  padding:16px;
  background:#fff;
  border:3px solid #000;
  border-radius:18px;
  box-shadow:6px 6px 0 #000;
}

.rail-title{
  margin:0;
  font-size:16px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.04em;
}
.rail-title > span{box-shadow:inset 0 -.55em #3bb1ff}
.rail-title--alt > span{box-shadow:inset 0 -.55em #ff5252}

.rail-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 10px;
  background:#f7f5ee;
  border:3px solid #000;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  line-height:1.3;
}
.rail-list a:hover,
.rail-list a[aria-current="page"]{
  background:#3bb1ff;
  transform:translate(-2px,-2px);
  box-shadow:3px 3px 0 #000;
}

.rail-top{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:6px 10px;
  background:#ff5252;
  border:3px solid #000;
  border-radius:10px;
  box-shadow:3px 3px 0 #000;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
}

/* ===== 正文 ===== */

.prose{min-width:0}

.prose > section{
  margin:0 0 clamp(22px,4vw,38px);
  padding:clamp(18px,3.6vw,38px);
  background:#fff;
  border:3px solid #000;
  border-top:12px solid #3bb1ff;
  border-radius:18px;
  box-shadow:6px 6px 0 #000;
  scroll-margin-top:24px;
}
.prose > section:nth-child(even){border-top-color:#ff5252;box-shadow:6px 6px 0 #ff5252}
.prose > section > :first-child{margin-top:0}
.prose > section > :last-child{margin-bottom:0}

.prose h2{
  margin:0 0 .6em;
  font-size:clamp(22px,3vw,31px);
  line-height:1.22;
  font-weight:800;
  letter-spacing:-.01em;
}
.prose h2 > span,
.prose h3 > span{box-shadow:inset 0 -.35em #3bb1ff}
.prose > section:nth-child(even) h2 > span,
.prose > section:nth-child(even) h3 > span{box-shadow:inset 0 -.35em #ff5252}

.prose h3{
  margin:1.4em 0 .5em;
  font-size:clamp(18px,2.2vw,22px);
  line-height:1.3;
  font-weight:700;
}

.prose h4{margin:1.2em 0 .4em;font-size:17px;font-weight:700}

.prose ul,.prose ol{padding-left:1.4em;margin:0 0 1em}
.prose li{margin:.35em 0}
.prose li::marker{font-weight:700}

.prose a{
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:#ff5252;
  text-underline-offset:3px;
}
.prose a:hover{background:#3bb1ff;text-decoration-color:#000}

.prose blockquote{
  margin:1.3em 0;
  padding:12px 16px;
  background:#f2efe6;
  border-left:8px solid #3bb1ff;
  border-radius:0 12px 12px 0;
}
.prose blockquote p:last-child{margin-bottom:0}

.prose img{
  display:block;
  height:auto;
  margin:1.2em 0;
  border:3px solid #000;
  border-radius:12px;
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:1.2em 0;
  font-size:16px;
}
.prose th,.prose td{border:2px solid #000;padding:8px 10px;text-align:left}
.prose th{background:#3bb1ff}

.prose code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:15px;
  padding:1px 5px;
  background:#f2efe6;
  border:2px solid #000;
  border-radius:4px;
}
.prose pre{
  overflow-x:auto;
  padding:14px;
  background:#fff;
  border:3px solid #000;
  border-radius:12px;
}
.prose pre code{border:0;padding:0;background:none}

.prose hr{border:0;border-top:3px dashed #000;margin:2em 0}

/* ===== 页脚 ===== */

.foot{
  margin-top:clamp(28px,5vw,56px);
  padding:clamp(26px,4vw,54px) clamp(16px,3vw,32px) 30px;
  background:#000;
  color:#fff;
  border-top:6px solid #3bb1ff;
}

.foot-head,.foot-cols,.foot-base{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}

.foot-brand{
  margin:0;
  font-size:clamp(46px,12vw,132px);
  line-height:.92;
  font-weight:800;
  letter-spacing:-.035em;
  color:#3bb1ff;
}

.foot-tag{
  margin:.4em 0 0;
  font-size:16px;
  font-weight:600;
  color:#fff;
}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,3vw,30px);
  margin-top:clamp(22px,3vw,34px);
}
.foot-cols dl{margin:0}
.foot-cols dt{
  font-family:"Poppins","Open Sans",sans-serif;
  font-weight:800;
  font-size:16px;
  letter-spacing:.08em;
  color:#ff5252;
  margin-bottom:8px;
}
.foot-cols dd{margin:0}
.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 0;
  color:#fff;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  border-bottom:3px solid transparent;
}
.foot-cols a:hover{border-bottom-color:#3bb1ff;color:#3bb1ff}

.foot-base{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:clamp(20px,3vw,32px);
  padding-top:14px;
  border-top:3px solid #fff;
  font-size:16px;
}
.foot-base p{margin:0}
.foot-base a{color:#fff;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;min-height:40px}
.foot-base a:hover{color:#3bb1ff}

/* ===== 滚动出现 ===== */

.reveal{opacity:0;transform:translate3d(0,20px,0)}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .5s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}

/* ===== 断点 ===== */

@media (max-width:900px){
  .cols{grid-template-columns:minmax(0,1fr)}
  .rail{position:static}
  .rail-list{display:flex;flex-wrap:wrap;gap:8px}
  .rail-list li{flex:1 1 44%}
  .rail-list a{justify-content:center}
}

@media (max-width:760px){
  body{font-size:16px;padding-bottom:124px}
  .hero,
  .hero:not(.has-img){grid-template-columns:minmax(0,1fr);min-height:0}
  .hero-txt{text-align:left;justify-self:stretch}
  .hero-lead{margin-left:0;max-width:none}
  .badge{right:14px;font-size:16px}
  .dock{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:8px 10px 15px}
  .brand{font-size:16px;padding:6px 10px}
  .dock-cta{font-size:16px;padding:6px 11px}
  .foot-cols{grid-template-columns:minmax(0,1fr)}
  .foot-base{flex-direction:row}
}

@media (max-width:420px){
  .prose > section{border-top-width:10px}
  .foot-brand{letter-spacing:-.03em}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .dock-cta:hover,.rail-list a:hover{transform:none}
  .hero-img{transform:none !important}
}

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