:root {
  --brand: #2672b0;
  --brand-dark: #1a5a8f;
  --brand-soft: #e8f2fa;
  --ink: #1a2b3c;
  --muted: #5a6f82;
  --line: #d4e2ef;
  --bg: #f4f8fb;
  --card: #ffffff;
  --radius: 14px;
  --max: 1080px;
  --header-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, #d9ecf9 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e4f1e8 0%, transparent 50%),
    linear-gradient(180deg, #eef5fa 0%, var(--bg) 28%, #eef3f7 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9rem;
}

.hero {
  padding: 36px 0 28px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(38, 114, 176, 0.12), rgba(255, 255, 255, 0.7)),
    linear-gradient(180deg, #fff, #f7fbfe);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(38, 114, 176, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}

.hero-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(38, 114, 176, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(26, 60, 100, 0.12);
  background: #0b1a28;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top center;
  max-height: 420px;
}

.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 60, 100, 0.1);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 280px;
  background: #111;
}

.feature-body {
  padding: 14px 14px 16px;
}

.feature-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.content-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 8px;
  margin-bottom: 18px;
}

.content-block h2,
.content-block h3 {
  margin-top: 0;
  color: var(--brand-dark);
}

.content-block p,
.content-block li {
  color: #2c3e50;
}

.content-block ul {
  padding-left: 1.2em;
}

.split-media {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
  margin: 18px 0;
}

.split-media.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.split-media .shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1824;
}

.split-media .shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 360px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.step {
  background: var(--brand-soft);
  border: 1px solid #c8dceb;
  border-radius: 12px;
  padding: 14px;
}

.step strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.toc a {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  background: #d5e8f6;
}

.page-hero {
  padding: 28px 0 10px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin: 16px 0 36px;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--brand-dark);
  margin: 1.4em 0 0.5em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.error-page .code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 8px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #7a8b9c;
  font-size: 0.85rem;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shot-pair .shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1824;
}

.shot-pair img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 320px;
}

@media (max-width: 900px) {
  .hero-panel,
  .split-media,
  .split-media.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual img {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h, 64px) + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 28px rgba(20, 40, 70, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: var(--brand-soft);
  }

  .header-inner {
    position: relative;
  }

  .feature-grid,
  .steps,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 18px;
  }

  .content-block,
  .legal-content {
    padding: 16px;
  }
}
