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

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#fffaf1;
  --line:3px solid #000;
  --pop:5px 5px 0 #000;
  --face:Cabin,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  padding:56px 0 0 250px;
  background:var(--paper);
  color:var(--ink);
  font:17px/1.65 var(--face);
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{text-wrap:balance}
section[id]{scroll-margin-top:78px}

/* 顶部细条 */
.topbar{
  position:fixed;top:0;left:0;right:0;height:56px;
  display:flex;align-items:center;gap:14px;padding:0 16px;
  background:var(--blue);border-bottom:var(--line);z-index:60;
}
.topbar .mark{
  display:block;flex:0 0 auto;width:38px;height:38px;
  border:var(--line);background:var(--red);box-shadow:3px 3px 0 #000;overflow:hidden;
}
.topbar .mark img{width:100%;height:100%;object-fit:cover}
.topbar .brand{font-weight:700;font-size:18px;letter-spacing:.03em}
.tape{margin-left:auto;width:130px;height:16px;border:var(--line);background:#fff}

/* 左侧竖排药丸导航 */
.rail{
  position:fixed;top:56px;left:0;bottom:0;width:250px;z-index:55;
  padding:16px 12px;background:var(--ink);border-right:var(--line);overflow-y:auto;
}
.rail ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.rail a{
  display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 12px;
  border:3px solid #fff;border-radius:999px;color:#fff;text-decoration:none;
  font-weight:700;font-size:16px;line-height:1.3;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease,border-color .16s ease;
}
.rail a:hover,.rail a:focus-visible{
  background:var(--red);color:#000;border-color:#000;
  box-shadow:4px 4px 0 var(--blue);transform:translate(-2px,-2px);
}
.n{
  font-family:"Amatic SC",var(--face);font-size:21px;font-weight:700;line-height:1;
  min-width:16px;text-align:center;
}

/* 首屏拼贴 */
.hero{
  position:relative;
  min-height:calc(100vh - 56px);min-height:calc(100svh - 56px);
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:32px;align-items:center;padding:56px 40px;
  background:#fff;border-bottom:var(--line);
}
.hero-copy{position:relative;min-width:0}
.badge{
  display:inline-block;margin-bottom:18px;padding:3px 14px;
  border:var(--line);border-radius:999px;background:var(--blue);
  box-shadow:4px 4px 0 #000;font-weight:700;font-size:16px;transform:rotate(-2deg);
}
.hero h1{
  margin:0;font-size:clamp(2.1rem,5.2vw,4.1rem);line-height:1.03;font-weight:700;
  letter-spacing:-.01em;text-shadow:5px 5px 0 rgba(255,82,82,.6);
}
.hero-desc{margin:22px 0 0;max-width:34ch;font-size:18px}
.hero-shots{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}
.hero-shots figure{
  margin:0;aspect-ratio:3/4;overflow:hidden;border:var(--line);
  background:var(--blue);box-shadow:8px 8px 0 #000;
}
.hero-shots figure img{width:100%;height:100%;object-fit:cover}
.shot-a{transform:rotate(-3.5deg) translateY(-16px)}
.shot-b{transform:rotate(2.5deg) translateY(22px);background:var(--red)}
.ph{display:block}
.ph::before{content:"";display:block;padding-top:133%}

/* 正文 + 右侧栏 */
.panel{
  display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:40px;align-items:start;
  max-width:1180px;margin:0 auto;padding:56px 40px 64px;
}
.prose{min-width:0}
.prose>section{padding-top:34px;border-top:var(--line);margin-top:34px}
.prose>section:first-child{padding-top:0;border-top:0;margin-top:0}
.prose h2{margin:0 0 14px;font-size:clamp(1.4rem,2.6vw,1.95rem);line-height:1.18;font-weight:700}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose h3{margin:26px 0 10px;font-size:1.2rem;line-height:1.3;font-weight:700}
.prose p{margin:0 0 16px}
.prose a{
  text-decoration:underline;text-decoration-thickness:3px;
  text-underline-offset:3px;text-decoration-color:var(--red);
}
.prose strong{background:#ffe27a;padding:0 2px}
.prose ul,.prose ol{margin:0 0 16px;padding-left:1.3em}
.prose li{margin:0 0 8px}
.prose figure{margin:24px 0;border:var(--line);border-radius:28px;overflow:hidden;background:#fff}
.prose figure img{width:100%}
.prose figcaption{padding:8px 14px;border-top:var(--line);background:var(--blue);font-size:16px;font-weight:600}
.prose blockquote{
  margin:24px 0;padding:14px 18px;border:var(--line);border-left-width:10px;
  border-radius:0 28px 28px 0;background:#fff;font-weight:600;
}
.prose table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px;display:block;overflow-x:auto}
.prose th,.prose td{border:2px solid #000;padding:8px 10px;text-align:left}
.prose th{background:var(--blue)}
.prose hr{border:0;border-top:var(--line);margin:26px 0}
.prose code{background:#eee;padding:1px 5px;font-size:16px}

.side{
  position:sticky;top:78px;padding:16px;
  border:var(--line);border-radius:28px;background:#fff;
}
small{
  display:inline-block;padding:1px 10px;border:2px solid #000;border-radius:999px;
  background:var(--red);color:#000;font:700 16px/1.4 var(--face);letter-spacing:.05em;
}
.side h2{margin:10px 0 12px;font-size:1.25rem;line-height:1.2}
.toc{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.toc a{
  display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 10px;
  border:3px solid #000;border-radius:999px;background:#fff;text-decoration:none;
  font-weight:600;font-size:16px;
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease;
}
.toc a:hover,.toc a:focus-visible{background:var(--blue);box-shadow:3px 3px 0 #000;transform:translate(-1px,-1px)}
.totop{
  display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:14px;
  padding:4px 12px;border:var(--line);border-radius:999px;background:var(--ink);
  color:#fff;text-decoration:none;font-weight:700;font-size:16px;
}
.totop:hover{background:var(--red);color:#000}

/* 页脚 */
.foot{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  background:var(--ink);color:#fff;border-top:6px solid #000;
}
.foot-cta{
  grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:16px 28px;align-items:center;
  padding:28px 40px;background:var(--blue);color:#000;border-bottom:var(--line);
}
.foot-cta h2{margin:8px 0 0;font-size:clamp(1.4rem,2.6vw,1.9rem);line-height:1.15}
.sub{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.sub input{
  min-height:46px;padding:8px 16px;border:var(--line);border-radius:999px;
  background:#fff;font:16px/1.4 var(--face);color:#000;min-width:150px;
}
.sub button{
  min-height:46px;padding:8px 26px;border:var(--line);border-radius:999px;
  background:var(--red);color:#000;font:700 17px/1.2 var(--face);cursor:pointer;
  box-shadow:4px 4px 0 #000;
  transition:transform .14s ease,box-shadow .14s ease;
}
.sub button:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #000}
.sub-msg{flex-basis:100%;font-weight:700;font-size:16px;min-height:1.2em}

.foot>section:not(.foot-cta){padding:26px 22px;border-right:3px solid #3a3a3a;min-width:0}
.foot>section:last-of-type{border-right:0}
.foot-col h3{margin:10px 0 12px;font-size:1.05rem;line-height:1.3}
.foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.foot-col ul a{
  display:flex;align-items:center;min-height:40px;color:#fff;text-decoration:none;
  font-weight:600;font-size:16px;
}
.foot-col ul a:hover{color:var(--blue);text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.foot-brand{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.seal{
  display:block;width:56px;height:56px;border:var(--line);background:var(--red);
  box-shadow:4px 4px 0 #fff;overflow:hidden;
}
.seal img{width:100%;height:100%;object-fit:cover}
.fbrand{font-weight:700;font-size:18px;line-height:1.4}
.kw{font-size:16px;line-height:1.6;margin:0;color:#fff}
.foot-base{
  grid-column:1/-1;padding:16px 20px;border-top:3px solid #3a3a3a;
  background:#000;text-align:center;font-size:16px;
}

/* 动效 */
html.js .reveal{opacity:0;transform:translateY(16px)}
html.js .reveal.in{
  opacity:1;transform:none;
  transition:opacity .42s ease,transform .42s cubic-bezier(.2,.8,.2,1);
}

@media (max-width:1080px){
  body{padding-left:210px}
  .rail{width:210px}
  .panel{grid-template-columns:minmax(0,1fr) 258px;gap:28px;padding:44px 24px 56px}
  .hero{padding:48px 24px}
}

@media (max-width:900px){
  body{padding-left:0}
  .rail{
    position:sticky;top:56px;bottom:auto;left:auto;width:auto;height:auto;
    padding:9px 10px;border-right:0;border-bottom:var(--line);
    overflow-x:auto;overflow-y:visible;
  }
  .rail ol{flex-direction:row;gap:8px}
  .rail a{white-space:nowrap;min-height:44px}
  .hero{grid-template-columns:1fr;min-height:0;padding:34px 20px 46px;gap:28px}
  .hero-desc{max-width:none}
  .hero-shots{max-width:440px;gap:10px}
  .shot-a{transform:rotate(-3deg) translateY(-8px)}
  .shot-b{transform:rotate(2deg) translateY(12px)}
  .panel{grid-template-columns:1fr;padding:36px 20px 48px;gap:30px}
  .side{position:static}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-cta{padding:24px 20px;grid-template-columns:1fr}
  .foot>section:not(.foot-cta){padding:20px 18px}
  .tape{display:none}
}

@media (max-width:520px){
  .foot{grid-template-columns:1fr}
  .foot>section:not(.foot-cta){border-right:0;border-bottom:3px solid #3a3a3a}
  .hero h1{font-size:clamp(1.95rem,9vw,2.6rem)}
  .sub input{flex:1 1 100%;min-width:0}
  .sub button{flex:1 1 100%}
}

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

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