:root {
  --bg-page: #060D17;
  --bg-surface: #0D1B2A;
  --bg-subtle: #091524;
  --brand: #087BFF;
  --brand-cyan: #00D9FF;
  --brand-ice: #91DCFF;
  --brand-soft: rgba(8, 123, 255, 0.14);
  --brand-border: rgba(145, 220, 255, 0.34);
  --text-primary: #F0F7FF;
  --text-secondary: #94A3B8;
  --text-muted: #94A3B8;
  --border: rgba(145, 220, 255, 0.15);
  --border-strong: rgba(145, 220, 255, 0.34);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(2, 6, 14, 0.45);
  --shadow-glow: 0 8px 24px rgba(0, 217, 255, 0.24);
  --container-max: 1160px;
  --header-height: 72px;
  --space-section: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(95deg, #F0F7FF 0%, #91DCFF 52%, #00D9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: var(--brand-ice);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-cyan);
}

:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--text-primary);
  color: var(--bg-page);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  padding-block: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-link:hover {
  color: var(--brand-ice);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--brand-ice);
  background: rgba(8, 123, 255, 0.1);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-ice);
  background: rgba(8, 123, 255, 0.12);
  border-bottom-color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-cyan) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(6, 13, 23, 0.45);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.06);
}

/* Sections */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section {
  padding-block: var(--space-section);
  background: var(--bg-page);
}

.section-alt {
  background: var(--bg-page);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ice);
  border: 1px solid var(--brand-border);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

/* Hero & 5-Layer Isolated Visual Stage */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-page);
  color: var(--text-primary);
  padding-block: 38px 325px;
  min-height: 710px;
}

/* Layer 1: #060D17 base */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-page);
}

/* Layer 2: Original High-Res Fox Background (100% opacity, no blur/hue/filter) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  opacity: 1;
}

/* Layer 3A: Curved Light Track SVG Highlight Overlay */
.hero-arc-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.arc-stream {
  stroke-dasharray: 240 1200;
  stroke-dashoffset: 320;
  will-change: stroke-dashoffset, opacity;
}

.arc-stream-1 {
  animation: arcRace 2.4s linear infinite;
}

.arc-stream-2 {
  stroke-dasharray: 180 1240;
  animation: arcRace 2.8s linear infinite -0.9s;
}

.arc-stream-3 {
  stroke-dasharray: 200 1100;
  animation: arcRaceShort 2.2s linear infinite -0.4s;
}

.arc-stream-4 {
  stroke-dasharray: 110 600;
  animation: arcRaceMini 2.6s linear infinite -1.2s;
}

/* Layer 3B: Local Shimmer Over Existing Left Afterimage Region (No image cloning) */
.hero-afterimage-shimmer {
  position: absolute;
  left: 4%;
  width: 52%;
  bottom: 10%;
  height: 44%;
  z-index: 2;
  background:
    radial-gradient(ellipse 65% 58% at 58% 58%, rgba(0, 217, 255, 0.28) 0%, rgba(8, 123, 255, 0.14) 52%, transparent 78%),
    radial-gradient(ellipse 46% 42% at 24% 64%, rgba(145, 220, 255, 0.22) 0%, transparent 74%);
  mix-blend-mode: screen;
  animation: afterimageShimmer 2.5s ease-in-out infinite;
  will-change: opacity, transform;
}

/* Layer 3C: Fox Contour & Lower Track Breathing Glow (4s) */
.hero-fox-glow {
  position: absolute;
  right: 2%;
  width: 54%;
  bottom: 4%;
  height: 52%;
  z-index: 2;
  background:
    radial-gradient(ellipse 56% 52% at 62% 52%, rgba(145, 220, 255, 0.18) 0%, rgba(8, 123, 255, 0.1) 50%, transparent 78%),
    radial-gradient(ellipse 75% 32% at 50% 88%, rgba(0, 217, 255, 0.22) 0%, transparent 74%);
  mix-blend-mode: screen;
  animation: foxContourBreath 4s ease-in-out infinite;
  will-change: opacity;
}

/* Layer 3D: Lightweight Accelerating Micro-Particle Canvas */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Layer 4: Edge-Only Readability & Bottom Transition Scrim */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(6, 13, 23, 0.65) 0%,
    rgba(6, 13, 23, 0.18) 38%,
    rgba(6, 13, 23, 0) 58%,
    rgba(6, 13, 23, 0) 88%,
    #060D17 100%
  );
}

/* Layer 5: Foreground Content */
.hero-grid {
  position: relative;
  z-index: 5;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 123, 255, 0.16);
  border: 1px solid var(--brand-border);
  color: var(--brand-ice);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  background: linear-gradient(95deg, #F0F7FF 0%, #91DCFF 50%, #00D9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #087BFF 0%, #91DCFF 25%, #F0F7FF 50%, #00D9FF 75%, #087BFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: iceTextFlow 3s linear infinite;
}

.hero-subtitle {
  margin: 0 auto 22px;
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-cyan) 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 13, 23, 0.45);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary-dark,
.btn-outline {
  background: rgba(13, 27, 42, 0.78);
  border-color: var(--brand-border);
  color: var(--text-primary);
}

.btn-secondary-dark:hover,
.btn-outline:hover {
  background: rgba(8, 123, 255, 0.16);
  border-color: var(--brand-cyan);
  color: var(--brand-ice);
  box-shadow: 0 0 16px rgba(145, 220, 255, 0.18);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.hero-highlights li {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 13, 23, 0.58);
  border: 1px solid rgba(145, 220, 255, 0.16);
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-icon {
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
}

/* Streaming & AI Block */
.split-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.split-card > * {
  min-width: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table caption {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pricing-table thead th {
  font-size: 0.92rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.plan-popular {
  background: rgba(8, 123, 255, 0.1);
}

.plan-popular th[scope="row"] {
  box-shadow: inset 3px 0 0 var(--brand);
}

.price-figure {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-ice);
  white-space: nowrap;
}

.plan-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(8, 123, 255, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.45);
  color: var(--brand-ice);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Reviews */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--text-primary);
  font-weight: 600;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  padding-block: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style-position: outside;
  min-height: 44px;
}

.faq-item summary::marker {
  color: var(--brand-ice);
}

.faq-answer {
  padding: 14px 0 18px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin: 0;
}

/* Subpage Header / Article */
.page-banner {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.72) 0%, var(--bg-page) 100%);
  color: var(--text-primary);
  padding-block: 42px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand-ice);
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 68ch;
}

.article-layout {
  max-width: 820px;
  margin-inline: auto;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body h2 {
  margin: 28px 0 10px;
  font-size: 1.32rem;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.article-faq {
  margin-top: 32px;
}

.article-faq h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.article-list-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.article-list-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.article-list-card h2 a {
  background: linear-gradient(95deg, #F0F7FF 0%, #91DCFF 52%, #00D9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.article-list-card h2 a:hover {
  background: linear-gradient(95deg, #91DCFF 0%, #00D9FF 60%, #087BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--brand-cyan);
}

.sitemap-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 12px 0 24px;
}

.sitemap-list a {
  display: inline-block;
  padding-block: 4px;
  font-weight: 600;
}

/* Footer (Strictly 4 link titles) */
.site-footer {
  background: var(--bg-page);
  color: var(--text-primary);
  padding-block: 38px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.footer-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-link-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ice);
}

/* Keyframes */
@keyframes iceTextFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes arcRace {
  0% {
    stroke-dashoffset: 320;
  }
  100% {
    stroke-dashoffset: -1200;
  }
}

@keyframes arcRaceShort {
  0% {
    stroke-dashoffset: 240;
  }
  100% {
    stroke-dashoffset: -1100;
  }
}

@keyframes arcRaceMini {
  0% {
    stroke-dashoffset: 160;
  }
  100% {
    stroke-dashoffset: -580;
  }
}

@keyframes afterimageShimmer {
  0%, 100% {
    opacity: 0.14;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.62;
    transform: translate3d(-12px, 0, 0);
  }
}

@keyframes foxContourBreath {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding-block: 44px 235px;
    min-height: 600px;
  }

  .hero-bg-img,
  .hero-arc-svg {
    top: auto;
    height: 440px;
    object-position: 100% 100%;
  }

  .split-card,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --space-section: 46px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 6px;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 0.88rem;
  }

  .hero {
    padding-block: 18px 195px;
    min-height: 490px;
  }

  .hero-badge {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 1.56rem;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-highlights {
    gap: 6px;
    font-size: 0.78rem;
  }

  .hero-highlights li {
    padding: 3px 9px;
  }

  .hero-bg-img,
  .hero-arc-svg {
    top: auto;
    height: 228px;
    object-position: 100% 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-2,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-card,
  .split-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .h1-gradient,
  .arc-stream,
  .hero-afterimage-shimmer,
  .hero-fox-glow {
    animation: none !important;
  }

  .hero-particles-canvas {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
