:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #0369a1;
  --success: #047857;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;
  --max-width: 1120px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

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;
  overflow-wrap: break-word;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

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

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

.main-nav a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.main-nav a.nav-cta {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 18px;
}

.main-nav a.nav-cta:hover {
  background: var(--primary-hover);
}

/* Buttons */
.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;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 64px 0 72px;
}

.hero-inner {
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin: 0 0 14px;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.02rem;
  color: #cbd5e1;
  margin: 0 0 28px;
  max-width: 720px;
}

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

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

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-lg);
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  color: var(--text);
}

.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-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);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

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

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

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

/* Streaming & AI badges */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* 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%;
  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);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

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

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

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

.price-highlight {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
}

/* Reviews */
.review-meta {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.review-stars {
  color: #b45309;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  list-style-position: inside;
  min-height: 28px;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Knowledge Cards & Articles */
.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

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

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

/* Subpages / Article Layout */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

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

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

.article-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.article-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

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

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-left: 20px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: #f8fafc;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-3,
  .grid-2,
  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 48px 0;
  }

  .article-content {
    padding: 20px;
  }

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

  .main-nav {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .main-nav a.nav-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
