@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
:root{
  --ink:#1F1B24;
  --ink-2:#282231;
  --ink-3:#332B3E;
  --flame:#E4572E;
  --flame-soft:#F0805C;
  --cream:#F3E9DC;
  --dim:rgba(243,233,220,.66);
  --line:rgba(243,233,220,.14);
  --r:18px;
  --pad:clamp(16px,4vw,44px);
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--ink)}
body{
  margin:0;
  background:var(--ink);
  color:var(--cream);
  font-family:"DM Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:2px solid var(--flame);outline-offset:3px;border-radius:6px}
[id]{scroll-margin-top:132px}

/* ---------- 顶部两行 ---------- */
.topbar{
  position:sticky;top:0;z-index:60;
  background:rgba(31,27,36,.94);
  backdrop-filter:blur(14px) saturate(1.2);
  border-bottom:1px solid var(--line);
  padding:0 var(--pad);
}
.brow{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:10px 0 6px;
}
.logo{
  display:inline-flex;align-items:center;gap:10px;
  min-height:44px;font-weight:700;font-size:17px;letter-spacing:-.015em;
}
.mark-img{width:26px;height:26px;border-radius:9px;object-fit:cover}
.mark{
  width:26px;height:26px;border-radius:9px;
  background:linear-gradient(140deg,var(--flame),var(--flame-soft));
  box-shadow:0 0 0 1px rgba(0,0,0,.25) inset;
}
.logo-text{max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.call{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:0 20px;border-radius:999px;
  background:var(--flame);color:#1A1620;font-weight:700;font-size:16px;
}
.call:hover{background:var(--flame-soft)}
.topbar nav{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.topbar nav::-webkit-scrollbar{display:none}
.topbar ul{
  display:flex;align-items:center;gap:8px;
  list-style:none;margin:0;padding:0 0 10px;min-height:46px;
}
.topbar ul a{
  display:inline-flex;align-items:center;min-height:40px;padding:0 16px;
  border-radius:999px;background:var(--ink-2);color:var(--dim);
  font-size:16px;white-space:nowrap;
  transition:background .25s ease,color .25s ease,transform .25s ease;
}
.topbar ul a:hover,.topbar ul a:focus-visible{background:var(--flame);color:#1A1620;transform:translateY(-1px)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:70vh;
  padding:48px var(--pad) clamp(40px,7vw,80px);
}
.stage{position:absolute;inset:-14% 0;z-index:-1;margin:0;pointer-events:none}
.layer{position:absolute;inset:0;will-change:transform}
.l1{background:linear-gradient(180deg,#2B2333 0%,#1F1B24 78%)}
.l2{transform:translate3d(0,calc(var(--sy,0px)*.16),0)}
.l2 .hero-img,.l2 img{width:100%;height:100%;object-fit:cover;opacity:.6;filter:saturate(.85) contrast(1.06)}
.l3{
  background-image:radial-gradient(rgba(243,233,220,.18) 1px,transparent 1px);
  background-size:22px 22px;opacity:.42;
  transform:translate3d(0,calc(var(--sy,0px)*.3),0);
}
.l4{
  background:
    radial-gradient(90% 60% at 12% 100%,rgba(228,87,46,.38) 0%,rgba(228,87,46,0) 62%),
    linear-gradient(180deg,rgba(31,27,36,.15) 0%,rgba(31,27,36,.92) 92%);
  transform:translate3d(0,calc(var(--sy,0px)*.08),0);
}
.hero-copy{position:relative;max-width:1000px}
.hero h1{
  margin:0;font-size:clamp(32px,7.4vw,68px);line-height:1.06;
  letter-spacing:-.035em;font-weight:700;text-wrap:balance;
  text-shadow:0 2px 30px rgba(0,0,0,.4);
}

/* ---------- 正文区 ---------- */
.chapter{
  display:grid;grid-template-columns:230px minmax(0,1fr);
  gap:clamp(20px,4vw,56px);
  max-width:1180px;margin:0 auto;
  padding:clamp(30px,6vw,76px) var(--pad) clamp(30px,5vw,60px);
  align-items:start;
}
.side{
  position:sticky;top:132px;
  background:var(--ink-2);border-radius:var(--r);
  padding:18px 18px 14px;
}
.side-h{
  margin:0 0 10px;font-size:16px;font-weight:700;letter-spacing:.16em;
  color:var(--flame);
}
.side-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.side-list a{
  display:flex;align-items:center;min-height:40px;padding:4px 0;
  font-size:16px;color:var(--dim);border-bottom:1px solid rgba(243,233,220,.07);
}
.side-list li:last-child a{border-bottom:0}
.side-list a:hover{color:var(--cream)}

.prose{min-width:0;counter-reset:sec}
.chapter-h{
  margin:0;font-size:clamp(23px,3.2vw,36px);line-height:1.24;
  letter-spacing:-.025em;font-weight:700;
}
.subtitle{
  margin:12px 0 clamp(24px,4vw,40px);max-width:54ch;
  color:var(--dim);font-size:17px;
}
.prose h2{
  margin:0 0 14px;font-size:clamp(22px,2.8vw,30px);
  line-height:1.26;letter-spacing:-.02em;font-weight:700;
}
.prose h3{margin:28px 0 10px;font-size:20px;line-height:1.35;letter-spacing:-.01em}
.prose p{margin:0 0 16px;max-width:66ch}
.prose ul,.prose ol{margin:0 0 18px;padding-left:1.25em;max-width:64ch}
.prose li{margin:0 0 8px}
.prose ul li::marker{color:var(--flame)}
.prose ol li::marker{color:var(--flame);font-weight:700}
.prose strong{color:#FFF6EE;font-weight:700}
.prose a{color:var(--flame-soft);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--cream)}
.prose figure{margin:26px 0}
.prose figure img{border-radius:var(--r);width:100%}
.prose figcaption{margin-top:8px;font-size:16px;color:var(--dim)}
.prose blockquote{
  margin:26px 0;padding:20px 24px;background:var(--ink-2);
  border-radius:var(--r);color:#F7EEE4;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose hr{border:0;border-top:1px solid var(--line);margin:32px 0}

.prose > section{
  padding:clamp(28px,4.4vw,46px) 0;
  border-top:1px solid var(--line);
}
.prose > section:first-child{border-top:0;padding-top:0}
.prose > section > h2::before{
  content:"0" counter(sec);
  counter-increment:sec;
  display:block;margin-bottom:10px;
  font-size:14px;font-weight:700;letter-spacing:.24em;color:var(--flame);
}
.prose > section > figure,
.prose > section > aside{
  background:var(--ink-2);border-radius:var(--r);padding:18px 20px;margin:24px 0;
}
.prose > section > figure img{border-radius:12px}
.prose > section > aside p:last-child{margin-bottom:0}

/* 入场：仅 JS 生效时启用 */
.js .prose > section{
  opacity:0;transform:translateY(26px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.72,.2,1);
}
.js .prose > section.in{opacity:1;transform:none}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"b l" "c t";
  align-items:end;gap:22px clamp(20px,4vw,60px);
  margin-top:clamp(30px,5vw,60px);
  padding:clamp(34px,6vw,72px) var(--pad) 34px;
  background:var(--ink-2);
  border-top:1px solid var(--line);
}
.fy-brand{
  grid-area:b;margin:0;
  font-size:clamp(30px,8vw,66px);line-height:.98;
  letter-spacing:-.04em;font-weight:700;color:var(--cream);
}
.fy-links{
  grid-area:l;margin:0;
  display:flex;flex-wrap:wrap;gap:2px 18px;justify-content:flex-end;
}
.fy-links a{display:inline-flex;align-items:center;min-height:42px;color:var(--dim);font-size:16px}
.fy-links a:hover{color:var(--flame-soft)}
.fy-copy{grid-area:c;color:rgba(243,233,220,.5);font-size:15px}
.fy-top{grid-area:t;text-align:right;font-size:15px}
.fy-top a{display:inline-flex;align-items:center;min-height:42px;color:var(--dim)}
.fy-top a:hover{color:var(--flame-soft)}

/* ---------- 动效 ---------- */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .hero-copy > h1{animation:rise .85s cubic-bezier(.2,.72,.2,1) both;animation-delay:.05s}
  .topbar ul li{animation:drop .5s ease both}
  .topbar ul li:nth-child(2){animation-delay:.05s}
  .topbar ul li:nth-child(3){animation-delay:.1s}
  .topbar ul li:nth-child(4){animation-delay:.15s}
  .topbar ul li:nth-child(5){animation-delay:.2s}
  .topbar ul li:nth-child(6){animation-delay:.25s}
  .topbar ul li:nth-child(7){animation-delay:.3s}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .layer{will-change:auto}
}

/* ---------- 窄屏 ---------- */
@media (max-width:880px){
  .chapter{grid-template-columns:1fr;gap:26px}
  .side{position:static;padding:16px}
  .side-list{flex-direction:row;flex-wrap:wrap;gap:6px}
  .side-list a{
    min-height:40px;padding:0 14px;border:0;border-radius:999px;
    background:rgba(243,233,220,.07);
  }
  .side-list li a{border-bottom:0}
  .foot{grid-template-columns:1fr;grid-template-areas:"b" "l" "c" "t";align-items:start}
  .fy-links{justify-content:flex-start}
  .fy-top{text-align:left}
  .hero{min-height:62vh;padding-top:34px}
}
@media (max-width:520px){
  .hero h1{font-size:clamp(29px,9vw,40px)}
  .logo-text{font-size:16px}
}

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