:root{
  --ink:#000000;
  --paper:#ffffff;
  --paper-2:#f4f4f4;
  --line:#000000;
  --mute:#8c8c8c;
  --rule:#e3e3e3;
  --rail:216px;
  --r:4px;
  --soft:0 1px 2px rgba(0,0,0,.06),0 10px 28px rgba(0,0,0,.07);
  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:var(--paper-2);
  overflow-x:hidden;
  max-width:100%;
  font-kerning:normal;
}

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

/* ---------- 左侧固定竖排导航 ---------- */
.masthead{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:60;
  display:flex;
  flex-direction:column;
  background:var(--paper);
  border-right:1px solid var(--line);
  padding:20px 20px 22px;
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:var(--r);
  font-size:20px;
  font-weight:800;
  letter-spacing:0;
  text-decoration:none;
  color:var(--ink);
  overflow:hidden;
}
.mark-img{width:100%;height:100%;object-fit:cover;display:block}

.tabs{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  margin:22px 0 16px;
  overflow-x:hidden;
  overflow-y:auto;
}
.tabs a{
  display:block;
  padding:11px 0;
  font-size:16px;
  line-height:1.5;
  font-weight:600;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid var(--rule);
  transition:padding-left .18s ease,letter-spacing .18s ease;
}
.tabs a:first-child{border-top:1px solid var(--rule)}
.tabs a:hover{padding-left:6px}
.tabs a[aria-current="true"]{font-weight:800;box-shadow:inset 4px 0 0 var(--ink);padding-left:8px}

.find{margin-top:auto;min-width:0}
.find input{
  width:100%;
  padding:11px 12px;
  font:inherit;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r);
}
.find input::placeholder{color:var(--mute)}
.find input:focus{outline:2px solid var(--ink);outline-offset:1px}

/* ---------- 主区 ---------- */
@media (min-width:901px){
  body{padding-left:var(--rail)}
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:stretch;
  min-height:70vh;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero::before{
  content:"01";
  position:absolute;
  left:-.05em;
  bottom:-.26em;
  z-index:0;
  font-size:clamp(150px,22vw,300px);
  font-weight:800;
  line-height:.78;
  letter-spacing:-.07em;
  color:#ececec;
  pointer-events:none;
}

.hero-copy{
  position:relative;
  z-index:1;
  align-self:center;
  min-width:0;
  padding:clamp(30px,5vw,72px) clamp(20px,4vw,56px);
}

.kicker{
  display:inline-block;
  margin:0 0 20px;
  padding-bottom:9px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.24em;
  border-bottom:2px solid var(--line);
}

.hero h1{
  margin:0;
  font-size:clamp(34px,5vw,64px);
  line-height:1.06;
  font-weight:800;
  letter-spacing:-.02em;
}
.hero h1::first-letter{font-size:1.3em}

.hero-desc{
  max-width:34ch;
  margin:22px 0 28px;
  font-size:17px;
  line-height:1.7;
  color:#1a1a1a;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 26px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--paper);
  background:var(--ink);
  border-radius:var(--r);
  text-decoration:none;
  box-shadow:var(--soft);
}
.hero-cta:hover{background:#222}

.hero-fig{
  position:relative;
  z-index:0;
  margin:0;
  min-width:0;
  min-height:70vh;
  background:var(--ink);
  overflow:hidden;
}
.hero-fig img{
  width:100%;
  height:100%;
  min-height:70vh;
  object-fit:cover;
  display:block;
  filter:grayscale(1) contrast(1.06);
}
.hero-fig.is-blank span{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--paper);
  font-size:clamp(90px,15vw,190px);
  font-weight:800;
  letter-spacing:-.06em;
  line-height:1;
  opacity:.92;
}

.wrap{
  max-width:1140px;
  margin:0 auto;
  padding:clamp(26px,4vw,56px) clamp(16px,3vw,40px) clamp(6px,2vw,20px);
  min-width:0;
}

.body-grid{
  display:grid;
  grid-template-columns:182px minmax(0,1fr);
  gap:clamp(22px,4vw,56px);
  align-items:start;
  min-width:0;
}
.body-grid > *{min-width:0}

/* ---------- 侧栏目录 ---------- */
.toc{
  position:sticky;
  top:24px;
  min-width:0;
  background:var(--paper);
  border-radius:var(--r);
  box-shadow:var(--soft);
  padding:18px 16px 20px;
}
.toc small{
  display:block;
  font-size:16px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--mute);
}
.toc h2{
  margin:2px 0 14px;
  font-size:22px;
  font-weight:800;
  letter-spacing:-.01em;
}
.toc ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:toc;
}
.toc li{counter-increment:toc;border-top:1px solid var(--rule)}
.toc li a{
  display:block;
  position:relative;
  padding:9px 0 9px 30px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  color:var(--ink);
}
.toc li a::before{
  content:counter(toc,decimal-leading-zero);
  position:absolute;
  left:0;
  top:9px;
  font-size:16px;
  font-weight:700;
  color:var(--mute);
  letter-spacing:.06em;
}
.toc li a:hover{text-decoration:underline}
.toc li a[aria-current="true"]{font-weight:800}
.toc li a[aria-current="true"]::before{color:var(--ink)}

/* ---------- 正文 ---------- */
.prose{
  counter-reset:sec;
  min-width:0;
}
.prose > section{
  position:relative;
  counter-increment:sec;
  background:var(--paper);
  border-radius:var(--r);
  box-shadow:var(--soft);
  padding:clamp(20px,3vw,40px);
  margin-bottom:clamp(18px,2.6vw,30px);
  overflow-wrap:break-word;
}
.prose > section:nth-child(odd){margin-right:clamp(0px,3vw,44px)}
.prose > section:nth-child(even){margin-left:clamp(0px,3vw,44px)}
.prose > section::before{
  content:counter(sec,decimal-leading-zero);
  display:block;
  margin-bottom:8px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.26em;
  color:#9a9a9a;
}
.prose > section:last-child{margin-bottom:0}

@media (min-width:901px){
  .prose > section{scroll-margin-top:26px}
}
@media (max-width:900px){
  .prose > section{scroll-margin-top:78px}
}

.prose h2{
  margin:0 0 14px;
  padding-left:14px;
  font-size:clamp(24px,3.2vw,32px);
  line-height:1.22;
  font-weight:800;
  letter-spacing:-.015em;
  border-left:6px solid var(--line);
}
.prose h3{
  margin:26px 0 10px;
  font-size:20px;
  line-height:1.35;
  font-weight:800;
}
.prose p{margin:0 0 16px}
.prose p:last-child{margin-bottom:0}
.prose section > p:first-of-type::first-letter{
  float:left;
  padding:8px 10px 0 0;
  font-size:3.1em;
  line-height:.82;
  font-weight:800;
}
.prose a{text-decoration-thickness:1px;text-underline-offset:3px}
.prose ul,.prose ol{padding-left:1.2em;margin:0 0 16px}
.prose li{margin-bottom:6px}
.prose blockquote{
  margin:22px 0;
  padding:4px 0 4px 20px;
  border-left:4px solid var(--line);
  font-style:italic;
  color:#222;
}
.prose figure{margin:22px 0}
.prose figcaption{font-size:16px;color:var(--mute);margin-top:6px}
.prose img{border-radius:var(--r);display:block}
.prose table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.prose th,.prose td{border-bottom:1px solid var(--rule);padding:10px 8px;text-align:left}
.prose code{
  font-size:16px;
  background:#eee;
  padding:1px 5px;
  border-radius:var(--r);
  overflow-wrap:break-word;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(30px,5vw,64px);
  color:var(--paper);
  background:var(--ink);
}
.foot-cta{
  padding:clamp(34px,6vw,72px) clamp(20px,4vw,48px);
  text-align:center;
  border-bottom:1px solid #2c2c2c;
}
.foot-cta small{
  display:block;
  font-size:16px;
  font-weight:700;
  letter-spacing:.28em;
  color:#a8a8a8;
}
.foot-cta h2{
  margin:10px 0 0;
  font-size:clamp(30px,5vw,58px);
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.02em;
}
.foot-cta h2 a{
  color:var(--paper);
  text-decoration:none;
  border-bottom:3px solid var(--paper);
  padding-bottom:4px;
}
.foot-cta h2 a:hover{opacity:.75}

.foot-body{
  max-width:1140px;
  margin:0 auto;
  padding:clamp(26px,4vw,48px) clamp(20px,4vw,40px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr);
  gap:clamp(20px,4vw,44px);
  min-width:0;
}
.foot-body > *{min-width:0}
.foot address{
  font-style:normal;
  font-size:16px;
  font-weight:800;
  letter-spacing:.06em;
}

.foot-quick{
  list-style:none;
  margin:0;
  padding:0;
}
.foot-quick a{
  display:block;
  padding:10px 0;
  font-size:16px;
  line-height:1.5;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px solid #2c2c2c;
}
.foot-quick a:hover{opacity:.72}

.foot-nav dl{
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px;
}
.foot-nav dt{border-bottom:1px solid #2c2c2c;min-width:0}
.foot-nav dt a{
  display:block;
  padding:10px 0;
  font-size:16px;
  line-height:1.5;
  color:var(--paper);
  text-decoration:none;
}
.foot-nav dt a:hover{opacity:.72}
.foot-nav dd{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-size:16px;
  color:#6f6f6f;
  border-bottom:1px solid #2c2c2c;
  font-variant-numeric:tabular-nums;
}

.foot-copy{
  margin:0;
  padding:18px 20px 28px;
  text-align:center;
  font-size:16px;
  color:#8a8a8a;
  border-top:1px solid #222;
}

/* ---------- 滚动显现 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .65s ease,transform .65s ease;
}
.reveal.in{opacity:1;transform:none}

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

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .masthead{
    position:sticky;
    top:0;
    left:0;
    right:0;
    bottom:auto;
    inset:auto;
    width:auto;
    max-width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .mark{width:44px;height:44px;flex:0 0 auto}
  .tabs{
    flex:1 1 0%;
    min-width:0;
    flex-direction:row;
    align-items:center;
    margin:0;
    gap:2px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .tabs::-webkit-scrollbar{display:none}
  .tabs a{
    flex:0 0 auto;
    padding:12px 10px;
    white-space:nowrap;
    font-size:16px;
    border-bottom:0;
  }
  .tabs a:first-child{border-top:0}
  .tabs a:hover{padding-left:10px}
  .tabs a[aria-current="true"]{box-shadow:inset 0 -3px 0 var(--ink);padding-left:10px}
  .find{display:none}

  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
  }
  .hero::before{
    font-size:clamp(110px,32vw,180px);
    bottom:-.2em;
  }
  .hero-copy{
    order:1;
    padding:32px 18px 30px;
  }
  .hero h1{font-size:clamp(30px,8.6vw,42px)}
  .hero-desc{margin:18px 0 24px}
  .hero-fig{
    order:2;
    min-height:58vw;
  }
  .hero-fig img{min-height:58vw}

  .wrap{padding:22px 14px 8px}
  .body-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .toc{
    position:static;
    padding:14px 14px 16px;
  }
  .toc h2{margin-bottom:10px;font-size:20px}
  .toc ol{
    display:flex;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }
  .toc ol::-webkit-scrollbar{display:none}
  .toc li{
    border-top:0;
    flex:0 0 auto;
  }
  .toc li a{
    padding:10px 12px 10px 34px;
    white-space:nowrap;
    border:1px solid var(--rule);
    border-radius:var(--r);
  }
  .toc li a::before{top:10px;left:12px}
  .prose > section:nth-child(odd),
  .prose > section:nth-child(even){margin-left:0;margin-right:0}
  .prose h2{padding-left:12px;border-left-width:5px}

  .foot-body{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
  }
}

@media (max-width:420px){
  .prose > section{padding:18px 16px}
  .prose p:first-of-type::first-letter{font-size:2.6em;padding-right:8px}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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