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

:root{
  --ink:#000;
  --bg:#fff;
  --bar:72px;
  --r:18px;
  --pad:1.25rem;
}

@media (max-width:880px){
  :root{--bar:154px;--pad:.9rem}
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding-bottom:var(--bar);
  background:var(--bg);
  color:var(--ink);
  font-family:'Poppins','Helvetica Neue',Helvetica,Arial,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'Righteous','Poppins','Helvetica Neue',Helvetica,sans-serif;
  font-weight:400;
  letter-spacing:-.01em;
  margin:0;
}

p{margin:0}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
figure{margin:0}

.page > article{scroll-margin-top:1rem}

/* ---------- 底部固定条 ---------- */
.bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:"l brand end";
  align-items:center;
  gap:.75rem;
  height:var(--bar);
  padding:0 var(--pad);
  background:var(--bg);
  border-top:1px solid var(--ink);
}

.bar__nav--l{grid-area:l}
.bar__end{grid-area:end;display:flex;align-items:center;justify-content:flex-end;gap:.5rem;min-width:0}
.bar__brand{grid-area:brand;justify-self:center}

.bar__nav p{
  display:flex;
  align-items:center;
  gap:.15rem;
  margin:0;
  min-width:0;
}

.bar__nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 .5rem;
  font-size:.92rem;
  line-height:1.2;
  text-decoration:none;
  border-radius:999px;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease;
}

.bar__nav a:hover,
.bar__nav a:focus-visible{
  background:var(--ink);
  color:var(--bg);
  outline:none;
}

.bar__brand{
  font-family:'Righteous','Poppins',sans-serif;
  font-size:1.1rem;
  letter-spacing:.02em;
  text-decoration:none;
  padding:.4rem .5rem;
  white-space:nowrap;
}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 1rem;
  font-size:.88rem;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--ink);
  color:var(--bg);
  transition:transform .18s ease,opacity .18s ease;
}

.cta:hover,.cta:focus-visible{opacity:.8;transform:translateY(-1px);outline:none}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,200px) minmax(0,1fr) minmax(0,1.05fr);
  align-items:center;
  gap:clamp(1rem,3vw,2.5rem);
  min-height:calc(100svh - var(--bar) - 3rem);
  padding:4.5rem var(--pad) 3rem;
  border-bottom:1px solid var(--ink);
}

.hero::after{
  content:"01";
  position:absolute;
  right:1rem;
  bottom:-2.5rem;
  font-family:'Righteous',sans-serif;
  font-size:26vw;
  line-height:.8;
  letter-spacing:-.05em;
  opacity:.06;
  pointer-events:none;
}

.hero > *{position:relative;z-index:1}

.hero__copy{order:1}
.hero__fig{order:2}
.side{order:3}

.hero__h1{
  font-size:clamp(2.1rem,5.6vw,4.2rem);
  line-height:1.06;
  letter-spacing:-.03em;
  margin-bottom:1.1rem;
}

.hero__lede{
  max-width:46ch;
  font-size:1rem;
  line-height:1.7;
  color:#000;
  opacity:.78;
}

.hero__fig{
  border:1px solid var(--ink);
  border-radius:var(--r);
  overflow:hidden;
  background:var(--bg);
}

.hero__img{
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
}

.hero__blank{
  aspect-ratio:4/5;
  background:repeating-linear-gradient(45deg,#000 0 2px,transparent 2px 14px);
}

.hero__cap{
  padding:.7rem .8rem;
  border-top:1px solid var(--ink);
}

/* ---------- 小标题 ---------- */
.hd{
  font-size:.78rem;
  font-family:'Poppins',sans-serif;
  font-weight:600;
  letter-spacing:.18em;
}

.hd > span{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
}

.hd__bar{
  display:block;
  width:2.2rem;
  height:2px;
  background:var(--ink);
}

.hd--cap{font-size:.8rem;letter-spacing:.04em;font-family:'Righteous',sans-serif;font-weight:400}

/* ---------- 左栏目录 ---------- */
.side{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.2rem;
  padding-right:1rem;
  border-right:1px solid rgba(0,0,0,.15);
}

.toc{
  list-style:none;
  margin:.9rem 0 0;
  padding:0;
  counter-reset:t;
}

.toc li{counter-increment:t}

.toc a{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  min-height:40px;
  padding:.3rem 0;
  font-size:.9rem;
  line-height:1.3;
  text-decoration:none;
  border-top:1px solid rgba(0,0,0,.12);
  transition:padding-left .18s ease;
}

.toc a::before{
  content:counter(t,decimal-leading-zero);
  font-size:.66rem;
  font-weight:600;
  letter-spacing:.1em;
  opacity:.45;
}

.toc a:hover{padding-left:.35rem}

/* ---------- 正文 ---------- */
.page > article:not(.hero){
  padding:3rem var(--pad);
  border-bottom:1px solid var(--ink);
}

.page > article:not(.hero) > *{
  max-width:70ch;
  margin-left:auto;
  margin-right:auto;
}

.page h2{
  font-size:clamp(1.5rem,3.2vw,2.1rem);
  line-height:1.2;
  margin:0 0 1rem;
}

.page h2 > span,
.page h3 > span{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}

.page h3{
  font-size:1.15rem;
  line-height:1.35;
  margin:2rem 0 .6rem;
}

.page p{margin:0 0 1.1rem}
.page ul,.page ol{padding-left:1.4rem;margin:0 0 1.1rem}
.page li{margin-bottom:.4rem}

.page a{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.22em;
}

.page a:hover{background:var(--ink);color:var(--bg);text-decoration:none}

.page img{
  border-radius:var(--r);
  border:1px solid var(--ink);
  margin:1.4rem 0;
}

.page blockquote{
  margin:1.6rem 0;
  padding:.9rem 1.1rem;
  border:1px solid var(--ink);
  border-left-width:4px;
  border-radius:var(--r);
  font-weight:500;
}

.page figure{
  border:1px solid var(--ink);
  border-radius:var(--r);
  overflow:hidden;
  margin:1.4rem 0;
}

.page figcaption{
  padding:.7rem .9rem;
  border-top:1px solid var(--ink);
  font-size:.9rem;
}

.page hr{
  border:0;
  border-top:1px solid var(--ink);
  margin:2rem 0;
}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;
  padding:1.1rem var(--pad);
  border-top:1px solid var(--ink);
  font-size:.9rem;
}

.foot__brand a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-family:'Righteous','Poppins',sans-serif;
  font-size:1rem;
  text-decoration:none;
}

.foot__nav p{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.1rem .85rem;
  margin:0;
}

.foot__nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  text-decoration:none;
  opacity:.85;
}

.foot__nav a:hover{text-decoration:underline;opacity:1}

.foot__cr{
  justify-self:end;
  text-align:right;
  opacity:.75;
  font-size:.85rem;
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero__h1,
  .hero__lede,
  .hero__fig,
  .side .hd,
  .toc li{
    animation:rise .62s cubic-bezier(.2,.7,.3,1) backwards;
  }
  .hero__h1{animation-delay:.02s}
  .hero__lede{animation-delay:.1s}
  .hero__fig{animation-delay:.16s}
  .side .hd{animation-delay:.2s}
  .toc li:nth-child(1){animation-delay:.22s}
  .toc li:nth-child(2){animation-delay:.28s}
  .toc li:nth-child(3){animation-delay:.34s}
  .toc li:nth-child(4){animation-delay:.4s}
  .toc li:nth-child(5){animation-delay:.46s}
  .toc li:nth-child(6){animation-delay:.52s}
  .toc li:nth-child(7){animation-delay:.58s}

  @keyframes rise{
    from{opacity:0;transform:translateY(14px)}
    to{opacity:1;transform:none}
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .cta:hover{transform:none}
}

/* ---------- 断点 ---------- */
@media (max-width:880px){
  .bar{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    height:auto;
    padding:.4rem var(--pad) .5rem;
    gap:.15rem .5rem;
  }

  .bar__brand{order:1;font-size:1rem;padding:.3rem 0}
  .bar__end{display:contents}
  .cta{order:2;margin-left:auto;min-height:40px;padding:0 .85rem}
  .bar__nav--l{order:3;flex:1 1 100%}
  .bar__nav--r{order:4;flex:1 1 100%}

  .bar__nav p{
    flex-wrap:wrap;
    gap:0;
  }

  .bar__nav a{
    padding:0 .55rem;
    font-size:.86rem;
  }

  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding:2.6rem var(--pad) 2rem;
    gap:1.4rem;
  }

  .hero::after{font-size:38vw;bottom:-1rem}

  .hero__h1{font-size:clamp(1.9rem,8.2vw,2.6rem)}

  .hero__fig{max-width:420px}

  .side{
    align-self:auto;
    padding-right:0;
    border-right:0;
    border-top:1px solid var(--ink);
    padding-top:1rem;
  }

  .toc{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 1rem;
  }

  .toc a{font-size:.86rem;min-height:40px}

  .page > article:not(.hero){padding:2.2rem var(--pad)}

  .foot{
    grid-template-columns:minmax(0,1fr);
    justify-items:center;
    text-align:center;
    gap:.2rem;
    padding:1rem var(--pad);
  }

  .foot__cr{justify-self:center;text-align:center}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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