:root {
  --ink: #000000;
  --panel: #0a0a0a;
  --panel-2: #121212;
  --mid: #0d1b2e;
  --mid-2: #16304f;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #e7ecf3;
  --body: #cfd7e2;
  --muted: #9aa6b6;
  --dim: #6c7787;
  --glow: #5b9dff;
  --gold: #e8c37a;
  --r: 4px;
  --font: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(22, 48, 79, 0.55), transparent 68%),
    radial-gradient(900px 620px at 4% 12%, rgba(13, 27, 46, 0.5), transparent 70%),
    var(--ink);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.004em;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- 页头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.masthead.is-stuck {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(140deg, #9cc4ff, var(--mid-2));
  box-shadow: 0 0 12px rgba(91, 157, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #06101c;
  flex: 0 0 12px;
}

.brand-name {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navdock {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topnav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }

.topnav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #ffffff;
  background: rgba(91, 157, 255, 0.1);
  border-color: rgba(91, 157, 255, 0.32);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  border: 1px solid rgba(91, 157, 255, 0.45);
  background: linear-gradient(135deg, var(--mid-2), #08111d);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(91, 157, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.18);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(91, 157, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cta-sm { padding: 0 14px; flex: 0 0 auto; }

/* ---------- 主体 ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: block;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  min-height: 70vh;
  padding: 44px 0 72px;
}

.hero-art {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(91, 157, 255, 0.28), transparent 60%),
    linear-gradient(150deg, #0c1a2b, #050505 70%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(120% 100% at 30% 0%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 0%, #000 20%, transparent 82%);
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(91, 157, 255, 0.26);
}

.hero h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.blade {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 6px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--mid-2) 30%, var(--glow) 50%, var(--mid-2) 70%, transparent);
  transform: skewY(-1.1deg);
  opacity: 0.85;
}

/* 导览 + 品牌块 */
.launch {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px 0 30px;
}

.rail {
  position: sticky;
  top: 76px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.86), rgba(5, 5, 5, 0.86));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rail-label {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 2px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.rail a:hover,
.rail a:focus-visible {
  color: #ffffff;
  background: rgba(91, 157, 255, 0.09);
  border-left-color: var(--glow);
}

.launch-copy {
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 48, 79, 0.42), rgba(6, 6, 6, 0.9) 58%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.launch-copy .cta { margin-top: 6px; }

/* ---------- 正文区（page.content 的 div） ---------- */
main > div:not(.hero):not(.launch) {
  scroll-margin-top: 96px;
  margin: 0 0 18px;
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.9), rgba(4, 4, 4, 0.94));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

main > div:not(.hero):not(.launch):hover {
  border-color: rgba(91, 157, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.55);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: #ffffff;
}

h3 {
  margin: 26px 0 8px;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.45;
  color: #ffffff;
}

.subtitle {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

main > div p { margin: 0 0 14px; max-width: 74ch; line-height: 1.85; }

main > div ul,
main > div ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  max-width: 74ch;
}

main > div li { margin: 0 0 8px; line-height: 1.8; }

main > div a {
  color: #7db0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main > div a:hover { color: #a9ccff; }

main > div blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--glow);
  background: rgba(91, 157, 255, 0.06);
  color: var(--text);
}

main > div figure,
main > div aside {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

main > div figcaption { font-size: 16px; color: var(--dim); }

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.totop:hover,
.totop:focus-visible { color: #ffffff; border-color: rgba(91, 157, 255, 0.45); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.6), rgba(0, 0, 0, 0.95));
  padding: 16px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.foot-brand { flex: 0 0 auto; }

.foot-nav { flex: 1 1 320px; min-width: 0; }

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}

.foot-nav a:hover,
.foot-nav a:focus-visible { color: #ffffff; }

.copyright {
  margin: 0 0 0 auto;
  font-size: 16px;
  color: var(--dim);
}

/* ---------- 滚动揭示 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0ms),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta:hover { transform: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 0 54px;
    gap: 24px;
  }
  .hero-copy { order: -1; }
  .hero-art { aspect-ratio: 16 / 10; }
  .launch { grid-template-columns: 1fr; padding: 20px 0 24px; }
  .rail { position: static; padding: 12px; }
  .rail-label { margin-bottom: 8px; }
  .rail ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rail ul::-webkit-scrollbar { display: none; }
  .rail a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 0 12px;
    white-space: nowrap;
  }
  .rail a:hover,
  .rail a:focus-visible { border-color: rgba(91, 157, 255, 0.45); }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  main { padding: 0 14px 34px; }
  .cta-sm { display: none; }
  .brand-name { max-width: 7em; }
  .masthead { padding: 8px 12px; }
  .footer { padding: 14px 14px 20px; }
  .copyright { margin-left: 0; flex: 1 0 100%; }
  .totop { right: 12px; bottom: 12px; }
  .blade { left: -14px; right: -14px; }
}

@media (max-width: 380px) {
  .topnav a { padding: 0 9px; font-size: 16px; }
}

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