:root {
  --brand: #2d78ba;
  --brand-dark: #1e5a8f;
  --ink: #1a2332;
  --muted: #5a6a7a;
  --line: #d9e3ee;
  --bg: #f7fafc;
  --card: #ffffff;
  --max: 1080px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(30, 90, 143, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

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: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .header-inner {
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 4px 2px;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 36px 0 18px;
  background:
    radial-gradient(ellipse at top right, rgba(45, 120, 186, 0.12), transparent 50%),
    linear-gradient(180deg, #e8f1f9 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--ink);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.hero-shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #0f1225;
}

.hero-shot img {
  width: 100%;
}

.section {
  padding: 34px 0;
}

.section h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--ink);
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

.section h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: var(--brand-dark);
}

.section p {
  margin-bottom: 14px;
  color: #2c3a4a;
}

.section ul,
.section ol {
  margin: 0 0 16px 1.2em;
  color: #2c3a4a;
}

.section li {
  margin-bottom: 8px;
}

.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
  box-shadow: var(--shadow);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 8px;
}

.shot-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.shot-item {
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot-item figcaption {
  background: #fff;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 8px 10px;
  line-height: 1.4;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}

.feature-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.feature-row .shot-item img {
  aspect-ratio: 9 / 19;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.tag-list span {
  background: #e8f1f9;
  color: var(--brand-dark);
  border: 1px solid #cfe0f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.site-footer {
  background: #16324d;
  color: #d7e6f4;
  padding: 36px 0 24px;
  margin-top: 20px;
}

.site-footer a {
  color: #b8d4ec;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.footer-grid h4 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  font-size: 0.88rem;
  color: #9db6cc;
}

.page-hero {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, #e8f1f9, var(--bg));
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
}

.error-box {
  text-align: center;
  padding: 48px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px 0 40px;
}

.error-box h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.error-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

.error-shot {
  max-width: 280px;
  margin: 18px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--brand);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav.open a {
    padding: 10px 16px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid,
  .shot-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    padding: 16px 14px 4px;
  }
}

@media (max-width: 480px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 22px;
  }
}
