@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root{
  --ink:#0E0F0C;
  --ink-2:#14170E;
  --ink-3:#1B1F14;
  --lime:#C6F04A;
  --paper:#F4F4EF;
  --line:rgba(244,244,239,.15);
  --muted:rgba(244,244,239,.68);
  --ff:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",sans-serif;
  --fd:"Bebas Neue","Source Sans 3",-apple-system,"PingFang SC","Noto Sans SC",sans-serif;
}

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

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

body{
  margin:0;
  padding-left:212px;
  background:var(--ink);
  color:var(--paper);
  font:400 17px/1.7 var(--ff);
  overflow-x:hidden;
  letter-spacing:.005em;
}

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

/* ---------- 顶部细条 ---------- */
.ticker{
  position:fixed;
  top:0;left:0;right:0;
  height:28px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--lime);
  color:var(--ink);
  z-index:60;
}
.ticker p{
  margin:0;
  padding-left:12px;
  white-space:nowrap;
  font-size:12px;
  font-weight:600;
  letter-spacing:.24em;
  animation:slide 42s linear infinite;
}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- 侧栏页头 ---------- */
.site-head{
  position:fixed;
  top:28px;left:0;bottom:0;
  width:212px;
  display:flex;
  flex-direction:column;
  gap:28px;
  padding:20px 16px;
  border-right:1px solid var(--line);
  background:var(--ink);
  z-index:55;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--paper);
}
.brand-mark{
  width:46px;height:46px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:var(--lime);
  color:var(--ink);
  font:700 24px/1 var(--fd);
  transition:transform .45s cubic-bezier(.2,.8,.2,1),border-radius .45s;
}
.brand:hover .brand-mark{transform:rotate(-9deg) scale(1.07);border-radius:50% 15px 50% 15px}
.brand-name{font-size:14px;font-weight:600;letter-spacing:.16em;line-height:1.3}

.nav{min-width:0}
.nav p{margin:0;display:flex;flex-direction:column;gap:3px}

.nav-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 9px;
  border-radius:11px;
  color:var(--muted);
  text-decoration:none;
  font-size:15px;
  line-height:1.35;
  letter-spacing:.04em;
  transition:color .25s,background .25s,padding-left .25s;
}
.nav-link .dot{
  width:7px;height:7px;
  flex:0 0 auto;
  border:1px solid currentColor;
  border-radius:50%;
  transition:background .25s,transform .25s,border-color .25s;
}
.nav-link:hover,.nav-link.on{background:var(--lime);color:var(--ink)}
.nav-link:hover .dot,.nav-link.on .dot{background:var(--ink);border-color:var(--ink);transform:scale(1.2)}

/* ---------- 主区 ---------- */
main{display:block}

.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:130px 26px 48px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-ghost{
  position:absolute;
  left:-3vw;
  top:5vh;
  margin:0;
  white-space:nowrap;
  font:700 clamp(96px,25vw,300px)/.8 var(--fd);
  letter-spacing:-.02em;
  color:transparent;
  -webkit-text-stroke:1px rgba(198,240,74,.26);
  pointer-events:none;
  user-select:none;
}
.hero-title{
  position:relative;
  margin:0;
  max-width:15em;
  font:700 clamp(40px,7.6vw,94px)/1.02 var(--fd);
  letter-spacing:.01em;
  background:linear-gradient(96deg,var(--paper) 18%,var(--lime) 78%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-title .ch{
  display:inline-block;
  opacity:0;
  transform:translateY(46%) rotate(5deg);
  animation:pop .72s cubic-bezier(.2,.85,.25,1) forwards;
}
@keyframes pop{to{opacity:1;transform:none}}

.hero-cta{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  margin-top:34px;
  padding:12px 26px;
  border:1px solid var(--lime);
  border-radius:999px;
  color:var(--lime);
  text-decoration:none;
  font-size:15px;
  letter-spacing:.26em;
  transition:background .3s,color .3s,transform .3s;
}
.hero-cta::after{
  content:"";
  width:8px;height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
}
.hero-cta:hover{background:var(--lime);color:var(--ink);transform:translateY(-3px)}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 236px;
  gap:52px;
  max-width:1180px;
  padding:0 26px 90px;
}
.body{min-width:0}

/* ---------- 正文 ---------- */
.prose{
  max-width:70ch;
  font-size:17px;
  line-height:1.78;
  color:rgba(244,244,239,.86);
  counter-reset:seg;
}
.prose > section{
  position:relative;
  counter-increment:seg;
  padding:58px 0;
  border-top:1px solid var(--line);
  scroll-margin-top:92px;
}
.prose > section:first-child{border-top:0;padding-top:10px}
.prose > section::before{
  content:counter(seg,decimal-leading-zero);
  position:absolute;
  top:60px;left:-2.6em;
  font:400 13px/1 var(--fd);
  letter-spacing:.14em;
  color:rgba(198,240,74,.5);
}
.prose > section:first-child::before{top:14px}

.prose small,.eyebrow{
  display:block;
  margin-bottom:10px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.3em;
  color:var(--lime);
}

.prose h2,.prose h3,.side-title{
  font-family:var(--fd);
  font-weight:700;
  color:var(--paper);
  letter-spacing:.01em;
}
.prose h2{margin:0 0 18px;font-size:clamp(24px,3.3vw,36px);line-height:1.22}
.prose h3{margin:34px 0 12px;font-size:clamp(19px,2.2vw,23px);line-height:1.3}

.prose p{margin:0 0 1.05em}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.25em}
.prose li{margin:.42em 0}
.prose li::marker{color:var(--lime)}

.prose a{
  color:var(--lime);
  text-decoration:none;
  border-bottom:1px solid rgba(198,240,74,.42);
  transition:background .25s,border-color .25s;
}
.prose a:hover{background:rgba(198,240,74,.15);border-color:var(--lime)}

.prose strong{color:var(--paper);font-weight:600}

.prose blockquote{
  margin:26px 0;
  padding:20px 26px;
  border-left:3px solid var(--lime);
  border-radius:0 28px 28px 0;
  background:var(--ink-2);
  color:rgba(244,244,239,.82);
  box-shadow:0 22px 48px -30px #000;
}

.prose figure,.prose .card{
  margin:26px 0;
  padding:22px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--ink-2);
  box-shadow:0 26px 54px -34px #000;
}
.prose figure img{border-radius:20px;display:block;width:100%}
.prose figcaption{font-size:14px;color:var(--muted);margin-top:10px}

.prose table{width:100%;border-collapse:collapse;font-size:16px;margin:22px 0}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:11px 10px;text-align:left;vertical-align:top}
.prose th{color:var(--lime);font-weight:600}

.prose hr{border:0;border-top:1px solid var(--line);margin:30px 0}

/* ---------- 右侧栏 ---------- */
.side{
  align-self:start;
  position:sticky;
  top:56px;
  padding:22px 20px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--ink-2);
  box-shadow:0 30px 60px -36px #000;
}
.side-title{margin:0 0 14px;font-size:19px;letter-spacing:.08em;line-height:1.3}
.side-list{list-style:none;margin:0;padding:0}
.side-list li + li{border-top:1px dashed rgba(244,244,239,.13)}
.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 2px;
  color:rgba(244,244,239,.74);
  text-decoration:none;
  font-size:15px;
  line-height:1.35;
  transition:color .25s,padding-left .25s;
}
.side-list a:hover{color:var(--lime);padding-left:7px}

/* ---------- 页脚 ---------- */
.site-foot{
  border-top:1px solid var(--line);
  padding:0 26px 34px;
}
.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:62px 0 46px;
  border-bottom:1px solid var(--line);
}
.foot-cta .big{
  margin:0;
  font:700 clamp(32px,5.4vw,68px)/1 var(--fd);
  letter-spacing:.02em;
  background:linear-gradient(92deg,var(--lime),var(--paper));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 26px;
  border-radius:999px;
  background:var(--lime);
  color:var(--ink);
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  letter-spacing:.16em;
  transition:transform .3s,box-shadow .3s;
}
.to-top:hover{transform:translateY(-4px);box-shadow:0 16px 30px -18px var(--lime)}

.foot-cols{
  display:grid;
  grid-template-columns:1.15fr repeat(3,1fr);
  gap:30px;
  padding:44px 0;
}
.foot-brand{margin:0}
.foot-mark{
  margin:0 0 10px;
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:14px;
  background:var(--ink-3);
  color:var(--lime);
  font:700 20px/1 var(--fd);
}
.foot-name{margin:0;font-size:15px;font-weight:600;letter-spacing:.14em;color:var(--paper)}
.foot-cols dl{margin:0}
.foot-cols dt{
  margin-bottom:12px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.28em;
  color:var(--lime);
}
.foot-cols dd{margin:0}
.foot-cols dd a,.foot-cols dd{
  display:block;
  min-height:40px;
  padding:8px 0;
  color:rgba(244,244,239,.74);
  text-decoration:none;
  font-size:15px;
  line-height:1.5;
  transition:color .25s,padding-left .25s;
}
.foot-cols dd a:hover{color:var(--lime);padding-left:5px}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:22px;
  border-top:1px solid var(--line);
  font-size:13px;
  letter-spacing:.1em;
  color:rgba(244,244,239,.55);
}
.foot-base p{margin:0}
.foot-base a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--lime);
  text-decoration:none;
}

/* ---------- 进场 ---------- */
html.anim .prose > section{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1);
}
html.anim .prose > section.in{opacity:1;transform:none}

html.anim .side,
html.anim .foot-cta,
html.anim .foot-cols{
  opacity:0;
  transition:opacity .65s ease;
}
html.anim .side.in,
html.anim .foot-cta.in,
html.anim .foot-cols.in{opacity:1}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  body{padding-left:0;padding-top:106px}

  .site-head{
    top:28px;right:0;bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:9px 14px;
    border-right:0;
    border-bottom:1px solid var(--line);
    background:rgba(14,15,12,.95);
    backdrop-filter:blur(8px);
  }
  .brand-mark{width:42px;height:42px;border-radius:13px;font-size:21px}
  .brand-name{display:none}
  .nav{flex:1;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav p{flex-direction:row;gap:6px}
  .nav-link{white-space:nowrap;font-size:14px;min-height:44px;padding:8px 12px;border:1px solid var(--line)}

  .hero{min-height:58vh;padding:56px 18px 34px}
  .hero-ghost{top:auto;bottom:26%;left:-6vw;font-size:34vw}
  .hero-cta{margin-top:26px}

  .wrap{grid-template-columns:minmax(0,1fr);gap:32px;padding:0 18px 60px}
  .side{position:static;order:2}

  .prose{font-size:17px}
  .prose > section{padding:44px 0;scroll-margin-top:126px}
  .prose > section::before{position:static;display:block;margin-bottom:8px}
  .prose > section:first-child{padding-top:26px}

  .site-foot{padding:0 18px 26px}
  .foot-cta{padding:44px 0 34px}
  .foot-cols{grid-template-columns:1fr 1fr;gap:22px 24px;padding:32px 0}
  .foot-brand{grid-column:1 / -1}
}

@media (max-width:420px){
  .hero-title{font-size:clamp(34px,10.5vw,52px)}
  .foot-cols{grid-template-columns:1fr}
  .foot-brand{grid-column:auto}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .ticker p{animation:none;transform:none}
  .hero-title .ch{opacity:1;transform:none}
  html.anim .prose > section,
  html.anim .side,
  html.anim .foot-cta,
  html.anim .foot-cols{opacity:1;transform:none}
}

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