*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:#000;
  font-family:"Nunito Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:1.0625rem;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.005em;
}
body.locked{overflow:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{font-family:"Varela Round","Nunito Sans",system-ui,"PingFang SC",sans-serif;font-weight:400;line-height:1.16;letter-spacing:-.015em;margin:0}
p{margin:0 0 1.05em}
hr{border:0;border-top:1px solid #000;margin:0}
::selection{background:#000;color:#fff}
:focus-visible{outline:3px solid #000;outline-offset:3px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:99;
  background:#000;color:#fff;padding:.7rem 1.1rem;text-decoration:none;
  border-radius:0 0 14px 0;
}
.skip:focus{left:0}

/* ---------- 报头 ---------- */
.masthead{
  position:sticky;top:0;z-index:40;
  background:#fff;
  border-bottom:2px solid #000;
  padding:.55rem 1.1rem .5rem;
}
.mast-brand{display:flex;align-items:center;justify-content:flex-start;padding:.35rem 0 .5rem}
.mark{
  font-family:"Varela Round",system-ui,sans-serif;
  font-size:clamp(1.5rem,5.4vw,2.1rem);
  line-height:1.05;
  text-decoration:none;
  letter-spacing:-.02em;
  display:inline-flex;align-items:center;min-height:44px;
}
.mark::after{content:"";display:inline-block;width:.42em;height:.42em;border-radius:50%;background:#000;margin-left:.3em}
.mast-tools{
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;
  border-top:1px solid #000;padding-top:.4rem;
}
.burger,.totop,.veil-close,.veil-search input{
  font:inherit;color:inherit;
}
.burger{
  border:2px solid #000;background:#fff;border-radius:999px;
  padding:.55rem 1.15rem;min-height:44px;
  letter-spacing:.14em;cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.burger:hover,.burger:focus-visible{background:#000;color:#fff}
.totop{
  text-decoration:none;font-size:.95rem;letter-spacing:.08em;
  display:inline-flex;align-items:center;min-height:44px;padding:0 .2rem;
  border-bottom:2px solid #000;
}

/* ---------- 全屏遮罩菜单 ---------- */
.veil{
  position:fixed;inset:0;z-index:60;
  background:#000;color:#fff;
  display:grid;grid-template-rows:auto auto 1fr auto;
  gap:1rem;padding:1.1rem 1.1rem 1.6rem;
  opacity:0;visibility:hidden;
  transform:translateY(-2.2%);
  transition:opacity .28s ease,transform .28s ease,visibility .28s;
  overflow-y:auto;
}
.veil.is-open{opacity:1;visibility:visible;transform:none}
.veil-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:2px solid #fff;padding-bottom:.7rem}
.veil-mark{font-family:"Varela Round",system-ui,sans-serif;font-size:1.35rem;letter-spacing:-.02em}
.veil-close{
  background:#000;color:#fff;border:2px solid #fff;border-radius:999px;
  padding:.5rem 1.1rem;min-height:44px;cursor:pointer;letter-spacing:.12em;
}
.veil-close:hover,.veil-close:focus-visible{background:#fff;color:#000}
.veil-search{display:block}
.veil-search input{
  width:100%;background:#000;color:#fff;
  border:2px solid #fff;border-radius:999px;
  padding:.7rem 1.1rem;min-height:48px;font-size:1rem;
}
.veil-search input::placeholder{color:rgba(255,255,255,.6)}
.veil-nav ol{list-style:none;margin:0;padding:0}
.veil-nav li{border-bottom:1px solid rgba(255,255,255,.32)}
.veil-nav li.hide{display:none}
.veil-nav a{
  display:flex;align-items:center;min-height:58px;
  text-decoration:none;
  font-family:"Varela Round",system-ui,sans-serif;
  font-size:clamp(1.15rem,4.6vw,1.7rem);
  letter-spacing:-.01em;
  padding:.35rem .2rem;
  transition:padding-left .2s ease,opacity .2s ease;
}
.veil-nav a:hover,.veil-nav a:focus-visible{padding-left:.85rem}
.veil-empty{margin:0;font-size:.95rem;letter-spacing:.1em;color:rgba(255,255,255,.75)}

/* ---------- hero ---------- */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:45vh;
  display:grid;align-content:end;justify-items:end;
  text-align:right;
  background:#000;color:#fff;
  padding:2.4rem 1.2rem 2.2rem;
  border-radius:0 0 44px 44px;
  margin-bottom:2rem;
  scroll-margin-top:8.5rem;
}
.hero-fig{position:absolute;inset:0;margin:0;z-index:-2}
.hero-fig img{width:100%;height:100%;object-fit:cover;opacity:.52;filter:grayscale(1)}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(200deg,rgba(0,0,0,.15),rgba(0,0,0,.82))}
.hero-ghost{
  position:absolute;left:.35rem;bottom:-.35rem;z-index:-1;
  font-family:"Varela Round",system-ui,sans-serif;
  font-size:clamp(3.2rem,17vw,10.5rem);
  line-height:.8;letter-spacing:-.04em;
  color:transparent;-webkit-text-stroke:1.4px rgba(255,255,255,.45);
  pointer-events:none;
}
.hero-copy{position:relative;max-width:34ch}
.hero h1{font-size:clamp(1.9rem,7.4vw,3.6rem);text-wrap:balance}
.hero-dek{margin:.85rem 0 0;font-size:1rem;line-height:1.6;color:rgba(255,255,255,.9);max-width:34ch}

/* ---------- 主区：aside 在左 ---------- */
main{padding:0 1.2rem}
.wrap{max-width:1180px;margin:0 auto}
.rail{
  border-top:2px solid #000;
  padding:1.1rem 0 .4rem;
  margin-bottom:1.6rem;
}
.rail-title{font-size:1.05rem;letter-spacing:.05em}
.rail hr{width:44px;border-top:4px solid #000;margin:.55rem 0 .9rem}
.rail-list{
  list-style:none;margin:0;padding:0;
  display:flex;gap:.5rem;overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding-bottom:.5rem;
}
.rail-list li{flex:0 0 auto}
.rail-list a{
  display:inline-flex;align-items:center;min-height:42px;
  padding:.3rem .85rem;
  border:1.5px solid #000;border-radius:999px;
  text-decoration:none;font-size:.92rem;line-height:1.35;white-space:nowrap;
  transition:background .18s ease,color .18s ease;
}
.rail-list a:hover,.rail-list a:focus-visible{background:#000;color:#fff}

.col-main{min-width:0}

/* ---------- 正文排版 ---------- */
.prose{padding-bottom:2.4rem}
.js .prose > div{
  opacity:0;transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
.js .prose > div.in{opacity:1;transform:none}
.prose > div{
  padding:2.4rem 0 1.2rem;
  border-top:1px dashed rgba(0,0,0,.4);
  scroll-margin-top:9rem;
}
.prose > div:first-child{border-top:0;padding-top:0}
.prose > div:nth-child(2){transition-delay:.05s}
.prose > div:nth-child(3){transition-delay:.1s}
.prose > div:nth-child(4){transition-delay:.15s}
.prose > div:nth-child(5){transition-delay:.2s}
.prose > div:nth-child(6){transition-delay:.25s}
.prose > div:nth-child(7){transition-delay:.3s}

.prose h2{font-size:clamp(1.5rem,5.2vw,2.3rem);margin:0}
.prose h2 + hr{width:62px;border:0;border-top:5px solid #000;margin:.7rem 0 1.2rem}
.prose h3{font-size:1.2rem;margin:1.8rem 0 .6rem}
.prose ul,.prose ol{padding-left:1.25rem;margin:0 0 1.1em}
.prose li{margin:.35em 0}
.prose a{
  text-decoration:none;
  background-image:linear-gradient(#000,#000);
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:100% 2px;
  padding-bottom:1px;
}
.prose a:hover{background-size:100% 4px}
.prose strong{font-weight:700}
.prose img,.prose figure img{border-radius:28px;margin:1.3rem 0}
.prose figure{margin:1.4rem 0}
.prose figcaption{font-size:.9rem;letter-spacing:.04em;color:rgba(0,0,0,.62);margin-top:.5rem}
.prose blockquote{
  margin:1.6rem 0;padding:1.15rem 1.2rem 1.15rem 1.35rem;
  border-left:7px solid #000;
  background:#f2f2f2;border-radius:0 28px 28px 0;
  font-size:1.14rem;line-height:1.6;letter-spacing:-.005em;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{width:100%;border-collapse:collapse;margin:1.2rem 0;font-size:.96rem;display:block;overflow-x:auto}
.prose th,.prose td{border-bottom:1px solid #000;padding:.55rem .6rem;text-align:left}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.92em;background:#eee;border-radius:6px;padding:.1em .35em;
}
@media (min-width:760px){
  .prose > div > p:first-of-type::first-letter{
    float:left;
    font-family:"Varela Round",system-ui,sans-serif;
    font-size:3.5em;line-height:.82;
    padding:.06em .12em 0 0;margin-right:.04em;
  }
  .prose blockquote{margin-left:1.6rem}
}

/* ---------- 页脚 ---------- */
.colophon{
  border-top:2px solid #000;
  margin-top:2rem;
  padding:2.2rem 1.2rem 1.2rem;
}
.foot-grid{display:grid;gap:1.5rem;grid-template-columns:1fr}
.wordmark{
  font-family:"Varela Round",system-ui,sans-serif;
  font-size:clamp(1.5rem,6vw,2rem);line-height:1.1;
  letter-spacing:-.02em;margin:0;
}
.f-col ul{list-style:none;margin:0;padding:0}
.f-col a,.f-top a,.foot-bar a{
  display:inline-flex;align-items:center;min-height:42px;
  text-decoration:none;padding:.15rem 0;
  background-image:linear-gradient(#000,#000);
  background-repeat:no-repeat;background-position:0 100%;background-size:0 2px;
  transition:background-size .2s ease;
}
.f-col a:hover,.f-top a:hover,.foot-bar a:hover,
.f-col a:focus-visible,.f-top a:focus-visible,.foot-bar a:focus-visible{background-size:100% 2px}
.foot-bar{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  flex-wrap:wrap;
  border-top:1px solid rgba(0,0,0,.35);
  margin-top:1.8rem;padding-top:.7rem;
  font-size:.9rem;letter-spacing:.03em;
}
.foot-bar p{margin:0}

@media (min-width:800px){
  .foot-grid{grid-template-columns:1.5fr .9fr .9fr auto;gap:2.2rem}
  .f-top{text-align:right}
}

/* ---------- 大屏：非对称双栏 ---------- */
@media (min-width:900px){
  .wrap{
    display:grid;
    grid-template-columns:248px minmax(0,1fr);
    gap:3.2rem;
    align-items:start;
  }
  .rail{
    position:sticky;top:9rem;
    border-top:0;
    padding-top:0;
    margin-bottom:0;
  }
  .rail-list{flex-direction:column;overflow:visible;gap:.45rem;padding-bottom:0}
  .rail-list a{width:100%;border-radius:14px;white-space:normal}
  .prose p,.prose ul,.prose ol{max-width:64ch}
  .prose h2 + hr{width:84px}
  .hero{padding:3rem 2.2rem 2.6rem;min-height:48vh}
  .masthead{padding:.6rem 2rem .5rem}
  .mast-tools{max-width:1180px;margin:0 auto;width:100%}
  .mast-brand{max-width:1180px;margin:0 auto;width:100%}
  main{padding:0 2rem}
  .colophon{padding:2.6rem 2rem 1.4rem}
  .foot-grid{max-width:1180px;margin:0 auto}
  .foot-bar{max-width:1180px;margin-left:auto;margin-right:auto}
}

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

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