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

:root{
  --ink:#12121F;
  --ink-2:#1B1B2E;
  --ink-3:#282840;
  --red:#FF4757;
  --yel:#FFD23F;
  --txt:#F3F3F8;
  --dim:#A7A7BE;
  --r:4px;
}

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

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

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  background:var(--ink);
  color:var(--txt);
  padding-bottom:150px;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
h1,h2,h3,h4{font-weight:700;line-height:1.2;letter-spacing:-.01em}
p{margin:0 0 16px}

.wrap{max-width:1180px;margin:0 auto;padding:0 20px}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  background:var(--ink);
  border-top:2px solid var(--red);
}
.dock-in{
  max-width:1180px;
  margin:0 auto;
  padding:8px 16px 12px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  min-height:40px;
  color:var(--yel);
  font-weight:700;
  font-size:17px;
  letter-spacing:.04em;
  border-radius:var(--r);
  transition:color .15s ease;
}
.brand:hover,.brand:focus-visible{color:var(--red);outline:none}
.brand img{height:22px;width:auto}
.dock-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
}
.dock-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 10px;
  font-size:16px;
  border-radius:var(--r);
  transition:background-color .15s ease,color .15s ease;
}
.dock-nav a:hover,.dock-nav a:focus-visible{background:var(--red);color:#fff;outline:none}

/* ---------- 首屏 ---------- */
.hero{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100svh;
  padding-top:64px;
}
.hero-txt{text-align:right;padding-bottom:24px}
.hero-txt h1{
  margin:0 0 14px;
  font-size:clamp(32px,6vw,58px);
  color:#fff;
  line-height:1.14;
}
.hero-lead{
  margin:0 0 0 auto;
  max-width:44ch;
  color:var(--dim);
  font-size:17px;
}
.band{height:12px;background:var(--yel);margin:0 -20px}
.hero-fig{
  margin:0 -20px;
  flex:1 1 auto;
  min-height:34vh;
  background:var(--ink-2);
  overflow:hidden;
}
.hero-fig img{width:100%;height:100%;object-fit:cover}

/* ---------- 正文与右栏 ---------- */
.body-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:56px;
  align-items:start;
  padding:56px 0 0;
}

.side{
  position:sticky;
  top:24px;
  background:var(--ink-2);
  border-radius:var(--r);
  padding:18px 16px 20px;
}
.side h2{
  margin:0 0 10px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--yel);
}
.side h2 span{display:inline-block;border-left:4px solid var(--red);padding-left:9px;line-height:1.1}
.side nav{margin:0 0 20px}
.side ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
.side li.off{display:none}
.side nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:2px 8px;
  font-size:16px;
  border-radius:var(--r);
  transition:background-color .15s ease,color .15s ease;
}
.side nav a:hover,.side nav a:focus-visible{background:var(--ink-3);color:var(--yel);outline:none}

.find{display:flex;flex-direction:column;gap:8px;margin:0 0 14px}
.find input{
  height:44px;
  padding:0 12px;
  font:inherit;
  font-size:16px;
  color:var(--txt);
  background:var(--ink);
  border:2px solid var(--ink-3);
  border-radius:var(--r);
  -webkit-appearance:none;
  appearance:none;
}
.find input:focus{outline:none;border-color:var(--yel)}
.find button{
  height:44px;
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  background:var(--yel);
  border:0;
  border-radius:var(--r);
  cursor:pointer;
  transition:background-color .15s ease,color .15s ease;
}
.find button:hover{background:var(--red);color:#fff}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  font-size:16px;
  background:var(--ink-3);
  border-radius:var(--r);
  transition:background-color .15s ease,color .15s ease;
}
.totop:hover{background:var(--red);color:#fff}

/* ---------- 正文排版 ---------- */
.prose{min-width:0}
.prose > article{
  padding:0 0 34px;
  margin:0 0 34px;
  border-bottom:1px solid var(--ink-3);
  scroll-margin-top:24px;
}
.prose > article:last-child{border-bottom:0;margin-bottom:0;padding-bottom:8px}
.prose h2{
  margin:0 0 18px;
  font-size:clamp(23px,3.2vw,31px);
  color:#fff;
}
.prose h2 span{display:inline-block;border-left:6px solid var(--red);padding-left:13px;line-height:1.15}
.prose h3{margin:26px 0 10px;font-size:20px;color:var(--yel)}
.prose h3 span{border-bottom:2px solid var(--red);padding-bottom:2px}
.prose p{color:#DCDCE8}
.prose a{color:var(--yel);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--red)}
.prose ul,.prose ol{margin:0 0 18px;padding-left:22px;color:#DCDCE8}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--red)}
.prose blockquote{
  margin:0 0 18px;
  padding:2px 0 2px 16px;
  border-left:4px solid var(--yel);
  color:var(--dim);
}
.prose img{border-radius:var(--r);margin:0 0 18px;height:auto}
.prose figure{margin:0 0 18px}
.prose table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:16px}
.prose th,.prose td{border:1px solid var(--ink-3);padding:8px 10px;text-align:left}
.prose th{background:var(--ink-2)}
.prose code{background:var(--ink-3);padding:1px 5px;border-radius:2px;font-size:15px}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:48px;
  border-top:2px solid var(--red);
  padding:18px 0 26px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 18px;
}
.foot-brand a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--yel);
  font-weight:700;
  transition:color .15s ease;
}
.foot-brand a:hover{color:var(--red)}
.foot nav{display:flex;flex-wrap:wrap;gap:2px 14px}
.foot nav a{display:inline-flex;align-items:center;min-height:40px;font-size:16px;color:var(--dim);transition:color .15s ease}
.foot nav a:hover{color:var(--yel)}
.foot-copy{font-size:16px;color:var(--dim)}

/* ---------- 出现动画 ---------- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .2s ease,transform .2s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:920px){
  .body-grid{grid-template-columns:minmax(0,1fr);gap:30px;padding-top:40px}
  .side{position:static;order:-1}
  .hero{padding-top:48px}
}

@media (max-width:640px){
  body{padding-bottom:180px;font-size:17px}
  .dock-in{padding:6px 12px 10px}
  .wrap{padding:0 16px}
  .band,.hero-fig{margin:0 -16px}
  .hero-lead{max-width:none}
  .foot{flex-direction:column;align-items:flex-start;gap:2px}
}

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

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