@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

:root{
  --ink:#000;
  --paper:#fff;
  --line:rgba(0,0,0,.18);
  --faint:rgba(0,0,0,.45);
  --rail:268px;
  --serif:'Playfair Display SC',"Songti SC","Noto Serif SC",Georgia,"Times New Roman",serif;
  --sans:'Karla',system-ui,-apple-system,"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;
  font:400 17px/1.7 var(--sans);
  color:var(--ink);
  background-color:var(--paper);
  background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.045) 0 1px,transparent 1px 30px);
  overflow-x:hidden;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--ink)}
::selection{background:#000;color:#fff}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{
  position:fixed;left:10px;top:-80px;z-index:80;
  background:#000;color:#fff;text-decoration:none;
  padding:12px 18px;border-radius:4px;font-size:16px;
  transition:top .2s ease;
}
.skip:focus{top:10px}
:focus-visible{outline:2px solid #000;outline-offset:2px}

/* ---- 左侧固定栏 ---- */
.shell{min-height:100vh}
.rail{
  position:fixed;left:0;top:0;bottom:0;width:var(--rail);z-index:40;
  display:flex;flex-direction:column;gap:14px;
  padding:18px 16px 20px;
  border-right:1px solid #000;
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:blur(12px) saturate(1.1);
  backdrop-filter:blur(12px) saturate(1.1);
  overflow-y:auto;
}
.mark{
  width:44px;height:44px;flex:0 0 auto;
  display:grid;place-items:center;
  border:1px solid #000;border-radius:4px;
  background:rgba(255,255,255,.8);
  text-decoration:none;overflow:hidden;
  transition:background .2s ease,color .2s ease;
}
.mark img{width:26px;height:26px;object-fit:contain}
.mark .mono{font-family:var(--serif);font-size:22px;line-height:1}
.mark:hover{background:#000;color:#fff}
.mark:hover .mono{color:#fff}
.rail-title{
  margin:0;font-family:var(--serif);font-weight:700;
  font-size:16px;letter-spacing:.34em;
}
.rail-title + hr{
  width:100%;border:0;border-top:1px solid #000;margin:0 0 4px;
}
.rail-nav ul{list-style:none;margin:0;padding:0}
.rail-nav a{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:10px 6px;
  text-decoration:none;font-size:16px;line-height:1.4;
  border-bottom:1px dashed rgba(0,0,0,.16);
  transition:transform .18s ease,color .18s ease;
}
.rail-nav a .dot{
  width:8px;height:8px;flex:0 0 auto;
  border:1px solid #000;transform:rotate(45deg);
  transition:background .18s ease;
}
.rail-nav a .num{
  margin-left:auto;font-size:12px;letter-spacing:.14em;color:var(--faint);
}
.rail-nav a:hover{transform:translateX(5px)}
.rail-nav a:hover .dot{background:#000}
.rail-nav a.on{font-weight:600}
.rail-nav a.on .dot{background:#000}
.rail-find{margin-top:2px}
.rail-find input{
  width:100%;height:44px;padding:0 12px;
  font:400 16px/1 var(--sans);color:#000;
  border:1px solid #000;border-radius:4px;
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.rail-find input::placeholder{color:var(--faint)}
.totop{
  margin-top:auto;display:grid;place-items:center;
  min-height:44px;padding:0 12px;border-radius:4px;
  border:1px solid #000;background:#000;color:#fff;
  text-decoration:none;font-size:16px;
  transition:background .2s ease,color .2s ease;
}
.totop:hover{background:#fff;color:#000}

/* ---- 主区域 ---- */
.stage{margin-left:var(--rail);min-height:100vh;display:flex;flex-direction:column}

/* ---- 首屏 ---- */
.hero{
  position:relative;overflow:hidden;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  align-items:center;
  gap:clamp(18px,3vw,48px);
  padding:clamp(26px,5vw,80px);
  background:#000;color:#fff;
  isolation:isolate;
}
.hero-ghost{
  position:absolute;left:-1.5vw;bottom:-3vh;z-index:0;
  font-family:var(--serif);font-weight:700;
  font-size:clamp(96px,22vw,300px);line-height:.8;
  letter-spacing:.02em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.26);
  pointer-events:none;white-space:nowrap;
  will-change:transform;
}
.hero-fig{
  position:relative;z-index:2;margin:0;
  aspect-ratio:3/4;overflow:hidden;
  border:1px solid rgba(255,255,255,.55);border-radius:4px;
  background:rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.hero-fig img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.08)}
.deco{
  width:100%;height:100%;
  background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.22) 0 1px,transparent 1px 14px);
}
.hero-txt{
  position:relative;z-index:2;
  max-width:min(580px,100%);margin-left:auto;text-align:right;
}
.eyebrow{
  margin:0 0 clamp(10px,1.6vw,20px);
  font-size:15px;letter-spacing:.46em;text-indent:.46em;
  color:rgba(255,255,255,.72);
}
.hero h1{
  margin:0;
  font-family:var(--serif);font-weight:700;
  font-size:clamp(40px,7.2vw,100px);
  line-height:1.02;letter-spacing:-.01em;
  text-wrap:balance;
}
.lead{
  margin:clamp(14px,2vw,24px) 0 0 auto;
  max-width:32ch;font-size:clamp(16px,1.5vw,19px);
  line-height:1.75;color:rgba(255,255,255,.78);
}
.cue{
  display:inline-flex;align-items:center;min-height:44px;
  margin-top:clamp(20px,3vw,32px);padding:0 20px;
  border:1px solid rgba(255,255,255,.62);border-radius:4px;
  color:#fff;text-decoration:none;font-size:16px;letter-spacing:.18em;
  transition:background .22s ease,color .22s ease,transform .22s ease;
}
.cue:hover{background:#fff;color:#000;transform:translateY(3px)}

/* ---- 正文 ---- */
.sheet{
  position:relative;
  width:100%;max-width:1180px;margin:0 auto;
  padding:clamp(24px,4vw,60px) clamp(16px,4vw,60px) clamp(40px,6vw,90px);
  counter-reset:sec;
}
.sheet > section{
  position:relative;
  counter-increment:sec;
  margin-bottom:clamp(14px,2vw,28px);
  padding:clamp(20px,3vw,38px);
  border:1px solid rgba(0,0,0,.14);border-radius:4px;
  background:rgba(255,255,255,.66);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  scroll-margin-top:24px;
}
.sheet > section::before{
  content:counter(sec,decimal-leading-zero);
  display:block;margin-bottom:12px;
  font:700 12px/1 var(--sans);letter-spacing:.3em;color:var(--faint);
}
.sheet > section:nth-child(even){margin-left:clamp(0px,5vw,88px)}
.sheet > section:nth-child(odd){margin-right:clamp(0px,4vw,64px)}
.sheet h2,.sheet h3{
  font-family:var(--serif);font-weight:700;
  line-height:1.16;letter-spacing:.005em;margin:0 0 .4em;
}
.sheet h2{font-size:clamp(26px,3.2vw,40px)}
.sheet h3{font-size:clamp(20px,2.2vw,26px)}
hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.sheet h2 + hr,.sheet h3 + hr{
  width:64px;border:0;border-top:2px solid #000;margin:0 0 20px;
}
.sheet p{margin:0 0 1.05em}
.sheet p:last-child{margin-bottom:0}
.sheet > section > p:first-of-type::first-letter{
  float:left;font-family:var(--serif);font-weight:700;
  font-size:3.3em;line-height:.84;padding:.06em .12em 0 0;
}
.sheet ul,.sheet ol{margin:0 0 1.1em;padding-left:1.3em}
.sheet li{margin-bottom:.45em}
.sheet blockquote{
  margin:1.6em 0;padding:.15em 0 .15em 1.3em;
  border-left:3px solid #000;
  font-family:var(--serif);font-size:clamp(20px,2.3vw,28px);line-height:1.36;
}
.sheet blockquote p{margin-bottom:.5em}
.sheet figure{margin:1.6em 0}
.sheet figure img{border-radius:4px;width:100%}
.sheet figcaption{margin-top:.6em;font-size:15px;color:var(--faint)}
.sheet table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:16px}
.sheet th,.sheet td{border-bottom:1px solid var(--line);padding:.6em .4em;text-align:left}
.sheet a{text-underline-offset:3px}
.sheet strong{font-weight:700}

@media (min-width:1060px){
  .sheet > section > p{column-count:2;column-gap:2.6rem}
}

/* ---- 页脚 ---- */
.foot{
  margin-top:auto;
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  padding:18px clamp(16px,4vw,60px);
  border-top:1px solid #000;background:rgba(255,255,255,.8);
  font-size:16px;
}
.foot p{margin:0;letter-spacing:.04em}
.foot small{font-size:16px;color:var(--faint);letter-spacing:.24em}

/* ---- 动效 ---- */
.rv{opacity:0;transform:translateY(16px);transition:opacity .62s ease,transform .62s ease}
.rv.in{opacity:1;transform:none}
.rv-nav{animation:slidein .5s both ease-out}
@keyframes slidein{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}

/* ---- 窄屏 ---- */
@media (max-width:980px){
  .rail{
    position:sticky;left:auto;top:0;bottom:auto;width:100%;height:auto;
    flex-flow:row wrap;align-items:center;gap:8px;
    padding:8px 12px;border-right:0;border-bottom:1px solid #000;
    overflow:visible;
  }
  .rail-title,.rail-title + hr{display:none}
  .mark{width:44px;height:44px}
  .rail-find{order:2;flex:1 1 96px;min-width:86px;margin:0}
  .rail-find input{height:44px}
  .totop{order:3;flex:0 0 auto;margin:0;padding:0 14px}
  .rail-nav{order:4;flex:1 0 100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .rail-nav ul{display:flex;gap:6px;padding:0 0 2px}
  .rail-nav li{flex:0 0 auto}
  .rail-nav a{
    white-space:nowrap;border-bottom:0;
    border:1px solid rgba(0,0,0,.2);border-radius:4px;
    padding:10px 12px;min-height:44px;
  }
  .rail-nav a .num{display:none}
  .rail-nav a:hover{transform:none}
  .rail-nav a.on{background:#000;color:#fff}
  .rail-nav a.on .dot{background:#fff;border-color:#fff}
  .stage{margin-left:0}
  .hero{
    grid-template-columns:1fr;min-height:auto;
    padding:clamp(20px,6vw,40px) clamp(16px,5vw,34px) clamp(30px,8vw,52px);
    gap:22px;
  }
  .hero-txt{order:1;text-align:left;margin-left:0;max-width:100%}
  .hero-fig{order:2;aspect-ratio:16/10}
  .hero-ghost{top:0;bottom:auto;left:-2vw;font-size:clamp(84px,30vw,150px);opacity:.85}
  .hero h1{font-size:clamp(34px,10.5vw,58px)}
  .lead{margin-left:0}
  .sheet > section:nth-child(n){margin-left:0;margin-right:0}
  .sheet > section{scroll-margin-top:112px}
  .sheet > section > p:first-of-type::first-letter{font-size:3em}
  .foot{flex-direction:column;align-items:flex-start;gap:4px}
}

@media (min-width:981px) and (max-height:640px){
  .hero{min-height:640px}
}

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

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