:root {
  --blue: #2f78b8;
  --blue-deep: #1a4f7a;
  --blue-soft: #e8f2fa;
  --ink: #1c2430;
  --muted: #5a6675;
  --line: rgba(26, 79, 122, 0.12);
  --bg: #f4f8fc;
  --paper: #ffffff;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(26, 79, 122, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-offset, 70px);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 120, 184, 0.16), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(120, 180, 220, 0.18), transparent 55%),
    linear-gradient(180deg, #eef5fb 0%, var(--bg) 28%, #eef3f8 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  --header-h: 70px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  z-index: 2;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  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);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--blue-deep);
}

.hero {
  padding: 36px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.28;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
}

.hero-copy .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 120, 184, 0.28);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue-deep);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  background: #fff;
}

.phone-stack {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(48%, 230px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(20, 50, 90, 0.22);
  border: 3px solid #fff;
  background: #111;
  animation: floatY 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.phone-back {
  position: absolute;
  left: 12%;
  top: 8%;
  transform: rotate(-8deg);
  z-index: 1;
  animation-delay: -1.2s;
}

.phone-front {
  position: absolute;
  right: 10%;
  top: 18%;
  transform: rotate(6deg);
  z-index: 2;
  animation-delay: 0.4s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--r, 0deg));
  }
}

.phone-back {
  --r: -8deg;
}

.phone-front {
  --r: 6deg;
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: var(--blue-deep);
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46em;
}

.prose {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  color: var(--blue-deep);
  line-height: 1.4;
  margin: 1.6em 0 0.55em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1em;
  color: #2a3441;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
  color: #2a3441;
}

.prose li {
  margin-bottom: 0.45em;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0;
}

.feature-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.shot-grid figure {
  margin: 0;
}

.shot-grid img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 12px 28px rgba(26, 79, 122, 0.1);
  border: 1px solid var(--line);
}

.shot-grid figcaption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}

.pill-list span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.page-hero {
  padding: 34px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--blue-deep);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
}

.legal .prose {
  margin-bottom: 40px;
}

.error-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.error-box {
  width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px 28px;
  box-shadow: var(--shadow);
}

.error-box .code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.error-box h1 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 1.5rem;
}

.error-box p {
  margin: 0 0 22px;
  color: var(--muted);
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-meta strong {
  color: var(--blue-deep);
}

.toc-note {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .phone-stack {
    min-height: 360px;
    margin-top: 8px;
  }

  .phone {
    width: min(42%, 180px);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(26, 79, 122, 0.12);
    z-index: 210;
  }

  .site-header.is-open .nav,
  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--blue-soft);
  }

  .hero {
    padding-top: 22px;
  }

  .prose {
    padding: 20px 16px;
  }

  .phone-stack {
    min-height: 300px;
  }

  .phone-back {
    left: 8%;
  }

  .phone-front {
    right: 6%;
  }

  .section {
    padding: 28px 0;
  }
}
