:root {
  --bg: #000000;
  --surface: #0a0a0c;
  --surface-alt: #141418;
  --surface-dark: #050507;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-inverse: #f8fafc;
  --primary: #1d4ed8;
  --primary-hover: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.18);
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --accent: #2dd4bf;
  --accent-soft: rgba(20, 184, 166, 0.14);
  --border: #3f3f46;
  --border-light: #27272a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.75);
  --container: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

code {
  overflow-wrap: anywhere;
}

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

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

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

section[id],
h1[id],
h2[id],
h3[id] {
  scroll-margin-top: 5.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.22);
}

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

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

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

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

/* Hero */
.hero {
  background: var(--bg);
  padding: var(--space-lg) 0 var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-lg);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.45);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.3;
  color: var(--text);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--link);
}

.hero-desc {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: var(--space-md);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

.hero-bulb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.bulb-stage {
  --lit: 0;
  --lit-core: 0;
  --lit-glow: 0;
  --spread: 14%;
  --fairy-float: 0px;
  --wing-scale: 1;
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  isolation: isolate;
}

.bulb-ambient-aura {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 214, 96, 0.22) 0%,
    rgba(201, 133, 23, 0.13) 30%,
    rgba(32, 20, 6, 0.06) 56%,
    rgba(0, 0, 0, 0) 76%
  );
  opacity: var(--lit-glow);
}

.bulb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 58%, rgba(0, 0, 0, 0.85) 74%, transparent 96%);
  mask-image: radial-gradient(circle at 50% 48%, #000 58%, rgba(0, 0, 0, 0.85) 74%, transparent 96%);
}

.bulb-layer-off {
  z-index: 1;
}

.bulb-layer-core {
  z-index: 2;
  opacity: var(--lit-core);
  -webkit-mask-image: radial-gradient(ellipse 22% 24% at 50% 38%, #000 0%, rgba(0, 0, 0, 0.85) 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 22% 24% at 50% 38%, #000 0%, rgba(0, 0, 0, 0.85) 48%, transparent 100%);
}

.bulb-layer-full {
  z-index: 3;
  opacity: var(--lit-glow);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 calc(var(--spread) * 0.55), rgba(0, 0, 0, 0.74) calc(var(--spread) * 0.82), transparent var(--spread));
  mask-image: radial-gradient(circle at 50% 38%, #000 calc(var(--spread) * 0.55), rgba(0, 0, 0, 0.74) calc(var(--spread) * 0.82), transparent var(--spread));
}

.bulb-layer-fairy-shimmer {
  z-index: 4;
  mix-blend-mode: screen;
  opacity: calc(var(--lit-glow) * 0.46);
  transform-origin: 53% 38%;
  transform: translate3d(0, var(--fairy-float), 0) scaleX(var(--wing-scale));
  -webkit-mask-image: radial-gradient(ellipse 14% 16% at 53% 37%, #000 0%, rgba(0, 0, 0, 0.65) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 14% 16% at 53% 37%, #000 0%, rgba(0, 0, 0, 0.65) 45%, transparent 100%);
}

.bulb-runes-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: calc(var(--lit-glow) * 0.42);
}

.bulb-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

.bulb-base-tech-glow {
  position: absolute;
  left: 39%;
  top: 69.5%;
  width: 22%;
  height: 4.5%;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(96, 165, 250, 0.25) 0%, rgba(56, 189, 248, 0.09) 55%, transparent 100%);
  opacity: calc(0.18 + 0.52 * var(--lit));
}

.bulb-stage:hover .bulb-base-tech-glow,
.bulb-stage:focus-visible .bulb-base-tech-glow {
  animation: bulbTechBreathe 2.8s ease-in-out infinite;
}

@keyframes bulbTechBreathe {
  0%, 100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.88;
  }
}

/* 无 JS 时纯 CSS 交叉渐变与中心点亮兜底（移入 1.2s / 移出 1.5s） */
.bulb-stage:not([data-js="ready"]) .bulb-layer-core {
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.bulb-stage:not([data-js="ready"]) .bulb-layer-full,
.bulb-stage:not([data-js="ready"]) .bulb-layer-fairy-shimmer,
.bulb-stage:not([data-js="ready"]) .bulb-runes-svg,
.bulb-stage:not([data-js="ready"]) .bulb-ambient-aura,
.bulb-stage:not([data-js="ready"]) .bulb-base-tech-glow {
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bulb-stage:not([data-js="ready"]):hover .bulb-layer-core,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-layer-core {
  opacity: 1;
  transition: opacity 0.85s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
}

.bulb-stage:not([data-js="ready"]):hover .bulb-layer-full,
.bulb-stage:not([data-js="ready"]):hover .bulb-layer-fairy-shimmer,
.bulb-stage:not([data-js="ready"]):hover .bulb-runes-svg,
.bulb-stage:not([data-js="ready"]):hover .bulb-ambient-aura,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-layer-full,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-layer-fairy-shimmer,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-runes-svg,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-ambient-aura {
  --spread: 94%;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.14s;
}

.bulb-stage:not([data-js="ready"]):hover .bulb-runes-svg,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-runes-svg {
  opacity: 0.34;
}

.bulb-stage:not([data-js="ready"]):hover .bulb-layer-fairy-shimmer,
.bulb-stage:not([data-js="ready"]):focus-visible .bulb-layer-fairy-shimmer {
  opacity: 0.36;
}

@media (hover: none), (pointer: coarse) {
  .bulb-stage:not([data-js="ready"]) {
    --lit: 0.62;
    --lit-core: 0.9;
    --lit-glow: 0.56;
    --spread: 76%;
  }
}

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

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

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card-media {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

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

.card p + p {
  margin-top: 0.65rem;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--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: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-light);
}

.pricing-table th,
.pricing-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

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

.pricing-table tbody tr.is-featured {
  background: var(--primary-soft);
}

.price-tag {
  font-weight: 800;
  color: var(--link-hover);
  white-space: nowrap;
}

.badge-popular {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
}

.table-note {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.table-cta {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Streaming & AI Block */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tag-item {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.mt-md {
  margin-top: 1.25rem;
}

/* Reviews */
.rating-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid rgba(96, 165, 250, 0.4);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.review-meta {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  color: var(--link);
  flex-shrink: 0;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-alt);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 1rem 1.25rem 1.15rem;
  color: var(--text-muted);
}

.faq-body p {
  margin: 0;
}

.faq-body p + p {
  margin-top: 0.6rem;
}

/* Subpages, Knowledge Hub & Articles */
.page-banner {
  background: var(--bg);
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-lg);
  align-items: start;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-body h2 {
  margin-top: 1.75rem;
  font-size: 1.35rem;
}

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

.article-body p {
  margin: 0 0 1rem;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.article-body li + li {
  margin-top: 0.4rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.sidebar-list a {
  display: inline-block;
  padding: 0.25rem 0;
  text-decoration: none;
  font-weight: 600;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

.callout-box {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
}

/* Footer (strictly 4 link blocks) */
.site-footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--border-light);
  color: var(--text-inverse);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}

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

.footer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.footer-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: #ffffff;
}

.footer-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
}

.footer-card a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .feature-split,
  .article-layout,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .nav-link {
    justify-content: center;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .header-cta {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .article-body {
    padding: 1.25rem;
  }
}

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

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