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

:root {
  --bg: #000000;
  --surface: #121212;
  --surface-lift: #181b21;
  --ink: #e9ebf1;
  --ink-soft: #c4ccdc;
  --muted: #8d97ab;
  --line: #1f242e;
  --accent: #4361ee;
  --accent-soft: #7c93ff;
  --radius: 18px;
  --head: 'Newsreader', Georgia, 'Songti SC', serif;
  --body: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  background: #000;
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .002em;
  padding-bottom: 108px;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: 96px; }

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

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

h2 > span { display: inline-block; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 110px 22px 150px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(67, 97, 238, .28), transparent 58%),
    #000;
}

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

.hero-media img,
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5) saturate(.8);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 30%, rgba(67, 97, 238, .18), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .42) 42%, #000 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.badge {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  border: 1px solid rgba(124, 147, 255, .38);
  color: #cfd8ff;
  font-size: 15px;
  letter-spacing: .16em;
  overflow-wrap: break-word;
  text-shadow: 0 0 10px rgba(67, 97, 238, .65);
}

.hero h1 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(2rem, 7.5vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 30px;
  color: #fff;
  overflow-wrap: break-word;
  text-shadow: 0 0 28px rgba(67, 97, 238, .4);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: .12em;
  box-shadow: 0 0 26px rgba(67, 97, 238, .45);
  transition: background .2s ease, transform .2s ease;
}

.cta:hover { background: #3a56e0; text-decoration: none; transform: translateY(-2px); }

/* ---------- 主体骨架 ---------- */
main { position: relative; z-index: 1; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

@media (min-width: 980px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 46px;
    align-items: start;
  }
}

.sheet {
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px clamp(18px, 4.4vw, 46px) 40px;
}

/* ---------- 正文排版 ---------- */
.prose {
  min-width: 0;
  font-size: 17px;
  overflow-wrap: break-word;
}

.prose div {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.prose div:first-child { border-top: 0; padding-top: 26px; }
.prose div:last-child { padding-bottom: 6px; }

.prose h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.26;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: #fff;
  overflow-wrap: break-word;
}

.prose h2 > span {
  position: relative;
  padding-bottom: 8px;
}

.prose h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(67, 97, 238, .8);
}

.prose h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 28px 0 12px;
  color: #f3f5fa;
  overflow-wrap: break-word;
}

.prose p { margin: 0 0 17px; color: var(--ink); }
.prose strong { color: #fff; }

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li { margin: 7px 0; }
.prose li::marker { color: var(--accent-soft); }

.prose a {
  border-bottom: 1px solid rgba(124, 147, 255, .45);
  overflow-wrap: break-word;
}
.prose a:hover { text-decoration: none; border-bottom-color: var(--accent-soft); }

.prose blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: #0b1020;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  color: #d5dcef;
}

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

.prose img { border-radius: 14px; margin: 20px 0; }

.prose code {
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .94em;
  background: #10131a;
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: break-word;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  background: #10131a;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.prose pre code { background: none; padding: 0; }

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.prose iframe,
.prose video { max-width: 100%; }

/* ---------- 侧栏 ---------- */
.side {
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
}

@media (min-width: 980px) {
  .side { position: sticky; top: 26px; }
}

.side h2 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .2em;
  color: #a7b1c8;
  margin: 0 0 14px;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  background: #1a1d24;
  color: var(--ink-soft);
  font-size: 16px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.side-list a:hover {
  background: #232838;
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}

.side-list li {
  opacity: 0;
  animation: rise .42s ease forwards;
}

.side-list li:nth-child(1) { animation-delay: .04s; }
.side-list li:nth-child(2) { animation-delay: .08s; }
.side-list li:nth-child(3) { animation-delay: .12s; }
.side-list li:nth-child(4) { animation-delay: .16s; }
.side-list li:nth-child(5) { animation-delay: .2s; }
.side-list li:nth-child(6) { animation-delay: .24s; }
.side-list li:nth-child(7) { animation-delay: .28s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1160px;
  margin: 52px auto 0;
  padding: 40px 20px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.foot-sec { min-width: 0; }

.foot-sec h2 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .18em;
  color: #7f8aa3;
  margin: 0 0 10px;
}

.foot-sec p {
  margin: 0;
  color: #98a3b8;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.foot-sec code {
  font-family: 'Roboto Mono', ui-monospace, Menlo, monospace;
  color: #a9b6d4;
  overflow-wrap: anywhere;
}

.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-soft);
  font-size: 16px;
}

.foot-list a:hover { color: #fff; }

.foot-base {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: grid;
  gap: 4px;
}

.foot-base p {
  margin: 0;
  font-size: 15px;
  color: #6d788e;
  letter-spacing: .06em;
}

/* ---------- 底部胶囊导航 ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 70;
  width: calc(100% - 24px);
  max-width: 620px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 18, 18, .93);
  border: 1px solid #232a38;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 18px 44px rgba(0, 0, 0, .85);
}

.dock-start { justify-self: start; display: flex; min-width: 0; }
.dock-end { justify-self: end; display: flex; min-width: 0; }

.dock-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #c8d1e5;
  font-size: 16px;
  white-space: nowrap;
}

.dock-link:hover { color: #fff; text-decoration: none; background: #1c2028; }

.brand {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  padding: 10px 6px;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(67, 97, 238, .5);
}

.brand:hover { text-decoration: none; color: #dfe6ff; }

.drawer { position: static; }

.drawer summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1b2440;
  border: 1px solid #2c3b63;
  color: #dbe3ff;
  font-size: 16px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.drawer summary::-webkit-details-marker { display: none; }
.drawer summary:hover { background: #24304f; }

.drawer[open] summary { background: var(--accent); border-color: var(--accent); color: #fff; }

.drawer-list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  margin: 0;
  padding: 14px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 10, 12, .97);
  border: 1px solid #242b3b;
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .9);
  animation: drop .18s ease-out;
}

@keyframes drop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.drawer-list li { min-width: 0; }

.drawer-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #171a21;
  border: 1px solid #232733;
  color: #d7deee;
  font-size: 16px;
  white-space: nowrap;
}

.drawer-list li a:hover {
  background: #232a3a;
  color: #fff;
  text-decoration: none;
  border-color: #33405c;
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 420px) {
  body { font-size: 16px; padding-bottom: 100px; }
  .prose { font-size: 16px; }
  .hero { padding: 96px 18px 132px; }
  .badge { font-size: 14px; letter-spacing: .12em; }
  .brand { font-size: 15px; padding: 10px 4px; }
  .dock { grid-template-columns: auto minmax(0, 1fr) auto; bottom: 10px; padding: 7px 8px; gap: 4px; }
  .dock-link,
  .drawer summary { padding: 0 12px; font-size: 15px; }
  .sheet { padding: 10px 16px 34px; }
  .wrap { padding: 0 14px 28px; }
  .foot { padding: 34px 16px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .side-list li { opacity: 1; animation: none; }
  .drawer-list { animation: none; }
  .cta,
  .side-list a { transition: none; }
}

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