@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root{
  --sky:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#e8f4ff;
  --white:#fff;
  --bar:38px;
  --rail:272px;
  --edge:3px solid var(--ink);
  --shadow:6px 6px 0 var(--ink);
}

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

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

body{
  margin:0;
  padding-top:var(--bar);
  background:var(--paper);
  color:var(--ink);
  font-family:'Atkinson Hyperlegible','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

p{margin:0 0 1em}
a{color:var(--ink)}
img{max-width:100%}
h1,h2,h3{line-height:1.2}

/* 顶部细条 */
.ticker{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--bar);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ink);
  color:var(--white);
  z-index:80;
  border-bottom:var(--edge);
  overflow:hidden;
}
.ticker p{
  margin:0;
  font-size:16px;
  letter-spacing:.04em;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  padding:0 16px;
}

/* 左侧固定栏 */
.rail{
  position:fixed;
  top:var(--bar);
  left:0;
  bottom:0;
  width:var(--rail);
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:22px 18px 22px;
  background:var(--white);
  border-right:var(--edge);
  overflow-y:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  padding:10px 14px;
  text-decoration:none;
  font-family:'Crimson Pro',Georgia,serif;
  font-weight:700;
  font-size:23px;
  letter-spacing:.02em;
  background:var(--sky);
  border:var(--edge);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.brand:hover,.brand:focus-visible{background:var(--red);color:var(--white)}
.brand-dot{
  width:14px;height:14px;
  flex:0 0 14px;
  background:var(--red);
  border:3px solid var(--ink);
}
.brand:hover .brand-dot,.brand:focus-visible .brand-dot{background:var(--white)}

.menu-box summary{
  list-style:none;
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 14px;
  font-weight:700;
  font-size:16px;
  letter-spacing:.06em;
  color:var(--white);
  background:var(--red);
  border:var(--edge);
  border-radius:18px;
  box-shadow:5px 5px 0 var(--ink);
}
.menu-box summary::-webkit-details-marker{display:none}
.menu-box summary::after{content:"+";font-weight:700}
.menu-box[open] summary::after{content:"−"}
.menu-box summary:focus-visible{outline:3px dashed var(--ink);outline-offset:3px}

.rail-h{
  margin:18px 0 10px;
  font-family:'Crimson Pro',Georgia,serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
}
.rail-h span{
  display:inline-block;
  padding:2px 10px;
  background:var(--white);
  border:var(--edge);
  border-bottom:6px solid var(--red);
  border-radius:18px;
}

.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  background:var(--white);
  border:var(--edge);
  border-bottom:7px solid var(--red);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
  transition:transform .12s ease, background .12s ease;
}
.menu a:hover,.menu a:focus-visible{
  background:var(--sky);
  transform:translate(-2px,-2px);
}

.rail-upto{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 12px;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  background:var(--white);
  border:var(--edge);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
}
.rail-upto:hover,.rail-upto:focus-visible{background:var(--sky)}

/* 主区 */
main{margin-left:var(--rail)}
.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 24px 72px;
}

.hero{
  position:relative;
  min-height:calc(100vh - var(--bar) - 32px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:32px 0 62px;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 48px),0 100%);
  border-bottom:var(--edge);
}

.hero-ghost{
  position:absolute;
  right:-10px;
  bottom:44px;
  margin:0;
  font-family:'Crimson Pro',Georgia,serif;
  font-weight:700;
  font-size:clamp(96px,17vw,236px);
  line-height:.78;
  letter-spacing:-.02em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:3px var(--ink);
  opacity:.18;
  pointer-events:none;
}

.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:28px;
  align-items:end;
}

.hero-media{
  position:relative;
  margin:0;
  height:clamp(220px,42vh,380px);
  background:var(--sky);
  border:var(--edge);
  border-radius:18px;
  box-shadow:9px 9px 0 var(--ink);
  overflow:hidden;
}
.hero-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .9s ease;
}
.hero-media img.on{opacity:1}

.hero-copy{text-align:right}
.eyebrow{
  display:inline-block;
  margin:0 0 14px;
  padding:4px 14px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.1em;
  color:var(--white);
  background:var(--red);
  border:var(--edge);
  border-radius:999px;
  box-shadow:4px 4px 0 var(--ink);
}
.hero-copy h1{
  margin:0 0 14px;
  font-family:'Crimson Pro',Georgia,serif;
  font-weight:700;
  font-size:clamp(34px,4.6vw,58px);
  letter-spacing:-.01em;
}
.lede{
  margin:0 0 0 auto;
  max-width:44ch;
  font-size:17px;
}

/* 正文 */
.prose{padding-top:52px}

.prose > article{
  padding:30px 0 40px;
  border-bottom:var(--edge);
  scroll-margin-top:24px;
}
.prose > article:last-child{border-bottom:0;padding-bottom:12px}

.prose h2{
  display:inline-block;
  margin:0 0 18px;
  padding:8px 18px;
  font-family:'Crimson Pro',Georgia,serif;
  font-size:clamp(25px,3vw,33px);
  background:var(--sky);
  border:var(--edge);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.prose h2 span,.prose h3 span{display:inline-block}

.prose h3{
  margin:1.5em 0 .5em;
  font-size:21px;
  font-weight:700;
}

.prose p{font-size:17px}

.prose ul,.prose ol{
  margin:0 0 1.1em;
  padding-left:1.4em;
}
.prose li{margin:0 0 .45em}

.prose a{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:var(--red);
  text-underline-offset:3px;
}
.prose a:hover{background:var(--sky)}

.prose blockquote{
  margin:0 0 1.2em;
  padding:14px 20px;
  background:var(--white);
  border:var(--edge);
  border-left:10px solid var(--red);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.prose blockquote p:last-child{margin-bottom:0}

.prose img{
  height:auto;
  margin:6px 0 1.2em;
  border:var(--edge);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.prose table{
  width:100%;
  margin:0 0 1.2em;
  border-collapse:collapse;
  border:var(--edge);
  background:var(--white);
  font-size:16px;
}
.prose th,.prose td{
  padding:10px 12px;
  border:2px solid var(--ink);
  text-align:left;
  vertical-align:top;
}
.prose th{background:var(--sky)}
.prose table caption{text-align:left;padding:0 0 6px;font-weight:700}

.prose figure{margin:0 0 1.2em}
.prose figcaption{font-size:16px;margin-top:6px}
.prose hr{
  height:3px;
  margin:1.6em 0;
  border:0;
  background:var(--ink);
}

/* 页脚 */
.foot{
  margin-left:var(--rail);
  background:var(--white);
  border-top:var(--edge);
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  max-width:1120px;
  margin:0 auto;
  padding:38px 24px 26px;
}
.foot dl{margin:0}
.foot-h{
  margin:0 0 12px;
  font-family:'Crimson Pro',Georgia,serif;
  font-size:17px;
  letter-spacing:.12em;
}
.foot-h span{
  display:inline-block;
  padding:2px 10px;
  background:var(--sky);
  border:var(--edge);
  border-radius:18px;
}
.foot dd{
  margin:0 0 4px;
  font-size:16px;
}
.foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 0;
  text-decoration:none;
  font-weight:700;
  border-bottom:3px solid transparent;
}
.foot dd a:hover,.foot dd a:focus-visible{border-bottom-color:var(--red)}
.muted{color:#26404d}

.foot-base{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  max-width:1120px;
  margin:0 auto;
  padding:12px 24px 24px;
  border-top:var(--edge);
}
.foot-base p{margin:0;font-size:16px}
.foot-base a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 12px;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  background:var(--white);
  border:var(--edge);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
}
.foot-base a:hover,.foot-base a:focus-visible{background:var(--red);color:var(--white)}

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

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

/* 移动端 */
@media (max-width:900px){
  :root{--rail:0px}
  .rail{
    position:static;
    width:auto;
    border-right:0;
    border-bottom:var(--edge);
    padding:14px 16px 18px;
    gap:12px;
    overflow:visible;
  }
  .brand{font-size:21px}
  .rail-h{margin:14px 0 8px}
  .menu{flex-direction:row;flex-wrap:wrap;gap:8px}
  .menu a{font-size:16px;padding:8px 12px;border-radius:16px;border-bottom-width:6px}
  .rail-upto{margin-top:4px}
  main,.foot{margin-left:0}
  .wrap{padding:0 16px 48px}
  .hero{
    min-height:0;
    padding:20px 0 50px;
    clip-path:polygon(0 0,100% 0,100% calc(100% - 28px),0 100%);
  }
  .hero-grid{grid-template-columns:1fr;gap:20px;align-items:start}
  .hero-copy{text-align:left;order:1}
  .hero-media{order:2;height:210px;box-shadow:6px 6px 0 var(--ink)}
  .lede{margin:0;max-width:none}
  .hero-ghost{font-size:clamp(70px,22vw,120px);bottom:auto;top:8px;opacity:.14}
  .prose{padding-top:34px}
  .prose > article{padding:24px 0 32px;scroll-margin-top:12px}
  .prose h2{font-size:24px;padding:7px 14px;box-shadow:5px 5px 0 var(--ink)}
  .foot-cols{grid-template-columns:1fr;gap:20px;padding:26px 16px 16px}
  .foot-base{padding:12px 16px 22px}
}

@media (max-width:420px){
  .ticker p{font-size:15px}
  .brand{font-size:19px}
}

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