:root{
  --ink:#000;
  --paper:#fff;
  --line:rgba(0,0,0,.16);
  --faint:rgba(0,0,0,.05);
  --rail:178px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:Poppins,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;line-height:1.78;letter-spacing:.01em;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
p{margin:0 0 1em}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:10px;top:10px;z-index:99;background:var(--ink);color:#fff;padding:10px 14px;border-radius:4px}

/* 左侧固定竖排导航 */
.top{
  position:fixed;inset:0 auto 0 0;width:var(--rail);z-index:30;
  display:flex;flex-direction:column;gap:20px;max-width:100%;
  padding:22px 16px 26px;background:var(--paper);border-right:1px solid var(--ink);
}
.mark{display:flex;align-items:center;gap:10px;min-height:44px}
.mark-box{width:34px;height:34px;background:var(--ink);position:relative;flex:0 0 auto}
.mark-box::after{content:"";position:absolute;inset:9px;border:2px solid #fff}
.mark-tx{font-weight:700;font-size:15px;letter-spacing:.08em}
.tabs{margin-top:4px;min-width:0}
.tabs p{display:flex;flex-direction:column;gap:1px;margin:0}
.tabs a{
  position:relative;display:flex;align-items:center;min-height:42px;
  padding:6px 6px 6px 20px;font-size:16px;line-height:1.35;border-radius:4px;
}
.tabs a::before{
  content:"";position:absolute;left:5px;top:50%;width:7px;height:7px;margin-top:-3.5px;
  background:var(--ink);transform:scale(.5);transition:transform .22s ease;
}
.tabs a:hover,.tabs a:focus-visible{background:var(--faint)}
.tabs a:hover::before,.tabs a:focus-visible::before{transform:scale(1)}
.call{
  margin-top:auto;display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 10px;
  border:1px solid var(--ink);border-radius:4px;font-size:15px;font-weight:600;
}
.call-dot{width:8px;height:8px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 4px rgba(0,0,0,.12)}

.main{margin-left:var(--rail);min-width:0}

/* 首屏 */
.hero{display:flex;flex-direction:column;min-height:70vh;padding:6vh 5vw 0;border-bottom:1px solid var(--ink)}
.kicker{margin:0 0 18px;font-size:13px;font-weight:600;letter-spacing:.36em;text-transform:uppercase}
.hero-t{
  margin:0;font-weight:700;letter-spacing:-.03em;line-height:1.03;
  font-size:clamp(2rem,7.2vw,5.2rem);max-width:15ch;
  word-break:break-word;overflow-wrap:break-word;hyphens:auto;
}
.lede{margin:24px 0 0;max-width:46ch;font-size:17px;overflow-wrap:break-word}
.band{
  margin:auto -5vw 0;height:46px;display:flex;align-items:center;overflow:hidden;
  background:var(--ink);color:#fff;
}
.band span{
  display:block;white-space:nowrap;font-size:12px;letter-spacing:.3em;text-transform:uppercase;
  animation:mq 30s linear infinite;
}
@keyframes mq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* 非对称分栏：正文 + 右侧栏 */
.wrap{
  display:grid;grid-template-columns:minmax(0,1fr) 300px;
  gap:clamp(28px,4vw,64px);max-width:1240px;
  padding:clamp(28px,4vw,54px) 5vw 76px;
}
.col{min-width:0;border-top:4px solid var(--ink);padding-top:24px}
.prose{max-width:68ch;min-width:0;overflow-wrap:break-word;word-break:break-word}
.prose>article{padding:26px 0;border-bottom:1px solid var(--line);scroll-margin-top:26px;min-width:0}
.prose>article:last-child{border-bottom:0;padding-bottom:0}
.prose h2{margin:0 0 16px;font-size:clamp(1.5rem,2.6vw,2.25rem);line-height:1.14;letter-spacing:-.02em;overflow-wrap:break-word}
.prose h3{margin:26px 0 12px;font-size:1.2rem;line-height:1.3;letter-spacing:-.01em;overflow-wrap:break-word}
.prose h2>span,.prose h3>span{display:inline-block;border-bottom:3px solid var(--ink);padding-bottom:5px}
.prose>article:first-child>p:first-of-type::first-letter{
  float:left;font-size:4.3em;line-height:.8;font-weight:700;padding:8px 12px 0 0;
}
.prose blockquote{
  margin:28px 0;padding:4px 0 4px 22px;border-left:6px solid var(--ink);
  font-size:1.22em;line-height:1.5;font-weight:600;letter-spacing:-.01em;
  overflow-wrap:break-word;
}
.prose blockquote p:last-child{margin:0}
.prose figure{margin:26px 0;max-width:100%}
.prose figcaption{font-size:.95rem;opacity:.72;margin-top:8px}
.prose ul,.prose ol{margin:0 0 1em;padding-left:1.3em}
.prose li{margin:.35em 0;overflow-wrap:break-word}
.prose a{border-bottom:1px solid var(--ink);overflow-wrap:break-word}
.prose hr{border:0;border-top:1px solid var(--line);margin:32px 0}
.prose table{
  display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
  border-collapse:collapse;margin:22px 0;font-size:1rem;
}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}
.prose pre{
  display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
  margin:22px 0;padding:14px 16px;background:var(--faint);border-radius:4px;line-height:1.6;
}
.prose code{font-size:.92em;background:var(--faint);padding:1px 5px;border-radius:3px}
.prose pre code{background:transparent;padding:0}
@media (min-width:1080px){
  .prose>article:nth-child(4){column-count:2;column-gap:44px}
  .prose>article:nth-child(4)>h2{column-span:all}
  .prose>article:nth-child(4) p{margin-top:0}
}

/* 玻璃拟态侧栏 */
.rail{display:flex;flex-direction:column;gap:18px;position:sticky;top:24px;align-self:start;min-width:0}
.rail-box{
  background:rgba(255,255,255,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--line);border-radius:4px;padding:18px 16px;
  box-shadow:0 12px 30px rgba(0,0,0,.07);
}
.rail-h{
  margin:0 0 12px;font-size:15px;letter-spacing:.14em;font-weight:600;
  border-bottom:2px solid var(--ink);padding-bottom:8px;
}
.rail-list{display:flex;flex-direction:column}
.rail-list a{
  display:flex;align-items:center;min-height:40px;padding:6px 0;
  border-bottom:1px dashed var(--line);font-size:16px;line-height:1.35;
}
.rail-list a:last-child{border-bottom:0}
.rail-list a::before{
  content:"";width:7px;height:7px;background:var(--ink);margin-right:9px;flex:0 0 auto;
  transform:scale(0);transition:transform .2s ease;
}
.rail-list a.on{font-weight:700}
.rail-list a.on::before{transform:scale(1)}
.rail-host{margin:0 0 12px;font-size:16px;word-break:break-all;opacity:.8}
.rail-btn{
  display:inline-flex;align-items:center;min-height:42px;padding:8px 16px;border-radius:4px;
  background:var(--ink);color:#fff;font-size:15px;font-weight:600;
}

/* 页脚 */
.foot{margin-left:var(--rail);background:var(--ink);color:#fff;padding:46px 5vw 26px;min-width:0}
.foot-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:end}
.foot-h{margin:0 0 10px;font-size:19px;letter-spacing:.06em}
.foot-h .hd{border-bottom:2px solid #fff;padding-bottom:5px;display:inline-block}
.foot-kw{margin:0;font-size:16px;opacity:.72;overflow-wrap:break-word}
.sub{display:flex;flex-direction:column;gap:8px;max-width:380px;justify-self:end;width:100%;min-width:0}
.sub-l{font-size:15px;letter-spacing:.2em;opacity:.8}
.sub-row{display:flex;gap:8px;min-width:0}
.sub-i{
  flex:1 1 auto;min-width:0;min-height:44px;padding:10px 12px;border-radius:4px;font:inherit;font-size:16px;
  background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5);
}
.sub-i::placeholder{color:rgba(255,255,255,.55)}
.sub-b{
  flex:0 0 auto;min-height:44px;padding:0 18px;border:0;border-radius:4px;background:#fff;color:#000;
  font:inherit;font-weight:600;cursor:pointer;
}
.foot-cols{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;
  margin-top:38px;padding-top:26px;border-top:1px solid rgba(255,255,255,.28);
}
.foot-cols dl{margin:0;min-width:0}
.foot-cols dt{font-size:15px;letter-spacing:.2em;opacity:.72}
.foot-cols dd{margin:10px 0 0;font-size:16px;word-break:break-word}
.foot-cols dd a{display:block;padding:5px 0;opacity:.9;border-bottom:1px solid transparent}
.foot-cols dd a:hover,.foot-cols dd a:focus-visible{border-bottom-color:#fff;opacity:1}
.foot-base{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  margin-top:34px;padding-top:18px;border-top:1px solid rgba(255,255,255,.28);font-size:15px;
}
.foot-base p{margin:0}
.bl{display:flex;flex-wrap:wrap;gap:16px}
.bl a{padding:6px 0;opacity:.85}
.bl a:hover{opacity:1;border-bottom:1px solid #fff}

/* 滚动显现 */
.js .rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.js .rv.in{opacity:1;transform:none}

/* 移动端 */
@media (max-width:1000px){
  :root{--rail:0px}
  body{font-size:17px}
  .top{
    position:sticky;inset:auto;top:0;width:auto;max-width:100%;
    flex-direction:row;align-items:center;gap:12px;
    padding:9px 14px;border-right:0;border-bottom:1px solid var(--ink);background:var(--paper);
  }
  .mark{flex:0 0 auto;gap:8px}
  .mark-tx{display:none}
  .tabs{margin:0;flex:1 1 auto;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .tabs p{flex-direction:row;gap:0}
  .tabs a{white-space:nowrap;padding:10px 9px;min-height:44px}
  .tabs a::before{display:none}
  .call{margin-top:0;flex:0 0 auto;min-height:44px;padding:8px 12px;white-space:nowrap}
  .main{margin-left:0}
  .hero{min-height:0;padding:24px 18px 0;max-width:100%}
  .hero-t{font-size:clamp(1.85rem,8.6vw,3rem);max-width:none}
  .lede{margin-top:16px}
  .band{margin:26px -18px 0;height:42px}
  .band span{font-size:11px;letter-spacing:.24em}
  .wrap{grid-template-columns:minmax(0,1fr);gap:26px;padding:22px 18px 54px}
  .col{padding-top:18px}
  .prose{max-width:none}
  .prose>article{scroll-margin-top:78px}
  .rail{position:static}
  .rail-box{padding:16px 14px}
  .foot{margin-left:0;padding:34px 18px 22px}
  .foot-top,.foot-cols{grid-template-columns:minmax(0,1fr);gap:22px}
  .sub{justify-self:stretch;max-width:none}
  .foot-base{flex-direction:column;align-items:flex-start;gap:10px}
}
@media (max-width:420px){
  .hero-t{letter-spacing:-.02em}
  .prose>article:first-child>p:first-of-type::first-letter{font-size:3.4em}
  .prose blockquote{padding-left:16px}
  .sub-row{flex-wrap:wrap}
  .sub-b{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
  .js .rv{opacity:1;transform:none}
}

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