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

:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #0a0a0b;
  --line: #1b1b1e;
  --line-2: #26262b;
  --ink: #f2f2f4;
  --text: #cfcfd6;
  --mute: #8b8b93;
  --cyan: #52f2c8;
  --blue: #6f9dff;
  --violet: #b78bff;
  --r: 18px;
  --display: 'Space Grotesk', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.7;
  padding-bottom: 110px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* ---------- 页头 ---------- */

.top {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 6px 2px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: color 0.25s ease;
}

.brand:hover { color: var(--cyan); }

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(82, 242, 200, 0.85);
  flex: none;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: 130px 24px 116px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(111, 157, 255, 0.18), transparent 56%),
    radial-gradient(90% 90% at 92% 4%, rgba(183, 139, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #060607 0%, #000000 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) contrast(1.06);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.86) 74%, #000 100%);
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(82, 242, 200, 0.45);
  border-radius: 999px;
  background: rgba(82, 242, 200, 0.06);
  color: var(--cyan);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(82, 242, 200, 0.55);
}

.hero h1 {
  margin: 18px 0 16px;
  font-family: var(--display);
  font-size: clamp(30px, 5.6vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(111, 157, 255, 0.26);
}

.hero-lede {
  max-width: 56ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #c3c3cb;
}

/* ---------- 主体分栏 ---------- */

.split {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px 20px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* ---------- 左栏 ---------- */

.rail {
  position: sticky;
  top: 22px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}

.rail-title {
  margin: 0 0 12px;
  padding-left: 4px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.rail hr {
  height: 1px;
  margin: 0 0 12px;
  border: 0;
  background: linear-gradient(90deg, rgba(82, 242, 200, 0.6), transparent);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #c9c9d1;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.rail-list a:hover {
  background: #151517;
  color: #ffffff;
  transform: translateX(3px);
}

/* ---------- 正文 ---------- */

.stage { min-width: 0; }

.doc > article {
  margin: 0 0 26px;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #050505;
  scroll-margin-top: 90px;
}

.doc > article:hover { border-color: var(--line-2); }

.doc h2,
.doc h3 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.doc h2 { font-size: clamp(22px, 2.8vw, 29px); }
.doc h3 { font-size: clamp(19px, 2.2vw, 23px); }

.doc > article > h2:first-child,
.doc > article > h3:first-child { margin-top: 0; }

.doc hr {
  height: 1px;
  margin: 0 0 20px;
  border: 0;
  background: linear-gradient(90deg, rgba(111, 157, 255, 0.6), transparent 72%);
}

.doc p {
  margin: 0 0 17px;
  color: var(--text);
}

.doc > article > p:last-child { margin-bottom: 0; }

.doc a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.doc a:hover { color: #ffffff; }

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.doc li { margin: 0 0 8px; }

.doc strong { color: #ffffff; font-weight: 700; }

.doc blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 2px solid var(--violet);
  background: #0b0b0d;
  border-radius: 0 12px 12px 0;
  color: #d6d6dd;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

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

.doc th { background: #0e0e10; color: #ffffff; }

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 44px;
  padding: 48px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #030303 0%, #000000 100%);
}

.foot-cols {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.foot dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #b9b9c1;
  word-break: break-word;
}

.foot dd a {
  display: inline-block;
  min-height: 42px;
  padding: 9px 0;
  color: #b9b9c1;
  transition: color 0.22s ease;
}

.foot dd a:hover { color: var(--cyan); }

.foot-mark {
  max-width: 1140px;
  margin: 42px auto 0;
  padding: 0 24px;
  font-family: var(--display);
  font-size: clamp(38px, 10.5vw, 118px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #3c3c44 0%, #0d0d10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}

.foot-base {
  max-width: 1140px;
  margin: 26px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mute);
}

.foot-base p { margin: 0; }

/* ---------- 底部胶囊导航 ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
}

.dock-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.94);
  color: #ffffff;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.16em;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.dock-trigger::-webkit-details-marker { display: none; }

.dock-trigger::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(82, 242, 200, 0.9);
}

.dock-trigger:hover {
  border-color: rgba(82, 242, 200, 0.55);
  color: var(--cyan);
}

.dock[open] .dock-trigger {
  border-color: rgba(82, 242, 200, 0.6);
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(82, 242, 200, 0.18), 0 12px 34px rgba(0, 0, 0, 0.85);
}

.dock-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(92vw, 460px);
  margin: 0;
  padding: 12px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(9, 9, 11, 0.97);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.86);
  animation: dockIn 0.2s ease-out;
}

@keyframes dockIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dock-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #141416;
  font-size: 16px;
  line-height: 1.4;
  color: #dadae1;
  transition: background 0.2s ease, color 0.2s ease;
}

.dock-menu a:hover {
  background: #1f1f24;
  color: var(--cyan);
}

/* ---------- 滚动出现 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 30px 18px 12px;
  }

  .rail { position: static; }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .rail-list a { padding: 10px 12px; }

  .doc > article { padding: 24px 18px; }

  .hero { padding: 96px 18px 108px; min-height: 62vh; }

  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 17px; padding-bottom: 104px; }

  .top { padding: 12px 18px 2px; }

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

  .foot-mark { font-size: clamp(34px, 13vw, 64px); }

  .dock-menu { grid-template-columns: minmax(0, 1fr); max-width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}

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