@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --tint:#eaf6ff;
  --soft:#f4f4f4;
  --bw:3px;
  --rad:4px;
  --shadow:5px 5px 0 #000;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:'Varela Round','Nunito Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.8;
  font-weight:400;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--ink);text-decoration:none}
h1,h2,h3,h4{line-height:1.25;font-weight:700;letter-spacing:.01em}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.page{min-height:100vh;display:flex;flex-direction:column}

/* 顶部条与页头 */
.top{position:sticky;top:0;z-index:40;background:#fff;border-bottom:var(--bw) solid var(--ink)}
.ticker{
  margin:0;background:var(--ink);color:#fff;text-align:center;
  font-size:16px;line-height:1.6;padding:3px 10px;
  letter-spacing:.22em;text-transform:uppercase;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.masthead{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;
  padding:10px 16px;max-width:1240px;margin:0 auto;
}
.wing ul{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0;width:100%}
.wingL ul{justify-content:flex-end}
.wingR ul{justify-content:flex-start}
.wing a{
  display:flex;align-items:center;min-height:44px;padding:6px 10px;
  border:2px solid transparent;border-radius:var(--rad);
  font-size:16px;font-weight:600;line-height:1.4;
}
.wing a:hover{background:var(--tint);border-color:var(--ink)}
.brand{
  align-self:center;background:var(--blue);border:var(--bw) solid var(--ink);
  box-shadow:var(--shadow);border-radius:var(--rad);padding:8px 16px;
  font-size:19px;font-weight:700;white-space:nowrap;
}
.brand:hover{transform:translate(2px,2px);box-shadow:3px 3px 0 #000}

/* 左栏与主区 */
.shell{
  display:flex;align-items:flex-start;gap:26px;width:100%;
  max-width:1240px;margin:0 auto;padding:26px 16px 0;flex:1;
}
.rail{
  position:sticky;top:104px;flex:0 0 190px;width:190px;
  background:var(--tint);border:var(--bw) solid var(--ink);
  border-radius:var(--rad);padding:14px 12px;
}
.railHead{margin:0;font-size:19px}
.rail .subtitle{
  margin:2px 0 12px;font-size:16px;line-height:1.5;
  letter-spacing:.14em;color:#0a3d5c;
}
.railNav ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.railNav a{
  display:flex;align-items:center;min-height:40px;padding:7px 10px;
  border:2px solid var(--ink);border-radius:var(--rad);background:#fff;
  font-size:16px;font-weight:600;line-height:1.4;
}
.railNav a:hover{background:var(--blue)}
main{flex:1 1 auto;min-width:0}
.wrap{padding-bottom:10px}

/* 首屏 */
.hero{
  min-height:calc(100vh - 108px);
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;gap:26px;padding:20px 0 6px;
}
.heroText{display:flex;flex-direction:column;align-items:center;gap:14px}
.eyebrow{
  display:inline-block;margin:0;background:var(--red);color:#fff;
  border:var(--bw) solid var(--ink);border-radius:var(--rad);box-shadow:4px 4px 0 #000;
  padding:4px 14px;font-size:16px;font-weight:700;
  letter-spacing:.2em;text-transform:uppercase;
}
h1{font-size:clamp(30px,5.2vw,54px);margin:0;max-width:16em}
.lede{margin:0;max-width:32em;font-size:18px;line-height:1.85}
.heroArt{
  position:relative;width:100%;max-width:820px;background:#fff;
  border:var(--bw) solid var(--ink);border-radius:6px;
  box-shadow:8px 8px 0 #000;overflow:hidden;
}
.heroArt.hasShots{aspect-ratio:16/9}
.shot{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .7s ease}
.shot.is-on{opacity:1;z-index:1}
.shotImg{width:100%;height:100%;object-fit:cover}
.heroFlag{display:grid;grid-template-columns:repeat(3,1fr);height:clamp(150px,26vh,240px)}
.heroFlag span{border-right:var(--bw) solid var(--ink)}
.heroFlag span:last-child{border-right:0}
.heroFlag span:nth-child(1){background:var(--blue)}
.heroFlag span:nth-child(2){background:var(--red)}
.heroFlag span:nth-child(3){background:var(--ink)}

.split{
  height:18px;margin:26px 0 30px;background:var(--red);
  border-top:var(--bw) solid var(--ink);border-bottom:var(--bw) solid var(--ink);
  transform:skewY(-1.6deg);
}

/* 正文 */
.body{padding-bottom:8px}
.prose [id]{scroll-margin-top:118px}
.prose article{
  background:#fff;border:var(--bw) solid var(--ink);
  border-radius:var(--rad);padding:24px 22px;
}
.prose article+article{margin-top:26px}
.prose h2{
  font-size:clamp(22px,3vw,29px);margin:0 0 12px;
  padding-left:14px;border-left:8px solid var(--blue);
}
.prose h3{font-size:20px;margin:22px 0 10px}
.prose p{margin:0 0 16px;line-height:1.9}
.prose p.subtitle,.prose .subtitle{
  margin:0 0 18px;padding-bottom:12px;
  border-bottom:2px dashed var(--ink);color:#333;font-size:17px;
}
.prose ul,.prose ol{padding-left:24px;margin:0 0 16px}
.prose li{margin-bottom:9px;line-height:1.8}
.prose a{
  text-decoration:underline;text-decoration-thickness:3px;
  text-decoration-color:var(--red);text-underline-offset:3px;
}
.prose strong{background:#cdeaff;padding:0 3px}
.prose img{border:var(--bw) solid var(--ink);border-radius:var(--rad);margin:18px 0;box-shadow:5px 5px 0 #000}
.prose blockquote{
  margin:18px 0;padding:12px 18px;background:#fff2f2;
  border-left:8px solid var(--red);border-radius:0 var(--rad) var(--rad) 0;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{width:100%;border-collapse:collapse;margin:18px 0;font-size:16px}
.prose th,.prose td{border:2px solid var(--ink);padding:8px 10px;text-align:left;vertical-align:top}
.prose th{background:var(--tint)}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;
  background:var(--soft);border:2px solid var(--ink);border-radius:3px;padding:1px 5px;
}
.prose hr{border:0;border-top:var(--bw) solid var(--ink);margin:24px 0}
.prose figure{margin:18px 0}

/* 收尾块与页脚 */
.cta{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;
  margin:34px 0 44px;padding:26px 24px;background:var(--blue);
  border:var(--bw) solid var(--ink);border-radius:6px;box-shadow:8px 8px 0 #000;
}
.ctaBig{margin:0;font-size:clamp(24px,4vw,36px);font-weight:700;line-height:1.2}
.ctaBtn{
  display:inline-flex;align-items:center;min-height:48px;padding:10px 22px;
  background:var(--ink);color:#fff;border:var(--bw) solid var(--ink);
  border-radius:var(--rad);font-weight:700;font-size:17px;
}
.ctaBtn:hover{background:#fff;color:var(--ink)}
footer{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
  border-top:var(--bw) solid var(--ink);padding:14px 18px;background:#fff;
}
footer p{margin:0;font-size:16px;font-weight:700}
footer small{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:16px;line-height:1.5}
footer small a{
  display:inline-flex;align-items:center;min-height:40px;padding:4px 6px;
  border-bottom:3px solid var(--red);font-weight:700;
}

/* 移动端 */
@media (max-width:900px){
  .top{position:static}
  .masthead{grid-template-columns:1fr;gap:6px;padding:10px 14px}
  .brand{order:-1;justify-self:start}
  .wingL ul,.wingR ul{justify-content:flex-start}
  .shell{flex-direction:column;gap:14px;padding:12px 14px 0}
  .rail{
    position:sticky;top:0;z-index:30;width:100%;flex:0 0 auto;
    padding:8px 10px;border-radius:0;border-left:0;border-right:0;
    box-shadow:0 3px 0 #000;
  }
  .railHead,.rail .subtitle{display:none}
  .railNav ul{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
  .railNav a{white-space:nowrap}
  .hero{min-height:auto;padding:18px 0 6px;gap:20px}
  .lede{font-size:17px}
  .prose article{padding:20px 16px}
  .prose [id]{scroll-margin-top:96px}
  .cta{margin:26px 0 34px;padding:20px 16px}
  footer{padding:12px 14px}
}
@media (max-width:420px){
  h1{font-size:30px}
  .railNav a{padding:7px 9px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .shot{transition:none}
}

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