:root {
  --brand: #1f7bc4;
  --brand-dark: #155a94;
  --brand-soft: #e8f3fb;
  --ink: #142033;
  --muted: #5a6a80;
  --line: #d7e2ee;
  --bg: #f4f8fc;
  --card: #ffffff;
  --header-h: 60px;
  --ads-estimate: 0px;
  --sea-1: #0b3d66;
  --sea-2: #1470b0;
  --max: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 50, 90, 0.08);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 123, 196, 0.16), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(20, 112, 176, 0.12), transparent 55%),
    linear-gradient(180deg, #edf5fb 0%, var(--bg) 28%, #eef4f9 100%);
  line-height: 1.75;
  min-height: 100vh;
  padding-top: var(--header-h);
}
body.has-ads {
  padding-top: calc(var(--header-h) + var(--ads-h, 0px));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; color: var(--sea-1); margin: 0 0 0.7em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 123, 196, 0.12);
  box-shadow: 0 2px 16px rgba(15, 50, 90, 0.05);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sea-1);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 42px;
  height: 36px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sea-1);
  margin: 4px auto;
  border-radius: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
}
.nav a:hover,
.nav a.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.page-shell { min-height: calc(100vh - var(--header-h)); }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.page-pad { padding-left: 18px; padding-right: 18px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(232,243,251,.9)),
    linear-gradient(120deg, #d9ecf9, #ffffff);
  border: 1px solid rgba(31, 123, 196, 0.15);
  box-shadow: var(--shadow);
}
.hero-copy h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  margin-bottom: 12px;
}
.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--sea-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 123, 196, 0.28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(31, 123, 196, 0.25);
}
.hero-shot {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(12, 40, 80, 0.18);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-shot img { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 460px; }

.section {
  margin-bottom: 34px;
  background: var(--card);
  border: 1px solid rgba(31, 123, 196, 0.1);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.section h2 {
  font-size: 1.35rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-soft);
  margin-bottom: 16px;
}
.section h3 { font-size: 1.08rem; margin-top: 1.2em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: linear-gradient(180deg, #fff, #f7fbfe);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  max-height: 280px;
}
.feature-card .body { padding: 14px 14px 16px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.shot-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
  margin: 18px 0;
  padding: 14px;
  background: #f8fbfe;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.shot-row img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(20, 50, 90, 0.12);
}
.shot-row .txt h3 { margin-top: 0; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.toc a {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
}
.toc a:hover { background: #d5e9f8; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fbfdff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sea-1);
}
.faq details[open] summary { margin-bottom: 8px; }

.links-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.links-box a { font-weight: 600; }

.legal .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.error-box {
  max-width: 720px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 36px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.error-box .code {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.error-box .shot {
  max-width: 220px;
  margin: 18px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.site-footer {
  background: linear-gradient(180deg, #0d3558, #0a2a46);
  color: rgba(255,255,255,.86);
  padding: 34px 18px 24px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}
.site-footer a { color: #c9e4f8; }
.site-footer a:hover { color: #fff; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.78); font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  text-align: center;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--brand); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { max-width: 280px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .links-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 52px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 2px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 8px; padding: 12px 14px; }

  body.has-ads .page-shell,
  body.has-fixed-chrome .page-shell {
    /* nav + sticky ads stay; content scrolls as one block */
  }
  .container {
    padding: 18px 14px 36px;
  }
  .page-inner {
    padding: 0 4px;
  }
  .page-pad .container,
  .legal .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding: 18px;
    margin-bottom: 20px;
  }
  .section {
    padding: 18px 14px;
    margin-bottom: 18px;
  }
  .feature-grid,
  .feature-grid[style] { grid-template-columns: 1fr !important; }
  .shot-row {
    grid-template-columns: 1fr;
  }
  .shot-row img {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .brand span { font-size: 0.95rem; }
  .hero-copy h1 { font-size: 1.4rem; }
}
