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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --r:28px;
  --pad:clamp(16px,4vw,40px);
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Space Grotesk','Helvetica Neue',Arial,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  letter-spacing:.01em;
}

a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
figure{margin:0}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:700;letter-spacing:-.025em;line-height:1.12}
img{display:block}
a:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:6px}

.wrap{max-width:1200px;margin:0 auto;padding:0 var(--pad)}

/* 顶栏 */
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:2px solid var(--ink);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-size:18px;
  font-weight:700;
  letter-spacing:.02em;
}
.brand-mark{
  width:16px;height:16px;flex:none;
  border-radius:50%;
  background:var(--ink);
  transition:transform .22s ease;
}
.brand:hover .brand-mark{transform:scale(1.35)}
.pills{display:flex;gap:8px}
.pill{
  display:inline-flex;align-items:center;
  min-height:44px;padding:0 18px;
  border:2px solid var(--ink);border-radius:999px;
  font-size:16px;font-weight:500;
  transition:background .22s ease,color .22s ease;
}
.pill:hover{background:var(--ink);color:var(--paper)}
.pill--ink{background:var(--ink);color:var(--paper)}
.pill--ink:hover{background:var(--paper);color:var(--ink)}

/* 粘性锚点条 */
.tape{
  position:sticky;top:0;z-index:30;
  margin:0 calc(var(--pad) * -1);
  padding:0 var(--pad);
  background:var(--paper);
  border-bottom:1px solid rgba(0,0,0,.22);
}
.tape-nav ul{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.tape-nav ul::-webkit-scrollbar{display:none}
.tape-nav li{flex:none}
.tape-nav a{
  display:inline-flex;align-items:center;
  min-height:44px;padding:0 12px;
  font-size:16px;letter-spacing:.06em;
  border-bottom:3px solid transparent;
  transition:border-color .2s ease;
}
.tape-nav a:hover{border-bottom-color:var(--ink)}

/* 主栅格 */
.layout{
  display:grid;
  grid-template-columns:196px minmax(0,1fr);
  gap:clamp(20px,3vw,44px);
  padding:clamp(20px,3vw,40px) 0 0;
}

.rail{
  position:sticky;
  top:68px;
  align-self:start;
  border-top:2px solid var(--ink);
  padding-top:12px;
}
.rail-nav a{
  display:flex;align-items:center;
  min-height:44px;
  padding:6px 0;
  font-size:16px;line-height:1.35;
  border-bottom:1px solid rgba(0,0,0,.16);
  transition:padding-left .2s ease;
}
.rail-nav a:hover{padding-left:8px}
.rail-nav li{animation:rise .45s ease both}
.rail-nav li:nth-child(1){animation-delay:.02s}
.rail-nav li:nth-child(2){animation-delay:.06s}
.rail-nav li:nth-child(3){animation-delay:.1s}
.rail-nav li:nth-child(4){animation-delay:.14s}
.rail-nav li:nth-child(5){animation-delay:.18s}
.rail-nav li:nth-child(6){animation-delay:.22s}
.rail-nav li:nth-child(7){animation-delay:.26s}

.totop{
  display:inline-flex;align-items:center;
  min-height:44px;margin-top:12px;
  padding:0 2px;
  font-size:16px;letter-spacing:.08em;
  border-bottom:2px solid var(--ink);
}

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

/* 首屏 */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  min-height:45vh;
  padding:clamp(30px,5vw,60px) clamp(20px,4vw,48px);
  border:2px solid var(--ink);
  border-radius:var(--r) var(--r) 150px var(--r);
  background:var(--paper);
}
.hero-fig{
  position:absolute;inset:0;z-index:0;
  display:grid;place-items:center;
  overflow:hidden;
  border-radius:inherit;
}
.hero-img{
  width:100%;height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.06);
  opacity:.18;
}
.hero-shape{
  width:min(58%,360px);
  aspect-ratio:1;
  border:2px solid var(--ink);
  border-radius:50%;
  opacity:.3;
}
.hero-ghost{
  position:absolute;
  left:50%;bottom:-.26em;
  transform:translateX(-50%);
  z-index:0;
  font-size:clamp(56px,17vw,180px);
  font-weight:700;
  letter-spacing:-.05em;
  line-height:.8;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:1px rgba(0,0,0,.34);
  pointer-events:none;
}
.hero h1{
  position:relative;z-index:1;
  font-size:clamp(29px,6vw,62px);
  max-width:19em;
}
.hero-desc{
  position:relative;z-index:1;
  margin-top:14px;
  max-width:34em;
  font-size:17px;
  line-height:1.65;
}

/* 正文 */
.body{margin-top:clamp(26px,4vw,52px)}
.body article{padding:clamp(22px,3.2vw,40px) 0;border-top:1px solid rgba(0,0,0,.22)}
.body article[id]{scroll-margin-top:100px}
.body h2{
  font-size:clamp(24px,3.6vw,40px);
  margin-bottom:14px;
  scroll-margin-top:100px;
}
.body h2 > span{display:inline}
.body h3{font-size:clamp(19px,2.4vw,24px);margin:22px 0 8px}
.body h3 > span{display:inline}
.body p{margin:12px 0;max-width:44em}
.body ul{margin:12px 0;padding-left:1.3em;list-style:disc}
.body ol{margin:12px 0;padding-left:1.4em;list-style:decimal}
.body li{margin:6px 0}
.body figure{
  margin:18px 0;
  border:2px solid var(--ink);
  border-radius:var(--r);
  overflow:hidden;
}
.body img{width:100%;height:auto}
.body strong{font-weight:700}
.body blockquote{
  margin:18px 0;padding:2px 0 2px 18px;
  border-left:4px solid var(--ink);
  font-size:18px;
}

/* 页脚 */
.foot{margin-top:clamp(32px,5vw,64px);border-top:2px solid var(--ink)}
.foot article{padding:clamp(18px,3vw,32px) 0}
.foot-top{border-bottom:1px solid rgba(0,0,0,.22)}
.foot-brand{
  font-size:clamp(34px,11vw,118px);
  line-height:.92;
  letter-spacing:-.055em;
}
.foot-mid{border-bottom:1px solid rgba(0,0,0,.22)}
.foot-nav ul{display:flex;flex-wrap:wrap;gap:6px 8px}
.foot-nav a{
  display:inline-flex;align-items:center;
  min-height:44px;padding:0 14px;
  border:1px solid var(--ink);border-radius:999px;
  font-size:16px;
  transition:background .2s ease,color .2s ease;
}
.foot-nav a:hover{background:var(--ink);color:var(--paper)}
.foot-low{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:12px;font-size:16px;
}
.foot-low .totop{margin-top:0}

/* 移动端 */
@media (max-width:860px){
  .layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .rail{position:static;border-top:none;padding-top:0}
  .rail-nav ul{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .rail-nav ul::-webkit-scrollbar{display:none}
  .rail-nav li{flex:none}
  .rail-nav a{
    padding:0 14px;
    min-height:44px;
    border:1px solid var(--ink);
    border-radius:999px;
    white-space:nowrap;
    transition:background .2s ease,color .2s ease;
  }
  .rail-nav a:hover{padding-left:14px;background:var(--ink);color:var(--paper)}
  .hero{min-height:44vh;border-radius:var(--r) var(--r) 96px var(--r)}
  .foot-brand{letter-spacing:-.04em}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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