:root{
  --ink:#000000;
  --paper:#ffffff;
  --rail:96px;
  --gut:clamp(1.4rem,4vw,3.6rem);
  --sans:"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  padding-left:var(--rail);
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
html.menu-open body{overflow:hidden}
img{max-width:100%}
a{color:var(--ink)}
p{margin:0}

/* ---- 左侧固定竖排栏 ---- */
.rail{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  padding:1.4rem .5rem 1.4rem;
  background:var(--paper);
  border-right:1px solid var(--ink);
  z-index:50;
}
.brand{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  letter-spacing:.34em;
  font-weight:700;
  font-size:1.02rem;
  text-decoration:none;
  padding:.7rem .3rem;
  line-height:1;
}
.burger{
  writing-mode:vertical-rl;
  font-family:inherit;
  font-size:.82rem;
  letter-spacing:.36em;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--ink);
  border-radius:0;
  padding:1.1rem .55rem;
  min-height:44px;
  cursor:pointer;
  transition:background .25s ease,color .25s ease;
}
.burger:hover{background:var(--ink);color:var(--paper)}
.contact{
  writing-mode:vertical-rl;
  text-decoration:none;
  font-size:.8rem;
  letter-spacing:.3em;
  padding:.7rem .3rem;
  min-height:44px;
}

/* ---- 全屏菜单 ---- */
.overlay{
  position:fixed;
  inset:0;
  z-index:60;
  background:var(--ink);
  color:var(--paper);
  display:grid;
  grid-template-rows:auto 1fr;
  padding:1.5rem var(--gut) 2.5rem;
  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease,visibility .35s ease;
}
html.menu-open .overlay{opacity:1;visibility:visible}
.ov-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--paper);
  padding-bottom:1rem;
}
.ov-brand{
  color:var(--paper);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.3em;
  font-size:.95rem;
}
.closer{
  font-family:inherit;
  font-size:.85rem;
  letter-spacing:.28em;
  color:var(--paper);
  background:transparent;
  border:1px solid var(--paper);
  border-radius:0;
  padding:.7rem 1rem;
  min-height:44px;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.closer:hover{background:var(--paper);color:var(--ink)}
.ov-nav{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.1rem;
  padding-top:1rem;
}
.ov-item{
  display:flex;
  align-items:baseline;
  gap:1rem;
  padding:.85rem 0;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.28);
}
.ov-num{
  font-size:.72rem;
  letter-spacing:.24em;
  font-weight:300;
  opacity:.7;
  min-width:2.2rem;
}
.ov-name{
  font-size:clamp(1.35rem,3.6vw,2.6rem);
  font-weight:500;
  line-height:1.15;
  letter-spacing:-.01em;
  transition:transform .25s ease,opacity .25s ease;
}
.ov-item:hover .ov-name{transform:translateX(.5rem)}

/* ---- 主体栅格：正文左、侧栏右 ---- */
.main{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(190px,17vw,250px);
  align-items:start;
}
.article{
  min-width:0;
  padding:0 clamp(1.5rem,3.4vw,3.4rem) 4.5rem;
  counter-reset:sec;
}

/* ---- 首屏 ---- */
.hero{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  gap:clamp(1.6rem,4vh,2.6rem);
  padding-top:clamp(2rem,7vh,4.2rem);
  border-bottom:1px solid var(--ink);
}
.hero-text{flex:0 0 auto}
.hero-h1{
  margin:0;
  font-size:clamp(2.15rem,6.2vw,5.1rem);
  line-height:1.03;
  letter-spacing:-.03em;
  font-weight:700;
}
.hero-lead{
  margin:1.6rem 0 0;
  max-width:44ch;
  font-size:clamp(1rem,1.35vw,1.2rem);
  line-height:1.65;
  font-weight:400;
  border-left:4px solid var(--ink);
  padding-left:1.1rem;
}
.hero-fig{
  flex:1 1 auto;
  margin:0;
  min-height:34vh;
  border-top:1px solid var(--ink);
  background-image:radial-gradient(var(--ink) 1.1px,transparent 1.1px);
  background-size:18px 18px;
  overflow:hidden;
}
.hero-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.04);
}

/* ---- 正文区块 ---- */
.article > div[id]{
  padding:clamp(2.2rem,5vw,3.6rem) 0;
  border-bottom:1px solid var(--ink);
  counter-increment:sec;
  scroll-margin-top:1rem;
}
.article > div[id] > h2{
  margin:0 0 1.1rem;
  font-size:clamp(1.5rem,3vw,2.35rem);
  line-height:1.16;
  letter-spacing:-.015em;
  font-weight:700;
  break-after:avoid;
}
.article > div[id] > h2::before{
  content:counter(sec,decimal-leading-zero);
  display:block;
  font-size:.7rem;
  font-weight:300;
  letter-spacing:.36em;
  margin-bottom:.55rem;
  opacity:.65;
}
.article > div[id] > h2 + hr{
  border:0;
  border-top:3px solid var(--ink);
  width:64px;
  margin:0 0 1.7rem;
}
.article > div[id] > p{margin:0 0 1.15rem}
.article > div[id] > p:first-of-type::first-letter{
  float:left;
  font-size:3.4em;
  line-height:.78;
  font-weight:700;
  padding:.06em .1em 0 0;
}
.article > div[id] blockquote{
  margin:1.8rem 0;
  padding:.4rem 0 .4rem 1.2rem;
  border-left:6px solid var(--ink);
  font-size:1.24rem;
  line-height:1.55;
  font-weight:500;
}
.article > div[id] ul,
.article > div[id] ol{padding-left:1.3rem;margin:0 0 1.15rem}
.article > div[id] li{margin:.3rem 0}
.article > div[id] h3{
  margin:1.6rem 0 .7rem;
  font-size:1.16rem;
  line-height:1.4;
  font-weight:700;
}
.article > div[id] h3 + hr{
  border:0;
  border-top:1px solid var(--ink);
  margin:0 0 1.1rem;
}
.article > div[id] figure{margin:1.8rem 0}
.article > div[id] figcaption{
  font-size:.82rem;
  letter-spacing:.04em;
  border-top:1px solid var(--ink);
  padding-top:.45rem;
  margin-top:.5rem;
}

/* ---- 右侧栏 ---- */
.side{
  position:sticky;
  top:0;
  align-self:start;
  border-left:1px solid var(--ink);
  padding:1.8rem 1.15rem 2.5rem;
  min-height:100vh;
}
.side-title{
  margin:0;
  font-size:.78rem;
  font-weight:500;
  letter-spacing:.34em;
}
.side hr{
  border:0;
  border-top:2px solid var(--ink);
  width:44px;
  margin:.8rem 0 1.2rem;
}
.side-list{
  display:flex;
  flex-direction:column;
  counter-reset:n;
}
.side-list a{
  counter-increment:n;
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.55rem 0;
  font-size:.92rem;
  font-weight:500;
  text-decoration:none;
  border-bottom:1px solid var(--ink);
  transition:padding-left .2s ease;
}
.side-list a::before{
  content:counter(n,decimal-leading-zero);
  font-size:.7rem;
  font-weight:300;
  letter-spacing:.2em;
  margin-right:.7rem;
  opacity:.6;
}
.side-list a:hover{padding-left:.4rem}

/* ---- 页脚 ---- */
.foot{
  background:var(--ink);
  color:var(--paper);
  padding:3rem var(--gut) 1.5rem;
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2rem;
  align-items:start;
}
.foot dl{margin:0}
.foot dt{margin:0 0 .55rem;font-weight:700;font-size:.95rem}
.foot dd{margin:0 0 .3rem}
.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.35rem 0;
  color:var(--paper);
  text-decoration:none;
  font-size:.92rem;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
.foot a:hover{border-bottom-color:var(--paper)}
.mark-brand{
  font-size:clamp(1.3rem,2.2vw,1.9rem);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.02em;
}
.copy{
  margin:2.6rem 0 0;
  padding-top:1rem;
  border-top:1px solid var(--paper);
  font-size:.78rem;
  letter-spacing:.14em;
}

/* ---- 入场动效 ---- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease,transform .6s ease;
}
.reveal.in{opacity:1;transform:none}

/* ---- 中屏 ---- */
@media (max-width:1100px){
  .main{grid-template-columns:minmax(0,1fr) 190px}
  .side{padding:1.6rem .9rem 2rem}
}
@media (min-width:1120px){
  .article > div[id]{
    column-count:2;
    column-gap:3.2rem;
  }
  .article > div[id] > h2,
  .article > div[id] > h2 + hr{column-span:none}
}
@media (max-width:1100px) and (min-width:821px){
  .article > div[id] > p,
  .article > div[id] > h2,
  .article > div[id] > h3,
  .article > div[id] > blockquote{max-width:66ch}
}

/* ---- 移动端 ---- */
@media (max-width:820px){
  body{padding:56px 0 0}
  .rail{
    top:0;left:0;right:0;bottom:auto;
    width:auto;
    height:56px;
    flex-direction:row;
    align-items:center;
    border-right:0;
    border-bottom:1px solid var(--ink);
    padding:0 .9rem;
  }
  .brand{
    writing-mode:horizontal-tb;
    letter-spacing:.16em;
    font-size:.95rem;
    padding:.55rem 0;
    min-height:40px;
    display:inline-flex;
    align-items:center;
  }
  .burger{
    writing-mode:horizontal-tb;
    font-size:.82rem;
    letter-spacing:.22em;
    padding:0 .95rem;
    height:40px;
  }
  .contact{
    writing-mode:horizontal-tb;
    font-size:.82rem;
    letter-spacing:.14em;
    padding:0 .9rem;
    height:40px;
    display:inline-flex;
    align-items:center;
    border:1px solid var(--ink);
  }
  .main{grid-template-columns:1fr}
  .article{padding:0 clamp(1.1rem,5vw,2rem) 3rem}
  .hero{
    min-height:calc(100svh - 56px);
    padding-top:1.8rem;
    gap:1.4rem;
  }
  .hero-fig{min-height:32vh}
  .article > div[id]{scroll-margin-top:72px}
  .side{
    position:static;
    min-height:0;
    border-left:0;
    border-top:1px solid var(--ink);
    padding:1.8rem clamp(1.1rem,5vw,2rem) 2.4rem;
  }
  .foot-cols{grid-template-columns:1fr 1fr;gap:1.6rem}
  .copy{letter-spacing:.08em}
  .overlay{padding:1.1rem 1.2rem 2rem}
}
@media (max-width:430px){
  .foot-cols{grid-template-columns:1fr}
  .hero-h1{letter-spacing:-.02em}
}

/* ---- 降低动效 ---- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .overlay{transition:none}
  .ov-name,.side-list a,.burger,.closer,.foot a{transition:none}
}

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