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

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --cream:#fdf4f4;
  --line:rgba(255,255,255,.16);
  --line-strong:rgba(255,255,255,.28);
  --glass:rgba(255,255,255,.07);
  --glass-2:rgba(255,255,255,.12);
  --dim:rgba(253,244,244,.7);
  --dim-2:rgba(253,244,244,.84);
  --shadow:0 22px 46px -26px rgba(0,0,0,.92);
  --blur:blur(15px) saturate(135%);
}

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

html{
  background:var(--ink);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:1rem;
  line-height:1.78;
  color:var(--cream);
  background:var(--ink);
  overflow-x:hidden;
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(62vw 62vw at 88% -12%, rgba(139,0,255,.45), transparent 62%),
    radial-gradient(58vw 58vw at 4% 8%, rgba(255,0,0,.38), transparent 66%),
    radial-gradient(78vw 78vw at 52% 112%, rgba(139,0,255,.3), transparent 72%),
    radial-gradient(40vw 40vw at 20% 62%, rgba(255,0,0,.16), transparent 70%);
}

a{color:inherit}
a:focus-visible,
button:focus-visible{outline:2px solid #ff9a9a;outline-offset:2px;border-radius:4px}

main div[id]{scroll-margin-top:20px;scroll-margin-bottom:104px}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px clamp(10px,3vw,34px) calc(8px + env(safe-area-inset-bottom,0px));
  background:rgba(38,23,23,.62);
  border-top:1px solid var(--line-strong);
  box-shadow:0 -18px 44px -24px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter:var(--blur);
  backdrop-filter:var(--blur);
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  min-height:44px;
  padding:6px 10px 6px 4px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.01em;
  color:#fff;
  border-radius:4px;
}
.brand .dot{
  width:11px;height:11px;border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 14px rgba(255,0,0,.75);
}
.brand .mark{display:block;border-radius:4px;object-fit:cover}
.brand-txt{white-space:nowrap;font-size:1rem}
.brand:hover{background:var(--glass-2)}

.docknav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.docknav::-webkit-scrollbar{display:none}
.docknav ul{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.docknav a{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 11px;
  border-radius:4px;
  font-size:1rem;
  line-height:1.4;
  white-space:nowrap;
  text-decoration:none;
  color:var(--dim);
  transition:color .18s ease,background .18s ease;
}
.docknav a .ico{
  width:7px;height:7px;
  border-radius:2px;
  transform:rotate(45deg);
  background:linear-gradient(135deg,rgba(255,0,0,.9),rgba(139,0,255,.9));
  opacity:.65;
  transition:opacity .18s ease,box-shadow .18s ease;
}
.docknav a:hover,
.docknav a.on{color:#fff;background:var(--glass-2)}
.docknav a:hover .ico,
.docknav a.on .ico{opacity:1;box-shadow:0 0 12px rgba(255,90,90,.9)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:45vh;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  padding:clamp(54px,12vh,96px) 20px clamp(58px,11vh,92px);
  isolation:isolate;
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(180deg, rgba(38,23,23,.2), rgba(38,23,23,.72) 88%);
}
.hero::after{
  content:'';
  position:absolute;
  left:-8%;right:-8%;bottom:-2px;
  height:clamp(40px,7vw,64px);
  z-index:1;
  transform:skewY(-3.2deg);
  transform-origin:right bottom;
  background:linear-gradient(90deg, rgba(255,0,0,.62), rgba(139,0,255,.62) 58%, rgba(255,0,0,.36));
  box-shadow:0 -12px 40px -18px rgba(139,0,255,.9);
}
.hero > *{position:relative;z-index:2}

.hero-glow{
  position:absolute;
  top:50%;left:50%;
  width:min(560px,120vw);
  height:min(560px,120vw);
  margin:0;
  z-index:0;
  border-radius:50%;
  filter:blur(48px);
  opacity:.85;
  transform:translate(-50%,-50%);
  background:conic-gradient(from 0deg, rgba(255,0,0,.5), rgba(139,0,255,.5), rgba(255,0,0,.12), rgba(139,0,255,.5), rgba(255,0,0,.5));
  animation:spin 28s linear infinite;
}

.hero h1{
  margin:0;
  max-width:20ch;
  font-size:clamp(2.15rem,7.6vw,4.4rem);
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.022em;
  background:linear-gradient(102deg,#ffffff 8%,#ff9b9b 42%,#c08bff 84%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 18px 40px rgba(0,0,0,.35);
}

.lede{
  margin:18px auto 0;
  max-width:44ch;
  font-size:1rem;
  line-height:1.8;
  color:var(--dim-2);
}

/* ---------- 主体 ---------- */
.stage{
  display:grid;
  grid-template-columns:238px minmax(0,1fr);
  gap:26px;
  align-items:start;
  max-width:1120px;
  margin:0 auto;
  padding:26px clamp(12px,3vw,22px) 34px;
}

/* 左侧栏 */
.rail{
  position:sticky;
  top:18px;
  padding:14px 12px 16px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--glass);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-backdrop-filter:var(--blur);
  backdrop-filter:var(--blur);
}
.rail-h{
  margin:0 0 6px;
  font-size:1rem;
  font-weight:600;
  letter-spacing:.08em;
  color:#ffc9c9;
}
.rail hr{
  height:3px;
  width:52px;
  border:0;
  margin:0 0 12px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--red),var(--violet));
}
.railnav ul{
  display:grid;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.railnav a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 10px;
  border-radius:4px;
  font-size:1rem;
  line-height:1.45;
  text-decoration:none;
  color:var(--dim);
  transition:color .18s ease,background .18s ease;
}
.railnav a:hover,
.railnav a.on{color:#fff;background:var(--glass-2)}

/* 正文卡片 */
.article > div{
  position:relative;
  margin:0 0 16px;
  padding:26px 22px 24px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--glass);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-backdrop-filter:var(--blur);
  backdrop-filter:var(--blur);
  animation:rise .58s cubic-bezier(.22,.72,.28,1) both;
}
.article > div::before{
  content:'';
  position:absolute;
  top:0;left:0;
  width:54px;height:3px;
  border-radius:4px 0 4px 0;
  background:linear-gradient(90deg,var(--red),var(--violet));
}
.article > div:nth-child(1){animation-delay:.04s}
.article > div:nth-child(2){animation-delay:.1s}
.article > div:nth-child(3){animation-delay:.16s}
.article > div:nth-child(4){animation-delay:.22s}
.article > div:nth-child(5){animation-delay:.28s}
.article > div:nth-child(6){animation-delay:.34s}
.article > div:nth-child(7){animation-delay:.4s}
.article > div:nth-child(n+8){animation-delay:.46s}

.article h2{
  margin:0 0 .18em;
  font-size:clamp(1.24rem,3.3vw,1.62rem);
  line-height:1.36;
  letter-spacing:-.012em;
  color:#fff;
}
.article h3{
  margin:1.2em 0 .4em;
  font-size:1.06rem;
  line-height:1.5;
  color:#ffd8d8;
}
.article hr{
  height:3px;
  width:72px;
  border:0;
  margin:.55em 0 1.05em;
  border-radius:3px;
  background:linear-gradient(90deg,var(--red),var(--violet));
}
.article p{margin:.72em 0;color:var(--dim-2)}
.article ul,
.article ol{margin:.72em 0;padding-left:1.25em}
.article li{margin:.34em 0;color:var(--dim-2)}
.article li::marker{color:#ff8f8f}
.article strong{color:#fff}
.article a{color:#ffb6b6;text-decoration:underline;text-underline-offset:3px}
.article a:hover{color:#fff}
.article blockquote{
  margin:1em 0;
  padding:12px 16px;
  border-left:3px solid var(--violet);
  border-radius:0 4px 4px 0;
  background:rgba(255,255,255,.06);
  color:var(--dim-2);
}
.article blockquote p{margin:.3em 0}
.article img{max-width:100%;height:auto;border-radius:4px;display:block}
.article figure{margin:1em 0}
.article figcaption{font-size:1rem;color:var(--dim);margin-top:.5em}
.article code,
.article pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.95rem;
}
.article pre{
  overflow-x:auto;
  padding:14px;
  border-radius:4px;
  background:rgba(0,0,0,.42);
  border:1px solid var(--line);
}
.article table{width:100%;border-collapse:collapse;margin:1em 0;font-size:1rem}
.article th,
.article td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:16px 28px;
  max-width:1120px;
  margin:0 auto;
  padding:34px clamp(16px,3vw,22px) 124px;
  border-top:1px solid var(--line-strong);
}
.foot-cta{
  grid-column:1 / -1;
  margin:0;
  font-size:clamp(1.7rem,5.4vw,2.6rem);
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.02em;
  background:linear-gradient(98deg,#fff 10%,#ff9d9d 50%,#c08bff 92%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.foot-about{
  margin:0;
  font-size:1rem;
  line-height:1.78;
  color:var(--dim);
}
.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  margin:0;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  border-radius:4px;
  font-size:1rem;
  text-decoration:none;
  color:var(--dim);
  transition:color .18s ease,background .18s ease;
}
.foot-links a:hover{color:#fff;background:var(--glass-2)}
.foot-copy{
  grid-column:1 / -1;
  display:block;
  padding-top:12px;
  border-top:1px solid var(--line);
  font-size:1rem;
  color:rgba(253,244,244,.6);
}

@keyframes rise{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:none}
}
@keyframes spin{
  from{transform:translate(-50%,-50%) rotate(0deg)}
  to{transform:translate(-50%,-50%) rotate(360deg)}
}

/* ---------- 响应式 ---------- */
@media (max-width:860px){
  .stage{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding-top:18px;
  }
  .rail{position:static;padding:10px 12px 12px}
  .rail hr{margin-bottom:9px}
  .railnav{overflow-x:auto;scrollbar-width:none}
  .railnav::-webkit-scrollbar{display:none}
  .railnav ul{grid-auto-flow:column;grid-auto-columns:max-content;gap:4px}
  .railnav a{white-space:nowrap;min-height:40px}
  .foot{grid-template-columns:minmax(0,1fr);padding-bottom:118px}
  .hero{min-height:44vh}
}

@media (max-width:520px){
  .brand-txt{font-size:1rem}
  .hero{padding-top:48px}
  .article > div{padding:22px 16px 20px}
  .dock{gap:6px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .article > div,
  .hero-glow{animation:none}
  .docknav a,
  .railnav a,
  .foot-links a{transition:none}
}

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