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

:root {
  --bg: #0B0E11;
  --ink: #EDEAE4;
  --red: #FF3B30;
  --dim: #98A0A8;
  --line: rgba(237, 234, 228, 0.12);
  --panel: #10141A;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rail: 268px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
menu { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 90;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--red);
  color: #0B0E11;
  font-family: var(--mono);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.24s ease;
}
.skip:focus { transform: none; }

/* ---------- 背景视差层 ---------- */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  perspective: 1px;
  overflow: hidden;
}
.bg-stack .layer {
  position: absolute;
  inset: -18% -10%;
  will-change: transform;
}
.layer.l1 {
  background:
    radial-gradient(58% 42% at 82% 10%, rgba(255, 59, 48, 0.22), transparent 72%),
    radial-gradient(46% 40% at 6% 78%, rgba(255, 59, 48, 0.13), transparent 70%);
}
.layer.l2 {
  background:
    radial-gradient(38% 26% at 34% 44%, rgba(237, 234, 228, 0.06), transparent 72%),
    radial-gradient(30% 24% at 68% 66%, rgba(255, 59, 48, 0.09), transparent 70%);
}
.layer.l3 {
  background-image:
    linear-gradient(rgba(237, 234, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 234, 228, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 76%);
}

/* ---------- 左侧竖排固定导轨 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 14, 17, 0.97), rgba(11, 14, 17, 0.88));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 8px 14px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.brand .mark {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18);
}

.rail-link,
.rail-more summary,
.rail-more menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.rail-link { color: var(--ink); background: rgba(255, 59, 48, 0.13); box-shadow: inset 2px 0 0 var(--red); }
.rail-link:hover,
.rail-more menu a:hover,
.rail-more summary:hover { color: var(--ink); background: rgba(237, 234, 228, 0.07); }

.rail-more { margin-top: 2px; }
.rail-more summary {
  cursor: pointer;
  list-style: none;
  justify-content: space-between;
  color: var(--ink);
  border: 1px solid var(--line);
}
.rail-more summary::-webkit-details-marker { display: none; }
.rail-more summary::after {
  content: "+";
  font-weight: 600;
  color: var(--red);
  margin-left: 10px;
}
.rail-more[open] summary {
  border-color: rgba(255, 59, 48, 0.5);
  background: rgba(255, 59, 48, 0.08);
}
.rail-more[open] summary::after { content: "–"; }
.rail-more menu {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding-left: 4px;
  border-left: 1px dashed var(--line);
}
.rail-more menu a { font-size: 0.86rem; min-height: 42px; padding: 8px 10px; }

/* ---------- 右下主 CTA ---------- */
.cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--red);
  color: #0B0E11;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(255, 59, 48, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(255, 59, 48, 0.42); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: end;
  justify-items: end;
  text-align: right;
  gap: 6px;
  padding: clamp(96px, 16vh, 160px) var(--pad) clamp(56px, 12vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 -10%;
  z-index: -2;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 3%, rgba(11, 14, 17, 0.6) 48%, rgba(11, 14, 17, 0.92) 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(0.34) contrast(1.12);
}
.hero-num {
  position: absolute;
  right: clamp(4px, 1.5vw, 26px);
  bottom: clamp(46px, 12vh, 130px);
  z-index: -1;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 21rem);
  line-height: 0.72;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 59, 48, 0.4);
  user-select: none;
}
.hero-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  color: var(--red);
  animation: rise 0.85s ease 0.05s both;
}
.hero h1 {
  margin: 0.18em 0 0;
  max-width: 17ch;
  font-size: clamp(2.5rem, 6.6vw, 5.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  animation: rise 0.95s ease 0.16s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 正文骨架 ---------- */
main {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) clamp(56px, 10vh, 116px);
}
article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
article > * { min-width: 0; }

.doc {
  counter-reset: shot;
  max-width: 72ch;
}
.doc > section {
  position: relative;
  padding: clamp(34px, 6vh, 62px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.doc > section::before {
  counter-increment: shot;
  content: counter(shot, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--red);
}

.doc h2 {
  margin: 0 0 0.62em;
  font-size: clamp(1.52rem, 3.3vw, 2.25rem);
  line-height: 1.24;
  letter-spacing: -0.012em;
  font-weight: 700;
}
.doc h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #FFFFFF;
}
.doc h2 > span,
.doc h3 > span { box-shadow: inset 0 -0.34em 0 rgba(255, 59, 48, 0.2); }

.doc p { margin: 0 0 1.15em; color: #D9D5CE; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.2em; color: #D9D5CE; }
.doc li { margin-bottom: 0.45em; }
.doc a {
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--red);
}
.doc a:hover { color: var(--red); }
.doc strong { color: #FFFFFF; }
.doc blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--red);
  color: #C8C4BD;
}
.doc img { border-radius: 10px; margin: 1.4em 0; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5); }
.doc > section:first-child { border-top: 0; padding-top: 8px; }

/* ---------- 右侧栏 ---------- */
.side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}
.side-card h2 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.5;
  color: var(--dim);
}
.side-card h2 > span { color: var(--red); }
.side-list { display: grid; gap: 2px; }
.side-list a,
.to-top {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-list a:hover,
.to-top:hover { background: rgba(255, 59, 48, 0.14); color: #FFFFFF; }
.to-top { justify-content: space-between; }
.to-top::after { content: "↑"; color: var(--red); }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: 24px var(--pad) 26px;
  border-top: 1px solid var(--line);
  background: #0A0D10;
}
.foot-brand { display: grid; gap: 4px; max-width: 30ch; }
.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
}
.foot-desc { margin: 0 0 6px; font-size: 0.83rem; line-height: 1.65; color: var(--dim); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.foot-nav a:hover { color: var(--ink); background: rgba(237, 234, 228, 0.07); }
.foot-copy {
  margin: 0;
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #6E767E;
}

/* ---------- 滚动揭示 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero-kicker { animation: none; }
  .bg-stack .layer, .hero-bg { transform: none !important; }
}

/* ---------- 断点 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail); }
  .skip { left: calc(var(--rail) + 14px); }
  .foot { padding-right: calc(var(--pad) + 172px); }
}

@media (min-width: 1000px) {
  article { grid-template-columns: minmax(0, 1fr) 288px; }
  .side { position: sticky; top: 24px; }
}

@media (max-width: 899px) {
  .rail {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    border-bottom: 0;
    margin: 0 auto 0 0;
    padding: 6px 6px 6px 0;
    font-size: 0.94rem;
    min-height: 44px;
  }
  .rail-link { min-height: 44px; padding: 10px 12px; box-shadow: none; }
  .rail-more { position: relative; margin: 0; }
  .rail-more summary { min-height: 44px; padding: 10px 14px; }
  .rail-more menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: min(76vw, 260px);
    padding: 8px;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 10px;
    background: #12161B;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.62);
    z-index: 60;
  }
  .rail-more menu a { min-height: 44px; font-size: 0.9rem; }
  .hero { min-height: 88vh; padding-top: 22px; }
  .hero-num { bottom: 34px; font-size: clamp(7rem, 34vw, 13rem); }
  .cta { right: 14px; bottom: 14px; min-height: 46px; padding: 0 16px; font-size: 0.94rem; }
  .foot { flex-direction: row; }
  .foot-copy { flex-basis: 100%; text-align: center; }
  main { padding-bottom: 92px; }
  .doc > section { scroll-margin-top: 78px; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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