:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#eaf5ff;
  --line:3px solid #000;
  --pop:6px 6px 0 #000;
  --r:18px;
  --bar:64px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Karla,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.65;
}
a{color:inherit}
img{display:block;max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
html.menu-open body{overflow:hidden}

/* 顶栏 */
.topbar{
  position:sticky;
  top:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 14px;
  background:#fff;
  border-bottom:var(--line);
}
.brand{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  background:var(--blue);
  border:var(--line);
  border-radius:10px;
  box-shadow:4px 4px 0 var(--red);
  font-family:"Playfair Display SC",Georgia,"Songti SC",serif;
  font-weight:700;
  font-size:18px;
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
}
.brand:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--red)}
.burger{
  min-height:44px;
  padding:9px 16px;
  background:var(--red);
  border:var(--line);
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
  font:inherit;
  font-weight:700;
  font-size:16px;
  color:#000;
  cursor:pointer;
}
.burger:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}

/* 全屏遮罩菜单 */
.drawer{
  position:fixed;
  inset:0;
  z-index:70;
  padding:calc(var(--bar) + 22px) 18px 26px;
  background:var(--blue);
  overflow:auto;
  transform:translateY(-102%);
  transition:transform .28s ease;
}
html.menu-open .drawer{transform:none}
.drawer ol{
  list-style:none;
  margin:0 auto;
  padding:0;
  display:grid;
  gap:12px;
  max-width:560px;
}
.drawer a{
  display:flex;
  align-items:center;
  min-height:54px;
  padding:12px 16px;
  background:#fff;
  border:var(--line);
  border-radius:12px;
  box-shadow:5px 5px 0 #000;
  font-weight:700;
  font-size:17px;
  text-decoration:none;
}
.drawer a:hover{background:var(--red)}
.drawer a:active{transform:translate(2px,2px);box-shadow:3px 3px 0 #000}

/* 粘性锚点条 */
.jumpbar{
  position:sticky;
  top:var(--bar);
  z-index:60;
  background:#fff;
  border-bottom:var(--line);
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.jumpbar nav{display:block}
.jumpbar ol{
  display:flex;
  gap:8px;
  width:max-content;
  margin:0;
  padding:8px 12px;
  list-style:none;
}
.jumpbar a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 12px;
  background:#fff;
  border:var(--line);
  border-radius:999px;
  font-size:16px;
  font-weight:700;
  white-space:nowrap;
  text-decoration:none;
}
.jumpbar a:hover,.jumpbar a.on{background:var(--blue)}

/* 首屏 */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:calc(100svh - 130px);
  padding:42px 18px 52px;
  background:var(--blue);
  border-bottom:var(--line);
  overflow:hidden;
}
.badge{
  margin:0 0 22px;
  width:max-content;
  max-width:100%;
  padding:8px 14px;
  background:var(--red);
  border:var(--line);
  border-radius:10px;
  box-shadow:4px 4px 0 #000;
  font-weight:700;
  font-size:16px;
  line-height:1.35;
  will-change:transform;
}
.badge span{display:inline-block;animation:bob 3.6s ease-in-out infinite alternate}
@keyframes bob{
  from{transform:rotate(-2deg) translateY(0)}
  to{transform:rotate(1.5deg) translateY(-6px)}
}
.hero h1{
  max-width:22ch;
  margin:0 0 20px;
  font-family:"Playfair Display SC",Georgia,"Songti SC",serif;
  font-size:clamp(2.25rem,9.4vw,4.8rem);
  line-height:1.05;
  letter-spacing:-.01em;
  overflow-wrap:break-word;
}
.lede{
  max-width:48ch;
  margin:0;
  padding:14px 16px;
  background:#fff;
  border:var(--line);
  border-radius:var(--r);
  box-shadow:var(--pop);
  font-size:17px;
  line-height:1.7;
}

/* 主体 */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  max-width:1180px;
  margin:0 auto;
  padding:26px 16px 40px;
}
section.doc{min-width:0}
section.doc article{
  margin-bottom:22px;
  padding:22px 18px;
  background:#fff;
  border:var(--line);
  border-radius:var(--r);
  box-shadow:var(--pop);
  scroll-margin-top:134px;
}
html.js section.doc article{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease,transform .5s ease;
}
html.js section.doc article.in{opacity:1;transform:none}
section.doc article>*:first-child{margin-top:0}
section h2{
  margin:0 0 .55em;
  font-family:"Playfair Display SC",Georgia,"Songti SC",serif;
  font-size:clamp(1.4rem,4.6vw,1.85rem);
  line-height:1.28;
  overflow-wrap:break-word;
}
section h3{margin:1.3em 0 .4em;font-size:1.15rem;line-height:1.4}
section p{margin:0 0 1em;line-height:1.8;overflow-wrap:break-word}
section ul,section ol{padding-left:1.3em;line-height:1.78}
section li{margin:.3em 0}
section a{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:var(--red);
  text-underline-offset:3px;
}
section a:hover{background:var(--blue)}
section img{margin:16px 0;border:var(--line);border-radius:12px;box-shadow:5px 5px 0 #000}
section blockquote{
  margin:16px 0;
  padding:12px 16px;
  background:#fff4f4;
  border-left:8px solid var(--red);
}

/* 侧栏 */
.rail{
  align-self:start;
  padding:16px;
  background:#fff;
  border:var(--line);
  border-radius:var(--r);
  box-shadow:6px 6px 0 var(--red);
}
.rail small{
  display:inline-block;
  padding:4px 9px;
  background:var(--blue);
  border:2px solid #000;
  border-radius:8px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.12em;
}
.rail h2{
  margin:10px 0 14px;
  font-family:"Playfair Display SC",Georgia,"Songti SC",serif;
  font-size:1.25rem;
  line-height:1.3;
}
.rail ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rail a{
  display:block;
  min-height:42px;
  padding:9px 11px;
  background:#fff;
  border:2px solid #000;
  border-radius:10px;
  box-shadow:3px 3px 0 #000;
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  text-decoration:none;
}
.rail a:hover{background:var(--blue)}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 16px;
  background:#000;
  color:#fff;
  border-top:var(--line);
}
.foot address{font-style:normal;font-size:16px}
.foot ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.foot a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 12px;
  background:#fff;
  color:#000;
  border:2px solid #000;
  border-radius:10px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
}
.foot a:hover{background:var(--red)}

@media (min-width:900px){
  main{grid-template-columns:minmax(0,1fr) 292px;padding:32px 20px 56px;align-items:start}
  .rail{position:sticky;top:142px}
  .hero{padding:56px 32px 64px}
  section.doc article{padding:28px 26px}
  .foot{padding:20px 24px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js section.doc article{opacity:1;transform:none;transition:none}
  .badge span{animation:none}
}
</style>

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