:root {
  --bg-page: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-muted: #EBF0F5;
  --bg-dark: #0C1520;
  --bg-dark-card: #17232F;
  --text-main: #0C1520;
  --text-secondary: #17232F;
  --text-muted: #475569;
  --text-on-dark: #F5F7FA;
  --text-on-dark-muted: #CBD5E1;
  --accent: #FF7825;
  --accent-gold: #FFB454;
  --accent-text: #C44A04;
  --accent-hover: #E05E10;
  --accent-soft: #FFF4EC;
  --accent-border: #FFB454;
  --border-color: #DCE3EB;
  --focus-ring: #FFB454;
  --container-max: 1160px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(12, 21, 32, 0.08);
  --shadow-md: 0 12px 28px rgba(12, 21, 32, 0.14);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

section[id],
h2[id],
h3[id] {
  scroll-margin-top: 88px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.96);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 70px;
  padding: 8px 0;
}

/* Brand Logo (transparent background, adapts to light & dark themes) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  min-height: 44px;
  padding: 4px 6px;
  background: transparent;
}

.brand-logo:hover {
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.brand-arc {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 3px;
  border-top: 2.5px solid var(--accent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.brand-logo--dark .brand-name {
  color: var(--text-on-dark);
}

.brand-logo--dark:hover .brand-name {
  color: var(--accent-gold);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
  color: var(--bg-dark);
  box-shadow: 0 4px 14px rgba(255, 120, 37, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF8A3D 0%, #FFC36E 100%);
  color: var(--bg-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 120, 37, 0.38);
}

.btn-secondary {
  background: rgba(23, 35, 47, 0.82);
  color: var(--text-on-dark);
  border-color: rgba(255, 180, 84, 0.45);
}

.btn-secondary:hover {
  background: var(--bg-dark-card);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.section .btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.section .btn-secondary:hover {
  background: var(--bg-muted);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

/* Hero Section with Full-Bleed Reference Background & Subtle FX */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-8) 0;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-dark);
}

.hero-scene {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 100%;
  min-width: 1024px;
  aspect-ratio: 16 / 9;
  transform: translate3d(var(--px, 0px), calc(-50% + var(--py, 0px)), 0) scale(1.04);
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.hero-fx-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 21, 32, 0.94) 0%,
    rgba(12, 21, 32, 0.82) 38%,
    rgba(12, 21, 32, 0.28) 62%,
    rgba(12, 21, 32, 0.04) 100%
  );
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 610px;
}

/* Subtle Hero Animations */
.fx-fox-contour {
  fill: none;
  stroke: url(#foxFlowGrad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 120 340;
  animation: foxContourFlow 9s linear infinite;
  opacity: 0.72;
}

.fx-fox-eye {
  animation: eyeBreathe 4.6s ease-in-out infinite;
  transform-origin: 695px 211px;
}

.fx-node-arc {
  fill: none;
  stroke: rgba(255, 180, 84, 0.35);
  stroke-width: 1.4;
}

.fx-bottom-rail {
  fill: none;
  stroke: url(#railFlowGrad);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 180 420;
  animation: railFlow 7.5s linear infinite;
  opacity: 0.85;
}

@keyframes foxContourFlow {
  from {
    stroke-dashoffset: 460;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes eyeBreathe {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.16);
  }
}

@keyframes railFlow {
  from {
    stroke-dashoffset: 600;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 120, 37, 0.16);
  border: 1px solid rgba(255, 180, 84, 0.45);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.25;
  color: var(--text-on-dark);
}

.hero-subtitle {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.hero-desc {
  margin: 0 0 var(--space-3);
  color: var(--text-on-dark-muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(203, 213, 225, 0.22);
}

.metric-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-on-dark);
}

.metric-item span {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* Sections */
.section {
  padding: var(--space-6) 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin: 0 0 var(--space-1);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: var(--text-main);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

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

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

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

.card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.card h3 {
  margin: 0 0 var(--space-1);
  font-size: 1.18rem;
  color: var(--text-main);
}

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

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  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: var(--space-2) var(--space-3);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.pricing-table thead th {
  background: var(--bg-page);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.pricing-table tbody th {
  font-weight: 700;
  color: var(--text-main);
}

.price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-text);
}

.plan-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}

/* Streaming & AI Block */
.media-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.media-showcase img {
  width: 100%;
  border-radius: var(--radius-md);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Reviews */
.rating-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  font-weight: 700;
  color: var(--text-main);
}

.rating-score {
  font-size: 1.35rem;
  color: var(--accent-text);
}

.review-meta {
  margin-top: var(--space-2);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: var(--space-2);
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "−";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-left: 12px;
}

.faq-item:not([open]) summary::after {
  content: "+";
}

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

.faq-answer p {
  margin: 0;
}

/* Subpages & Articles */
.page-banner {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-4) 0;
}

.page-banner h1 {
  margin: 0 0 var(--space-1);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-on-dark);
}

.page-banner p {
  margin: 0;
  color: var(--text-on-dark-muted);
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
  color: var(--text-on-dark-muted);
}

.breadcrumb a {
  color: var(--accent-gold);
}

.article-layout {
  max-width: 860px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-color);
}

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.article-body h2 {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 1.35rem;
  color: var(--text-main);
}

.article-body h2:first-child {
  margin-top: 0;
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-2);
  padding-left: 22px;
  color: var(--text-secondary);
}

.article-cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: var(--space-3) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.article-cta p {
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.related-links {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-4);
}

.related-links h2 {
  margin: 0 0 var(--space-2);
  font-size: 1.2rem;
}

.related-links ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2);
}

.article-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--bg-dark-card);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

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

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark-card);
  border: 1px solid #263647;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.footer-link:hover {
  background: #203142;
  color: var(--accent-gold);
  border-color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .media-showcase,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--space-6) 0;
    min-height: 480px;
  }

  .hero-scene {
    right: -14%;
    min-width: 820px;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(12, 21, 32, 0.88) 0%,
      rgba(12, 21, 32, 0.72) 55%,
      rgba(12, 21, 32, 0.56) 100%
    );
  }

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

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .grid-2,
  .hero-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--space-4) 0;
    min-height: auto;
  }

  .hero-scene {
    right: -28%;
    min-width: 640px;
    transform: translate3d(0, -50%, 0) scale(1);
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(12, 21, 32, 0.9) 0%,
      rgba(12, 21, 32, 0.76) 60%,
      rgba(12, 21, 32, 0.68) 100%
    );
  }

  .section {
    padding: var(--space-4) 0;
  }

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

  .article-body,
  .media-showcase {
    padding: var(--space-2);
  }
}

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

  .btn,
  .hero-scene {
    transition: none;
  }

  .fx-fox-contour,
  .fx-fox-eye,
  .fx-bottom-rail {
    animation: none;
  }
}
