:root {
  --bg: #07101f;
  --bg-2: #0d1a30;
  --panel: #12233d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef8;
  --muted: #9aa8bf;
  --brand: #2f9bff;
  --brand-2: #1cc8a0;
  --warn: #ffb020;
  --radius: 16px;
  --max: 1120px;
  --header-h: 56px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 155, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(28, 200, 160, 0.12), transparent 50%),
    linear-gradient(180deg, #050b16 0%, var(--bg) 40%, #091428 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #7ec4ff;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 16, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(47, 155, 255, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span:before {
  top: -6px;
}

.nav-toggle span:after {
  top: 6px;
}

.nav.open {
  display: flex;
}

.hero {
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #fff 10%, #9fd0ff 55%, #7ef0cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #1a6fd1);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 155, 255, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(47, 155, 255, 0.4);
}

.phone-stack {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(46%, 240px);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #000;
  position: absolute;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.phone-back {
  z-index: 1;
  filter: brightness(0.92);
  animation: float-back 5.5s ease-in-out infinite;
}

.phone-front {
  z-index: 2;
  box-shadow: 0 30px 70px rgba(47, 155, 255, 0.22);
  animation: float-front 5.5s ease-in-out infinite;
  animation-delay: -1.6s;
}

@keyframes float-back {
  0%,
  100% {
    transform: rotate(-8deg) translate(-18%, 8%);
  }
  50% {
    transform: rotate(-8deg) translate(-18%, calc(8% - 10px));
  }
}

@keyframes float-front {
  0%,
  100% {
    transform: rotate(7deg) translate(18%, -4%);
  }
  50% {
    transform: rotate(7deg) translate(18%, calc(-4% - 10px));
  }
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 70ch;
}

.prose {
  color: #d5deee;
  font-size: 16px;
}

.prose p {
  margin-bottom: 16px;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  margin: 28px 0 12px;
  color: #fff;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 1.2em;
}

.prose li {
  margin-bottom: 8px;
}

.feature-grid,
.shot-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.shot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.info-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(18, 35, 61, 0.9), rgba(12, 24, 44, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 155, 255, 0.35);
}

.card .thumb {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.card .body {
  padding: 14px 16px 18px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.split .shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.split .shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 70ch;
}

.page-main {
  padding: 18px 0 48px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--brand);
}

.copyright {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #73819a;
  font-size: 13px;
}

.error-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  margin-bottom: 8px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .feature-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stack {
    min-height: 380px;
    order: -1;
  }

  .phone {
    width: min(42%, 190px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 52px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: calc(var(--header-h) + 8px);
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
    padding: 10px;
    background: rgba(10, 18, 34, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .nav a {
    display: block;
  }

  .hero {
    padding: 28px 0 12px;
    gap: 18px;
  }

  .section {
    padding: 28px 0;
  }

  .page-main.padded,
  .mobile-pad {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .phone-stack {
    min-height: 320px;
  }

  .phone {
    width: min(46%, 150px);
  }
}
