@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root{
  --paper:#fafaf8;
  --grey:#4a4a4a;
  --ink:#1a1a1a;
  --shadow:0 16px 40px rgba(26,26,26,.09);
  --shadow-soft:0 8px 22px rgba(26,26,26,.07);
  --r:18px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Public Sans','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.68;
  overflow-x:clip;
}

body::before{
  content:'';
  position:fixed;
  inset:-10%;
  z-index:60;
  pointer-events:none;
  opacity:.5;
  mix-blend-mode:multiply;
  background-image:
    radial-gradient(rgba(26,26,26,.55) .5px, transparent .5px),
    radial-gradient(rgba(74,74,74,.4) .5px, transparent .5px);
  background-size:7px 7px, 13px 11px;
  background-position:0 0, 4px 6px;
}

img{max-width:100%}
a{color:inherit}

/* 顶部细条 */
.ticker{
  position:fixed;
  top:0;left:0;right:0;
  z-index:40;
  height:30px;
  display:flex;
  align-items:center;
  padding:0 14px;
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
}
.ticker-in{
  font-family:'Lexend Mega',sans-serif;
  font-size:11px;
  letter-spacing:.36em;
  white-space:nowrap;
  opacity:.92;
}

/* 左侧固定竖排导航 */
.side{
  position:fixed;
  top:30px;left:0;bottom:0;
  width:212px;
  z-index:35;
  background:var(--paper);
  border-right:1.5px dashed rgba(26,26,26,.3);
  padding:16px 12px 22px;
  display:flex;
  flex-direction:column;
  gap:16px;
  overflow-y:auto;
}
.mark{
  width:44px;height:44px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ink);
  color:var(--paper);
  text-decoration:none;
  border-radius:6px;
  rotate:-3.5deg;
  overflow:hidden;
  font-size:10px;
  line-height:1.15;
  text-align:center;
  padding:3px;
  box-shadow:var(--shadow-soft);
}
.mark img{width:100%;height:100%;object-fit:cover;display:block}
.side-nav p{
  margin:0;
  display:grid;
  gap:1px;
}
.side-nav a{
  display:block;
  padding:11px 7px;
  font-size:16px;
  line-height:1.4;
  color:var(--grey);
  text-decoration:none;
  border-bottom:1px solid rgba(26,26,26,.12);
}
.side-nav a:first-child{color:var(--ink);font-weight:700}
.side-nav a:hover,
.side-nav a:focus-visible{
  background:var(--ink);
  color:var(--paper);
  outline:none;
}

/* 首屏 */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:70px 42px 76px;
  color:var(--paper);
  background:
    repeating-linear-gradient(52deg, rgba(250,250,248,.05) 0 2px, transparent 2px 9px),
    var(--ink);
  clip-path:polygon(0 0, 100% 0, 100% 91%, 0 100%);
  overflow:hidden;
}
.hero-fig{
  position:absolute;
  inset:0;
  margin:0;
  z-index:0;
}
.hero-fig::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(104deg, rgba(26,26,26,.9) 12%, rgba(26,26,26,.42) 72%);
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:grayscale(.35) contrast(1.08);
}
.hero-band{
  position:absolute;
  left:0;right:0;bottom:0;
  height:26px;
  background:repeating-linear-gradient(-45deg, var(--paper) 0 10px, transparent 10px 20px);
  opacity:.85;
  z-index:1;
  mix-blend-mode:screen;
}
.hero-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
  gap:16px;
  max-width:640px;
}
.hero h1{
  margin:0;
  font-family:'Lexend Mega',sans-serif;
  font-weight:800;
  font-size:clamp(2rem, 5.4vw, 4.3rem);
  line-height:1.06;
  letter-spacing:-.025em;
}
.rule{
  width:86px;
  border:0;
  border-top:3px solid var(--paper);
  margin:2px 0;
  opacity:.9;
}
.lede{
  margin:0;
  max-width:44ch;
  font-size:16px;
  line-height:1.7;
  color:#e7e7e2;
}
.cta{
  display:inline-block;
  margin-top:6px;
  padding:12px 24px;
  background:var(--paper);
  color:var(--ink);
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  border:2px solid var(--ink);
  border-radius:6px;
  rotate:-1.6deg;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

/* 主体：aside 在左，正文在右 */
main{padding-left:212px}
.stage{
  display:grid;
  grid-template-columns:238px minmax(0,1fr);
  gap:34px;
  max-width:1180px;
  margin:0 auto;
  padding:56px 42px 76px;
}
.rail{
  position:sticky;
  top:56px;
  align-self:start;
  background:#fff;
  border:1.5px dashed rgba(26,26,26,.32);
  border-radius:14px;
  padding:16px 13px;
  box-shadow:var(--shadow);
  rotate:-.5deg;
}
.rail h2{
  margin:0;
  font-family:'Lexend Mega',sans-serif;
  font-size:14px;
  letter-spacing:.26em;
  font-weight:700;
}
.rail hr{
  border:0;
  border-top:2px dashed rgba(26,26,26,.35);
  margin:9px 0 8px;
}
.rail-list{
  list-style:none;
  counter-reset:rail;
  margin:0;
  padding:0;
}
.rail-list li{counter-increment:rail}
.rail-list a{
  display:block;
  padding:10px 5px;
  font-size:15px;
  line-height:1.45;
  color:var(--grey);
  text-decoration:none;
  border-bottom:1px dotted rgba(26,26,26,.22);
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero) "  ";
  font-family:'Lexend Mega',sans-serif;
  font-size:11px;
  color:rgba(26,26,26,.45);
}
.rail-list a:hover{color:var(--ink);background:rgba(26,26,26,.05)}

/* 正文 */
.prose{
  min-width:0;
  max-width:74ch;
}
.prose > div{
  background:#fff;
  border:1px solid rgba(26,26,26,.09);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:34px 30px;
  margin:0 0 34px;
  scroll-margin-top:92px;
}
.prose > div:nth-child(odd){rotate:-.22deg}
.prose > div:nth-child(even){rotate:.2deg}
.prose > div::before{
  content:'';
  display:block;
  width:52px;
  height:6px;
  margin:0 0 18px;
  border-radius:3px;
  opacity:.5;
  background:repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 11px);
}
.prose > div > :first-child{margin-top:0}
.prose > div > :last-child{margin-bottom:0}

.prose h2{
  font-family:'Lexend Mega',sans-serif;
  font-weight:800;
  font-size:clamp(1.35rem, 3.3vw, 1.95rem);
  line-height:1.22;
  letter-spacing:-.015em;
  margin:0 0 10px;
}
.prose h2 + hr{
  border:0;
  border-top:2px dashed rgba(26,26,26,.4);
  margin:0 0 20px;
}
.prose h3{
  font-family:'Lexend Mega',sans-serif;
  font-weight:700;
  font-size:1.06rem;
  line-height:1.35;
  margin:26px 0 8px;
}
.prose h3 + hr{
  border:0;
  border-top:1.5px dashed rgba(26,26,26,.3);
  margin:0 0 12px;
}
.prose p{margin:0 0 15px}
.prose ul,
.prose ol{padding-left:1.35em;margin:0 0 16px}
.prose li{margin:.4em 0}
.prose li::marker{color:var(--grey)}
.prose a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px dashed rgba(26,26,26,.42);
}
.prose a:hover{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}
.prose strong{
  font-weight:700;
  background:linear-gradient(transparent 63%, rgba(26,26,26,.13) 63%);
}
.prose blockquote{
  margin:20px 0;
  padding:6px 0 6px 16px;
  border-left:4px solid var(--ink);
  color:var(--grey);
}
.prose blockquote p:last-child{margin-bottom:0}
.prose figure{
  margin:22px 0;
  padding:9px;
  background:var(--paper);
  border:1px solid rgba(26,26,26,.14);
  border-radius:12px;
  rotate:-.3deg;
}
.prose figure img{border-radius:8px;display:block;height:auto;width:100%}
.prose figcaption{font-size:14px;color:var(--grey);padding:8px 2px 0}
.prose img{height:auto}
.prose table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  font-size:16px;
}
.prose th,
.prose td{
  border:1px solid rgba(26,26,26,.2);
  padding:9px 10px;
  text-align:left;
  vertical-align:top;
}
.prose th{background:rgba(26,26,26,.06)}
.prose code{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:.92em;
  background:rgba(26,26,26,.07);
  padding:1px 5px;
  border-radius:5px;
}
.prose pre{
  overflow-x:auto;
  background:var(--ink);
  color:var(--paper);
  padding:16px;
  border-radius:12px;
}
.prose pre code{background:none;padding:0}
.prose hr{
  border:0;
  border-top:1.5px dashed rgba(26,26,26,.3);
  margin:22px 0;
}

/* 页脚 */
.foot{
  margin-left:212px;
  background:var(--ink);
  color:#e9e9e4;
  padding:46px 42px 24px;
}
.foot-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.5fr;
  gap:28px;
  max-width:1080px;
}
.foot h3{
  font-family:'Lexend Mega',sans-serif;
  font-size:12px;
  letter-spacing:.24em;
  font-weight:600;
  color:#9c9c95;
  margin:0 0 10px;
}
.foot-brand a{
  font-family:'Lexend Mega',sans-serif;
  font-size:19px;
  line-height:1.3;
  color:var(--paper);
  text-decoration:none;
  display:inline-block;
  padding:10px 0;
  letter-spacing:.04em;
  border-bottom:2px dashed rgba(250,250,248,.4);
}
.foot-links{
  display:grid;
  align-content:start;
}
.foot-links a{
  color:#dbdbd5;
  text-decoration:none;
  font-size:15px;
  padding:11px 0;
  border-bottom:1px dashed rgba(250,250,248,.22);
}
.foot-links a:hover{color:#fff}
.to-top{
  margin-top:14px;
  font:inherit;
  font-size:14px;
  color:var(--paper);
  background:transparent;
  border:1.5px solid rgba(250,250,248,.55);
  border-radius:20px;
  padding:10px 16px;
  cursor:pointer;
}
.to-top:hover{background:var(--paper);color:var(--ink)}
.sub{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.sub input{
  flex:1 1 130px;
  min-width:0;
  font:inherit;
  font-size:15px;
  padding:12px;
  color:var(--paper);
  background:transparent;
  border:1.5px solid rgba(250,250,248,.45);
  border-radius:12px;
}
.sub input::placeholder{color:#a5a59e}
.sub button{
  font:inherit;
  font-size:15px;
  font-weight:700;
  padding:12px 18px;
  border:0;
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  cursor:pointer;
}
.foot-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:34px;
  padding-top:14px;
  border-top:1px dashed rgba(250,250,248,.26);
}
.foot-mark{
  font-family:'Lexend Mega',sans-serif;
  font-size:12px;
  letter-spacing:.22em;
  color:#b7b7b0;
}
.foot-bar nav p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:1px;
}
.foot-bar a{
  color:#cfcfc9;
  text-decoration:none;
  font-size:14px;
  padding:11px 7px;
}
.foot-bar a:hover{color:#fff;background:rgba(250,250,248,.12)}
.copy{
  margin:0;
  font-size:13px;
  color:#a4a49d;
}

/* 动效 */
.reveal{opacity:0;transform:translateY(14px)}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .34s steps(4,end), transform .34s steps(3,end);
}

/* 移动端 */
@media (max-width:899px){
  body{font-size:16px;line-height:1.66}
  .ticker{height:26px;padding:0 10px}
  .ticker-in{font-size:10px;letter-spacing:.28em}
  .side{
    top:26px;
    bottom:auto;
    left:0;right:0;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:1.5px dashed rgba(26,26,26,.3);
    overflow:visible;
  }
  .mark{width:40px;height:40px;flex:0 0 auto}
  .side-nav{flex:1 1 auto;min-width:0}
  .side-nav p{
    display:flex;
    gap:1px;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .side-nav p::-webkit-scrollbar{display:none}
  .side-nav a{
    padding:12px 10px;
    font-size:16px;
    white-space:nowrap;
    border-bottom:0;
  }
  main{padding-left:0;padding-top:100px}
  .hero{
    min-height:60vh;
    padding:34px 18px 44px;
    clip-path:polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  .hero-copy{gap:12px;max-width:none}
  .hero h1{font-size:clamp(1.9rem, 8.4vw, 2.7rem)}
  .lede{font-size:16px;max-width:34ch}
  .stage{
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    padding:28px 16px 52px;
  }
  .rail{position:static;rotate:none}
  .rail-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 10px;
  }
  .prose > div,
  .prose > div:nth-child(odd),
  .prose > div:nth-child(even),
  .prose figure,
  .cta{rotate:none}
  .prose > div{
    padding:24px 18px;
    margin-bottom:24px;
    scroll-margin-top:124px;
  }
  .foot{
    margin-left:0;
    padding:32px 18px 20px;
  }
  .foot-grid{grid-template-columns:1fr 1fr;gap:20px}
  .foot-sub{grid-column:1 / -1}
  .foot-bar{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    margin-top:26px;
  }
}

@media (min-width:900px){
  .side-nav p a{min-height:44px}
}

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