@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root{
  --paper:#ffffff;
  --stone:#f5f5f5;
  --ink:#1f1f1f;
  --mute:rgba(31,31,31,.62);
  --faint:rgba(31,31,31,.40);
  --line:rgba(31,31,31,.14);
  --line-2:rgba(31,31,31,.08);
  --r:28px;
  --e1:0 1px 2px rgba(31,31,31,.07),0 2px 6px rgba(31,31,31,.05);
  --e2:0 2px 5px rgba(31,31,31,.07),0 10px 22px rgba(31,31,31,.07);
  --e3:0 6px 14px rgba(31,31,31,.08),0 20px 44px rgba(31,31,31,.10);
  --e4:0 14px 34px rgba(31,31,31,.11),0 36px 76px rgba(31,31,31,.15);
  --rail:236px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  background:var(--stone);
}

body{
  margin:0;
  font-family:'Plus Jakarta Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:var(--stone);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol,dl{margin:0;padding:0;list-style:none}

/* ---------- 顶部固定层 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.82);
  -webkit-backdrop-filter:saturate(150%) blur(16px);
  backdrop-filter:saturate(150%) blur(16px);
  border-bottom:1px solid var(--line-2);
  transition:box-shadow .28s ease,background .28s ease;
}
.masthead.is-tight{box-shadow:var(--e2)}

.topline{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:8px 20px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  line-height:1.5;
  letter-spacing:.01em;
  overflow:hidden;
}
.topline__dot{
  flex:0 0 auto;
  width:7px;height:7px;border-radius:50%;
  background:var(--paper);
  box-shadow:0 0 0 4px rgba(255,255,255,.22);
}
.topline__txt{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 20px;
  min-height:64px;
}
.bar__mark{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  padding:4px;
  border-radius:14px;
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:var(--e1);
  transition:transform .2s ease,box-shadow .2s ease;
}
.bar__mark:hover{transform:translateY(-1px);box-shadow:var(--e2)}
.bar__logo{width:32px;height:32px;object-fit:contain;border-radius:8px}
.bar__glyph{
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  padding:0 6px;
  color:var(--ink);
  max-width:120px;
  white-space:nowrap;
  overflow:hidden;
}
.bar__toggle{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 18px;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--e2);
  cursor:pointer;
}
.bar__toggle:active{box-shadow:var(--e1)}
.bar__bars{
  position:relative;
  display:block;
  width:20px;height:2px;
  background:var(--ink);
  transition:transform .22s ease;
}
.bar__bars::before,
.bar__bars::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;height:2px;
  background:var(--ink);
  transition:transform .22s ease,opacity .22s ease;
}
.bar__bars::before{top:-6px}
.bar__bars::after{top:6px}
body.is-locked .bar__bars{transform:rotate(45deg)}
body.is-locked .bar__bars::before{transform:translateY(6px) rotate(-90deg)}
body.is-locked .bar__bars::after{opacity:0}

/* ---------- 全屏遮罩菜单 ---------- */
.veil{
  position:fixed;
  inset:0;
  z-index:40;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:28px;
  padding:120px 24px 56px;
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  backdrop-filter:blur(20px) saturate(140%);
  opacity:0;
  visibility:hidden;
  transform:translate3d(0,-12px,0);
  transition:opacity .26s ease,transform .26s ease,visibility .26s;
}
.veil.is-open{opacity:1;visibility:visible;transform:none}
.veil__list{display:flex;flex-direction:column;gap:6px;max-width:920px;margin:0 auto;width:100%}
.veil__list li{list-style:none}
.veil__list a{
  display:block;
  padding:12px 8px;
  font-size:clamp(22px,4.6vw,32px);
  font-weight:700;
  letter-spacing:.01em;
  border-bottom:1px solid var(--line-2);
  transition:transform .18s ease,color .18s ease;
}
.veil__list a:hover{transform:translateX(8px)}
.veil__stamp{
  display:block;
  text-align:center;
  font-size:16px;
  letter-spacing:.3em;
  color:var(--faint);
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:linear-gradient(155deg,#ffffff 0%,#ececec 52%,#dcdcdc 100%);
}
.hero__media{position:absolute;inset:-12% 0 0;z-index:0}
.hero__img{width:100%;height:122%;object-fit:cover}
.hero__veil{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(102deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.88) 40%,rgba(255,255,255,.42) 72%,rgba(31,31,31,.30) 100%);
}
.hero__inner{
  position:relative;
  z-index:3;
  width:min(1120px,100% - 40px);
  margin:0 auto;
  padding:112px 0 104px;
  max-width:1120px;
}
.hero__brand{
  display:inline-block;
  font-size:16px;
  font-weight:700;
  letter-spacing:.34em;
  color:var(--mute);
  padding-bottom:10px;
}
.hero__title{
  margin:0;
  font-size:clamp(34px,7.2vw,74px);
  line-height:1.1;
  letter-spacing:-.025em;
  font-weight:700;
  max-width:15em;
  word-break:break-word;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}
.hero__desc{
  margin:20px 0 0;
  max-width:34em;
  font-size:17px;
  line-height:1.7;
  color:var(--mute);
}
.hero__cta{
  display:inline-flex;
  align-items:center;
  margin-top:30px;
  min-height:52px;
  padding:0 30px;
  font-size:17px;
  font-weight:700;
  color:var(--paper);
  background:var(--ink);
  border-radius:999px;
  box-shadow:var(--e3);
  transition:transform .2s ease,box-shadow .2s ease;
}
.hero__cta:hover{transform:translateY(-2px);box-shadow:var(--e4)}
.hero__cut{
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:64px;
  z-index:2;
  background:var(--stone);
  clip-path:polygon(0 100%,100% 12%,100% 100%);
}

/* ---------- 主体骨架 ---------- */
.wrap{
  display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr);
  align-items:start;
  gap:36px;
  width:min(1180px,100% - 40px);
  margin:0 auto;
  padding:56px 0 72px;
}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:124px;
  z-index:2;
  padding:22px 20px 24px;
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:20px;
  box-shadow:var(--e2);
}
.rail__title{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--ink);
}
.rail__hr{
  border:0;
  height:1px;
  margin:12px 0 14px;
  background:linear-gradient(90deg,var(--ink),rgba(31,31,31,0));
}
.rail__list{display:flex;flex-direction:column;gap:2px}
.rail__list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:6px 4px;
  font-size:16px;
  line-height:1.5;
  color:var(--mute);
  border-radius:10px;
  transition:color .18s ease,transform .18s ease;
}
.rail__list a:hover{color:var(--ink);transform:translateX(3px)}
.rail__n{
  flex:0 0 auto;
  font-size:16px;
  font-variant-numeric:tabular-nums;
  color:var(--faint);
}
.rail__t{border-bottom:1px solid transparent}
.rail__list a:hover .rail__t{border-bottom-color:var(--ink)}

/* ---------- 正文容器 ---------- */
.shell{min-width:0}
.doc{display:block;min-width:0}
.doc > article,
.doc > div,
.doc > section{
  position:relative;
  z-index:1;
  padding:34px 32px 38px;
  background:var(--paper);
  border:1px solid var(--line-2);
  border-bottom:3px solid var(--ink);
  border-radius:var(--r);
  box-shadow:var(--e2);
  transition:box-shadow .24s ease,transform .24s ease;
}
.doc > article:hover{box-shadow:var(--e3);transform:translateY(-2px)}
.doc > article + article,
.doc > article + div,
.doc > article + section{margin-top:26px}
.doc article[id]{scroll-margin-top:124px}

.doc h2{
  margin:0 0 10px;
  font-size:clamp(24px,3.4vw,32px);
  line-height:1.24;
  letter-spacing:-.018em;
  font-weight:700;
}
.doc h2 + hr{
  border:0;
  height:2px;
  margin:0 0 20px;
  background:linear-gradient(90deg,var(--ink) 0%,rgba(31,31,31,.10) 62%,rgba(31,31,31,0) 100%);
}
.doc h3{
  margin:28px 0 8px;
  font-size:20px;
  line-height:1.35;
  font-weight:700;
  letter-spacing:-.01em;
}
.doc h3 + hr{
  border:0;
  height:1px;
  margin:0 0 14px;
  background:var(--line);
}
.doc p{margin:0 0 15px}
.doc p:last-child{margin-bottom:0}
.doc strong{font-weight:700}
.doc a{
  color:var(--ink);
  border-bottom:1.5px solid rgba(31,31,31,.35);
  transition:border-color .18s ease,background .18s ease;
}
.doc a:hover{border-bottom-color:var(--ink);background:rgba(31,31,31,.05)}
.doc ul,.doc ol{margin:0 0 16px;padding-left:0;counter-reset:li}
.doc ul li,.doc ol li{
  position:relative;
  padding:4px 0 4px 26px;
  margin:0 0 6px;
}
.doc ul li::before{
  content:"";
  position:absolute;
  left:4px;top:15px;
  width:8px;height:8px;
  border-radius:2px;
  background:var(--ink);
}
.doc ol li{counter-increment:li}
.doc ol li::before{
  content:counter(li,decimal-leading-zero);
  position:absolute;
  left:0;top:5px;
  font-size:16px;
  font-weight:700;
  color:var(--faint);
}
.doc blockquote{
  margin:0 0 16px;
  padding:16px 20px;
  background:var(--stone);
  border-left:3px solid var(--ink);
  border-radius:0 14px 14px 0;
  color:var(--mute);
}
.doc blockquote p:last-child{margin-bottom:0}
.doc table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 18px;
  font-size:16px;
}
.doc th,.doc td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.doc th{background:var(--stone);font-weight:700}
.doc code{
  font-family:'SFMono-Regular',Consolas,monospace;
  font-size:16px;
  background:var(--stone);
  padding:2px 6px;
  border-radius:6px;
}
.doc hr{border:0;height:1px;background:var(--line);margin:20px 0}
.doc figure{margin:0 0 18px}
.doc figcaption{font-size:16px;color:var(--faint);margin-top:8px}
.doc img{border-radius:16px;box-shadow:var(--e1)}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:18px 28px;
  width:min(1180px,100% - 40px);
  margin:0 auto;
  padding:28px 0 44px;
  border-top:1px solid var(--line);
}
.foot__id{flex:0 0 auto}
.foot__mark{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  font-size:17px;
  font-weight:700;
  letter-spacing:.06em;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--e1);
  transition:box-shadow .2s ease,transform .2s ease;
}
.foot__mark:hover{transform:translateY(-1px);box-shadow:var(--e2)}
.foot__nav{flex:1 1 auto;min-width:0}
.foot__dl{
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  align-items:center;
}
.foot__dl dt,.foot__dl dd{margin:0}
.foot__dl a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  font-size:16px;
  color:var(--mute);
  border-radius:10px;
  transition:color .18s ease,background .18s ease;
}
.foot__dl a:hover{color:var(--ink);background:var(--paper);box-shadow:var(--e1)}
.foot__end{
  display:flex;
  align-items:center;
  gap:14px;
  flex:0 0 auto;
}
.foot__cr{
  margin:0;
  font-size:16px;
  color:var(--faint);
  white-space:nowrap;
}
.foot__top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  font-size:16px;
  border:1px solid var(--line);
  border-radius:999px;
  transition:box-shadow .2s ease,transform .2s ease;
}
.foot__top:hover{transform:translateY(-1px);box-shadow:var(--e2)}

/* ---------- 滚动揭示 ---------- */
html.js .doc > article,
html.js .foot{
  opacity:0;
  transform:translate3d(0,22px,0);
}
html.js .doc > article.in,
html.js .foot.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .55s cubic-bezier(.22,.7,.3,1);
}
html.js .doc > article:hover{transform:translateY(-2px)}

/* ---------- 断点 ---------- */
@media (max-width:1040px){
  .wrap{grid-template-columns:200px minmax(0,1fr);gap:26px}
  :root{--rail:200px}
}

@media (max-width:860px){
  .wrap{
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    padding:32px 0 56px;
  }
  .rail{
    position:static;
    padding:16px 16px 18px;
    border-radius:18px;
  }
  .rail__list{
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }
  .rail__list li{flex:0 0 auto}
  .rail__list a{
    padding:8px 12px;
    min-height:44px;
    background:var(--stone);
    border-radius:999px;
    color:var(--ink);
    white-space:nowrap;
  }
  .rail__n{font-size:16px}
  .doc > article,
  .doc > div,
  .doc > section{padding:26px 20px 30px;border-radius:22px}
  .doc article[id]{scroll-margin-top:116px}
  .hero__inner{padding:104px 0 88px}
  .hero__cut{height:44px}
  .foot{padding:24px 0 40px}
}

@media (max-width:600px){
  .bar{padding:6px 14px;min-height:58px}
  .topline{padding:8px 14px}
  .wrap{width:calc(100% - 28px);padding-top:24px}
  .hero__inner{width:calc(100% - 28px)}
  .hero__veil{background:linear-gradient(170deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.90) 58%,rgba(255,255,255,.60) 100%)}
  .foot{
    flex-direction:column;
    align-items:flex-start;
    width:calc(100% - 28px);
    gap:14px;
  }
  .foot__end{width:100%;justify-content:space-between}
  .veil{padding:104px 18px 40px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .doc > article,
  html.js .foot{opacity:1;transform:none}
  .doc > article:hover{transform:none}
  .hero__media{transform:none !important}
}

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