:root {
  --bg-primary: #000000;
  --bg-secondary: #101928;
  --bg-card: #152236;
  --bg-card-hover: #1c2d47;
  --bg-subtle: #0d1522;
  --border-color: #223552;
  --border-accent: rgba(0, 229, 255, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-gradient: linear-gradient(135deg, #00f5ff 0%, #c084fc 50%, #ff2a85 100%);
  --btn-gradient: linear-gradient(135deg, #00f5ff 0%, #8b5cf6 50%, #ff2a85 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1200px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent-cyan);
  color: #0b0f19;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
}

/* Focus styles for keyboard navigation */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  position: relative;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #38bdf8;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--btn-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f19;
  font-weight: 900;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.site-nav a:hover, .site-nav a.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #0b0f19;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
  color: #000000;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  min-height: 48px;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 35%, rgba(168, 85, 247, 0.16) 0%, rgba(0, 245, 255, 0.08) 35%, rgba(255, 42, 133, 0.05) 65%, #000000 88%), #000000;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-canvas.is-ready {
  opacity: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 800;
  background: linear-gradient(115deg, #00f5ff 0%, #38bdf8 20%, #c084fc 52%, #f43f5e 82%, #ff2a85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(192, 132, 252, 0.45)) drop-shadow(0 0 50px rgba(0, 245, 255, 0.25));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 16px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.metric-item .metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
}

.metric-item .metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Section Common */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Pricing Table Section */
.pricing-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

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

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

.pricing-table th, .pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.pricing-table th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

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

.pricing-table tr:hover td {
  background: var(--bg-card-hover);
}

.pricing-table .plan-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-table .popular-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--btn-gradient);
  color: #0b0f19;
  font-weight: 800;
  border-radius: 4px;
}

.pricing-table .plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.pricing-table .price-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: normal;
}

/* Core Advantages (3 Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.15);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Streaming & AI Support Card */
.support-banner {
  background: linear-gradient(135deg, #17243a 0%, #101a2b 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 30px;
}

.support-banner-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.support-banner-header h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a263c;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.service-chip svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

/* User Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
}

.review-rating {
  color: #fbbf24;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-style: italic;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.reviewer-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.reviewer-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Details/Summary (Native & Expanded by Default) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-question {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-cyan);
  font-weight: 300;
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #000000;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
}

.footer-nav-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav-grid a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav-grid a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

/* Sub-page & Article Specific Styles */
.breadcrumb-nav {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-separator {
  margin: 0 8px;
}

.article-header {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

.article-content strong {
  color: #ffffff;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #94a3b8;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: #e2e8f0;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(21, 34, 54, 0.95) 0%, rgba(16, 26, 42, 0.95) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-box h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

/* Articles Grid in knowledge.html */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.article-card .card-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.article-card h2, .article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card h2 a, .article-card h3 a {
  color: #ffffff;
}

.article-card h2 a:hover, .article-card h3 a:hover {
  color: var(--accent-cyan);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 16px;
}

.article-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* Static Page Content Layout (About, Terms, Privacy, Sitemap) */
.static-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  margin: 30px auto 60px;
  max-width: 900px;
}

.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sitemap-group h3 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 14px;
  color: var(--accent-cyan);
}

.sitemap-group ul {
  list-style: none;
}

.sitemap-group li {
  margin-bottom: 10px;
}

.sitemap-group a {
  color: var(--text-secondary);
  display: inline-block;
  padding: 4px 0;
}

.sitemap-group a:hover {
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .features-grid, .reviews-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    flex-wrap: wrap;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-grid, .reviews-grid, .articles-grid, .sitemap-columns {
    grid-template-columns: 1fr;
  }
  .footer-nav-grid {
    gap: 18px;
  }
  .static-page-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .btn-lg {
    width: 100%;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
