:root {
  --bg: #0a0e1c;
  --bg2: #12182b;
  --card: #161d33;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf5;
  --muted: #9aa3b8;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #0a0e1c 0%, #101628 40%, #0c1222 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 28, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg2);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.hero {
  text-align: center;
  padding: 28px 12px 18px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero .lead {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 22px 0 8px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: var(--accent2);
}

.section {
  margin: 36px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.section h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  color: #dbe4ff;
}

.section p {
  margin: 0 0 14px;
  color: #c8d0e0;
}

.section ul,
.section ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
  color: #c8d0e0;
}

.section li {
  margin-bottom: 8px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.shot-grid figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-grid figcaption {
  padding: 8px 10px 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-item p {
  margin: 0;
  font-size: 14px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.steps li {
  position: relative;
  padding: 14px 14px 14px 56px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.note {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: #c5d4f5;
  margin: 16px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080b16;
  padding: 28px 20px 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: #aab4c8;
}

.legal-page h1 {
  font-size: 28px;
  margin: 0 0 18px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 26px 0 10px;
  border: none;
  padding: 0;
}

.error-box {
  text-align: center;
  padding: 48px 16px 30px;
}

.error-box h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.error-box p {
  color: var(--muted);
  margin: 0 0 20px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 12px;
    top: 58px;
    width: min(240px, calc(100vw - 24px));
    flex-direction: column;
    background: #141b30;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    gap: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .page {
    padding: 18px 0 40px;
  }

  .page.padded,
  .legal-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 18px 16px 10px;
  }

  .section {
    margin: 28px 0;
    padding: 0 16px;
  }

  .home-scroll .section {
    padding: 0 16px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
  }

  .home-scroll .shot-grid {
    padding: 0;
  }

  .cta-row {
    padding: 0 16px;
  }
}
