:root {
  --bg: #000000;
  --panel: #0b0f18;
  --mid: #0c1526;
  --line: #1e2637;
  --ink: #eef2f9;
  --dim: #9aa6bd;
  --blue: #4d9dff;
  --neon: #3fe0a5;
  --r: 10px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

i {
  font-style: normal;
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 22px 130px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(77, 157, 255, 0.22) 1px, transparent 0) 0 0 / 24px 24px,
    radial-gradient(130% 90% at 50% 0%, #0a1322 0%, #000000 62%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, #000000 100%);
  pointer-events: none;
}

.collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.collage figure {
  position: absolute;
  margin: 0;
  border: 1px solid #24304a;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1020;
  filter: brightness(0.66) saturate(0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.collage img {
  display: block;
  width: 100%;
  height: auto;
}

.collage-a {
  top: 11%;
  right: 5%;
  width: 36%;
  max-width: 300px;
  transform: rotate(-3.5deg);
}

.collage-b {
  bottom: 15%;
  left: 4%;
  width: 29%;
  max-width: 240px;
  transform: rotate(3deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 22ch;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 62px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(77, 157, 255, 0.45), 0 0 34px rgba(77, 157, 255, 0.18);
  word-break: break-word;
}

/* 主体 */
main {
  position: relative;
  z-index: 3;
  background: var(--bg);
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 10px;
}

.rail {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #0a1020 0%, #06090f 100%);
  padding: 20px 18px;
}

.rail-title {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid #161d2b;
  color: var(--ink);
  font-size: 16px;
}

.rail-nav a:hover {
  color: var(--neon);
  text-decoration: none;
}

.rail-nav i {
  color: var(--blue);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.col {
  min-width: 0;
}

.prose {
  font-size: 17px;
  line-height: 1.8;
}

.prose article {
  padding: 40px 0;
  scroll-margin-top: 28px;
  scroll-margin-bottom: 110px;
}

.prose article + article {
  border-top: 1px solid #1b2233;
}

.prose article:first-child {
  padding-top: 6px;
}

.prose h2 {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  font-size: clamp(22px, 3.4vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  line-height: 1.45;
  color: #ffffff;
}

.prose p {
  margin: 0 0 1em;
  max-width: 42em;
  color: #d7deeb;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  max-width: 42em;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--blue);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose time {
  color: var(--neon);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.prose blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--neon);
  background: #080d16;
  border-radius: 0 var(--r) var(--r) 0;
  color: #cdd6e5;
}

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

.prose figure {
  margin: 18px 0;
}

.prose figure img {
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.prose figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--dim);
}

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

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

.prose th {
  background: #0a1020;
  color: #ffffff;
}

.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #0c1526;
  color: var(--neon);
  font-size: 16px;
}

/* 页脚 */
.foot {
  margin-top: 54px;
  border-top: 1px solid #1c2436;
  background: #04060b;
  padding: 42px 20px calc(30px + env(safe-area-inset-bottom));
}

.foot-brand {
  margin: 0;
  font-size: clamp(36px, 11vw, 92px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  word-break: break-word;
  text-shadow: 0 0 14px rgba(77, 157, 255, 0.22);
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #161d2b;
}

.foot-nav dl {
  margin: 0;
}

.foot-nav dt {
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: #cbd4e3;
  font-size: 16px;
}

.foot-nav a:hover {
  color: var(--neon);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #161d2b;
  color: var(--dim);
  font-size: 16px;
}

.foot-base p {
  margin: 0;
}

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
}

.foot-base a:hover {
  color: var(--neon);
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: #ffffff;
  font-weight: 700;
  min-width: 0;
}

.dock-brand:hover {
  text-decoration: none;
}

.dock-brand img {
  display: block;
  border-radius: 6px;
}

.dock-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.dock-act {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  background: var(--blue);
  color: #00121f;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(77, 157, 255, 0.35);
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.burger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #2a3category;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0a1020;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.burger:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* 全屏遮罩菜单 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
  overflow: auto;
  background:
    radial-gradient(circle at 1px 1px, rgba(77, 157, 255, 0.18) 1px, transparent 0) 0 0 / 26px 26px,
    #04060b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .veil {
  opacity: 1;
  visibility: visible;
}

.veil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.veil-brand {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.veil-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.veil-close:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.veil-nav {
  margin-top: 18px;
}

.veil-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.veil-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 54px;
  padding: 14px 0;
  border-bottom: 1px solid #141b29;
  color: #ffffff;
  font-size: clamp(19px, 5vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.veil-nav a:hover {
  color: var(--neon);
  text-decoration: none;
}

.veil-nav i {
  font-size: 16px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* 进出场 */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

  .veil {
    transition: none;
  }
}

@media (max-width: 520px) {
  .collage-a {
    top: 8%;
    right: -6%;
    width: 48%;
  }

  .collage-b {
    bottom: 12%;
    left: -8%;
    width: 42%;
  }

  .dock-name {
    max-width: 40vw;
  }

  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .foot-nav dl:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .wrap {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 46px;
    padding-top: 58px;
  }

  .rail {
    position: sticky;
    top: 22px;
    align-self: start;
  }

  .prose article {
    padding: 48px 0;
  }

  .foot {
    padding-left: 34px;
    padding-right: 34px;
  }

  .foot-nav {
    grid-template-columns: repeat(3, minmax(0, 200px));
  }

  .foot-nav dl:last-child {
    grid-column: auto;
  }
}

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