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

:root{
  --ink:#1f1f1f;
  --ink-soft:#4d4d4d;
  --paper:#ffffff;
  --wash:#f5f5f5;
  --line:#e6e6e6;
  --r:28px;
  --shadow:0 8px 22px rgba(0,0,0,.06);
  --shadow-hi:0 18px 44px rgba(0,0,0,.11);
  --bar-h:72px;
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:96px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--wash);
  color:var(--ink);
  font:400 17px/1.72 'Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  letter-spacing:.008em;
  overflow-x:hidden;
}

h1,h2,h3{
  margin:0;
  line-height:1.22;
  letter-spacing:-.022em;
  font-family:'Space Grotesk','Inter','PingFang SC','Microsoft YaHei',sans-serif;
  font-weight:600;
}

p{margin:0}

menu,ul{margin:0;padding:0;list-style:none}

a{color:inherit}

img{max-width:100%;height:auto}

hr{
  border:0;
  height:3px;
  width:56px;
  border-radius:3px;
  background:var(--ink);
  margin:14px 0 20px;
}

::selection{background:var(--ink);color:#fff}

/* ---------- 顶栏 ---------- */
.bar{
  position:sticky;
  top:0;
  z-index:60;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:10px clamp(14px,3.4vw,40px);
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);
  backdrop-filter:blur(14px) saturate(1.3);
  border-bottom:1px solid var(--line);
}

.mark{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 10px;
  border-radius:16px;
  text-decoration:none;
  transition:background .2s ease;
}
.mark:hover{background:var(--wash)}
.mark img{border-radius:10px;flex:none}
.mark__name{
  font-family:'Space Grotesk','Inter','PingFang SC',sans-serif;
  font-weight:600;
  font-size:18px;
  letter-spacing:-.02em;
  white-space:nowrap;
}

.bar__end{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
}

.drawer{position:relative;justify-self:start}
.drawer--tail{justify-self:end}

summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-size:16px;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
}
summary::-webkit-details-marker{display:none}
summary::before{
  content:"";
  width:14px;
  height:2px;
  flex:none;
  background:currentColor;
  box-shadow:0 5px 0 currentColor,0 -5px 0 currentColor;
  opacity:.7;
}
summary:hover{background:var(--wash)}
details[open] > summary{border-color:var(--ink);background:#fff}

.drawer > menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:228px;
  padding:10px;
  display:none;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-hi);
}
.drawer--tail > menu{left:auto;right:0}
details[open] > menu{display:grid;gap:2px}

.drawer menu a{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
  transition:background .18s ease;
}
.drawer menu a::before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border:1.6px solid currentColor;
  border-radius:2px;
  opacity:.65;
}
.drawer menu a:hover{background:var(--wash)}

.find{
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px 3px 3px 14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
}
.find input{
  width:112px;
  min-height:36px;
  border:0;
  background:transparent;
  font:inherit;
  font-size:16px;
  color:inherit;
  outline:none;
  -webkit-appearance:none;
  appearance:none;
}
.find input::-webkit-search-cancel-button{display:none}
.find button{
  min-height:38px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font:inherit;
  font-size:15px;
  cursor:pointer;
  transition:opacity .2s ease;
}
.find button:hover{opacity:.84}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(16px,3vw,40px);
  min-height:45vh;
  padding:clamp(28px,4vw,52px) clamp(16px,5vw,64px) clamp(46px,6vw,72px);
  background:var(--paper);
  overflow:hidden;
}

.hero__art{
  flex:none;
  width:clamp(64px,9vw,104px);
  will-change:transform;
}
.hero__art svg{display:block;width:100%;height:auto}

.hero__copy{
  max-width:min(640px,72vw);
  text-align:right;
}
.hero__copy h1{
  font-size:clamp(27px,4.6vw,52px);
  letter-spacing:-.03em;
}
.hero__lede{
  margin-top:14px;
  color:var(--ink-soft);
  font-size:clamp(15px,1.6vw,18px);
  line-height:1.65;
}

.slash{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:18px;
  background:var(--ink);
  clip-path:polygon(0 100%,100% 6%,100% 100%);
}

/* ---------- 主区 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(28px,4.6vw,60px) clamp(14px,3.6vw,40px) clamp(32px,4vw,56px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:clamp(20px,2.6vw,34px);
  align-items:start;
}

.doc{min-width:0}

.prose{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
}

.prose > article{
  grid-column:1 / -1;
  padding:clamp(22px,3vw,38px);
  background:var(--paper);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  scroll-margin-top:104px;
  transition:box-shadow .28s ease,transform .28s ease;
}
.prose > article:nth-of-type(odd){grid-column:1 / 12}
.prose > article:nth-of-type(even){grid-column:2 / 13}
.prose > article:hover{box-shadow:var(--shadow-hi);transform:translateY(-3px)}
.prose > article:target{box-shadow:0 0 0 2px var(--ink),var(--shadow-hi)}

.prose h2{
  font-size:clamp(20px,2.5vw,29px);
}
.prose h3{
  font-size:clamp(18px,2vw,22px);
  margin:22px 0 8px;
}
.prose p{margin:0 0 16px}
.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child{margin-bottom:0}
.prose ul,.prose ol{padding-left:1.15em;margin:0 0 16px}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li{margin:0 0 8px}
.prose a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.prose a:hover{background:var(--wash)}
.prose img{border-radius:20px;margin:6px 0 16px}
.prose strong{font-weight:600}
.prose blockquote{
  margin:0 0 16px;
  padding:2px 0 2px 18px;
  border-left:3px solid var(--ink);
  color:var(--ink-soft);
}
.prose hr{margin:12px 0 20px}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:96px;
  align-self:start;
  padding:20px 18px;
  background:var(--paper);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.rail__title{
  font-size:16px;
  letter-spacing:.06em;
}
.rail hr{width:36px;height:2px;margin:12px 0 14px;background:#c9c9c9}
.rail__list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:6px 8px;
  border-radius:12px;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:background .18s ease;
}
.rail__list a:hover{background:var(--wash)}
.num{
  font-family:'Space Grotesk','Inter',sans-serif;
  font-size:13px;
  color:#a3a3a3;
  font-variant-numeric:tabular-nums;
}
.rail__top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:12px;
  font-size:15px;
  color:#6d6d6d;
  text-decoration:none;
}
.rail__top:hover{color:var(--ink)}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(32px,5vw,68px);
  padding:clamp(32px,5vw,60px) clamp(16px,4vw,40px) 22px;
  background:var(--ink);
  color:#fff;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
.foot hr{background:#fff;margin:14px 0 22px}
.foot__cta{
  grid-column:1 / -1;
  padding-bottom:26px;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.foot__cta h2{
  font-size:clamp(23px,3.8vw,42px);
  max-width:24ch;
}
.btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 26px;
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-weight:600;
  font-size:16px;
  text-decoration:none;
  transition:transform .2s ease,opacity .2s ease;
}
.btn:hover{transform:translateY(-2px);opacity:.9}

.foot__brand{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.foot__brand img{border-radius:10px;flex:none}
.foot__name{
  font-family:'Space Grotesk','Inter','PingFang SC',sans-serif;
  font-size:20px;
  font-weight:600;
  letter-spacing:-.02em;
}

.foot__links ul{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px 18px;
}
.foot__links a{
  display:flex;
  align-items:center;
  min-height:44px;
  color:rgba(255,255,255,.82);
  font-size:16px;
  text-decoration:none;
  transition:color .2s ease;
}
.foot__links a:hover{color:#fff}

.foot__base{
  grid-column:1 / -1;
  margin-top:6px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.18);
  text-align:center;
  font-size:15px;
  color:rgba(255,255,255,.62);
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference){
  @keyframes rise{
    from{opacity:0;transform:translateY(16px)}
    to{opacity:1;transform:none}
  }
  .prose > article{
    animation:rise .62s cubic-bezier(.22,.7,.3,1) backwards;
  }
  .prose > article:nth-of-type(1){animation-delay:.03s}
  .prose > article:nth-of-type(2){animation-delay:.08s}
  .prose > article:nth-of-type(3){animation-delay:.13s}
  .prose > article:nth-of-type(4){animation-delay:.18s}
  .prose > article:nth-of-type(5){animation-delay:.23s}
  .prose > article:nth-of-type(6){animation-delay:.28s}
  .prose > article:nth-of-type(7){animation-delay:.33s}
  .prose > article:nth-of-type(n+8){animation-delay:.38s}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .prose > article,
  .btn,
  .prose > article:hover{transition:none;transform:none}
}

/* ---------- 窄屏 ---------- */
@media (max-width:960px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;top:auto}
  .prose > article,
  .prose > article:nth-of-type(odd),
  .prose > article:nth-of-type(even){grid-column:1 / -1}
  .prose > article{scroll-margin-top:24px}
  .foot{grid-template-columns:1fr}
  .foot__cta,
  .foot__base{grid-column:1 / -1}
}

@media (max-width:720px){
  .bar{
    position:static;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    padding:10px 14px 12px;
  }
  .mark{order:-1;flex:1 0 100%;justify-content:center;justify-self:auto}
  .bar__end{display:flex;gap:8px;align-items:center}
  .find{padding-left:10px}
  .find input{width:76px}
  .drawer,.drawer--tail{justify-self:auto}
  .drawer > menu{min-width:200px}
  .drawer--tail > menu{right:0}
  .hero{
    flex-direction:column-reverse;
    align-items:flex-end;
    min-height:0;
    padding:24px 16px 46px;
  }
  .hero__copy{max-width:100%}
  .hero__art{width:56px}
  .slash{height:14px}
  .foot__links ul{grid-template-columns:1fr}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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