@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{
  --paper:#fafaf8;
  --ink:#1a1a1a;
  --grey:#4a4a4a;
  --soft:#f1f0ec;
  --dash:#b9b7b1;
  --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

*{box-sizing:border-box}

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

body{
  margin:0;
  overflow-x:hidden;
  background-color:var(--paper);
  background-image:var(--noise);
  background-size:170px 170px;
  color:var(--ink);
  font-family:"Manrope","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:1rem;
  line-height:1.72;
}

img{display:block;max-width:100%;height:auto}

a{color:inherit}

h1,h2,h3{
  font-family:"Syne","Manrope",system-ui,sans-serif;
  font-weight:700;
  line-height:1.06;
  letter-spacing:-.02em;
  margin:0 0 .55em;
}

.sr{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;
}

/* 顶部细条 */
.topbar{
  border-bottom:2px solid var(--ink);
  background:var(--soft);
}

.ticker{
  margin:0;
  padding:.35rem 1rem;
  font-size:1rem;
  font-weight:600;
  letter-spacing:.32em;
  text-transform:uppercase;
}

/* 页头 */
.masthead{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.55rem 1rem;
  border-bottom:2px solid var(--ink);
  background:rgba(250,250,248,.97);
}

.logo{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex:0 0 auto;
  text-decoration:none;
  transform:rotate(-1.6deg);
  padding:.35rem .1rem;
}

.logo-word{
  font-family:"Syne",system-ui,sans-serif;
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-.03em;
}

.logo-mark{max-height:26px;width:auto}

.menu-btn{
  display:none;
  margin-left:auto;
  min-height:44px;
  padding:.5rem .95rem;
  font:inherit;
  font-size:1rem;
  font-weight:600;
  color:var(--ink);
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:18px;
  transform:rotate(1.2deg);
  cursor:pointer;
}

.dock{margin-left:auto}

.dock ol{
  display:flex;
  flex-wrap:wrap;
  gap:.15rem;
  margin:0;
  padding:0;
  list-style:none;
}

.dock li{position:relative}

.dock a{
  display:block;
  padding:.6rem .7rem;
  font-size:1rem;
  font-weight:600;
  text-decoration:none;
  border-bottom:3px solid transparent;
}

.dock a:hover,
.dock a:focus-visible{border-bottom-color:var(--ink)}

.sub{
  position:absolute;
  top:100%;
  left:0;
  z-index:40;
  display:none;
  min-width:210px;
  margin:0;
  padding:.35rem;
  list-style:none;
  background:var(--paper);
  border:2px solid var(--ink);
  border-bottom-width:7px;
  border-radius:18px;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub{display:block}

/* 粘性锚点条 */
.rail{
  position:sticky;
  top:0;
  z-index:35;
  border-bottom:2px solid var(--ink);
  background:rgba(250,250,248,.97);
}

.rail ol{
  display:flex;
  gap:.35rem;
  margin:0;
  padding:.35rem 1rem;
  overflow-x:auto;
  list-style:none;
  scrollbar-width:none;
}

.rail ol::-webkit-scrollbar{display:none}

.rail a{
  display:block;
  padding:.55rem .6rem;
  font-size:1rem;
  color:var(--grey);
  white-space:nowrap;
  text-decoration:none;
  border-radius:18px;
}

.rail a:hover{color:var(--ink);background:var(--soft)}

/* 头图 */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:45vh;
  padding:2.2rem 1rem 3.4rem;
  overflow:hidden;
  background:var(--soft);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 34px),0 100%);
}

.hero-img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.55;
  filter:grayscale(1) contrast(1.14);
}

.hero-num{
  position:absolute;
  right:.4rem;
  bottom:-1.4rem;
  z-index:1;
  font-family:"Syne",system-ui,sans-serif;
  font-size:clamp(6.5rem,26vw,17rem);
  font-weight:700;
  line-height:.78;
  color:transparent;
  -webkit-text-stroke:2px var(--ink);
  opacity:.3;
  pointer-events:none;
}

.hero-copy{position:relative;z-index:2;max-width:58rem}

.hero-copy h1{
  margin-bottom:.5rem;
  font-size:clamp(2rem,6.4vw,4.4rem);
}

.lede{
  max-width:44ch;
  margin:0;
  font-weight:500;
  color:var(--grey);
}

/* 主体 */
.shell{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:2rem;
  max-width:1180px;
  margin:0 auto;
  padding:2rem 1rem 3.5rem;
}

.body section{
  padding-top:1.9rem;
  border-top:2px dashed var(--dash);
  scroll-margin-top:120px;
}

.body section:first-child{border-top:0;padding-top:0}

.body h2{font-size:clamp(1.5rem,3.6vw,2.15rem)}

.body h3{font-size:1.2rem}

.body p{max-width:64ch;margin:0 0 1.05rem}

.body p.subtitle,
p.subtitle{
  padding-left:.7rem;
  font-weight:600;
  color:var(--grey);
  border-left:4px solid var(--ink);
}

.body ul,
.body ol{padding-left:1.25rem;margin:0 0 1.1rem}

.body li{margin:.4rem 0;max-width:62ch}

.body a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.body img{
  margin:1.3rem 0;
  border:2px solid var(--ink);
  border-radius:18px;
  transform:rotate(-.5deg);
}

.body blockquote{
  margin:1.3rem 0;
  padding:.8rem 1rem;
  font-weight:600;
  border-left:6px solid var(--ink);
  background:var(--soft);
}

/* 侧栏 */
.side{display:grid;gap:1.3rem;align-content:start}

.side-card{
  padding:.9rem 1.05rem 1.1rem;
  background:#fdfcfa;
  border:2px solid var(--ink);
  border-bottom-width:9px;
  border-radius:18px;
  transform:rotate(-.8deg);
}

.side-card:nth-child(2){transform:rotate(.7deg)}

.side-card h2{margin:0 0 .25rem;font-size:1.3rem}

.side-card p.subtitle{margin:0 0 .75rem}

.side-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:s;
}

.side-list li{
  counter-increment:s;
  border-top:1px dashed var(--dash);
}

.side-list li:first-child{border-top:0}

.side-list a{
  display:block;
  padding:.6rem 0;
  font-size:1rem;
  text-decoration:none;
}

.side-list a::before{
  content:counter(s,decimal-leading-zero);
  margin-right:.45rem;
  font-family:"Syne",system-ui,sans-serif;
  color:var(--grey);
}

.side-list a:hover{text-decoration:underline;text-underline-offset:3px}

.sub-form form{display:grid;gap:.55rem;margin-top:.6rem}

.sub-form input{
  min-height:44px;
  padding:.6rem .8rem;
  font:inherit;
  font-size:1rem;
  color:var(--ink);
  background:#fff;
  border:2px solid var(--ink);
  border-radius:18px;
}

.sub-form button{
  min-height:44px;
  padding:.6rem 1rem;
  font:inherit;
  font-size:1rem;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--paper);
  background:var(--ink);
  border:2px solid var(--ink);
  border-radius:18px;
  cursor:pointer;
}

.sub-form button:hover{background:var(--grey)}

.form-note{margin:.5rem 0 0;font-size:1rem;color:var(--grey)}

.to-top{
  display:block;
  padding:.7rem 1rem;
  font-size:1rem;
  font-weight:600;
  text-align:center;
  text-decoration:none;
  background:var(--soft);
  border:2px solid var(--ink);
  border-radius:18px;
  transform:rotate(1deg);
}

/* 页脚 */
.foot{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem 1.4rem;
  max-width:1180px;
  margin:0 auto;
  padding:2rem 1rem 1.4rem;
  border-top:3px solid var(--ink);
}

.foot p{margin:0;font-size:1rem}

.foot p span{display:block}

.foot p a{
  display:inline-block;
  padding:.55rem 0;
  color:var(--grey);
  text-decoration:none;
}

.foot p a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

.foot-brand{
  font-family:"Syne",system-ui,sans-serif;
  font-size:1.4rem;
  font-weight:700;
  letter-spacing:-.03em;
  transform:rotate(-1.2deg);
}

.foot small{
  grid-column:1/-1;
  padding-top:1rem;
  font-size:1rem;
  color:var(--grey);
  border-top:1px dashed var(--dash);
}

/* 入场 */
.reveal{opacity:0;transform:translateY(12px)}

.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .26s steps(3,end),transform .26s steps(3,end);
  transition-delay:calc(var(--i,0) * 45ms);
}

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

/* 响应式 */
@media (min-width:861px){
  .shell{grid-template-columns:minmax(0,1fr) 300px;gap:3rem;padding:3rem 1.5rem 4rem;align-items:start}
  .foot{grid-template-columns:2fr 1fr 1fr 1fr;padding:2.5rem 1.5rem 1.4rem}
  .ticker{padding:.4rem 1.5rem}
  .masthead{padding:.55rem 1.5rem}
}

@media (max-width:860px){
  .menu-btn{display:block}
  .masthead{flex-wrap:wrap}
  .dock{
    order:3;
    display:none;
    width:100%;
    margin-left:0;
  }
  .dock.open{display:block}
  .dock ol{flex-direction:column;padding-top:.4rem}
  .dock a{padding:.75rem .3rem;border-bottom:2px dashed var(--dash)}
  .sub{
    position:static;
    display:block;
    min-width:0;
    padding:0 0 0 .9rem;
    background:transparent;
    border:0;
    border-radius:0;
  }
  .sub a{padding:.55rem .3rem;font-weight:400;color:var(--grey)}
  .hero{min-height:44vh;padding-bottom:2.8rem}
  .body div{scroll-margin-top:96px}
}

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