:root {
  --bg: #f4f7fb;
  --bg-deep: #0b1f33;
  --surface: #ffffff;
  --ink: #132033;
  --muted: #5a6b7d;
  --line: rgba(19, 32, 51, 0.1);
  --brand: #0f4c81;
  --brand-2: #1a7ab8;
  --accent: #c47a2c;
  --wave: #dceaf6;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(15, 76, 129, 0.08);
  --max: 1120px;
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "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-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, #d7e9f7 0%, transparent 60%),
    radial-gradient(900px 380px at 100% 0%, #e8f1f8 0%, transparent 55%),
    linear-gradient(180deg, #eef4f9 0%, var(--bg) 35%, #f7f9fc 100%);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 51, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  opacity: 0.75;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  padding: 6px 0;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.92), rgba(15, 76, 129, 0.78)),
    url("/a.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 58vh;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f4f7fb' d='M0,48 C240,96 480,0 720,32 C960,64 1200,96 1440,32 L1440,80 L0,80 Z'/%3E%3C/svg%3E")
    center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 96px;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.hero .lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e0a04a);
  color: #1a1208;
  box-shadow: 0 8px 20px rgba(196, 122, 44, 0.35);
}

.btn-primary:hover {
  color: #1a1208;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--bg-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 18px;
}

.prose h2,
.prose h3 {
  color: var(--bg-deep);
  scroll-margin-top: 96px;
}

.prose h2 {
  margin-top: 1.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wave);
}

.prose h3 {
  margin-top: 1.3em;
}

.prose p {
  margin: 0.9em 0;
  color: #243447;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  color: #243447;
}

.prose li {
  margin: 0.4em 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 76, 129, 0.14);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #111;
}

.feature-card .body {
  padding: 16px 18px 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.shot-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.shot-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.shot-row.reverse .shot-media {
  order: 2;
}

.shot-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1f33;
}

.shot-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
}

.shot-copy h3 {
  margin-top: 0;
}

.toc {
  background: linear-gradient(180deg, #f8fbfe, #eef5fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bg-deep);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--brand);
}

.crumbs {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
}

.page-hero {
  padding: 36px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--bg-deep);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-box {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 48px 28px;
}

.error-box .code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}

.site-footer {
  margin-top: 40px;
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.keyword-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.keyword-bar span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.inline-nav a {
  background: var(--wave);
  color: var(--brand);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.inline-nav a:hover {
  text-decoration: none;
  background: #cfe0ef;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
  }

  .shot-row.reverse .shot-media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 20px 14px;
    background: rgba(11, 31, 51, 0.98);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  }

  .nav.open a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-inner {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero {
    min-height: 48vh;
  }

  .hero-inner {
    padding: 48px 0 80px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 20px 16px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-media img {
    max-height: 420px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.feature-card,
.shot-row {
  animation: rise-in 0.7s ease both;
}

.feature-card:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.16s;
}
