:root{
  --ink:#1B1B1F;
  --accent:#FF5A3C;
  --paper:#F7F3EA;
  --paper-2:#EFE7D7;
  --line:#D9D0BE;
  --muted:#5A5852;
  --rail-w:262px;
  --r:10px;
  --font:"DM Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden}
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  max-width:100%;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.subtitle{
  margin:6px 0 0;
  font-size:12px;
  font-weight:700;
  letter-spacing:.26em;
  color:var(--accent);
}
.shell{display:grid;grid-template-columns:var(--rail-w) minmax(0,1fr);min-height:100vh}
/* 左侧固定竖排导航 */
.rail{
  background:var(--ink);
  color:var(--paper);
  padding:22px 16px 28px;
  display:flex;
  flex-direction:column;
  gap:6px;
  position:sticky;
  top:0;
  height:100vh;
  min-width:0;
  overflow-y:auto;
  overflow-x:hidden;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  min-width:0;
  text-decoration:none;
  color:var(--paper);
}
.brand-img{width:44px;height:44px;border-radius:4px}
.brand-mark{
  display:grid;
  place-items:center;
  width:40px;height:40px;
  flex:0 0 auto;
  background:var(--accent);
  color:var(--ink);
  border-radius:4px;
  font-weight:700;
  font-size:15px;
  letter-spacing:.02em;
}
.brand-name{font-weight:700;font-size:18px;letter-spacing:.02em;min-width:0}
.rail h2{
  margin:16px 0 0;
  font-size:13px;
  letter-spacing:.24em;
  color:var(--accent);
  font-weight:700;
}
.rail .subtitle{font-size:11px;letter-spacing:.3em;color:#8C877C}
.rail-nav{margin-top:10px;min-width:0}
.rail-label{
  margin:14px 0 6px;
  font-size:11px;
  letter-spacing:.24em;
  color:#8C877C;
}
.rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  font-size:15px;
  line-height:1.35;
  text-decoration:none;
  color:var(--paper);
  border-left:3px solid transparent;
  border-radius:0 4px 4px 0;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
.rail-list a:hover,.rail-list a:focus-visible{background:#2A2A31;border-left-color:var(--accent);color:var(--accent)}
.rail-list a.is-active{background:var(--accent);color:var(--ink);border-left-color:var(--ink);font-weight:700}
/* 正文 */
.main{min-width:0;overflow-x:clip}
.doc{padding:0 clamp(18px,4vw,56px);min-width:0;overflow-wrap:break-word;word-break:break-word}
.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:clamp(14px,3vw,34px);
  text-align:right;
  padding:clamp(40px,7vw,76px) 0 clamp(30px,5vw,54px);
}
.hero-art{order:-1;flex:0 0 auto;will-change:transform}
.hero-art svg{width:clamp(84px,12vw,124px);height:auto;max-width:100%}
.hero-txt{max-width:min(100%,34em);min-width:0}
.hero h1{
  margin:0;
  font-size:clamp(2rem,5.2vw,3.5rem);
  line-height:1.05;
  letter-spacing:-.02em;
  font-weight:700;
  overflow-wrap:break-word;
}
.hero-lead{
  margin:16px 0 0 auto;
  max-width:34ch;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}
.hero-badge{
  position:absolute;
  left:0;
  top:clamp(20px,4vw,34px);
  background:var(--accent);
  color:var(--ink);
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
  padding:7px 12px;
  border-radius:4px;
}
.doc > div:not(.hero){
  border-top:2px solid var(--ink);
  padding:clamp(32px,5vw,56px) 0;
  max-width:74ch;
  scroll-margin-top:32px;
}
.doc h2{
  position:relative;
  margin:0 0 6px;
  padding-left:22px;
  font-size:clamp(1.5rem,3vw,2rem);
  line-height:1.22;
  letter-spacing:-.01em;
}
.doc h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.34em;
  width:12px;height:12px;
  background:var(--accent);
}
.doc h2 + .subtitle{margin:0 0 20px;font-size:11px}
.doc h3{margin:1.7em 0 .5em;font-size:1.16rem;line-height:1.35}
.doc p{margin:0 0 1.1em;line-height:1.78}
.doc ul,.doc ol{margin:0 0 1.2em;padding-left:1.3em;line-height:1.75}
.doc li{margin:.35em 0}
.doc a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  transition:color .16s ease;
}
.doc a:hover{color:var(--accent)}
.doc blockquote{
  margin:1.4em 0;
  padding:14px 18px;
  background:var(--paper-2);
  border-left:4px solid var(--accent);
  border-radius:0 4px 4px 0;
}
.doc blockquote p:last-child{margin-bottom:0}
.doc div > section{
  background:var(--paper-2);
  border-radius:var(--r);
  padding:18px 20px;
  margin:1.2em 0;
  max-width:100%;
}
.doc img{border-radius:6px;margin:1.3em 0;max-width:100%;height:auto}
.doc strong{font-weight:700}
.doc hr{border:0;border-top:2px solid var(--line);margin:2em 0}
.doc table{width:100%;max-width:100%;border-collapse:collapse;font-size:15px;margin:1.2em 0}
.doc th,.doc td{border-bottom:1px solid var(--line);padding:9px 8px;text-align:left;vertical-align:top;overflow-wrap:break-word}
.doc th{background:var(--paper-2);font-weight:700}
.doc pre{max-width:100%;overflow-x:auto;background:var(--paper-2);padding:14px 16px;border-radius:6px;font-size:14px;line-height:1.6}
/* 页脚 */
.foot{
  background:var(--ink);
  color:var(--paper);
  padding:clamp(28px,4vw,52px) clamp(18px,4vw,56px) 18px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(18px,3vw,38px);
  min-width:0;
}
.foot-cta{
  grid-column:1/-1;
  background:var(--accent);
  color:var(--ink);
  border-radius:var(--r);
  padding:clamp(22px,4vw,42px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}
.foot-cta h2{margin:0;font-size:clamp(1.5rem,3.4vw,2.2rem);letter-spacing:-.01em;line-height:1.15}
.foot-cta .subtitle{color:var(--ink);opacity:.72;margin:6px 0 0;font-size:11px}
.cta-btn{
  margin-top:16px;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 24px;
  background:var(--ink);
  color:var(--paper);
  font-size:15px;
  font-weight:700;
  letter-spacing:.06em;
  text-decoration:none;
  border-radius:4px;
  transition:transform .16s ease,background-color .16s ease;
}
.cta-btn:hover{transform:translateY(-2px);background:#000}
.foot-col{min-width:0}
.foot-col h2{margin:0;font-size:13px;letter-spacing:.24em;color:var(--accent);font-weight:700}
.foot-col .subtitle{color:#8C877C;font-size:11px;letter-spacing:.3em;margin:6px 0 0}
.foot-desc{margin:12px 0 0;font-size:14px;line-height:1.75;color:#CFC8BB;overflow-wrap:break-word}
.foot-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.foot-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  font-size:14px;
  text-decoration:none;
  color:var(--paper);
  border-bottom:1px solid #33333B;
  transition:color .16s ease,padding-left .16s ease;
}
.foot-list a:hover{color:var(--accent);padding-left:6px}
.foot-base{
  grid-column:1/-1;
  border-top:1px solid #35353D;
  margin-top:4px;
  padding-top:14px;
  text-align:center;
}
.foot-base p{margin:0;font-size:13px;letter-spacing:.1em;color:#9A948A}
/* 移动端 */
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .rail{
    position:sticky;
    top:0;
    z-index:30;
    height:auto;
    width:100%;
    max-width:100%;
    min-width:0;
    padding:10px 14px 8px;
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    overflow:visible;
  }
  .brand{min-height:40px;flex:0 0 auto}
  .brand-name{font-size:16px}
  .brand-mark{width:34px;height:34px;font-size:14px}
  .brand-img{width:36px;height:36px}
  .rail h2,.rail .subtitle{display:none}
  .rail-nav{
    margin:0;
    flex:1 1 100%;
    min-width:0;
    max-width:100%;
    display:flex;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .rail-nav::-webkit-scrollbar{display:none}
  .rail-list{flex:0 0 auto;min-width:0;flex-direction:row;gap:8px}
  .rail-list a{
    min-height:40px;
    padding:8px 14px;
    border-left:0;
    border-bottom:3px solid transparent;
    border-radius:4px 4px 0 0;
    white-space:nowrap;
    font-size:14px;
  }
  .rail-list a:hover,.rail-list a:focus-visible{border-left:0;border-bottom-color:var(--accent)}
  .rail-list a.is-active{border-left:0;border-bottom-color:var(--ink)}
  .hero{min-height:auto;padding:26px 0 26px;gap:14px;flex-direction:column;align-items:flex-end}
  .hero-badge{position:static;display:inline-block;margin-bottom:4px}
  .hero-art{align-self:flex-end}
  .hero-txt{max-width:100%}
  .hero h1{font-size:clamp(1.8rem,8vw,2.4rem)}
  .hero-lead{margin-left:auto;font-size:15px;max-width:100%}
  .doc > div:not(.hero){scroll-margin-top:118px;max-width:100%}
  .foot{grid-template-columns:minmax(0,1fr)}
  .foot-col{display:none}
  .foot-col:nth-of-type(3){display:block}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
  .hero-art{transform:none!important}
}

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