:root {
  --bg: #0b1020;
  --bg-elev: #121a30;
  --bg-card: #16203a;
  --bg-card-hover: #1c294a;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.18);
  --brand-warm: #fb923c;
  --border: rgba(148, 163, 184, 0.22);
  --success: #34d399;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1120px;
  --header-h: 72px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
}

*,
*::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;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: #7dd3fc;
}

:focus-visible {
  outline: 3px solid var(--brand-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #03111f;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%);
  color: #03111f;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

/* Sections */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.section {
  padding-block: var(--space-6);
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--text);
}

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

/* Hero */
.hero {
  padding-block: var(--space-6);
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.14), transparent 45%),
    radial-gradient(circle at 82% 15%, rgba(251, 146, 60, 0.1), transparent 40%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 3.8vw, 2.95rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

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

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-highlights li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-visual img {
  margin-inline: auto;
  border-radius: 12px;
  animation: heroFloatBreath 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloatBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.018);
  }
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  overflow-wrap: break-word;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
}

.card-media {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

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

/* Streaming & AI Chips */
.media-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.media-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.media-chip-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.media-chip h3 {
  margin: 0;
  font-size: 1.05rem;
}

.media-chip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

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

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

.pricing-table caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem 0.5rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.pricing-table thead th {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

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

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

.price-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.pricing-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.section-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Reviews */
.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.08em;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
}

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

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

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

.faq-answer {
  padding-bottom: 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.faq-answer p {
  margin: 0;
}

/* Articles & Subpages */
.page-hero {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 50%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.3;
}

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

.article-body {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 2.5rem 3.5rem;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: var(--text);
}

.article-body p,
.article-body li {
  color: var(--text-muted);
}

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

.article-cta-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-cta-box p {
  margin: 0;
  color: var(--text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Footer: strictly 4 headings */
.site-footer {
  background: #070b17;
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-col h2 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  color: var(--text);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

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

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .grid-3,
  .grid-2,
  .media-card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

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

/* Light Mode: 午夜紫 × 极光蓝 V1.0 */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F2FC;
    --bg-elev: #FAF8FE;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --text: #241C3C;
    --text-muted: #625D75;
    --text-soft: #6E6885;
    --accent: #6941C6;
    --accent-strong: #5331A8;
    --accent-aurora: #38BDF8;
    --accent-glow: rgba(105, 65, 198, 0.08);
    --border: #DDD5F0;
  }

  a {
    color: #6941C6;
  }

  a:hover {
    color: #5331A8;
  }

  :focus-visible {
    outline: 3px solid #38BDF8;
  }

  .skip-link {
    background: #6941C6;
    color: #FFFFFF;
  }

  .site-header {
    background: rgba(245, 242, 252, 0.88);
    border-bottom: 1px solid #DDD5F0;
  }

  .brand-logo {
    color: #241C3C;
  }

  .brand-logo span {
    color: #6941C6;
    background: linear-gradient(120deg, #6941C6 25%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .main-nav a {
    color: #625D75;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    color: #6941C6;
    background: rgba(105, 65, 198, 0.09);
  }

  .btn-primary {
    background: linear-gradient(135deg, #7F56D9 0%, #6941C6 100%);
    color: #FFFFFF;
    border-color: rgba(105, 65, 198, 0.25);
    box-shadow: 0 8px 20px rgba(105, 65, 198, 0.22);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #8B64E2 0%, #5B35B5 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(105, 65, 198, 0.28), 0 0 0 2px rgba(56, 189, 248, 0.28);
  }

  .btn-secondary {
    background: #FFFFFF;
    color: #241C3C;
    border-color: #DDD5F0;
  }

  .btn-secondary:hover {
    border-color: #6941C6;
    color: #6941C6;
    background: rgba(56, 189, 248, 0.06);
  }

  .hero {
    position: relative;
    background:
      radial-gradient(ellipse 60% 45% at 15% 15%, rgba(105, 65, 198, 0.11), transparent 60%),
      radial-gradient(ellipse 55% 45% at 85% 18%, rgba(56, 189, 248, 0.14), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(245, 242, 252, 0.95) 100%);
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(90deg, rgba(105, 65, 198, 0.04) 1px, transparent 1px),
      linear-gradient(0deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
  }

  .hero-badge {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #DDD5F0;
    color: #6941C6;
    box-shadow: 0 2px 10px rgba(105, 65, 198, 0.06);
  }

  .hero-highlights li::before {
    color: #38BDF8;
  }

  .hero-visual {
    background: #FFFFFF;
    border: 1px solid #DDD5F0;
    box-shadow: 0 14px 34px rgba(36, 28, 60, 0.06), 0 0 0 1px rgba(56, 189, 248, 0.12);
  }

  .section-eyebrow {
    color: #6941C6;
  }

  .card,
  .media-chip,
  .faq-item,
  .table-wrap,
  .article-cta-box {
    background: #FFFFFF;
    border: 1px solid #DDD5F0;
    box-shadow: 0 6px 20px rgba(36, 28, 60, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  }

  .card:hover,
  .media-chip:hover {
    background: #FFFFFF;
    border-color: #6941C6;
    box-shadow: 0 12px 28px rgba(105, 65, 198, 0.1), 0 0 18px rgba(56, 189, 248, 0.18);
    transform: translateY(-2px);
  }

  .card-media {
    background: linear-gradient(135deg, rgba(105, 65, 198, 0.08) 0%, rgba(56, 189, 248, 0.12) 100%);
    border: 1px solid #DDD5F0;
  }

  .tag {
    background: rgba(56, 189, 248, 0.14);
    color: #0369A1;
    border: 1px solid rgba(56, 189, 248, 0.35);
  }

  .pricing-table thead th {
    background: #F5F2FC;
    color: #241C3C;
  }

  .price-num {
    color: #6941C6;
  }

  .stars {
    color: #6941C6;
  }

  .faq-item summary::after {
    color: #6941C6;
  }

  .page-hero {
    background:
      radial-gradient(ellipse 55% 50% at 20% 20%, rgba(105, 65, 198, 0.09), transparent 60%),
      radial-gradient(ellipse 45% 45% at 85% 25%, rgba(56, 189, 248, 0.1), transparent 55%),
      #FAF8FE;
  }

  .site-footer {
    background: #EDE8F8;
    border-top: 1px solid #DDD5F0;
  }

  .footer-col h2 {
    color: #241C3C;
  }

  .footer-col a {
    color: #625D75;
  }

  .footer-col a:hover {
    color: #6941C6;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
