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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --smoke:#f4f4f1;
  --line:#dcdcd7;
  --mute:#5f5f5c;
  --rail:200px;
  --bar:38px;
  --serif:'Lora',Georgia,'Songti SC','Times New Roman',serif;
  --sans:'Raleway','Helvetica Neue',Arial,'PingFang SC','Microsoft YaHei',sans-serif;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:#131313;
  font-family:var(--sans);
  font-size:17px;
  font-weight:400;
  line-height:1.78;
  letter-spacing:.01em;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.14;
  letter-spacing:-.015em;
  margin:0;
}
p{margin:0 0 1.35rem}

/* ---- 顶部细条 ---- */
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  height:var(--bar);
  display:flex;
  align-items:center;
  padding:0 1.25rem;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  letter-spacing:.34em;
  z-index:60;
}
.topbar-txt{padding-left:.05em}

/* ---- 左侧固定竖排栏 ---- */
.rail{
  position:fixed;
  left:0;
  top:var(--bar);
  bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:1.35rem;
  padding:1.4rem 1.1rem 2rem;
  background:var(--paper);
  border-right:1px solid var(--line);
  overflow-y:auto;
  z-index:50;
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border:1px solid var(--ink);
  border-radius:50%;
  text-decoration:none;
  font-family:var(--serif);
  font-size:19px;
  font-weight:700;
  flex:0 0 auto;
}
.mark-img{width:26px;height:26px;object-fit:contain}

.menu{display:block;min-width:0}
.menu summary{
  list-style:none;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.3rem 0;
  font-size:16px;
  letter-spacing:.22em;
  color:var(--mute);
  cursor:pointer;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.menu summary::-webkit-details-marker{display:none}
.menu summary::after{
  content:"＋";
  margin-left:auto;
  letter-spacing:0;
  font-size:15px;
  color:var(--ink);
}
.menu[open] > summary::after{content:"－"}

.menu menu{
  list-style:none;
  margin:0;
  padding:.7rem 0 0;
}
.nav li + li{margin-top:.1rem}
.nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.3rem 0;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .25s ease,color .25s ease;
}
.nav a:hover,.nav a:focus-visible{
  border-color:var(--ink);
  color:var(--mute);
}

@media (min-width:900px){
  .menu menu{display:block}
}

/* ---- 主体 ---- */
main{margin-left:var(--rail);padding-top:var(--bar)}
.wrap{display:block}

/* ---- 头图 ---- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:70vh;
  display:grid;
  align-content:end;
  padding:6rem 1.5rem 3.5rem;
  background:var(--ink);
  color:var(--paper);
}
.hero-img{
  position:absolute;
  inset:-12% 0;
  z-index:-1;
  width:100%;
  height:124%;
  object-fit:cover;
  opacity:.52;
  filter:grayscale(1) contrast(1.1);
  will-change:transform;
}
.hero h1{
  font-size:clamp(2.1rem,5.4vw,4.2rem);
  max-width:24ch;
  text-wrap:balance;
}
.stand{
  margin:1.35rem 0 0;
  max-width:42ch;
  font-size:1.02rem;
  line-height:1.72;
  color:#ecece8;
  border-left:2px solid var(--paper);
  padding-left:1rem;
}

/* ---- 版式 ---- */
.stage{
  display:grid;
  grid-template-columns:minmax(0,15rem) minmax(0,1fr);
  align-items:start;
  gap:clamp(1.6rem,4vw,4.5rem);
  padding:clamp(2rem,4.6vw,4.5rem) clamp(1.25rem,3.6vw,4rem) 4.5rem;
}

.railside{
  position:sticky;
  top:calc(var(--bar) + 1.75rem);
  padding:1.15rem 1.15rem 1.4rem;
  background:var(--paper);
  border-radius:28px;
  box-shadow:0 20px 44px -30px rgba(0,0,0,.42),0 0 0 1px var(--line);
}
.aside-h{
  font-family:var(--sans);
  font-size:16px;
  font-weight:600;
  letter-spacing:.3em;
  color:var(--mute);
  margin:0 0 .9rem;
}
.index{
  list-style:none;
  counter-reset:ix;
  margin:0;
  padding:0;
}
.index li{counter-increment:ix}
.index a{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  min-height:44px;
  padding:.45rem 0;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid var(--line);
  transition:color .25s ease,padding-left .25s ease;
}
.index a::before{
  content:counter(ix,decimal-leading-zero);
  font-family:var(--serif);
  font-size:15px;
  color:var(--mute);
  flex:0 0 auto;
}
.index a:hover,.index a:focus-visible{color:var(--mute);padding-left:.25rem}

/* ---- 正文 ---- */
.prose{
  min-width:0;
  max-width:70ch;
  font-size:1.02rem;
}
.prose div{
  padding:3rem 0;
  border-top:1px solid var(--line);
  scroll-margin-top:calc(var(--bar) + 1.5rem);
}
.prose div:first-child{border-top:0;padding-top:0}
.prose div:last-child{padding-bottom:1rem}
.prose h2{
  font-size:clamp(1.55rem,3.1vw,2.35rem);
  margin:0 0 1.1rem;
}
.prose h3{
  font-size:clamp(1.2rem,2.1vw,1.5rem);
  margin:2rem 0 .8rem;
}
.prose h2 span::before,
.prose h3 span::before{
  content:"";
  display:block;
  width:2.6rem;
  height:3px;
  background:var(--ink);
  margin-bottom:.85rem;
}
.prose h3 span::before{width:1.5rem;height:2px;margin-bottom:.6rem}
.prose div:first-child > p:first-of-type::first-letter{
  float:left;
  font-family:var(--serif);
  font-size:4.1rem;
  font-weight:600;
  line-height:.84;
  padding:.18rem .6rem .1rem 0;
  color:var(--ink);
}
.prose ul,.prose ol{padding-left:1.3rem;margin:0 0 1.35rem}
.prose li{margin:.42rem 0}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose blockquote{
  margin:2.2rem 0;
  padding:.2rem 0 .2rem 1.25rem;
  border-left:3px solid var(--ink);
  font-family:var(--serif);
  font-size:1.26rem;
  line-height:1.52;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{margin:2.2rem 0}
.prose figure img{border-radius:22px;box-shadow:0 22px 46px -32px rgba(0,0,0,.5)}
.prose figcaption{
  margin-top:.65rem;
  padding-top:.5rem;
  border-top:1px solid var(--line);
  font-size:16px;
  color:var(--mute);
}
.prose hr{border:0;border-top:1px solid var(--line);margin:2.2rem 0}
.prose table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1.35rem}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:.55rem .5rem;text-align:left}

@media (min-width:1000px){
  .prose div.cols{columns:2;column-gap:2.9rem}
  .prose div.cols > *{max-width:100%}
  .prose div.cols > h2,.prose div.cols > h3{column-span:all}
}

/* ---- 页脚 ---- */
.foot{
  margin-left:var(--rail);
  padding:clamp(2rem,4vw,3.6rem) clamp(1.25rem,3.6vw,4rem) 1.4rem;
  background:var(--smoke);
  border-top:2px solid var(--ink);
}
.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:1.1rem;
  padding-bottom:2.4rem;
  border-bottom:1px solid var(--line);
}
.cta-h{font-size:clamp(1.55rem,4vw,2.9rem);max-width:26ch}
.cta-a{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 1.5rem;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  letter-spacing:.12em;
  text-decoration:none;
}
.cta-a:hover{opacity:.82}

.cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2rem;
  padding:2.4rem 0;
}
.cols dl{margin:0}
.cols dt{
  font-family:var(--serif);
  font-weight:600;
  font-size:16px;
  margin-bottom:.85rem;
  padding-bottom:.55rem;
  border-bottom:1px solid var(--ink);
}
.cols dd{margin:0}
.cols dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
  color:#2b2b2b;
}
.cols dd a:hover{text-decoration:underline}

.copy{
  margin:0;
  padding-top:1rem;
  border-top:1px solid var(--line);
  font-size:16px;
  color:var(--mute);
}

/* ---- 动效 ---- */
html.js .reveal{opacity:0;transform:translateY(14px)}
html.js .reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .7s ease,transform .7s ease;
}

@media (prefers-reduced-motion:no-preference){
  .railside .index li{opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}
  .stage.seen .railside .index li{opacity:1;transform:none}
  .stage.seen .railside .index li:nth-child(2){transition-delay:.05s}
  .stage.seen .railside .index li:nth-child(3){transition-delay:.1s}
  .stage.seen .railside .index li:nth-child(4){transition-delay:.15s}
  .stage.seen .railside .index li:nth-child(5){transition-delay:.2s}
  .stage.seen .railside .index li:nth-child(6){transition-delay:.25s}
  .stage.seen .railside .index li:nth-child(7){transition-delay:.3s}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-img{will-change:auto}
}

/* ---- 窄屏 ---- */
@media (max-width:899px){
  .topbar{
    position:static;
    height:auto;
    padding:.6rem 1rem;
    font-size:16px;
    letter-spacing:.28em;
  }
  .rail{
    position:sticky;
    top:0;
    left:auto;
    bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:.75rem;
    padding:.55rem 1rem;
    border-right:0;
    border-bottom:1px solid var(--ink);
    overflow:visible;
  }
  .menu{position:relative;margin-left:auto}
  .menu summary{
    border-bottom:0;
    border-top:0;
    padding:0 .2rem;
    min-height:46px;
    letter-spacing:.14em;
  }
  .menu[open] menu{
    position:absolute;
    top:100%;
    right:-1rem;
    left:auto;
    width:min(78vw,20rem);
    margin:0;
    padding:.9rem 1.15rem 1.15rem;
    background:var(--paper);
    border:1px solid var(--ink);
    border-radius:0 0 22px 22px;
    box-shadow:0 26px 48px -30px rgba(0,0,0,.55);
    z-index:70;
  }
  main,.foot{margin-left:0}
  main{padding-top:0}
  .hero{min-height:62vh;padding:4rem 1.25rem 2.6rem}
  .stage{
    grid-template-columns:1fr;
    gap:2rem;
    padding:1.75rem 1.15rem 3rem;
  }
  .railside{position:static;order:-1;border-radius:22px}
  .prose{max-width:none}
  .prose div{padding:2.25rem 0;scroll-margin-top:4.75rem}
  .prose div:first-child > p:first-of-type::first-letter{font-size:3.4rem}
  .cols{grid-template-columns:1fr;gap:1.5rem;padding:1.9rem 0}
  .cta{padding-bottom:1.9rem}
  .prose figure img{border-radius:16px}
}

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