@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

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

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

body{
  margin:0;
  background:#fff;
  color:#000;
  font-family:"Libre Baskerville",Georgia,"Songti SC",serif;
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%}

a{color:#000}
a:focus-visible,
button:focus-visible,
input:focus-visible{outline:2px solid #000;outline-offset:3px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:70;
  background:#000;color:#fff;padding:12px 18px;
  font-size:.9rem;text-decoration:none;
}
.skip:focus{left:10px;top:10px}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:264px;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  padding:2rem 1.6rem;
  background:#fff;
  border-right:1px solid #000;
  z-index:40;
}

.mark{
  display:block;
  min-height:44px;
  font-family:"Cormorant Garamond","Libre Baskerville",serif;
  font-size:1.5rem;
  font-weight:600;
  line-height:1.15;
  letter-spacing:.01em;
  text-decoration:none;
}

.burger{
  position:relative;
  z-index:41;
  align-self:flex-start;
  min-height:44px;
  padding:10px 18px;
  background:#fff;
  color:#000;
  border:1px solid #000;
  border-radius:999px;
  font-family:inherit;
  font-size:.82rem;
  letter-spacing:.22em;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.burger:hover{background:#000;color:#fff}
body.menu-open .burger{z-index:60;background:#000;color:#fff;border-color:#fff}

.reach{
  margin-top:auto;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0;
  font-size:.84rem;
  letter-spacing:.18em;
  text-decoration:none;
  border-bottom:1px solid #000;
}
.reach:hover{opacity:.6}

.drawer{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:5rem 1.4rem 2rem;
  overflow-y:auto;
  background:#000;
  color:#fff;
  visibility:hidden;
  opacity:0;
  transform:translateY(-10px);
  transition:opacity .22s ease,transform .22s ease,visibility .22s;
}
.drawer[data-open]{visibility:visible;opacity:1;transform:none}

.drawer ol{
  list-style:none;
  counter-reset:n;
  margin:0;
  padding:0;
  width:100%;
  max-width:560px;
}
.drawer li{
  counter-increment:n;
  display:flex;
  align-items:center;
  gap:1rem;
  border-bottom:1px solid rgba(255,255,255,.24);
}
.drawer li::before{
  content:counter(n,decimal-leading-zero);
  font-size:.7rem;
  letter-spacing:.12em;
  opacity:.6;
}
.drawer a{
  flex:1;
  display:flex;
  align-items:center;
  min-height:56px;
  padding:.4rem 0;
  color:#fff;
  text-decoration:none;
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(1.2rem,3.4vw,1.9rem);
  line-height:1.2;
  transition:opacity .2s ease;
}
.drawer a:hover{opacity:.65}

/* ---------- 主体 ---------- */
.stage{margin-left:264px}

.lead{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(1.5rem,3vw,2.5rem);
  align-items:center;
  min-height:45vh;
  padding:clamp(2rem,4vw,3.5rem) clamp(1.25rem,4vw,3rem);
  border-bottom:1px solid #000;
}

.lead-copy h1{
  margin:0 0 1rem;
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:clamp(1.9rem,5.4vw,3.6rem);
  line-height:1.06;
  letter-spacing:-.012em;
}

.lede{
  margin:0 0 1.6rem;
  max-width:42ch;
  font-size:1rem;
  line-height:1.7;
  color:#242424;
}

.jump{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 22px;
  border:1px solid #000;
  border-radius:999px;
  font-size:.86rem;
  letter-spacing:.16em;
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.jump:hover{background:#000;color:#fff}

.lead-fig{
  margin:0;
  min-height:38vh;
  border:1px solid #000;
  border-radius:18px;
  overflow:hidden;
  background-color:#fafafa;
  background-image:radial-gradient(#c9c9c9 1px,transparent 1px);
  background-size:16px 16px;
}

.lead-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.doc{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:clamp(2rem,4vw,3.5rem);
  max-width:1100px;
  margin:0 auto;
  padding:clamp(2.5rem,5vw,4rem) clamp(1.25rem,4vw,3rem);
}

.toc{
  position:sticky;
  top:1.5rem;
  align-self:start;
  padding:1.2rem 1.1rem;
  border:1px solid #000;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.06);
}
.toc h2{
  margin:0 0 .7rem;
  font-family:"Libre Baskerville",serif;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.2em;
}
.toc hr,.f-form hr{
  border:0;
  border-top:1px solid #000;
  margin:0 0 .8rem;
}
.toc ol{list-style:none;margin:0;padding:0;font-size:.9rem;line-height:1.5}
.toc a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.25rem 0;
  text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.12);
  transition:opacity .2s ease;
}
.toc li:last-child a{border-bottom:0}
.toc a:hover{opacity:.6}

/* ---------- 正文 ---------- */
.prose{
  max-width:68ch;
  font-size:1rem;
  line-height:1.8;
}
.prose section{
  scroll-margin-top:92px;
  padding-top:2.4rem;
  margin-top:2.4rem;
  border-top:1px solid #000;
}
.prose section:first-child{padding-top:0;margin-top:0;border-top:0}
.prose h1,
.prose h2{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:clamp(1.6rem,3vw,2.1rem);
  line-height:1.2;
  letter-spacing:-.01em;
  margin:0 0 .6rem;
}
.prose h3{
  font-family:"Cormorant Garamond",serif;
  font-weight:600;
  font-size:1.3rem;
  line-height:1.3;
  margin:1.8rem 0 .4rem;
}
.prose h2 + hr,
.prose h3 + hr{
  border:0;
  border-top:1px solid #000;
  margin:0 0 1.4rem;
}
.prose hr{border:0;border-top:1px solid #000;margin:1.2rem 0 1.6rem}
.prose p{margin:0 0 1.15rem}
.prose ul,.prose ol{padding-left:1.3rem;margin:0 0 1.15rem}
.prose li{margin-bottom:.4rem}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose a:hover{opacity:.65}
.prose figure{margin:1.6rem 0}
.prose img{display:block;height:auto;border-radius:6px}
.prose blockquote{
  margin:1.6rem 0;
  padding-left:1.1rem;
  border-left:2px solid #000;
  font-style:italic;
}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem;margin:1.2rem 0}
.prose th,.prose td{border-bottom:1px solid #000;padding:.6rem .5rem;text-align:left}

/* ---------- 页脚 ---------- */
footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(1.5rem,3vw,2.5rem);
  align-items:start;
  max-width:1100px;
  margin:0 auto;
  padding:2.6rem clamp(1.25rem,4vw,3rem) 3rem;
  border-top:1px solid #000;
}

.f-form{
  padding:1.3rem 1.25rem 1.4rem;
  border:1px solid #000;
  border-radius:18px;
  box-shadow:0 16px 36px rgba(0,0,0,.06);
}
.f-form h2{
  margin:0 0 .7rem;
  font-family:"Libre Baskerville",serif;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.2em;
}
.f-form label{
  display:block;
  margin-bottom:.4rem;
  font-size:.8rem;
  letter-spacing:.16em;
}
.f-row{display:flex;flex-wrap:wrap;gap:.6rem}
.f-row input{
  flex:1 1 10rem;
  min-height:44px;
  padding:.5rem .8rem;
  border:1px solid #000;
  border-radius:6px;
  background:#fff;
  color:#000;
  font-family:inherit;
  font-size:.95rem;
}
.f-row button{
  min-height:44px;
  padding:0 22px;
  border:1px solid #000;
  border-radius:999px;
  background:#000;
  color:#fff;
  font-family:inherit;
  font-size:.85rem;
  letter-spacing:.14em;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.f-row button:hover{background:#fff;color:#000}

.f-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  font-size:.85rem;
}
.copy{margin:0;letter-spacing:.06em}
.flinks{margin:0;display:flex;flex-wrap:wrap;gap:.4rem}
.flinks a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 .55rem;
  text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.35);
}
.flinks a:hover{opacity:.6}

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

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .rail{
    position:sticky;
    inset:auto;
    top:0;
    width:auto;
    height:auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:.8rem;
    padding:.6rem 1rem;
    border-right:0;
    border-bottom:1px solid #000;
  }
  .mark{min-height:0;font-size:1.12rem;line-height:1.2}
  .burger{order:3;padding:9px 15px;font-size:.76rem;letter-spacing:.18em}
  .reach{margin-top:0;order:2;min-height:40px;font-size:.78rem;letter-spacing:.12em}
  .stage{margin-left:0}
  .lead{grid-template-columns:1fr;min-height:0;gap:1.5rem;padding-top:1.8rem}
  .lead-fig{order:2;min-height:30vh}
  .doc{grid-template-columns:1fr;gap:2rem;padding:2.2rem 1.25rem}
  .toc{position:static}
  footer{grid-template-columns:1fr;padding:2rem 1.25rem 2.6rem}
}

@media (max-width:420px){
  .flinks{gap:.1rem}
  .f-row button{flex:1 1 100%}
}

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