:root {
  --bg: #0a0f1c;
  --bg-soft: #121a2e;
  --panel: #162238;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef9;
  --muted: #9aabc4;
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --accent: #22d3ee;
  --max: 1080px;
  --header-h: 58px;
  --radius: 14px;
  --font: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #93c5fd; }
h1, h2, h3 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f4f8ff;
}
h1 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.08rem; margin: 1.4rem 0 0.55rem; }
p { margin: 0 0 1rem; color: var(--muted); }
ul, ol { color: var(--muted); padding-left: 1.2rem; }
li { margin: 0.35rem 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 28, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-desktop {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-desktop a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: #fff; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-panel {
  display: none;
}

.ads-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(10, 15, 28, 0.94);
  border-bottom: 1px solid var(--line);
  padding: 4px 8px 8px;
}
.ads-wrap #ads figcaption,
.ads-wrap #ads .caption { color: #9aa8bd; }
.ads-wrap #ads img {
  width: 65px !important;
  height: 65px !important;
  max-width: 65px !important;
  max-height: 65px !important;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.page.home { padding-top: 12px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0 -16px 28px;
  min-height: min(72vh, 560px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.15) 0%, rgba(10, 15, 28, 0.88) 70%, var(--bg) 100%),
    url("/a.jpg") center/cover no-repeat;
}
.hero-inner {
  padding: 36px 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p {
  color: #c9d6ea;
  max-width: 42ch;
  font-size: 1.02rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #2563eb);
  color: #fff;
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: #fff;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.section { margin: 28px 0; }
.lead {
  font-size: 1.05rem;
  color: #c5d2e6;
}
.shot {
  margin: 18px 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.shot img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: top center;
}
.shot figcaption {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.grid-2 .shot { margin: 0; }
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}
.feature-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 34, 56, 0.55);
}
.feature-item h3 { margin: 0 0 6px; }
.feature-item p { margin: 0; }

.note {
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 0 10px 10px 0;
  color: #bfd0ea;
  margin: 16px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #070b14;
  padding: 28px 16px 36px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
}
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.copyright {
  color: #6f7f96;
  font-size: 0.85rem;
  margin: 0;
}

.page-title {
  margin-top: 8px;
  margin-bottom: 6px;
}
.crumb {
  color: #7f90a8;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.crumb a { color: #9eb2cc; }
.legal h2 { margin-top: 1.8rem; }
.error-box {
  text-align: center;
  padding: 48px 12px 20px;
}
.error-box .code {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(8, 12, 22, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
    z-index: 95;
    padding: 10px 16px 16px;
  }
  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-panel a {
    display: block;
    padding: 12px 4px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .hero {
    min-height: 58vh;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
  }
  .page.sub { padding: 20px 16px 40px; }
  body.nav-open { overflow: hidden; }
}

@media (min-width: 861px) {
  .page { padding: 28px 20px 64px; }
  .hero {
    margin: 8px 0 32px;
    border-radius: 18px;
  }
  .hero-inner { padding: 48px 28px 36px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
}
