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

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#fdf9f2;
  --bd:3px solid #000;
  --cond:'Barlow Condensed','Barlow',system-ui,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --sans:'Barlow',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:#000;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  font-weight:400;
}

a{color:#000}
img{display:block;max-width:100%}
p{margin:0 0 14px}
ul,ol{padding-left:22px;margin:0 0 14px}

/* ---------- 顶部：粘性锚点条 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  background:#000;
  border-bottom:4px solid #000;
}

.nav{
  order:1;
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:2px 0;
}
.nav::-webkit-scrollbar{display:none}
.nav ul{display:flex;gap:8px;margin:0;padding:0;list-style:none}

.nav li{animation:pop .5s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i,0) * 55ms)}

.nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 14px;
  background:#fff;
  border:3px solid #fff;
  border-radius:14px;
  color:#000;
  text-decoration:none;
  font-family:var(--cond);
  font-weight:700;
  font-size:19px;
  letter-spacing:.03em;
  line-height:1.15;
  white-space:nowrap;
  box-shadow:3px 3px 0 var(--red);
  transition:background .18s ease,box-shadow .18s ease;
}
.nav a:hover,.nav a:focus-visible{background:var(--blue);box-shadow:3px 3px 0 #fff;outline:none}
.nav a[aria-current]{background:var(--blue);box-shadow:3px 3px 0 #fff}

.brand{
  order:2;
  flex:0 0 auto;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--blue);
  border:3px solid #fff;
  border-radius:14px;
  text-decoration:none;
}
.brand-img{width:100%;height:100%;object-fit:contain}
.brand-txt{
  font-family:var(--cond);
  font-weight:700;
  font-size:11px;
  line-height:1.05;
  text-align:center;
  color:#000;
  padding:2px;
}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  gap:22px;
  padding:26px 16px 34px;
  background:var(--blue);
  border-bottom:5px solid #000;
}
.hero-copy{min-width:0}

.kicker{
  display:inline-block;
  margin:0 0 12px;
  padding:5px 12px;
  background:#000;
  color:#fff;
  border-radius:10px;
  font-family:var(--cond);
  font-weight:700;
  font-size:16px;
  letter-spacing:.12em;
  line-height:1.3;
}

.hero-h1{
  margin:0 0 14px;
  font-family:var(--cond);
  font-weight:700;
  font-size:clamp(36px,9vw,72px);
  line-height:.98;
  letter-spacing:-.01em;
}

.lede{
  margin:0;
  max-width:44ch;
  font-size:clamp(17px,2.2vw,20px);
  font-weight:500;
  line-height:1.55;
}

.hero-fig{
  margin:0;
  min-height:200px;
  background:#fff;
  border:4px solid #000;
  border-radius:28px 28px 110px 28px;
  overflow:hidden;
  box-shadow:10px 10px 0 #000;
}
.hero-img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}

@media (min-width:900px){
  .hero{
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:36px;
    min-height:70vh;
    padding:48px 40px 56px;
  }
}

/* ---------- 内容区 ---------- */
.shell{
  display:grid;
  gap:22px;
  max-width:1180px;
  margin:0 auto;
  padding:24px 16px 44px;
}
@media (min-width:980px){
  .shell{
    grid-template-columns:minmax(0,1fr) 296px;
    align-items:start;
    gap:28px;
    padding:40px 32px 64px;
  }
}

.flow{min-width:0}
.flow > div{
  border:var(--bd);
  border-radius:28px;
  background:#fff;
  padding:24px 18px 26px;
  margin:0 0 20px;
  scroll-margin-top:86px;
}
.flow > div:nth-child(3n+2){background:var(--red)}
.flow > div:nth-child(3n+3){background:var(--blue)}

.flow small{
  display:block;
  margin:0 0 4px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  line-height:1.4;
}

.flow h2{
  font-family:var(--cond);
  font-weight:700;
  font-size:clamp(24px,4.2vw,36px);
  line-height:1.05;
  letter-spacing:-.005em;
  margin:0 0 12px;
  padding-bottom:8px;
  border-bottom:3px solid #000;
}
.flow h3{
  font-family:var(--cond);
  font-weight:700;
  font-size:clamp(20px,3vw,26px);
  line-height:1.15;
  margin:22px 0 10px;
}

.flow a{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-underline-offset:3px;
}
.flow a:hover{background:#fff}

.flow li{margin-bottom:6px}

.flow blockquote{
  margin:16px 0;
  padding:6px 0 6px 16px;
  border-left:6px solid #000;
  font-weight:600;
}

.flow img{
  height:auto;
  border:3px solid #000;
  border-radius:18px;
  margin:14px 0;
}

.flow code{
  font-size:16px;
  background:#fff;
  border:2px solid #000;
  border-radius:6px;
  padding:1px 6px;
}

.flow pre{
  overflow-x:auto;
  padding:14px;
  background:#fff;
  border:3px solid #000;
  border-radius:18px;
}

/* ---------- 右侧栏 ---------- */
.rail{
  border:var(--bd);
  border-radius:28px;
  background:#fff;
  padding:18px 16px 20px;
  box-shadow:6px 6px 0 var(--red);
}
@media (min-width:980px){
  .rail{position:sticky;top:84px}
}
.rail-kicker{
  display:block;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  line-height:1.4;
  margin-bottom:2px;
}
.rail-title{
  font-family:var(--cond);
  font-weight:700;
  font-size:28px;
  line-height:1.05;
  margin:0 0 12px;
  padding-bottom:8px;
  border-bottom:3px solid #000;
}
.rail-list{list-style:none;margin:0;padding:0}
.rail-list li{border-bottom:2px solid #000;animation:pop .45s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i,0) * 50ms + 120ms)}
.rail-list li:last-child{border-bottom:0}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 2px;
  font-family:var(--cond);
  font-weight:600;
  font-size:19px;
  letter-spacing:.02em;
  text-decoration:none;
  line-height:1.2;
}
.rail-list a:hover,.rail-list a:focus-visible{background:var(--blue)}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px 14px;
  padding:34px 16px 24px;
  background:#000;
  color:#fff;
  border-top:6px solid var(--red);
}
@media (min-width:760px){
  .foot{grid-template-columns:repeat(4,1fr);padding:48px 32px 28px;gap:22px 20px}
}

.foot-mark{
  grid-column:1 / -1;
  margin:0;
  font-family:var(--cond);
  font-weight:700;
  font-size:clamp(42px,12vw,110px);
  line-height:.85;
  letter-spacing:-.02em;
  color:var(--blue);
  text-shadow:5px 5px 0 var(--red);
}

.foot-col{
  margin:0;
  font-family:var(--cond);
  font-weight:600;
  font-size:18px;
  line-height:1.9;
  letter-spacing:.05em;
  min-height:52px;
}

.foot-copy{
  grid-column:1 / -1;
  display:block;
  padding-top:14px;
  border-top:2px solid #fff;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.04em;
}

/* ---------- 动效 ---------- */
@keyframes pop{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}

html.js .flow > div,
html.js .rail{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .5s ease,transform .5s cubic-bezier(.2,.8,.3,1);
}
html.js .flow > div.in,
html.js .rail.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
  html.js .flow > div,
  html.js .rail{opacity:1;transform:none}
}

/* ---------- 小屏微调 ---------- */
@media (max-width:520px){
  .nav a{font-size:18px;padding:9px 12px}
  .hero{padding-top:22px}
  .flow > div{padding:20px 15px 22px;border-radius:24px}
  .foot-mark{text-shadow:4px 4px 0 var(--red)}
}

:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.top :focus-visible{outline:3px solid var(--blue);outline-offset:2px}

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