:root{
  --ink:#000000;
  --paper:#ffffff;
  --ash:#f1f1ef;
  --mid:#6d6d6b;
  --line:#d9d9d5;
  --r:18px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Lato,"Helvetica Neue",Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  letter-spacing:.004em;
}

h1,h2,h3,h4{
  margin:0;
  font-family:"EB Garamond",Georgia,"Songti SC","Times New Roman",serif;
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.012em;
}

p{margin:0 0 1.1em}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

::selection{background:var(--ink);color:var(--paper)}

/* ---------- 左侧竖排导航 ---------- */
.railbox{
  position:fixed;
  top:0;left:0;bottom:0;
  z-index:30;
  width:216px;
  display:flex;
  flex-direction:column;
  padding:26px 22px 32px;
  background:var(--paper);
  border-right:1.5px solid var(--ink);
}

.mast{margin:0}
.mark{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:none;
}
.logo{width:40px;height:40px;object-fit:contain}
.logo-text{
  font-family:"EB Garamond",Georgia,serif;
  font-size:18px;
  font-weight:700;
  letter-spacing:.02em;
}

.rail{margin-top:auto;max-height:62vh;overflow-y:auto;scrollbar-width:thin}
.rail::-webkit-scrollbar{width:0;height:0}
.rail ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  font-size:16px;
  line-height:1.3;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease,transform .2s ease;
}
.rail a:hover{border-bottom-color:var(--ink);transform:translateX(3px)}

/* ---------- 右侧主按钮 ---------- */
.jump{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-50%);
  z-index:25;
  padding:22px 12px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  letter-spacing:.18em;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  text-decoration:none;
  border-radius:999px 0 0 999px;
  transition:padding .25s ease;
}
.jump:hover{padding-right:17px}

/* ---------- 主体 ---------- */
main{margin-left:216px;display:block}

.wrap{
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  gap:clamp(20px,3vw,48px);
  max-width:1300px;
  padding:0 clamp(56px,5vw,92px) 96px clamp(18px,2.4vw,40px);
}

.side{
  position:sticky;
  top:88px;
  align-self:start;
  padding-top:clamp(56px,9vh,116px);
}

.side-title{
  font-family:Lato,sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.28em;
}

.subtitle{
  margin:.34rem 0 1.15rem;
  font-family:Lato,sans-serif;
  font-size:16px;
  line-height:1.4;
  color:var(--mid);
}

.side ol{list-style:none;margin:0;padding:0}
.side a{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-height:40px;
  padding:4px 0;
  font-size:16px;
  line-height:1.35;
  color:var(--mid);
  text-decoration:none;
  transition:color .18s ease;
}
.side a:hover{color:var(--ink)}
.num{
  font-family:"EB Garamond",Georgia,serif;
  font-size:16px;
  color:var(--ink);
  opacity:.45;
}

.arena{min-width:0}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  gap:clamp(22px,4vh,46px);
  min-height:100vh;
  min-height:100svh;
  padding:clamp(88px,12vh,148px) 0 48px;
  text-align:right;
}

.hero h1{
  margin-left:auto;
  max-width:15ch;
  font-size:clamp(2.3rem,6.3vw,5.3rem);
}

.hero-fig{margin:0}
.hero-img{
  width:100%;
  height:min(36vh,380px);
  object-fit:cover;
  border-radius:var(--r);
}

.badge{
  position:absolute;
  left:0;
  top:clamp(48px,9vh,110px);
  padding:8px 18px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  letter-spacing:.24em;
  border-radius:999px;
  transform:rotate(-2deg);
}

/* ---------- 正文 ---------- */
.prose{
  max-width:860px;
  padding-bottom:32px;
  overflow-wrap:break-word;
}

.prose section{
  margin-bottom:clamp(20px,3vw,32px);
  padding:clamp(24px,3.4vw,44px);
  background:var(--ash);
  border-radius:var(--r);
  scroll-margin-top:96px;
}
.prose section:last-of-type{margin-bottom:0}

.prose h2{
  font-size:clamp(1.7rem,3.4vw,2.55rem);
  margin-bottom:.4rem;
}
.prose h3{
  font-size:1.3rem;
  margin:1.7em 0 .5em;
}
.prose h4{font-size:1.12rem;margin:1.4em 0 .4em}

.prose p,
.prose ul,
.prose ol{
  font-family:"EB Garamond",Georgia,"Songti SC",serif;
  font-size:19px;
  line-height:1.76;
}

.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.15em}
.prose li{margin-bottom:.45em}

.prose a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{background:var(--ink);color:var(--paper)}

.prose figure{margin:1.6em 0}
.prose figure img{width:100%;border-radius:12px}
.prose figcaption{
  margin-top:.5em;
  font-family:Lato,sans-serif;
  font-size:16px;
  color:var(--mid);
}

.prose blockquote{
  margin:1.6em 0;
  padding-left:1.1rem;
  border-left:4px solid var(--ink);
  font-family:"EB Garamond",Georgia,serif;
  font-size:21px;
  font-style:italic;
  line-height:1.6;
}
.prose blockquote p{font-size:21px}

.prose table{width:100%;border-collapse:collapse;font-size:17px;margin:1.5em 0}
.prose th,.prose td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left}

.prose section:first-of-type>p:first-of-type::first-letter{
  float:left;
  padding:.05em .12em 0 0;
  font-family:"EB Garamond",Georgia,serif;
  font-size:4.1em;
  font-weight:600;
  line-height:.82;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-left:216px;
  padding:clamp(40px,6vw,80px) clamp(22px,4vw,56px) 28px;
  background:var(--ink);
  color:var(--paper);
  border-radius:var(--r) var(--r) 0 0;
}

.foot-cta{margin-bottom:clamp(32px,5vw,60px)}
.foot-big{
  display:inline-block;
  padding-bottom:.08em;
  font-family:"EB Garamond",Georgia,serif;
  font-size:clamp(2rem,5.6vw,4rem);
  line-height:1.06;
  letter-spacing:-.02em;
  text-decoration:none;
  border-bottom:3px solid var(--paper);
  transition:opacity .2s ease;
}
.foot-big:hover{opacity:.7}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(18px,3vw,40px);
}
.foot-cols dl{margin:0}
.foot-cols dt{
  font-size:16px;
  letter-spacing:.22em;
  color:#9d9d9d;
}
.foot-cols dd{margin:.65rem 0 0;font-size:17px;line-height:1.5}
.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px 0;
  font-size:17px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
.foot-cols a:hover{border-bottom-color:var(--paper)}

.copy{
  margin:clamp(30px,4vw,52px) 0 0;
  padding-top:18px;
  border-top:1px solid #3a3a3a;
  font-size:16px;
  color:#9d9d9d;
}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .62s ease,transform .62s cubic-bezier(.2,.72,.2,1);
}
.reveal.in{opacity:1;transform:none}
.foot-cols dl:nth-child(2){transition-delay:.07s}
.foot-cols dl:nth-child(3){transition-delay:.14s}
.foot-cols dl:nth-child(4){transition-delay:.21s}

/* ---------- 宽屏双栏 ---------- */
@media (min-width:1200px){
  .prose section{column-count:2;column-gap:2.6rem}
  .prose section>h2,
  .prose section>h3{column-span:all}
  .prose section>p,
  .prose section>ul,
  .prose section>ol,
  .prose section>blockquote,
  .prose section>figure{break-inside:avoid}
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .railbox{
    position:sticky;
    top:0;left:auto;bottom:auto;
    width:100%;
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:8px 14px;
    border-right:0;
    border-bottom:1.5px solid var(--ink);
  }

  .mark{flex:0 0 auto}
  .logo{width:34px;height:34px}
  .logo-text{font-size:17px}

  .rail{
    flex:1 1 auto;
    min-width:0;
    margin-top:0;
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  .rail ol{flex-direction:row;gap:6px}
  .rail a{
    white-space:nowrap;
    padding:6px 12px;
    border:1px solid var(--line);
    border-radius:999px;
  }
  .rail a:hover{border-color:var(--ink);transform:none}

  .side{display:none}
  main{margin-left:0}
  .wrap{display:block;padding:0 16px 56px}

  .hero{
    min-height:calc(100svh - 62px);
    padding:30px 0 32px;
  }
  .badge{top:14px;padding:7px 14px}
  .hero-img{height:min(30vh,250px)}

  .prose section{padding:24px 20px;scroll-margin-top:88px}
  .prose p,.prose ul,.prose ol,.prose blockquote p{font-size:18px}

  .foot{
    margin-left:0;
    padding-bottom:78px;
    border-radius:16px 16px 0 0;
  }
  .foot-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}

  .jump{
    top:auto;
    bottom:14px;
    right:14px;
    transform:none;
    writing-mode:horizontal-tb;
    padding:11px 18px;
    border-radius:999px;
    letter-spacing:.1em;
  }
}

@media (max-width:420px){
  .hero h1{font-size:clamp(2rem,9vw,2.6rem)}
  .foot-big{font-size:1.85rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .rail a:hover,.jump:hover{transform:none}
}

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