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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --line:#e3e3e3;
  --r:10px;
  --shadow:0 12px 32px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --sans:"IBM Plex Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --gut:6vw;
  --side:268px;
  --tick:38px;
}

*,*::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:var(--sans);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  letter-spacing:-.01em;
  overflow-x:hidden;
}

a{color:var(--ink);}
a:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:3px;}

p{margin:0 0 1.1rem;}

/* ---------- 顶部细条 ---------- */
.ticker{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--tick);
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:0 var(--gut);
  background:var(--paper);
  border-bottom:1px solid var(--ink);
  z-index:40;
  font-size:16px;
  font-weight:600;
  letter-spacing:.16em;
}
.ticker .dot{
  display:block;
  width:8px;height:8px;
  border-radius:50%;
  background:var(--ink);
}
.tick-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* ---------- 左侧竖排导航 ---------- */
.side{
  position:fixed;
  top:var(--tick);left:0;bottom:0;
  width:var(--side);
  padding:2rem 1.5rem;
  display:flex;
  flex-direction:column;
  gap:1.6rem;
  background:var(--paper);
  border-right:1px solid var(--line);
  overflow:auto;
  z-index:30;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  text-decoration:none;
  font-size:17px;
  font-weight:600;
  letter-spacing:-.02em;
}
.mark{width:34px;height:34px;flex:0 0 auto;display:block;}
.logoimg{width:34px;height:34px;object-fit:contain;display:block;flex:0 0 auto;}

.menu-btn{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  min-height:44px;
  padding:.6rem 1.05rem;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  font-size:16px;
  font-weight:600;
  letter-spacing:.04em;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.menu-btn::-webkit-details-marker{display:none;}
.menu-btn::after{content:"＋";font-weight:500;line-height:1;}
.menu[open] .menu-btn::after{content:"－";}
.menu-btn:hover,.menu[open] .menu-btn{background:var(--ink);color:var(--paper);}

.menu-list{
  list-style:none;
  margin:.85rem 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.45rem;
}

.pill{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.55rem 1.05rem;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
  transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.pill:hover,.pill:focus-visible{
  border-color:var(--ink);
  background:var(--ink);
  color:var(--paper);
  box-shadow:var(--shadow);
  outline:none;
}

/* ---------- 主区域 ---------- */
.stage{
  margin-left:var(--side);
  padding-top:var(--tick);
}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(1rem,3vw,3rem);
  padding:clamp(3.5rem,7vw,6rem) var(--gut) clamp(2.4rem,5vw,4rem);
  text-align:right;
  border-bottom:1px solid var(--ink);
}
.hero-mark{flex:0 0 auto;}
.hero-mark .mark{width:clamp(56px,7vw,96px);height:clamp(56px,7vw,96px);}
.hero-copy{min-width:0;}
.hero-copy h1{
  margin:0;
  font-size:clamp(2.3rem,6.4vw,5.6rem);
  line-height:.94;
  font-weight:700;
  letter-spacing:-.05em;
}
.hero-copy .lead{
  margin:1.1rem 0 0 auto;
  max-width:46ch;
  font-size:clamp(1rem,1.4vw,1.15rem);
  font-weight:300;
  line-height:1.55;
  color:#111;
}
.badge{
  position:absolute;
  top:clamp(1rem,3vw,2rem);
  right:var(--gut);
  padding:.5rem 1rem;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  font-weight:500;
  letter-spacing:.05em;
  box-shadow:var(--shadow);
  white-space:nowrap;
}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  align-items:start;
  gap:clamp(2rem,4vw,4rem);
  padding:0 var(--gut) clamp(4rem,8vw,8rem);
}
.body{min-width:0;}

.prose{max-width:70ch;overflow-wrap:break-word;}
.prose > article{
  border-top:1px solid var(--line);
  padding:clamp(2.4rem,4vw,3.6rem) 0;
  scroll-margin-top:calc(var(--tick) + 1.5rem);
}
.prose > article:first-child{
  border-top:0;
  padding-top:clamp(2.4rem,5vw,4rem);
}
.prose h2{
  margin:0 0 1rem;
  font-size:clamp(1.5rem,2.6vw,2.3rem);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.035em;
}
.prose h3{
  margin:2rem 0 .6rem;
  font-size:1.15rem;
  letter-spacing:-.02em;
}
.prose p{line-height:1.8;}
.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.3rem;}
.prose li{margin:.4rem 0;line-height:1.75;}
.prose a{text-underline-offset:3px;}
.prose strong{font-weight:600;}
.prose blockquote{
  margin:1.2rem 0;
  padding:.2rem 0 .2rem 1.2rem;
  border-left:3px solid var(--ink);
  font-weight:300;
}
.prose table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:16px;}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:.7rem .5rem;text-align:left;}
.prose img{max-width:100%;height:auto;border-radius:var(--r);}
.prose figure{margin:1.4rem 0;}
.prose figcaption{margin-top:.5rem;font-size:16px;color:#444;}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.92em;
  background:#f2f2f2;
  padding:.1em .35em;
  border-radius:4px;
}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:calc(var(--tick) + 1.6rem);
  display:flex;
  flex-direction:column;
  gap:.9rem;
  padding:1.4rem 1.2rem;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--paper);
  box-shadow:var(--shadow);
}
.rail-h{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:.2em;
}
.rail .subtitle{
  margin:0;
  font-size:16px;
  font-weight:300;
  line-height:1.5;
  color:#333;
}
.rail-list{
  list-style:none;
  margin:.3rem 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.3rem;
}
.rail-list .pill{
  border-color:transparent;
  padding:.35rem .2rem;
  min-height:40px;
}
.rail-list .pill:hover,.rail-list .pill:focus-visible{
  border-color:var(--ink);
  padding-left:.7rem;
}
.totop{
  display:flex;
  align-items:center;
  min-height:40px;
  margin-top:.3rem;
  padding-top:.9rem;
  border-top:1px solid var(--line);
  font-size:16px;
  text-decoration:none;
}
.totop:hover{text-decoration:underline;text-underline-offset:4px;}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(1.6rem,4vw,3rem);
  border-top:2px solid var(--ink);
  padding:clamp(2.4rem,5vw,4rem) var(--gut) clamp(2rem,4vw,3rem);
}
.bigmark{
  margin:0;
  font-size:clamp(2.6rem,9vw,7rem);
  line-height:.85;
  font-weight:700;
  letter-spacing:-.06em;
  overflow-wrap:break-word;
}
.foot-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.3rem .8rem;
}
.foot-list .pill{
  border:0;
  background:transparent;
  padding:.4rem 0;
  min-height:40px;
  box-shadow:none;
}
.foot-list .pill:hover,.foot-list .pill:focus-visible{
  background:transparent;
  color:var(--ink);
  box-shadow:none;
  text-decoration:underline;
  text-underline-offset:4px;
}
.foot-copy{
  grid-column:1 / -1;
  margin-top:.6rem;
  padding-top:1rem;
  border-top:1px solid var(--line);
}
.foot-copy p{margin:0;font-size:16px;font-weight:300;}

/* ---------- 滚动显现 ---------- */
.js .rv{opacity:0;transform:translateY(22px);}
.js .rv.in{
  opacity:1;
  transform:none;
  transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1);
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  :root{--gut:1.25rem;}

  .ticker{
    position:static;
    height:auto;
    padding:.6rem var(--gut);
  }
  .side{
    position:sticky;
    top:0;left:auto;right:auto;bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.7rem var(--gut);
    border-right:0;
    border-bottom:1px solid var(--ink);
    overflow:visible;
    z-index:40;
  }
  .brand{flex:0 0 auto;}
  .menu{position:relative;}
  .menu-list{
    position:absolute;
    top:calc(100% + .55rem);
    right:0;
    width:min(78vw,300px);
    max-height:70vh;
    overflow:auto;
    margin:0;
    padding:.7rem;
    background:var(--paper);
    border:1px solid var(--ink);
    border-radius:14px;
    box-shadow:var(--shadow);
    z-index:50;
  }

  .stage{margin-left:0;padding-top:0;}

  .hero{
    min-height:0;
    flex-direction:column;
    align-items:flex-end;
    gap:1rem;
    padding:1.6rem var(--gut) 2.4rem;
  }
  .hero-mark{display:none;}
  .badge{position:static;box-shadow:none;}
  .hero-copy .lead{margin-left:auto;max-width:100%;}

  .wrap{
    grid-template-columns:1fr;
    gap:2rem;
    padding:0 var(--gut) 3rem;
  }
  .rail{position:static;}
  .rail-list{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;}
  .prose > article{scroll-margin-top:5.5rem;}

  .foot{grid-template-columns:1fr;padding:2.4rem var(--gut) 2rem;}
  .bigmark{font-size:clamp(2.6rem,13vw,4.5rem);}
}

@media (max-width:420px){
  .foot-list{grid-template-columns:1fr;}
  .rail-list{grid-template-columns:1fr;}
}

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

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