:root {
  --ink: #0b1f33;
  --ink-soft: #3a5166;
  --brand: #1a6fd4;
  --brand-deep: #0e4f9e;
  --wave: #e8f3ff;
  --foam: #f7fafc;
  --sand: #d7e7f5;
  --accent: #e85d4c;
  --line: rgba(18, 70, 120, 0.12);
  --shadow: 0 18px 50px rgba(14, 55, 110, 0.14);
  --radius: 18px;
  --max: 1100px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(1200px 500px at 10% -10%, #cfe6ff 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #ffe8e2 0%, transparent 45%),
    linear-gradient(180deg, #f4f9fd 0%, var(--foam) 40%, #eef5fb 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.top-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(26, 111, 212, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.hero {
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  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(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(26, 111, 212, 0.32);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--brand-deep);
  transform: translateY(-2px);
}

.phone-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(46vw, 230px);
  aspect-ratio: 9 / 19.2;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #12263a;
  background: #0b1220;
  box-shadow: var(--shadow);
  position: absolute;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-back {
  transform: translate(-58px, 18px) rotate(-8deg);
  z-index: 1;
  animation: floatA 5.5s ease-in-out infinite;
}

.phone-front {
  transform: translate(52px, -8px) rotate(6deg);
  z-index: 2;
  animation: floatB 4.8s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(-58px, 18px) rotate(-8deg);
  }
  50% {
    transform: translate(-58px, 8px) rotate(-6deg);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(52px, -8px) rotate(6deg);
  }
  50% {
    transform: translate(52px, 4px) rotate(4deg);
  }
}

.wave-band {
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,32 C240,64 480,0 720,24 C960,48 1200,64 1440,24 L1440,64 L0,64 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  margin-top: 8px;
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(14, 55, 110, 0.06);
}

.section {
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
}

.section .sub {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.prose {
  padding: 28px 28px 8px;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  scroll-margin-top: 90px;
}

.prose h2 {
  margin: 1.4em 0 0.55em;
  font-size: 1.45rem;
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

.prose h3 {
  margin: 1.2em 0 0.45em;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.prose p {
  margin: 0 0 1em;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45em;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.toc a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--wave);
  text-decoration: none;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.toc a:hover {
  background: #d7eaff;
  transform: translateY(-2px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .shot {
  aspect-ratio: 9 / 16;
  max-height: 320px;
  overflow: hidden;
  background: #0b1220;
}

.feature-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-card .meta {
  padding: 14px 16px 16px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  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: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.shot-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  object-fit: cover;
  object-position: top center;
}

.shot-item span {
  display: block;
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.split .copy {
  padding: 8px 4px;
}

.split .visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1220;
}

.split .visual img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-deep);
}

.faq p {
  margin: 10px 0 4px;
  color: var(--ink-soft);
}

.page-hero {
  padding: 36px 0 18px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.error-box {
  text-align: center;
  padding: 70px 24px 90px;
}

.error-box .code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  color: var(--brand);
  margin: 0 0 8px;
}

.error-box h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}

.error-box p {
  margin: 0 auto 22px;
  color: var(--ink-soft);
  max-width: 42ch;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #0c2340;
  color: #d7e7f5;
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer a {
  color: #b9d4ef;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  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: 42px;
  height: 42px;
  border-radius: 10px;
}

.copyright {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #8fb0cd;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stage {
    min-height: 360px;
    order: -1;
  }

  .phone {
    width: min(42vw, 180px);
  }

  .phone-back {
    transform: translate(-42px, 16px) rotate(-7deg);
  }

  .phone-front {
    transform: translate(40px, -6px) rotate(5deg);
  }

  @keyframes floatA {
    0%,
    100% {
      transform: translate(-42px, 16px) rotate(-7deg);
    }
    50% {
      transform: translate(-42px, 8px) rotate(-5deg);
    }
  }

  @keyframes floatB {
    0%,
    100% {
      transform: translate(40px, -6px) rotate(5deg);
    }
    50% {
      transform: translate(40px, 4px) rotate(3deg);
    }
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .feature-grid,
  .shot-row {
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    padding: 18px 16px 4px;
  }

  .phone {
    width: 42vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-back,
  .phone-front,
  .btn,
  .feature-card,
  .toc a {
    animation: none !important;
    transition: none !important;
  }
}
