:root{
  --coral:#FF6B4A;
  --gold:#FFC145;
  --ink:#26233A;
  --cream:#FFF7F0;
  --card:#FFFFFF;
  --card2:#FFE9C2;
  --r:28px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Nunito","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(38,35,58,.10) 1px,transparent 1px);
  background-size:24px 24px;
}
h1,h2,h3,.brand,.side-h,.foot-brand,.deck-menu a{
  font-family:"Fredoka","Nunito","PingFang SC","HIragino Sans GB","Microsoft YaHei",sans-serif;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.005em;
}
img{max-width:100%}

/* ---------- 头部 ---------- */
.top{position:sticky;top:0;z-index:60;background:var(--cream)}
.ticker{background:var(--ink);color:var(--gold);padding:6px 16px}
.ticker p{
  margin:0;
  font-size:16px;
  letter-spacing:.05em;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:7px clamp(12px,3vw,26px);
  background:var(--cream);
  border-bottom:2px solid var(--ink);
}
.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 10px;
  color:var(--ink);
  text-decoration:none;
  font-size:clamp(1.05rem,2.6vw,1.3rem);
  letter-spacing:.02em;
  position:relative;
  z-index:72;
}
.brand:hover{color:var(--coral)}
.brand-mark{width:26px;height:26px;border-radius:9px;object-fit:cover}
.bean{justify-self:end;display:flex;gap:6px;padding-right:4px}
.bean i{width:9px;height:9px;border-radius:50%;background:var(--gold)}
.bean i:nth-child(2){background:var(--coral)}
.bean i:nth-child(3){background:var(--ink)}

/* ---------- 汉堡遮罩 ---------- */
.deck{justify-self:start;position:relative;z-index:72}
.deck summary{
  width:46px;height:46px;
  display:grid;place-content:center;gap:5px;
  border-radius:15px;
  background:var(--ink);
  cursor:pointer;
  list-style:none;
}
.deck summary::-webkit-details-marker{display:none}
.deck summary .l{display:block;width:20px;height:3px;border-radius:2px;background:var(--gold);transition:transform .25s ease,opacity .2s ease}
.deck[open] summary .l:nth-child(1){transform:translateY(8px) rotate(45deg)}
.deck[open] summary .l:nth-child(2){opacity:0}
.deck[open] summary .l:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.deck-menu{
  position:fixed;
  inset:0;
  z-index:70;
  margin:0;
  padding:172px clamp(20px,7vw,90px) 60px;
  list-style:none;
  counter-reset:m;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-content:start;
  gap:2px 48px;
  background:var(--ink);
  color:var(--cream);
  overflow-y:auto;
}
.deck-menu li{counter-increment:m}
.deck-menu li:nth-child(odd) a{flex-direction:row-reverse;justify-content:flex-start;text-align:right}
.deck-menu a{
  display:flex;
  align-items:baseline;
  gap:14px;
  min-height:52px;
  padding:13px 4px;
  color:var(--cream);
  text-decoration:none;
  font-size:clamp(1.05rem,2.4vw,1.5rem);
  border-bottom:1px solid rgba(255,255,255,.16);
}
.deck-menu a::before{content:counter(m,decimal-leading-zero);font-size:.72rem;letter-spacing:.12em;color:var(--gold);font-family:"Nunito",sans-serif}
.deck-menu a:hover{color:var(--gold)}

/* ---------- 锚点条 ---------- */
.rail{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:8px clamp(12px,3vw,24px);
  background:var(--cream);
  border-bottom:2px solid var(--ink);
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{display:none}
.rail a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:var(--gold);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
}
.rail a:hover{background:var(--coral);color:#fff}

/* ---------- 主区 ---------- */
main{position:relative;z-index:1}
.hero{
  display:grid;
  grid-template-rows:auto 1fr;
  min-height:45vh;
  background:var(--gold);
  background-image:radial-gradient(rgba(38,35,58,.16) 1px,transparent 1px);
  background-size:20px 20px;
  border-bottom:3px solid var(--ink);
  overflow:hidden;
}
.hero-copy{padding:clamp(20px,4vw,40px) clamp(16px,5vw,64px) 14px;text-align:right}
.eyebrow{
  margin:0 0 6px;
  font-size:16px;
  letter-spacing:.26em;
  color:var(--ink);
  opacity:.72;
}
.hero h1{
  margin:0 0 18px;
  font-size:clamp(1.85rem,5.2vw,3.3rem);
  line-height:1.15;
}
.hero-media{position:relative;min-height:130px;overflow:hidden}
.hero-img{
  position:absolute;
  inset:-12% 0;
  width:100%;
  height:124%;
  object-fit:cover;
  will-change:transform;
}
.hero-orb{
  position:absolute;
  right:8%;
  bottom:-64px;
  z-index:2;
  width:min(200px,40vw);
  aspect-ratio:1;
  border-radius:50%;
  background:var(--coral);
  box-shadow:0 18px 42px rgba(38,35,58,.24);
  will-change:transform;
}
.wrap{max-width:1180px;margin:0 auto;padding:clamp(24px,4vw,44px) clamp(12px,3vw,28px) 64px}
.story{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:26px;align-items:start}

/* ---------- 正文 ---------- */
.prose > section{
  background:var(--card);
  border-radius:var(--r);
  padding:clamp(20px,3.4vw,40px);
  margin:0 0 26px;
  scroll-margin-top:168px;
}
.prose > section:nth-of-type(even){
  background:var(--card2);
  background-image:radial-gradient(rgba(38,35,58,.13) 1px,transparent 1px);
  background-size:18px 18px;
}
.prose > section:last-child{margin-bottom:0}
.prose h2{margin:0;font-size:clamp(1.35rem,3vw,1.9rem)}
.prose h3{margin:26px 0 6px;font-size:1.12rem;color:#C93F20}
.prose hr{
  border:0;
  height:4px;
  width:58px;
  margin:12px 0 18px;
  border-radius:3px;
  background:var(--coral);
}
.prose p{margin:12px 0}
.prose p:last-child{margin-bottom:0}
.prose a{color:#BE3A1C;text-decoration:underline;text-underline-offset:3px;word-break:break-word}
.prose ul,.prose ol{margin:12px 0;padding-left:22px}
.prose li{margin:7px 0}
.prose strong{color:var(--ink)}
.prose img{display:block;height:auto;margin:16px 0;border-radius:22px}
.prose blockquote{
  margin:18px 0;
  padding:12px 18px;
  border-left:5px solid var(--coral);
  background:rgba(255,255,255,.7);
  border-radius:0 18px 18px 0;
}

/* ---------- 分栏 ---------- */
.side{
  position:sticky;
  top:168px;
  padding:20px 18px 22px;
  border-radius:var(--r);
  background:var(--ink);
  color:var(--cream);
}
.side-h{margin:0;font-size:17px;letter-spacing:.2em}
.side hr{
  border:0;
  height:3px;
  width:36px;
  margin:9px 0 14px;
  border-radius:2px;
  background:var(--gold);
}
.side-list{list-style:none;margin:0;padding:0}
.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:7px 0;
  color:var(--cream);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px dashed rgba(255,255,255,.2);
}
.side-list li:last-child a{border-bottom:0}
.side-list a:hover{color:var(--gold)}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
  padding:20px clamp(14px,4vw,40px) 26px;
  background:var(--ink);
  color:var(--cream);
  border-top:6px solid var(--coral);
  font-size:16px;
}
.foot section{margin:0}
.foot p{margin:0}
.foot-brand{color:var(--gold);letter-spacing:.08em}
.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 8px;
  color:var(--gold);
  text-decoration:none;
}
.foot a:hover{color:#fff}

/* ---------- 动效 ---------- */
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hero-copy > *{animation:rise .7s cubic-bezier(.2,.7,.3,1) both}
.hero-copy .eyebrow{animation-delay:.04s}
.hero-copy h1{animation-delay:.12s}

html.js .prose > section{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.3,1);
}
html.js .prose > section.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:980px){
  .story{grid-template-columns:minmax(0,1fr)}
  .side{position:static;top:auto}
  .prose > section{scroll-margin-top:152px}
}
@media (max-width:860px){
  .deck-menu{
    grid-template-columns:1fr;
    padding:186px 22px 70px;
    gap:0;
  }
  .deck-menu li:nth-child(odd) a{flex-direction:row;justify-content:flex-start;text-align:left}
  .prose > section{border-radius:24px}
}
@media (max-width:560px){
  .foot{justify-content:center;text-align:center}
  .hero h1{margin-bottom:12px}
  .rail a{min-height:44px;padding:0 14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms !important;animation-delay:0s !important;transition-duration:.001ms !important}
  html.js .prose > section{opacity:1;transform:none}
  .hero-img,.hero-orb{transform:none !important}
}

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