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

:root {
  --bg: #0B0D10;
  --fg: #EDEFF3;
  --acc: #5B6CFF;
  --line: rgba(237, 239, 243, 0.12);
  --line-soft: rgba(237, 239, 243, 0.07);
  --glass: rgba(237, 239, 243, 0.06);
  --muted: rgba(237, 239, 243, 0.62);
  --rail: 236px;
  --side: 252px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: #aab4ff; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: -25vh -12vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 18% 12%, rgba(91, 108, 255, 0.20), transparent 72%),
    radial-gradient(45% 45% at 82% 34%, rgba(91, 108, 255, 0.13), transparent 70%),
    radial-gradient(40% 40% at 50% 88%, rgba(237, 239, 243, 0.07), transparent 72%);
  transform: translate3d(0, calc(var(--sy, 0px) * -0.22), 0);
  will-change: transform;
}

.bg-grid {
  position: fixed;
  inset: -25vh -12vw;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(237, 239, 243, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237, 239, 243, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 38%, #000 26%, transparent 86%);
  mask-image: radial-gradient(72% 72% at 50% 38%, #000 26%, transparent 86%);
  transform: translate3d(0, calc(var(--sy, 0px) * -0.42), 0);
  will-change: transform;
}

/* ---------- 左侧竖栏 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.brand-name { display: block; }

.mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--acc), #3c4bd6);
  box-shadow: 0 6px 18px rgba(91, 108, 255, 0.4);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease, background 0.2s ease;
}

.rail-nav .ico {
  flex: none;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: var(--fg);
  background: var(--glass);
}

.rail-nav a:hover .ico,
.rail-nav a:focus-visible .ico {
  background: var(--acc);
  border-color: var(--acc);
}

.rail-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(91, 108, 255, 0.55);
  background: rgba(91, 108, 255, 0.16);
  color: #d3d8ff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-cta:hover { background: var(--acc); color: #fff; }

/* ---------- 主体 ---------- */
main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  align-items: start;
}

div {
  min-width: 0;
  padding: 0 var(--pad);
}

/* 首屏 */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 110px 0 80px;
  text-align: center;
}

.badge {
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(91, 108, 255, 0.45);
  background: rgba(91, 108, 255, 0.12);
  color: #ccd2ff;
  font-size: 16px;
  line-height: 1.4;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  50% { transform: translateY(-9px); }
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.95rem, 6vw, 4.4rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.go-row { margin: 6px 0 0; }

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 10px;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 40px rgba(91, 108, 255, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}

.go:hover { background: #6d7cff; transform: translateY(-2px); }

/* 正文章节 */
div > article:not(.hero) {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0;
  border-top: 1px solid var(--line-soft);
}

div > article,
#main {
  scroll-margin-top: 96px;
}

div h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

div h3 {
  margin: 30px 0 8px;
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 600;
}

div p { margin: 0 0 16px; }

div ul,
div ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

div li { margin: 0 0 8px; }

div blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

div blockquote p:last-child { margin-bottom: 0; }

div table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}

div th,
div td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

div img { border-radius: 10px; margin: 22px 0; }

hr {
  border: 0;
  height: 1px;
  margin: 0 0 18px;
  background: var(--line);
}

/* ---------- 右侧 ---------- */
.side {
  padding: 96px var(--pad) 96px 0;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 18px 16px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.side-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-card a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 6px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.2s ease, background 0.2s ease;
}

.side-card a:hover { color: var(--fg); background: rgba(91, 108, 255, 0.14); }

.num {
  flex: none;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: rgba(91, 108, 255, 0.9);
  letter-spacing: 0.04em;
}

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  padding: 0 var(--pad) 30px;
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.82);
}

.f-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(34px, 6vw, 60px) var(--pad);
  margin: 0 calc(-1 * var(--pad));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(91, 108, 255, 0.2), rgba(91, 108, 255, 0.04));
}

.f-cta-t {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid rgba(237, 239, 243, 0.28);
  background: rgba(237, 239, 243, 0.08);
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.f-btn:hover { background: var(--acc); border-color: var(--acc); color: #fff; }

.f-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 30px;
  padding: 38px 0 30px;
}

.f-intro p { margin: 0 0 8px; }

.f-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.f-key { color: var(--muted); font-size: 16px; }

.f-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.f-links dl { margin: 0; }

.f-links dt {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}

.f-dl dd {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.f-nav dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 10px;
  align-items: center;
}

.f-nav dt { font-weight: 400; }

.f-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.f-nav a:hover { color: var(--acc); }

.f-nav dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  font-size: 16px;
  color: rgba(91, 108, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

.f-base {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 16px;
}

.f-base p { margin: 0; }

/* ---------- 滚动揭示 ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge { animation: none; }
  .rv { transition: none; }
  .bg-layer,
  .bg-grid { transform: none; }
  .go:hover { transform: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 980px) {
  .rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }

  .brand { flex: none; }

  .rail-nav {
    flex: 1;
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar { display: none; }

  .rail-nav a { white-space: nowrap; min-height: 44px; padding: 9px 11px; }

  .rail-cta { display: none; }

  main {
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  div > article,
  #main { scroll-margin-top: 88px; }

  .hero { padding: 56px 0 64px; min-height: 88svh; }

  .side {
    order: 2;
    padding: 0 var(--pad) 70px;
  }

  .side-card { position: static; }

  footer { margin-left: 0; }

  .f-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .f-links { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .brand-name { font-size: 16px; }
  .mark { width: 22px; height: 22px; }
}

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