:root {
  --blue-deep: #0a3d6b;
  --blue-main: #1570c4;
  --blue-bright: #2b9dff;
  --blue-soft: #e8f4ff;
  --ink: #142033;
  --muted: #5a6b7d;
  --line: #d5e6f5;
  --bg: #f3f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(15, 70, 120, 0.08);
  --max: 1120px;
  --font: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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 500px at 10% -10%, rgba(43, 157, 255, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(10, 61, 107, 0.12), transparent 55%),
    linear-gradient(180deg, #eef6fd 0%, var(--bg) 28%, #f7fbff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-main);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(213, 230, 245, 0.9);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--blue-deep);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-main);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  line-height: 0;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

.hero-copy .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-bright));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(21, 112, 196, 0.28);
}

.btn-primary:hover {
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-deep);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--blue-main);
}

.hero-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: min(100%, 360px);
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.9);
  animation: floaty 5.5s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.section {
  padding: 2.6rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--blue-deep);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #243447;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 1.5rem 0 0.7rem;
  color: var(--blue-deep);
  font-size: 1.18rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: #243447;
}

.prose li {
  margin-bottom: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
}

.shot figcaption {
  padding: 0.75rem 0.95rem 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.feature-card .body {
  padding: 0.95rem 1rem 1.1rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--blue-deep);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-bright));
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.toc a {
  background: var(--blue-soft);
  color: var(--blue-deep);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
}

.toc a:hover {
  background: #d7ecff;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-deep);
}

.faq p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 2.4rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--blue-deep);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--blue-main);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--blue-main);
  line-height: 1;
  margin: 0 0 0.4rem;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 244, 255, 0.95));
  padding: 2rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: var(--blue-deep);
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.copyright {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 0.9rem;
}

.related a:hover {
  border-color: var(--blue-bright);
  color: var(--blue-main);
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    width: min(78vw, 260px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.7rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 70, 120, 0.14);
    z-index: 70;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--blue-soft);
  }

  .nav-wrap {
    flex-wrap: nowrap;
  }

  .hero-grid,
  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-visual img {
    width: min(100%, 280px);
  }

  .feature-card img {
    aspect-ratio: 3 / 4;
  }

  .panel {
    padding: 1.1rem;
  }
}
