@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#fdf4e0;
  --line:3px solid #000;
  --hard:6px 6px 0 #000;
  --r:28px;
}

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

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

body{
  margin:0;
  font-family:"Public Sans","Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(0,0,0,.16) 1.3px, transparent 1.3px);
  background-size:16px 16px;
  overflow-x:hidden;
}

h1,h2,h3,.brand,.cta,.hero-cta,.foot p,.rail-title{
  font-family:"Lexend Mega","Public Sans","PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.01em;
}

.skip{
  position:absolute;
  left:12px;
  top:-72px;
  z-index:99;
  background:#fff;
  border:var(--line);
  border-radius:14px;
  padding:10px 18px;
  font-weight:800;
  color:#000;
  text-decoration:none;
  transition:top .18s ease;
}
.skip:focus{top:12px}

/* 顶部 */
.top{
  position:sticky;
  top:0;
  z-index:60;
  background:#fff;
  border-bottom:4px solid #000;
}

.bar{
  display:flex;
  align-items:center;
  gap:6px;
  max-width:1200px;
  margin:0 auto;
  padding:10px 16px;
}

.side{flex:1 1 0;min-width:0}
.side ul{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.side.right{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.side.right ul{justify-content:flex-end}

.side a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  border-radius:12px;
  font-size:16px;
  font-weight:700;
  color:#000;
  text-decoration:none;
}
.side a:hover{background:var(--blue)}
.side a:focus-visible{outline:3px solid var(--red);outline-offset:2px}

.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  background:var(--blue);
  border:var(--line);
  border-radius:14px;
  box-shadow:4px 4px 0 #000;
  color:#000;
  text-decoration:none;
  font-size:19px;
  white-space:nowrap;
}
.brand .mark{display:block;width:32px;height:32px;object-fit:contain}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  background:var(--red);
  border:var(--line);
  border-radius:12px;
  box-shadow:4px 4px 0 #000;
  color:#000;
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
}
.cta:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}

/* 二级锚点条 */
.stripe{
  background:var(--blue);
  border-top:3px solid #000;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.stripe ul{
  display:flex;
  gap:8px;
  align-items:center;
  margin:0;
  padding:8px 16px;
  list-style:none;
  min-width:max-content;
}
.stripe a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 13px;
  background:#fff;
  border:2px solid #000;
  border-radius:10px;
  color:#000;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.stripe a:hover{background:var(--red)}

/* 头图区 */
.hero{
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px;
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(18px,3vw,36px);
  align-items:center;
  min-height:45vh;
}

.hero-art{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  border:4px solid #000;
  border-radius:var(--r);
  box-shadow:9px 9px 0 #000;
  background:var(--blue);
  overflow:hidden;
}
.hero-art img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.06);
  will-change:transform;
}
.hero-art .blob{
  position:absolute;
  inset:12px;
  border:3px dashed #000;
  border-radius:20px;
  background-image:radial-gradient(#000 1.6px, transparent 1.6px);
  background-size:14px 14px;
}

.hero-copy{text-align:right}
h1{
  margin:0 0 14px;
  font-size:clamp(27px,4.4vw,52px);
  word-break:break-word;
}
.lede{
  max-width:46ch;
  margin:0 0 18px auto;
  font-size:17px;
}
.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:10px 22px;
  background:var(--blue);
  border:var(--line);
  border-radius:16px;
  box-shadow:5px 5px 0 #000;
  color:#000;
  font-size:17px;
  text-decoration:none;
}
.hero-cta:hover{transform:translate(2px,2px);box-shadow:3px 3px 0 #000}

/* 主体与右栏 */
.shell{
  max-width:1200px;
  margin:0 auto;
  padding:8px 16px 48px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:28px;
  align-items:start;
}

.prose{min-width:0}
.prose div{
  background:#fff;
  border:var(--line);
  border-bottom:9px solid var(--red);
  border-radius:var(--r);
  box-shadow:var(--hard);
  padding:clamp(16px,3vw,28px);
  margin:0 0 30px;
  scroll-margin-top:170px;
}
.prose div:nth-child(even){border-bottom-color:var(--blue)}

.prose h2{
  margin:0 0 .55em;
  padding-left:14px;
  border-left:8px solid var(--blue);
  font-size:clamp(21px,3vw,30px);
}
.prose div:nth-child(even) h2{border-left-color:var(--red)}
.prose h3{margin:1.3em 0 .4em;font-size:19px}
.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}
.prose a{
  color:#000;
  font-weight:700;
  text-decoration:none;
  border-bottom:3px solid var(--red);
}
.prose a:hover{background:var(--blue)}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.45em}
.prose li{margin:.35em 0}
.prose img{
  display:block;
  max-width:100%;
  height:auto;
  margin:1em 0;
  border:var(--line);
  border-radius:16px;
}
.prose blockquote{
  margin:1em 0;
  padding:12px 18px;
  background:var(--paper);
  border-left:8px solid var(--red);
  border-radius:0 16px 16px 0;
  font-weight:700;
}
.prose strong{font-weight:800}

.rail{
  position:sticky;
  top:150px;
  background:var(--blue);
  border:var(--line);
  border-radius:var(--r);
  box-shadow:var(--hard);
  padding:18px;
}
.rail-title{margin:0;font-size:20px}
.subtitle{
  margin:.15em 0 12px;
  font-size:16px;
  font-weight:700;
}
.rail ul{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 11px;
  background:#fff;
  border:2px solid #000;
  border-radius:12px;
  color:#000;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
}
.rail a:hover{background:var(--red)}

/* 页脚 */
.foot{
  margin-top:40px;
  padding:28px clamp(12px,4vw,44px) 18px;
  background:var(--red);
  border-top:4px solid #000;
  display:grid;
  grid-template-columns:1fr 1fr 1.5fr;
  gap:16px 22px;
  align-items:start;
}
.foot p{margin:0;font-size:17px}
.foot-a{font-size:19px}
.foot-b{font-size:16px}
.foot-form{display:flex;flex-wrap:wrap;gap:8px}
.foot-form input{
  flex:1 1 150px;
  min-width:0;
  min-height:44px;
  padding:8px 12px;
  font:inherit;
  color:#000;
  background:#fff;
  border:var(--line);
  border-radius:12px;
}
.foot-form button{
  min-height:44px;
  padding:8px 18px;
  font:inherit;
  font-weight:800;
  color:#000;
  background:var(--blue);
  border:var(--line);
  border-radius:12px;
  box-shadow:4px 4px 0 #000;
  cursor:pointer;
}
.foot-form button:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}
.foot-copy{
  grid-column:1/-1;
  padding-top:12px;
  border-top:3px solid #000;
  font-size:16px;
}

/* 出现动效 */
.prose div.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease, transform .5s ease;
}
.prose div.in{opacity:1;transform:none}

@media (max-width:980px){
  .shell{grid-template-columns:1fr}
  .rail{position:static;order:2}
  .rail ul{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}

@media (max-width:760px){
  .side.left,.side.right ul{display:none}
  .bar{padding:10px 12px}
  .brand{font-size:17px;padding:8px 12px}
  .hero{grid-template-columns:1fr;min-height:0;padding:18px 12px}
  .hero-copy{order:-1;text-align:left}
  .lede{margin-left:0;max-width:none}
  .hero-art{box-shadow:6px 6px 0 #000}
  .shell{padding:8px 12px 40px}
  .prose div{padding:16px 15px;box-shadow:4px 4px 0 #000;border-radius:22px;scroll-margin-top:150px}
  .rail{padding:14px}
  .foot{grid-template-columns:1fr;padding:22px 14px 16px}
  .foot-copy{padding-top:10px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .prose div.reveal{opacity:1;transform:none;transition:none}
  .hero-art img{transform:none}
  .cta:hover,.hero-cta:hover,.foot-form button:hover{transform:none}
}

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