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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --line:rgba(0,0,0,.16);
  --line-inv:rgba(255,255,255,.3);
  --r:10px;
  --dock:64px;
  --pad:clamp(1.15rem,5vw,4.5rem);
  --sans:"Manrope","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --display:"Syne","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --mono:ui-monospace,"SFMono-Regular",Menlo,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html.sheet-open,html.sheet-open body{overflow:hidden}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:1rem;
  font-weight:400;
  line-height:1.7;
  padding-bottom:calc(var(--dock) + 1.5rem + env(safe-area-inset-bottom));
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.dock :focus-visible,.sheet :focus-visible,.foot :focus-visible{outline-color:#000}

/* 底部固定条 */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  height:calc(var(--dock) + env(safe-area-inset-bottom));
  padding:0 clamp(1rem,4vw,2.5rem) env(safe-area-inset-bottom);
  background:#000;color:#fff;
}
.dock-side{display:flex;align-items:center;gap:.6rem}
.brand{
  display:inline-flex;align-items:center;gap:.55rem;min-height:44px;
  color:#fff;text-decoration:none;
  font-family:var(--display);font-weight:800;font-size:1.05rem;letter-spacing:-.03em;
}
.brand img{width:28px;height:28px;border-radius:50%;background:#fff}
.brand:hover{opacity:.8}
.contact{
  display:inline-flex;align-items:center;min-height:44px;padding:.4rem .9rem;
  color:#fff;text-decoration:none;font-size:.9rem;
  border:1px solid var(--line-inv);border-radius:var(--r);
}
.contact:hover{background:#fff;color:#000}
.burger{
  display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.4rem .9rem;
  background:#fff;color:#000;border:1px solid #fff;border-radius:var(--r);
  font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;
}
.burger:hover{background:#000;color:#fff}
.burger:hover .bars i{background:#fff}
.bars{display:grid;gap:4px;width:16px}
.bars i{display:block;height:2px;background:#000;transition:transform .25s ease}
html.sheet-open .bars i:first-child{transform:translateY(3px) rotate(45deg)}
html.sheet-open .bars i:last-child{transform:translateY(-3px) rotate(-45deg)}

/* 全屏遮罩菜单 */
.sheet{
  position:fixed;inset:0;z-index:60;
  display:flex;flex-direction:column;justify-content:center;
  gap:clamp(1.25rem,4vw,2.25rem);
  padding:clamp(4rem,10vh,6rem) var(--pad) clamp(3rem,8vh,4rem);
  background:#000;color:#fff;
  opacity:0;visibility:hidden;
  transition:opacity .34s ease,visibility .34s ease;
  overflow-y:auto;
}
html.sheet-open .sheet{opacity:1;visibility:visible}
.sheet-close{
  position:absolute;top:calc(env(safe-area-inset-top) + .9rem);right:var(--pad);
  min-height:44px;padding:.4rem .95rem;
  border:1px solid var(--line-inv);border-radius:var(--r);
  background:transparent;color:#fff;font:inherit;font-size:.9rem;cursor:pointer;
}
.sheet-close:hover{background:#fff;color:#000}
.sheet-brand{margin:0;font-size:.76rem;letter-spacing:.34em;text-transform:uppercase;opacity:.6}
.sheet-list{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;gap:.15rem}
.sheet-list li{min-width:0}
.sheet-list a{
  display:flex;align-items:baseline;gap:1rem;min-height:48px;padding:.3rem 0;
  text-decoration:none;color:#fff;
  font-family:var(--display);font-weight:700;
  font-size:clamp(1.45rem,6.2vw,2.9rem);line-height:1.12;letter-spacing:-.045em;
  border-bottom:1px solid var(--line-inv);
}
.sheet-list a::before{
  counter-increment:s;content:counter(s,decimal-leading-zero);
  font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;opacity:.55;
}
.sheet-list a:hover{padding-left:.6rem}

/* Hero */
.hero{
  position:relative;overflow:hidden;
  min-height:70vh;display:flex;align-items:flex-end;justify-content:flex-end;
  padding:clamp(5rem,12vh,8rem) var(--pad) clamp(2rem,6vh,3.5rem);
}
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:radial-gradient(#000 1px,transparent 1px);
  background-size:16px 16px;opacity:.16;
  -webkit-mask-image:linear-gradient(to bottom,#000,transparent 82%);
  mask-image:linear-gradient(to bottom,#000,transparent 82%);
}
.hero-in{
  position:relative;z-index:1;width:100%;
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;
  gap:clamp(.85rem,3vw,2.25rem);
}
.hero h1{
  margin:0;max-width:16ch;overflow-wrap:break-word;
  font-family:var(--display);font-weight:800;
  font-size:clamp(3rem,10.5vw,8.5rem);
  line-height:.95;letter-spacing:-.055em;text-align:right;
}
.hero-fig{
  margin:0;flex:0 0 auto;overflow:hidden;
  width:clamp(64px,13vw,116px);aspect-ratio:1;
  display:grid;place-items:center;
  border:2px solid #000;border-radius:50%;
}
.hero-fig img{width:100%;height:100%;object-fit:cover}
.glyph{
  font-family:var(--display);font-weight:800;
  font-size:clamp(1.75rem,7vw,3rem);line-height:1;letter-spacing:-.05em;
}

/* 正文骨架 */
.board{
  display:grid;grid-template-columns:minmax(0,13rem) minmax(0,1fr);
  gap:clamp(1.5rem,4vw,4rem);align-items:start;
  padding:clamp(2.5rem,6vw,5rem) var(--pad) clamp(3rem,8vw,6rem);
  border-top:2px solid var(--ink);
}
.rail{
  position:sticky;top:1.5rem;
  border:1px solid var(--line);border-radius:var(--r);background:#fff;
  padding:1rem .9rem;
  box-shadow:0 14px 34px rgba(0,0,0,.07);
}
.rail-k{margin:0 0 .6rem;font-size:.72rem;letter-spacing:.26em}
.rail-list{list-style:none;margin:0;padding:0;counter-reset:r}
.rail-list a{
  display:flex;align-items:baseline;gap:.6rem;min-height:40px;padding:.45rem .2rem;
  text-decoration:none;font-size:.92rem;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.rail-list li:last-child a{border-bottom:0}
.rail-list a::before{
  counter-increment:r;content:counter(r,decimal-leading-zero);
  font-family:var(--mono);font-size:.68rem;letter-spacing:.06em;opacity:.55;
}
.rail-list a:hover{background:#000;color:#fff}
.stage{min-width:0}
.kicker{display:block;font-size:.74rem;font-weight:600;letter-spacing:.3em;margin-bottom:.9rem}
.stage-h{
  margin:0 0 clamp(1.5rem,4vw,2.5rem);
  font-family:var(--display);font-weight:800;
  font-size:clamp(1.85rem,5vw,3.3rem);line-height:1.06;letter-spacing:-.04em;
  padding-bottom:1.1rem;border-bottom:2px solid var(--ink);
  overflow-wrap:break-word;
}

/* 正文内容 */
.prose{max-width:64ch}
.prose article{
  padding-block:clamp(2rem,5vw,3.2rem);
  border-top:1px solid var(--line);
  scroll-margin-top:2rem;
  scroll-margin-bottom:calc(var(--dock) + 2rem);
}
.prose article:first-child{border-top:0;padding-top:0}
.prose h2,.prose h3{
  font-family:var(--display);font-weight:800;line-height:1.15;letter-spacing:-.03em;
  margin:0 0 .9rem;overflow-wrap:break-word;
}
.prose h2{font-size:clamp(1.5rem,4vw,2.25rem)}
.prose h3{font-size:clamp(1.2rem,3vw,1.5rem)}
.prose p,.prose li{font-size:1.0625rem;line-height:1.85}
.prose p{margin:0 0 1.15rem}
.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.15rem}
.prose li{margin-bottom:.5rem}
.prose a{text-decoration:none;border-bottom:1px solid var(--ink);padding-bottom:1px}
.prose a:hover{background:#000;color:#fff;border-bottom-color:#000}
.prose strong{font-weight:700}
.prose blockquote{
  margin:1.5rem 0;padding:.35rem 0 .35rem 1.15rem;
  border-left:3px solid #000;font-size:1.05rem;
}
.prose figure{margin:1.5rem 0}
.prose img{border-radius:var(--r)}
.prose time{font-variant-numeric:tabular-nums;font-size:.85rem;letter-spacing:.08em;opacity:.7}
.prose hr{border:0;border-top:2px solid var(--ink);margin:2.5rem 0}

/* 页脚 */
.foot{
  display:grid;gap:clamp(2rem,5vw,3rem);
  border-top:2px solid var(--ink);
  padding:clamp(2.5rem,6vw,4rem) var(--pad) 1.5rem;
}
.foot-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,20rem);gap:2rem;align-items:start}
.foot-id a{
  display:inline-flex;align-items:center;min-height:44px;
  text-decoration:none;font-family:var(--display);font-weight:800;
  font-size:1.3rem;letter-spacing:-.03em;
}
.foot-id p{margin:.55rem 0 0;max-width:34ch;font-size:.92rem;line-height:1.7;opacity:.78}
.sub{border:1px solid var(--line);border-radius:var(--r);padding:1rem;box-shadow:0 14px 34px rgba(0,0,0,.07)}
.sub label{display:block;font-size:.72rem;letter-spacing:.24em;margin-bottom:.6rem}
.sub-row{display:flex;gap:.5rem}
.sub input{
  flex:1 1 auto;min-width:0;min-height:44px;padding:.5rem .7rem;
  border:1px solid #000;border-radius:var(--r);
  background:#fff;color:#000;font:inherit;font-size:.95rem;
}
.sub button{
  min-height:44px;padding:.5rem 1rem;
  border:1px solid #000;border-radius:var(--r);
  background:#000;color:#fff;font:inherit;font-size:.95rem;cursor:pointer;
}
.sub button:hover{background:#fff;color:#000}
.foot-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));gap:1.5rem;border-top:1px solid var(--line);padding-top:1.75rem}
.foot-nav dl{margin:0}
.foot-nav dt{font-size:.72rem;letter-spacing:.24em;margin-bottom:.5rem}
.foot-nav dd{margin:0}
.foot-nav a{
  display:inline-flex;align-items:center;min-height:40px;text-decoration:none;
  font-size:.95rem;border-bottom:1px solid transparent;
}
.foot-nav a:hover{border-bottom-color:#000}
.foot-base{margin:0;text-align:center;border-top:1px solid var(--line);padding-top:1.5rem;font-size:.8rem;letter-spacing:.1em;opacity:.7}

/* 动效 */
@media (prefers-reduced-motion:no-preference){
  .prose article{animation:rise .62s cubic-bezier(.2,.7,.2,1) both}
  .prose article:nth-child(2){animation-delay:.05s}
  .prose article:nth-child(3){animation-delay:.1s}
  .prose article:nth-child(4){animation-delay:.15s}
  .prose article:nth-child(5){animation-delay:.2s}
  .prose article:nth-child(6){animation-delay:.25s}
  .prose article:nth-child(7){animation-delay:.3s}
  .prose article:nth-child(n+8){animation-delay:.35s}
  @keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
  .rail,.sub{transition:transform .3s ease,box-shadow .3s ease}
  .rail:hover,.sub:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(0,0,0,.11)}
  .hero-fig{transition:transform .4s ease}
  .hero-fig:hover{transform:rotate(-6deg)}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-duration:.001s!important}
}

/* 窄屏 */
@media (max-width:760px){
  .board{grid-template-columns:minmax(0,1fr);padding-top:2rem}
  .rail{position:static}
  .hero{flex-direction:column;justify-content:flex-end}
  .hero-in{flex-direction:column;align-items:flex-end;justify-content:flex-end}
  .hero h1{font-size:clamp(2.6rem,12.5vw,4.4rem);max-width:100%}
  .foot-head{grid-template-columns:minmax(0,1fr)}
  .stage-h{padding-bottom:.9rem}
}
@media (max-width:420px){
  .contact{display:none}
  .sheet-list a{font-size:clamp(1.3rem,7.2vw,1.8rem)}
}

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