:root {
  --ink: #13293d;
  --ink-soft: #3a556b;
  --sea: #1b7a8a;
  --sea-deep: #0f4f5c;
  --foam: #f3fafb;
  --mist: #e4f1f3;
  --line: rgba(19, 41, 61, 0.1);
  --gold: #c9892a;
  --gold-soft: #f6e8cc;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(15, 79, 92, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Fraunces", "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(27, 122, 138, 0.16), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(201, 137, 42, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fcfd 0%, var(--foam) 42%, #eef7f8 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(243, 250, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(19, 41, 61, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  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-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sea-deep);
  background: rgba(27, 122, 138, 0.1);
}

.hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(27, 122, 138, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--sea-deep);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 0.78rem;
  color: var(--sea-deep);
  background: rgba(27, 122, 138, 0.08);
  border: 1px solid rgba(27, 122, 138, 0.14);
  padding: 5px 10px;
  border-radius: 999px;
}

.phone-stage {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: min(240px, 46vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1a3348, #0d1c28);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: floatY 5.5s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.phone-back {
  transform: rotate(-10deg) translate(-54px, 18px);
  z-index: 1;
  animation-delay: -1.4s;
}

.phone-front {
  transform: rotate(7deg) translate(48px, -8px);
  z-index: 2;
}

@keyframes floatY {
  0%,
  100% {
    transform: rotate(var(--r, 7deg)) translate(var(--x, 48px), calc(var(--y, -8px) + 0px));
  }
  50% {
    transform: rotate(var(--r, 7deg)) translate(var(--x, 48px), calc(var(--y, -8px) - 12px));
  }
}

.phone-back {
  --r: -10deg;
  --x: -54px;
  --y: 18px;
}

.phone-front {
  --r: 7deg;
  --x: 48px;
  --y: -8px;
}

.glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 122, 138, 0.28), transparent 68%);
  filter: blur(8px);
  z-index: 0;
  animation: pulse 4.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48em;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(19, 41, 61, 0.04);
  padding: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #0d1c28;
}

.feature-card .body {
  padding: 14px 16px 18px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shot-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1c28;
  position: relative;
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.shot-item:hover img {
  transform: scale(1.04);
}

.shot-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(8, 20, 30, 0.88));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.content-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.content-block.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.content-block.reverse .text {
  order: 2;
}

.content-block h2,
.content-block h3 {
  margin-top: 0;
  font-family: var(--display);
}

.content-block .media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1c28;
}

.content-block .media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  margin-inline: auto;
}

.prose {
  color: var(--ink);
}

.prose p {
  margin: 0 0 1em;
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.55em;
  line-height: 1.35;
  font-family: var(--display);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose .note {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}

.toc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.toc-inline a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.toc-inline a:hover {
  color: var(--sea-deep);
  border-color: rgba(27, 122, 138, 0.35);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}

.kpi {
  background: linear-gradient(180deg, #fff, var(--mist));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.kpi strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--sea-deep);
}

.kpi span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: 34px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46em;
}

.legal main,
.page-body {
  padding-bottom: 48px;
}

.legal .panel,
.page-body .panel {
  padding: 28px 26px;
}

.crumb {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.crumb a {
  text-decoration: none;
}

.error-page {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.error-box {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.error-box .code {
  font-family: var(--display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  color: var(--sea);
  margin: 0 0 8px;
}

.error-box h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.error-box p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f2433;
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f6e8cc;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.mobile-scroll {
  /* desktop default unused */
}

@media (max-width: 980px) {
  .hero-grid,
  .content-block,
  .content-block.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-block.reverse .text {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stage {
    min-height: 400px;
    order: -1;
  }

  .phone {
    width: min(200px, 42vw);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
    padding: 12px 14px;
  }

  .site-header {
    position: sticky;
  }

  body.home .mobile-scroll {
    height: calc(100dvh - var(--header-h, 68px) - var(--ads-h, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-body .panel,
  .legal .panel {
    padding: 18px 16px;
  }

  .page-body,
  .legal main {
    padding-left: 0;
    padding-right: 0;
  }

  .wrap.page-pad {
    width: min(100% - 28px, var(--max));
  }

  .feature-grid,
  .shot-row,
  .kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .phone-stage {
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
