@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:#1f1f1f;
  --ink-2:#3c3c3c;
  --ink-3:rgba(31,31,31,.55);
  --paper:#ffffff;
  --mist:#f5f5f5;
  --line:rgba(31,31,31,.10);
  --line-2:rgba(31,31,31,.2);
  --glass:rgba(255,255,255,.74);
  --glass-2:rgba(255,255,255,.58);
  --e1:0 1px 2px rgba(31,31,31,.07),0 1px 1px rgba(31,31,31,.04);
  --e2:0 6px 16px -6px rgba(31,31,31,.18),0 2px 6px rgba(31,31,31,.06);
  --e3:0 18px 40px -18px rgba(31,31,31,.28),0 6px 14px rgba(31,31,31,.08);
  --e4:0 34px 74px -30px rgba(31,31,31,.36),0 12px 26px rgba(31,31,31,.1);
  --r:18px;
  --maxw:1160px;
  --serif:'Lora',Georgia,'Songti SC','DejaVu Serif',serif;
  --sans:'Raleway',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  padding-bottom:104px;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  color:var(--ink);
  background-color:var(--mist);
  background-image:
    radial-gradient(circle at 8% -12%,#fff 0,rgba(255,255,255,0) 58%),
    radial-gradient(circle at 96% 4%,#fff 0,rgba(255,255,255,0) 46%);
  background-attachment:fixed;
  overflow-x:hidden;
}

img{max-width:100%}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:8px}

/* ---------- 顶部悬浮标记 ---------- */
.nav-toggle{
  position:absolute;
  left:-9999px;
  width:1px;height:1px;
  opacity:0;
}
.dock{
  position:fixed;
  inset:0 0 auto 0;
  z-index:70;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px clamp(14px,3vw,30px);
  pointer-events:none;
}
.dock > *{pointer-events:auto}
.mark{
  width:48px;height:48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:15px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:var(--e3);
  color:var(--ink);
  text-decoration:none;
  font-family:var(--serif);
  font-size:21px;
  line-height:1;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s;
}
.mark img{width:100%;height:100%;object-fit:cover;display:block}
.mark-glyph{font-weight:700;transform:translateY(-1px)}
.mark:hover{transform:translateY(-2px) scale(1.04);box-shadow:var(--e4)}
.burger{
  display:flex;
  align-items:center;
  gap:9px;
  height:48px;
  padding:0 18px;
  border-radius:999px;
  background:rgba(31,31,31,.94);
  color:#fff;
  cursor:pointer;
  font-size:16px;
  letter-spacing:.14em;
  box-shadow:var(--e3);
  transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s,background .3s;
  user-select:none;
}
.burger:hover{transform:translateY(-2px);box-shadow:var(--e4)}
.burger-line{display:block;width:16px;height:1.5px;background:currentColor;border-radius:2px}
.burger-word{line-height:1}
.nav-toggle:checked ~ .dock .burger{background:var(--ink);box-shadow:var(--e4)}

/* ---------- 底部固定条 / 全屏遮罩 ---------- */
.menu{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));
  background:var(--glass);
  border-top:1px solid var(--line);
  box-shadow:0 -14px 34px -22px rgba(31,31,31,.45);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  backdrop-filter:blur(18px) saturate(1.15);
  transition:background .36s ease,padding .36s ease;
}
.menu-list{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:var(--maxw);
  display:flex;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.menu-list::-webkit-scrollbar{display:none}
.menu-list li{flex:0 0 auto}
.menu-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border-radius:999px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  white-space:nowrap;
  transition:background .25s,box-shadow .25s,transform .25s;
}
.menu-list a:hover{background:var(--paper);box-shadow:var(--e2);transform:translateY(-2px)}

.nav-toggle:checked ~ .menu{
  top:0;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow-y:auto;
  padding:104px 22px 44px;
  border-top:0;
  background:rgba(245,245,245,.9);
  -webkit-backdrop-filter:blur(28px) saturate(1.1);
  backdrop-filter:blur(28px) saturate(1.1);
}
.nav-toggle:checked ~ .menu .menu-list{
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  max-width:680px;
  overflow:visible;
}
.nav-toggle:checked ~ .menu .menu-list li{flex:1 1 100%}
.nav-toggle:checked ~ .menu .menu-list a{
  width:100%;
  justify-content:flex-start;
  padding:16px 22px;
  font-size:clamp(18px,4.2vw,22px);
  border-radius:16px;
  background:var(--paper);
  box-shadow:var(--e3);
}

/* ---------- 版面骨架：左索引 + 主栏 ---------- */
.stage{
  max-width:var(--maxw);
  margin:0 auto;
  padding:96px clamp(14px,3vw,30px) 34px;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:30px;
  align-items:start;
}

.rail{
  position:sticky;
  top:98px;
  z-index:2;
}
.rail-cap{
  margin:0 0 8px 13px;
  font-size:15px;
  letter-spacing:.28em;
  color:var(--ink-3);
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.rail-list a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:40px;
  padding:9px 13px;
  border-radius:12px;
  color:var(--ink-2);
  text-decoration:none;
  font-size:16px;
  transition:background .25s,box-shadow .25s,transform .25s,color .25s;
}
.rail-list a:hover{
  background:var(--paper);
  color:var(--ink);
  box-shadow:var(--e2);
  transform:translateX(3px);
}
.rail-num{
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:.1em;
  color:rgba(31,31,31,.42);
}

.main{min-width:0}

.sheet{
  position:relative;
  background:var(--paper);
  border:1px solid rgba(255,255,255,.95);
  border-radius:26px;
  box-shadow:var(--e4);
  overflow:hidden;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  padding:clamp(30px,6vw,66px);
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#f7f7f7 100%);
  isolation:isolate;
}
.hero::after{
  content:'';
  position:absolute;
  inset:-24% -6% -18% -6%;
  z-index:0;
  background-image:radial-gradient(circle at 1px 1px,rgba(31,31,31,.15) 1px,rgba(0,0,0,0) 0);
  background-size:22px 22px;
  transform:translate3d(0,var(--shift,0px),0);
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.25) 70%,rgba(0,0,0,.55));
  mask-image:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.25) 70%,rgba(0,0,0,.55));
  pointer-events:none;
}
.hero-title{
  position:relative;
  z-index:1;
  margin:0;
  max-width:15ch;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.4rem,6.6vw,4.7rem);
  line-height:1.1;
  letter-spacing:-.025em;
  text-wrap:balance;
}

/* ---------- 标题带 ---------- */
.brief{
  position:relative;
  z-index:1;
  padding:clamp(24px,4vw,44px) clamp(30px,6vw,66px);
  background:linear-gradient(180deg,var(--mist),#fbfbfb);
  border-bottom:1px solid var(--line);
}
.brief-title{
  margin:0 0 7px;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.32rem,2.5vw,1.75rem);
  line-height:1.3;
  letter-spacing:-.015em;
}
p.subtitle{
  margin:0;
  max-width:62ch;
  font-size:17px;
  line-height:1.72;
  color:var(--ink-2);
}

/* ---------- 正文 ---------- */
.prose{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:clamp(16px,2.6vw,28px);
  background:linear-gradient(180deg,#ffffff,#fafafa);
}
.prose > section{
  position:relative;
  background:var(--glass-2);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--e2);
  padding:clamp(20px,3.4vw,36px);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  transition:box-shadow .35s ease,transform .35s cubic-bezier(.2,.7,.3,1),border-color .35s;
}
.prose > section:hover{
  box-shadow:var(--e3);
  border-color:var(--line-2);
  transform:translateY(-3px);
}
.prose > section + section{margin-top:-4px}
.prose section[id]{scroll-margin-top:104px}

.prose :where(h2){
  margin:0 0 .55em;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.34rem,2.6vw,1.8rem);
  line-height:1.3;
  letter-spacing:-.015em;
}
.prose :where(h3){
  margin:1.4em 0 .5em;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.1rem,2vw,1.3rem);
  line-height:1.4;
}
.prose :where(p){margin:0 0 1em;max-width:66ch}
.prose :where(p):last-child{margin-bottom:0}
.prose :where(a){
  color:var(--ink);
  text-decoration-color:rgba(31,31,31,.34);
  text-underline-offset:3px;
  transition:color .2s,text-decoration-color .2s;
}
.prose :where(a:hover){text-decoration-color:var(--ink)}
.prose :where(ul,.prose ol){margin:0 0 1em;padding-left:1.25em}
.prose :where(li){margin:.34em 0}
.prose :where(ul li)::marker{color:rgba(31,31,31,.45)}
.prose :where(blockquote){
  margin:1.3em 0;
  padding:14px 20px;
  border-left:3px solid var(--ink);
  border-radius:0 13px 13px 0;
  background:var(--mist);
  color:var(--ink-2);
}
.prose :where(blockquote) p:last-child{margin-bottom:0}
.prose :where(strong){font-weight:600}
.prose :where(img){border-radius:14px;box-shadow:var(--e1);height:auto}
.prose :where(hr){border:0;border-top:1px solid var(--line);margin:1.8em 0}
.prose :where(pre){
  overflow-x:auto;
  padding:16px 18px;
  border-radius:13px;
  background:var(--ink);
  color:#f5f5f5;
  font-size:15px;
  line-height:1.6;
}
.prose :where(code){font-size:.94em}
.prose :where(table){width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.prose :where(th,.prose td){border-bottom:1px solid var(--line);padding:10px 12px;text-align:left}

/* ---------- 页脚 ---------- */
.foot{
  max-width:var(--maxw);
  margin:26px auto 0;
  padding:34px clamp(14px,3vw,30px) 40px;
  display:grid;
  grid-template-columns:1.15fr 1.55fr auto auto;
  gap:18px 34px;
  align-items:start;
  border-top:1px solid var(--line);
  text-align:center;
}
.foot > *{margin:0}
.foot-cta{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1.5rem,3.2vw,2.15rem);
  line-height:1.16;
  letter-spacing:-.02em;
  text-align:left;
}
.foot-desc{
  font-size:16px;
  line-height:1.7;
  color:var(--ink-2);
  max-width:48ch;
  text-align:left;
}
.foot-copy{
  align-self:end;
  font-size:15px;
  color:var(--ink-3);
}
.foot-note{
  align-self:end;
  font-size:15px;
  color:rgba(31,31,31,.42);
  letter-spacing:.06em;
}

/* ---------- 滚动揭示 ---------- */
html.js .reveal{
  opacity:0;
  transform:translate3d(0,16px,0);
  transition:opacity .62s ease,transform .62s cubic-bezier(.2,.7,.3,1);
}
html.js .reveal.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:1000px){
  .stage{grid-template-columns:200px minmax(0,1fr);gap:22px}
  .foot{grid-template-columns:1fr 1fr}
  .foot-cta,.foot-desc{text-align:left}
  .foot-copy{align-self:auto}
}

@media (max-width:860px){
  body{font-size:17px;padding-bottom:112px}
  .stage{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding-top:84px;
  }
  .rail{
    position:sticky;
    top:70px;
    z-index:30;
    padding:6px 0;
    margin:0 -2px;
    background:linear-gradient(180deg,rgba(245,245,245,.96),rgba(245,245,245,.7));
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
    border-radius:14px;
  }
  .rail-cap{display:none}
  .rail-list{
    flex-direction:row;
    gap:6px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:0 2px;
  }
  .rail-list::-webkit-scrollbar{display:none}
  .rail-list li{flex:0 0 auto}
  .rail-list a{
    min-height:42px;
    padding:9px 14px;
    border-radius:999px;
    background:var(--paper);
    box-shadow:var(--e1);
    white-space:nowrap;
    align-items:center;
  }
  .rail-list a:hover{transform:none}
  .hero{min-height:42vh;padding:26px 22px 30px}
  .sheet{border-radius:20px}
  .brief{padding:22px}
  .prose{padding:12px;gap:12px}
  .prose > section{padding:20px 18px;border-radius:16px}
  .prose > section:hover{transform:none}
  .foot{grid-template-columns:minmax(0,1fr);text-align:center;gap:12px;padding-bottom:32px}
  .foot-cta,.foot-desc{text-align:center;margin:0 auto}
  .foot-copy,.foot-note{align-self:center}
}

@media (max-width:420px){
  .burger{padding:0 15px;letter-spacing:.1em}
  .hero-title{font-size:clamp(2.1rem,9vw,2.9rem)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
  html.js .reveal{opacity:1;transform:none}
}

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