:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f293d;
  --bg-card-hover: #26334d;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --accent-hover: #4f46e5;
  --success: #10b981;
  --warning: #f59e0b;
  --border-color: #374151;
  --border-subtle: #1f2937;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --header-height: 72px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 18%, rgba(99, 102, 241, 0.18) 0%, rgba(11, 15, 25, 0.45) 55%),
    linear-gradient(180deg, rgba(11, 15, 25, 0.4) 0%, rgba(11, 15, 25, 0.82) 550px, rgba(11, 15, 25, 0.96) 1000px, #0b0f19 1400px),
    url('sakura-sea-bg.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto, 100% auto, cover;
  background-attachment: scroll, scroll, fixed;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

a:hover {
  color: #c7d2fe;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-logo .logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.brand-logo .logo-badge svg {
  width: 26px;
  height: 26px;
  display: block;
}

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

.brand-logo .brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.brand-logo .brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

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

/* Sections Common */
section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem 0;
  background: transparent;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  text-align: center;
}

.metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.pricing-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.plan-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-light);
}

.price-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
}

.price-cycle {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.plan-features svg {
  width: 18px;
  height: 18px;
  fill: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

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

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

.pricing-table th {
  background: rgba(17, 24, 39, 0.75);
  color: #ffffff;
  font-weight: 600;
}

.pricing-table td {
  color: var(--text-muted);
}

.pricing-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Feature Cards (3 core advantages) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-light);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-light);
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Streaming & AI Cards */
.media-section {
  background: var(--bg-secondary);
}

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

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

.media-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.media-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.media-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.reviewer-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.reviewer-info .role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* FAQ Section (All default expanded) */
.faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  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.2rem;
  color: var(--accent-light);
  transition: transform 0.2s ease;
}

details[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.faq-answer a {
  text-decoration: underline;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem auto 0 auto;
  max-width: 900px;
}

.cta-banner h2 {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer (Only 4 specific links) */
.site-footer {
  background: #070a11;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem 0;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Article & Content Pages */
.article-header {
  padding: 3rem 0 2rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 1rem;
  flex-wrap: wrap;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
}

.article-body h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 1.75rem 0 0.75rem 0;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

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

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.article-nav-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.article-nav-box h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.article-nav-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
}

/* Knowledge Hub Grid */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.knowledge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.knowledge-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.knowledge-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.knowledge-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.knowledge-card-excerpt {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .pricing-grid, .features-grid, .reviews-grid, .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }
  
  .site-header {
    padding: 0.75rem 0;
  }
  
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-intro {
    font-size: 1.05rem;
  }

  .pricing-grid, .features-grid, .media-grid, .reviews-grid, .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}

/* Reduced Motion Preference */
@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;
  }
}

/* Falling Sakura Canvas Effect */
.sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  display: block;
}
