:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#fffdf6;
  --line:3px solid #000;
  --sh:6px 6px 0 #000;
}
*,*::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:'Crimson Pro','Cormorant Garamond',Georgia,'Songti SC','SimSun',serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}
img{max-width:100%}

/* ---------- 顶部导航：品牌居中，菜单分列两侧 ---------- */
.topbar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  background:var(--blue);
  border-bottom:4px solid #000;
}
.nav-list{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.nav-left{justify-content:flex-start}
.nav-right{justify-content:flex-end}
.nav-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  color:#000;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  border:3px solid transparent;
}
.nav-list a:hover,.nav-list a:focus-visible{background:#fff;border-color:#000;box-shadow:3px 3px 0 #000}
.brand{
  font-family:Cinzel,'Cormorant Garamond',Georgia,serif;
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:.09em;
  color:#000;
  text-decoration:none;
  padding:8px 14px;
  background:#fff;
  border:var(--line);
  box-shadow:4px 4px 0 #000;
  white-space:nowrap;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:26px;
  padding:26px 22px 52px;
  background:var(--blue);
  border-bottom:6px solid #000;
  overflow:hidden;
}
.hero-art{position:relative;height:60vh;min-height:320px}
.hero-badge{
  position:absolute;
  left:0;
  top:-8px;
  z-index:4;
  background:var(--red);
  color:#000;
  border:var(--line);
  box-shadow:4px 4px 0 #000;
  padding:6px 12px;
  font-weight:700;
  font-size:16px;
  transform:rotate(-4deg);
}
.art{
  margin:0;
  position:absolute;
  border:4px solid #000;
  box-shadow:11px 11px 0 #000;
  background:#fff;
  overflow:hidden;
  transition:transform .7s ease;
}
.art img{display:block;width:100%;height:100%;object-fit:cover}
.art-a{left:0;top:7%;width:62%;height:68%;transform:rotate(-3deg);z-index:1}
.art-b{right:0;bottom:0;width:56%;height:50%;transform:rotate(4deg);z-index:2;background:var(--red)}
.hero.flip .art-a{transform:rotate(1deg) translateY(-10px)}
.hero.flip .art-b{transform:rotate(-2deg) translateY(8px)}
.hero-copy{text-align:right}
.hero-copy h1{
  font-family:Cinzel,'Cormorant Garamond',Georgia,serif;
  font-size:clamp(2rem,5.2vw,3.5rem);
  line-height:1.15;
  letter-spacing:.01em;
  margin:0 0 14px;
}
.lede{
  margin:0 0 0 auto;
  max-width:34ch;
  font-size:17px;
  background:#fff;
  border:var(--line);
  box-shadow:var(--sh);
  padding:12px 14px;
  text-align:left;
}

/* ---------- 二级粘性锚点条 ---------- */
.anchors{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 12px;
  background:#000;
  border-bottom:4px solid #000;
  overflow-x:auto;
}
.anchors-label{color:#fff;font-weight:700;white-space:nowrap;letter-spacing:.2em}
.anchor-list{display:flex;gap:2px;list-style:none;margin:0;padding:0;white-space:nowrap}
.anchor-list a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 11px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
}
.anchor-list a:hover,.anchor-list a:focus-visible,.anchor-list a.on{background:var(--red);color:#000}

/* ---------- 主体 ---------- */
main{max-width:1180px;margin:0 auto;padding:38px 18px 64px}
.deck{display:grid;grid-template-columns:250px 1fr;gap:34px;align-items:start}
.side{
  position:sticky;
  top:70px;
  border:var(--line);
  box-shadow:7px 7px 0 var(--blue);
  background:#fff;
  padding:16px 14px;
}
.side h2{font-family:Cinzel,Georgia,serif;font-size:1.1rem;margin:0 0 6px}
.side hr{border-top:3px solid #000;margin:0 0 10px}
.side-list{list-style:none;margin:0;padding:0}
.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px;
  color:#000;
  text-decoration:none;
  font-weight:600;
  border-bottom:2px solid #000;
}
.side-list li:last-child a{border-bottom:0}
.side-list a:hover{background:var(--red)}

.prose{min-width:0}
.prose article{scroll-margin-top:84px;padding:4px 0 26px;border-bottom:3px solid #000}
.prose article:last-child{border-bottom:0;padding-bottom:4px}
.prose article:first-child h2{margin-top:0}
.prose h2{
  font-family:Cinzel,'Cormorant Garamond',Georgia,serif;
  font-size:clamp(1.4rem,3vw,2rem);
  line-height:1.3;
  margin:28px 0 10px;
}
.prose h3{font-size:1.15rem;line-height:1.4;margin:22px 0 8px}
hr{border:0;border-top:4px solid #000;height:0;margin:0 0 18px}
.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.4em}
.prose li{margin:0 0 6px}
.prose a{
  color:#000;
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:var(--red);
  text-underline-offset:3px;
  font-weight:600;
}
.prose a:hover{background:var(--red);text-decoration-color:#000}
.prose figure{margin:0 0 18px}
.prose figure img{border:3px solid #000;box-shadow:var(--sh);display:block}
.prose blockquote{
  margin:0 0 18px;
  padding:14px 16px;
  background:#fff;
  border:3px solid #000;
  border-left:10px solid var(--blue);
  box-shadow:var(--sh);
}
.prose blockquote p:last-child{margin:0}
.prose table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.prose th,.prose td{border:2px solid #000;padding:8px 10px;text-align:left}
.prose th{background:var(--blue)}
.prose code{
  font-family:ui-monospace,'Courier New',monospace;
  font-size:15px;
  background:#fff;
  border:2px solid #000;
  padding:1px 5px;
}
.prose pre{
  background:#000;
  color:#fff;
  border:3px solid #000;
  box-shadow:var(--sh);
  padding:14px;
  overflow-x:auto;
  margin:0 0 18px;
}
.prose pre code{background:none;border:0;color:inherit;padding:0}

/* ---------- 页脚 ---------- */
footer{border-top:6px solid #000;background:#000;color:#fff}
.foot-cta{background:var(--red);color:#000;padding:44px 22px;border-bottom:5px solid #000}
.foot-cta h2{
  font-family:Cinzel,Georgia,serif;
  font-size:clamp(1.6rem,4vw,2.4rem);
  margin:0 0 8px;
  line-height:1.2;
}
.foot-cta hr{border-top:4px solid #000}
.cta-link{
  display:inline-flex;
  align-items:center;
  min-height:54px;
  padding:10px 24px;
  background:#000;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:1.05rem;
  border:3px solid #000;
  box-shadow:6px 6px 0 #000;
}
.cta-link:hover{background:#fff;color:#000}
.foot-mid{max-width:1180px;margin:0 auto;padding:34px 22px 26px}
.foot-mid h2{font-family:Cinzel,Georgia,serif;font-size:1.2rem;margin:0 0 8px;color:var(--blue)}
.foot-mid hr{border-top:3px solid var(--blue)}
.foot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.foot-col h3{font-size:1rem;margin:0 0 6px;color:var(--blue);letter-spacing:.12em}
.foot-col ul{list-style:none;margin:0;padding:0}
.foot-col a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:#fff;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.foot-col a:hover,.foot-col a:focus-visible{color:var(--blue);border-bottom-color:var(--blue)}
.foot-brand{margin:0}
.foot-brand a{font-family:Cinzel,Georgia,serif;font-size:1.2rem;letter-spacing:.08em}
.foot-bottom{
  max-width:1180px;
  margin:0 auto;
  padding:14px 22px 30px;
  border-top:3px solid var(--blue);
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:space-between;
  align-items:center;
}
.foot-bottom .copy{margin:0}
.foot-bottom a{
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  min-height:42px;
  text-decoration:none;
  font-weight:700;
}
.foot-bottom a:hover{color:#fff}

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

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .deck{grid-template-columns:1fr;gap:22px}
  .side{position:static;box-shadow:5px 5px 0 var(--blue)}
  .side-list{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}
  .side-list a{border-bottom:2px solid #000}
}
@media (max-width:820px){
  .topbar{grid-template-columns:1fr 1fr;padding:10px 12px}
  .brand{grid-column:1 / -1;order:-1;justify-self:center;margin-bottom:6px;font-size:1.15rem}
  .nav-list a{font-size:16px;padding:6px 8px}
  .hero{
    grid-template-columns:1fr;
    align-content:start;
    gap:16px;
    min-height:100vh;
    padding:18px 16px 44px;
  }
  .hero-art{height:40vh;min-height:210px}
  .art-a{width:66%;height:64%}
  .art-b{width:58%;height:48%}
  .hero-copy h1{font-size:clamp(1.9rem,8vw,2.6rem)}
  .lede{max-width:none}
  main{padding:26px 16px 48px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1 / -1}
  .foot-cta{padding:32px 16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .art{transition:none}
}

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