:root {
  --bg-page: #faf8ff;
  --bg-surface: #ffffff;
  --bg-hero: #1e1b4b;
  --bg-hero-accent: #4c1d95;
  --bg-muted: #f5f3ff;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #e2e8f0;
  --brand-primary: #6d28d9;
  --brand-primary-hover: #5b21b6;
  --brand-accent: #db2777;
  --brand-light: #f5f3ff;
  --border-color: #e9e4f5;
  --border-dark: #312e81;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --max-width: 1140px;
  --header-height: 68px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
}

*,
*::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);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background-color: var(--brand-light);
  color: var(--brand-primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.2s ease;
}

.header-cta:hover {
  background-color: var(--brand-primary-hover);
  color: #ffffff;
}

/* Anchor scroll offset */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-hero-accent) 100%);
  color: var(--text-on-dark);
  padding: var(--space-xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(236, 72, 153, 0.2);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  color: #ffffff;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn-primary {
  background-color: #f472b6;
  color: #1e1b4b;
}

.btn-primary:hover {
  background-color: #f9a8d4;
  color: #1e1b4b;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline:hover {
  background-color: var(--brand-light);
  color: var(--brand-primary-hover);
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-visual {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 10, 40, 0.45);
  animation: heroFloat 5s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-visual:hover {
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.22);
}

.hero-visual img {
  border-radius: var(--radius-md);
}

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

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 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: 24px;
}

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

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(109, 40, 217, 0.14);
  border-color: rgba(124, 58, 237, 0.45);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-footer-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
}

/* Streaming & AI Chips */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.tag-list li {
  background-color: var(--bg-muted);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

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

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

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

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

.pricing-table thead th {
  background-color: #f8fafc;
  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;
}

.price-highlight {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 1.08rem;
}

.pricing-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  background-color: var(--brand-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.table-cta:hover {
  background-color: var(--brand-primary-hover);
  color: #ffffff;
}

/* Reviews */
.review-rating {
  color: #b45309;
  font-weight: 700;
  font-size: 0.95rem;
}

.review-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

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

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

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-left: 12px;
}

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

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

.faq-answer p {
  margin: 0;
}

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

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

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

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-on-dark-muted);
}

.breadcrumb a {
  color: #f9a8d4;
}

.article-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 20px;
}

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

.article-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.35rem;
  color: var(--text-main);
}

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

.article-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.article-card li {
  margin-bottom: 6px;
}

.article-cta-box {
  margin-top: 28px;
  padding: 20px;
  background-color: var(--brand-light);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #f9a8d4;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
}

.center-cta {
  text-align: center;
  margin-top: 32px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .header-cta {
    width: 100%;
  }

  .hero {
    padding: 44px 0;
  }

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

  .section {
    padding: 48px 0;
  }

  .article-card {
    padding: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 4px;
  }
}

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

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