:root {
  --bg: #000000;
  --layer: #121212;
  --card: #0a0a0d;
  --line: #171a23;
  --edge: #232838;
  --ink: #e6e8ef;
  --soft: #d3d7e2;
  --dim: #9aa1b2;
  --midnight: #16213c;
  --neon: #6b8dff;
  --disp: 'Amatic SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Cabin', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { 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(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.noScroll { overflow: hidden; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  padding: 12px 18px;
  background: var(--layer);
  color: #fff;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 头部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--edge);
  color: #fff;
  text-decoration: none;
}
.logo img { display: block; width: 26px; height: 26px; object-fit: cover; }
.logoText {
  font-family: var(--disp);
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1;
}

.topRight {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  background: var(--midnight);
  border: 1px solid #2a3f78;
  color: #dbe4ff;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(60, 110, 255, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cta:hover { background: #1d2c50; border-color: #3d5cab; }

.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: var(--layer);
  border: 1px solid var(--edge);
  color: var(--ink);
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: currentColor; }

.mainNav {
  order: 3;
  flex: 1 1 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.mainNav::-webkit-scrollbar { display: none; }

.navRow {
  margin: 0;
  display: flex;
  gap: 2px;
  white-space: nowrap;
}
.navRow a {
  display: inline-block;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #aeb4c4;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.navRow a:hover { color: #fff; border-bottom-color: var(--neon); }

/* ---------- 全屏菜单 ---------- */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.96);
  overflow-y: auto;
}
.drawer.open { display: block; }

.drawerInner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 76px 24px 48px;
}

.drawerClose {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 91;
  min-height: 44px;
  padding: 0 15px;
  background: var(--layer);
  border: 1px solid var(--edge);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  cursor: pointer;
}

.drawerRow {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.drawerRow a {
  display: block;
  padding: 14px 4px;
  font-family: var(--disp);
  font-size: 27px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: #dfe3ee;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.drawerRow a:hover { color: #a9c4ff; text-shadow: 0 0 14px rgba(90, 140, 255, 0.55); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid #13151d;
}

.heroArt {
  position: relative;
  min-height: 42svh;
  overflow: hidden;
  background: radial-gradient(120% 88% at 26% 18%, #16213c 0%, #0a0d16 46%, #000 80%);
}
.heroArt img {
  display: block;
  width: 100%;
  height: 112%;
  margin-top: -6%;
  object-fit: cover;
  opacity: 0.9;
}
.heroArt::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 92%);
  pointer-events: none;
}

.heroCopy {
  position: relative;
  z-index: 1;
  padding: 22px 20px 9vh;
  text-align: right;
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: #a9c4ff;
  background: rgba(22, 33, 60, 0.65);
  border: 1px solid #2a3f78;
  box-shadow: 0 0 20px rgba(70, 120, 255, 0.3);
  animation: floaty 5.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 26px rgba(90, 140, 255, 0.3);
}

/* ---------- 主体 ---------- */
.wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 18px 60px;
}

.content { min-width: 0; }

section {
  font-size: 17px;
  line-height: 1.78;
  color: var(--soft);
}

section > div {
  margin: 0 0 18px;
  padding: 24px 18px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(90, 140, 255, 0.04), 0 26px 50px -34px rgba(60, 110, 255, 0.45);
  scroll-margin-top: 132px;
}

section h2 {
  margin: 0 0 12px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
}
section h3 {
  margin: 24px 0 8px;
  font-size: 1.22rem;
  line-height: 1.5;
  color: #eef1f8;
}
section h4 {
  margin: 20px 0 6px;
  font-size: 1.05rem;
  color: #e6e8ef;
}
section p { margin: 0 0 14px; }
section ul, section ol { margin: 0 0 16px; padding-left: 1.25em; }
section li { margin: 0 0 8px; }
section li::marker { color: #5570b8; }
section a {
  color: #a9c4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
section a:hover { color: #d3e0ff; }
section strong { color: #fff; }
section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border: 1px solid #1b1e28;
}
section blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid #2a3f78;
  background: #0c0f16;
  color: #c7ccd8;
}
section blockquote p:last-child { margin-bottom: 0; }
section hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
section table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 16px;
}
section th, section td {
  padding: 10px 12px;
  border: 1px solid #1b1e28;
  text-align: left;
  vertical-align: top;
}
section th { background: #10131a; color: #fff; }
section code {
  padding: 2px 6px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #11141c;
  border: 1px solid #1b1e28;
}
section pre {
  margin: 16px 0;
  padding: 14px;
  overflow-x: auto;
  background: #0b0e14;
  border: 1px solid #1b1e28;
}
section pre code { padding: 0; background: none; border: 0; }

/* ---------- 侧栏 ---------- */
.side {
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.side h2 {
  margin: 0 0 8px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
}
.subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dim);
}
.sideNav { margin: 0; }
.sideRow {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.sideRow a {
  display: block;
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.7;
  color: #aeb4c4;
  text-decoration: none;
  border-top: 1px solid #14161d;
  transition: color 0.2s ease;
}
.sideRow a:hover { color: #a9c4ff; }

/* ---------- 页脚 ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 18px 28px;
  border-top: 1px solid var(--line);
}
.footBrand {
  flex: 1 1 100%;
  margin: 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.9rem, 14vw, 8rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: #23325a;
  text-shadow: 0 0 44px rgba(50, 90, 220, 0.28);
}
.footBase {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #858b9c;
}
.footBase a {
  display: inline-block;
  padding: 10px 14px;
  color: #aeb4c4;
  text-decoration: none;
  border: 1px solid #1d212c;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footBase a:hover { color: #fff; border-color: #2a3f78; }

/* ---------- 动效 ---------- */
.anim .content section > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim .content section > div.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (min-width: 860px) {
  .top { padding: 10px 24px; }
  .mainNav { order: 2; flex: 1 1 auto; overflow: visible; }
  .topRight { order: 3; margin-left: 0; }
  .navRow { justify-content: center; }
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    align-content: center;
  }
  .heroArt { height: 100svh; min-height: 100%; }
  .heroCopy { padding: 0 42px; }
}

@media (min-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: 40px;
    align-items: start;
    padding: 54px 24px 92px;
  }
  .side { position: sticky; top: 92px; }
  section > div { padding: 30px 28px 10px; scroll-margin-top: 96px; }
}

@media (max-width: 420px) {
  .cta { padding: 0 11px; font-size: 15px; }
  .logoText { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .anim .content section > div { opacity: 1; transform: none; }
}

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