:root {
  --bg: #0c1017;
  --bg-soft: #151b26;
  --panel: #1a2230;
  --line: rgba(255, 255, 255, 0.09);
  --text: #edf1f7;
  --muted: #9aa8bc;
  --brand: #f59e0b;
  --brand-2: #fbbf24;
  --accent: #34d399;
  --max: 1040px;
  --header-h: 58px;
  --radius: 12px;
  --font: "DM Sans", "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(1000px 480px at 8% -8%, rgba(245, 158, 11, 0.16), transparent 58%),
    radial-gradient(800px 380px at 92% 4%, rgba(52, 211, 153, 0.1), transparent 52%),
    var(--bg);
  line-height: 1.78;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fde68a; }
h1, h2, h3 {
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
}
h1 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.22rem, 1.7vw, 1.5rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.06rem; margin: 1.35rem 0 0.5rem; }
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(12, 16, 23, 0.9);
  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(12, 16, 23, 0.95);
  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(68vh, 520px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(12, 16, 23, 0.2) 0%, rgba(12, 16, 23, 0.9) 68%, 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(--brand);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p {
  color: #d5deeb;
  max-width: 44ch;
  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), #d97706);
  color: #111827;
}
.btn-primary:hover { color: #111827; filter: brightness(1.06); }
.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: #c9d4e4;
}
.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(26, 34, 48, 0.65);
}
.feature-item h3 { margin: 0 0 6px; }
.feature-item p { margin: 0; }

.note {
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 10px 10px 0;
  color: #d8c9a8;
  margin: 16px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080b11;
  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: #6b7a90;
  font-size: 0.85rem;
  margin: 0;
}

.page-title {
  margin-top: 8px;
  margin-bottom: 6px;
}
.crumb {
  color: #7d8ea5;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.crumb a { color: #9eb0c6; }
.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, 11, 17, 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: 54vh;
    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: 16px;
  }
  .hero-inner { padding: 48px 28px 36px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
}
