@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --paper:#fdfbf7;
  --slab:#f5f5f5;
  --ink:#1a1a1a;
  --rule:#e0e0e0;
  --mute:#6f6b66;
  --head:'Outfit','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --read:'Work Sans','Songti SC','SimSun',Georgia,serif;
}

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

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

html.lock{overflow:hidden}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--read);
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:99;
  pointer-events:none;
  opacity:.05;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='150' height='150' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size:150px 150px;
}

a{color:var(--ink)}
img{max-width:100%;height:auto}

:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:2px;
}

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:80;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:0 14px;
  background:var(--paper);
  border-bottom:1px solid var(--rule);
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin:6px 0;
  border:1px solid var(--ink);
  border-radius:8px;
  text-decoration:none;
}
.mark svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}

.burger{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 14px;
  border:0;
  border-radius:10px;
  background:var(--slab);
  color:var(--ink);
  font-family:var(--head);
  font-size:16px;
  font-weight:500;
  cursor:pointer;
}
.burger .bars{display:flex;flex-direction:column;gap:4px;width:16px}
.burger .bars i{display:block;height:1.5px;background:var(--ink)}
.burger b{font-weight:500}

.rail{
  flex:0 0 100%;
  order:3;
  overflow-x:auto;
  border-top:1px solid var(--rule);
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{display:none}
.rail p{display:flex;margin:0;padding:0}
.rail a{
  display:inline-block;
  padding:12px 13px;
  color:var(--mute);
  font-family:var(--head);
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:2px solid transparent;
}
.rail a:hover,.rail a:focus-visible{color:var(--ink);border-bottom-color:var(--ink)}

/* ---------- 全屏菜单 ---------- */
.veil{
  position:fixed;
  inset:0;
  z-index:90;
  display:none;
  flex-direction:column;
  padding:20px 18px 34px;
  background:var(--paper);
  overflow:auto;
}
.veil.on{display:flex}
.veilTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--rule);
}
.veilBrand{
  margin:0;
  font-family:var(--head);
  font-size:16px;
  letter-spacing:.06em;
  color:var(--mute);
}
.shut{
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--ink);
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font-family:var(--head);
  font-size:16px;
  cursor:pointer;
}
.veilNav{margin-top:12px}
.veilNav p{display:grid;margin:0}
.veilNav a{
  display:block;
  padding:15px 2px;
  border-bottom:1px solid var(--rule);
  font-family:var(--head);
  font-size:20px;
  line-height:1.5;
  text-decoration:none;
}
.veilNav a:hover,.veilNav a:focus-visible{background:var(--slab)}

/* ---------- 首屏 ---------- */
.hero{
  display:flex;
  align-items:center;
  min-height:70vh;
  padding:42px 18px 38px;
  border-bottom:1px solid var(--rule);
}
.heroIn{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px;
  width:100%;
  max-width:1080px;
  margin:0 auto;
}
.ill{
  flex:0 0 auto;
  width:98px;
  height:98px;
  fill:none;
  stroke:var(--ink);
  stroke-width:1.4;
  will-change:transform;
}
.ill .dot{fill:var(--ink);stroke:none}
.heroTxt{max-width:640px;text-align:right}

h1{
  margin:0 0 14px;
  font-family:var(--head);
  font-size:clamp(29px,6vw,54px);
  font-weight:600;
  line-height:1.18;
  letter-spacing:-.012em;
}
.lead{
  margin:0 0 22px;
  color:var(--mute);
  font-size:17px;
  line-height:1.72;
}
.cta{margin:0}
.btn{
  display:inline-block;
  min-height:46px;
  padding:12px 24px;
  border-radius:10px;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--head);
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
}

/* ---------- 主体布局 ---------- */
.wrap{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:36px;
  max-width:1080px;
  margin:0 auto;
  padding:44px 18px 76px;
}

.side{
  position:sticky;
  top:112px;
  align-self:start;
}
.side h2{
  margin:0 0 4px;
  font-family:var(--head);
  font-size:16px;
  font-weight:600;
  letter-spacing:.22em;
}
.side .subtitle{
  margin:0 0 14px;
  color:var(--mute);
  font-size:16px;
}
.toc{
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid var(--rule);
}
.toc a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 0;
  border-bottom:1px solid var(--rule);
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
}
.toc a span{
  color:var(--mute);
  font-family:var(--head);
  font-size:16px;
  letter-spacing:.04em;
}
.toc a:hover{color:var(--ink);background:var(--slab)}

.body{min-width:0}

/* ---------- 正文 ---------- */
section > * + *{margin-top:24px}
section article{
  background:var(--slab);
  border-radius:10px;
  padding:26px 24px;
}
section article[id]{scroll-margin-top:118px}
section article > * + *{margin-top:14px}

section h2{
  margin:0;
  font-family:var(--head);
  font-size:clamp(21px,2.7vw,28px);
  font-weight:600;
  line-height:1.32;
  letter-spacing:-.008em;
}
section h3{
  margin:0;
  font-family:var(--head);
  font-size:19px;
  font-weight:600;
  line-height:1.4;
}
section p{margin:0}
section ul,section ol{margin:0;padding-left:1.25em}
section li + li{margin-top:8px}
section a{text-decoration:underline;text-underline-offset:3px}
section blockquote{
  margin:0;
  padding:2px 0 2px 16px;
  border-left:2px solid var(--ink);
  color:var(--mute);
}
section pre{
  margin:0;
  padding:16px;
  overflow:auto;
  background:var(--paper);
  border-radius:10px;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:16px;
  line-height:1.6;
}
section code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:16px}

/* 分段入场的硬切显示 */
.js section > .rv{opacity:0}
.js section > .rv.in{opacity:1}

/* ---------- 页脚 ---------- */
.foot{
  border-top:1px solid var(--rule);
  background:var(--slab);
  padding:42px 18px 26px;
}
.footGrid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr;
  gap:28px;
  max-width:1080px;
  margin:0 auto;
}
.mega{
  margin:0;
  font-family:var(--head);
  font-size:clamp(27px,4.4vw,42px);
  font-weight:600;
  line-height:1.06;
  letter-spacing:-.02em;
  word-break:break-word;
}
.foot dl{margin:0}
.foot dt{
  margin-bottom:6px;
  color:var(--mute);
  font-family:var(--head);
  font-size:16px;
  letter-spacing:.12em;
}
.foot dd{
  margin:0;
  font-size:16px;
  line-height:1.6;
}
.foot dd a{
  display:inline-block;
  min-height:40px;
  padding:8px 0;
  text-decoration:none;
}
.foot dd a:hover{text-decoration:underline;text-underline-offset:3px}
.footBase{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  max-width:1080px;
  margin:30px auto 0;
  padding-top:14px;
  border-top:1px solid var(--rule);
  font-size:16px;
}
.footBase p{margin:0;color:var(--mute)}
.footBase a{
  display:inline-block;
  min-height:40px;
  padding:6px 0;
  text-decoration:none;
}
.footBase a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- 响应式 ---------- */
@media (max-width:860px){
  .wrap{grid-template-columns:minmax(0,1fr);gap:26px;padding:34px 16px 60px}
  .side{position:static}
  .footGrid{grid-template-columns:1fr 1fr}
  .mega{grid-column:1 / -1}
}

@media (max-width:720px){
  .heroIn{flex-direction:column-reverse;align-items:flex-end;gap:16px}
  .ill{width:66px;height:66px}
  .hero{min-height:70vh;padding:36px 16px 32px}
  section article{padding:22px 18px}
}

@media (max-width:420px){
  body{font-size:16px}
  .footGrid{gap:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

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