/* ===== Light Theme Override ===== */
html[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-glass-hover: rgba(255, 255, 255, 0.95);
  --bg-elevated: #ffffff;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-hover: rgba(99, 102, 241, 0.4);
  --border-glow: rgba(99, 102, 241, 0.2);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 48px rgba(99, 102, 241, 0.1);
  --shadow-btn: 0 4px 20px rgba(99, 102, 241, 0.2);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.06);

  --gradient-surface: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(248,250,252,0.7));
}

/* Body background */
html[data-theme="light"] body {
  background-color: #f8fafc;
  color: #1e293b;
}
html[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(99,102,241,0.04) 0%, transparent 60%);
}
html[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(139,92,246,0.03) 0%, transparent 60%);
}

/* Navbar */
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .nav-links a {
  color: #475569;
}
html[data-theme="light"] .nav-links a:hover {
  color: #6366f1;
}
html[data-theme="light"] .nav-logo .logo-text {
  color: #1e293b;
}
html[data-theme="light"] .nav-toggle span {
  background: #475569;
}

/* Hero */
html[data-theme="light"] .hero {
  background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
}
html[data-theme="light"] .hero-glow-1,
html[data-theme="light"] .hero-glow-2 {
  opacity: 0.3;
}
html[data-theme="light"] .hero-grid {
  opacity: 0.03;
}
html[data-theme="light"] .hero-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}
html[data-theme="light"] .hero-title {
  color: #0f172a;
}
html[data-theme="light"] .hero-desc {
  color: #475569;
}
html[data-theme="light"] .stat-item {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .stat-label {
  color: #64748b;
}

/* Sections */
html[data-theme="light"] .section {
  background: transparent;
}
html[data-theme="light"] .section-dark {
  background: #f0f4ff;
}
html[data-theme="light"] .section-tag {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}
html[data-theme="light"] .section-title {
  color: #0f172a;
}
html[data-theme="light"] .section-desc {
  color: #64748b;
}

/* Cards */
html[data-theme="light"] .product-card,
html[data-theme="light"] .aftersales-card,
html[data-theme="light"] .advantage-card,
html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .aftersales-card:hover,
html[data-theme="light"] .advantage-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}
html[data-theme="light"] .product-card h3,
html[data-theme="light"] .aftersales-card h4,
html[data-theme="light"] .advantage-card h4 {
  color: #1e293b;
}
html[data-theme="light"] .product-card p,
html[data-theme="light"] .aftersales-card p,
html[data-theme="light"] .advantage-card p {
  color: #64748b;
}

/* Pricing */
html[data-theme="light"] .pricing-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
html[data-theme="light"] .pricing-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .pricing-featured {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}
html[data-theme="light"] .pricing-name {
  color: #1e293b;
}
html[data-theme="light"] .pricing-features li {
  color: #475569;
}
html[data-theme="light"] .pricing-note {
  color: #64748b;
}
html[data-theme="light"] .price-amount {
  color: #1e293b;
}
html[data-theme="light"] .price-period,
html[data-theme="light"] .price-currency {
  color: #64748b;
}

/* Pricing table (inline styles override) */
html[data-theme="light"] .pricing-table-desktop th {
  color: #64748b !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .pricing-table-desktop td {
  color: #1e293b !important;
}
html[data-theme="light"] .pricing-table-desktop tr {
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

/* Steps */
html[data-theme="light"] .step-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .step-card h4 {
  color: #1e293b;
}
html[data-theme="light"] .step-card p {
  color: #64748b;
}

/* FAQ */
html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .faq-question {
  color: #1e293b;
}
html[data-theme="light"] .faq-answer p {
  color: #475569;
}

/* Buttons */
html[data-theme="light"] .btn-outline {
  border-color: rgba(99, 102, 241, 0.3);
  color: #6366f1;
}
html[data-theme="light"] .btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: #6366f1;
}

/* Footer */
html[data-theme="light"] .footer {
  background: #0f172a;
  color: #e2e8f0;
}

/* Announcement bar */
html[data-theme="light"] .announcement-bar {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
html[data-theme="light"] .announcement-bar .banner-text {
  color: #4338ca;
}

/* Contact buy-flow cards (inline bg overrides) */
html[data-theme="light"] .buy-flow > div {
  background: rgba(99, 102, 241, 0.05) !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
}

/* Pricing table container */
html[data-theme="light"] .pricing-table-desktop {
  background: rgba(0, 0, 0, 0.01);
  border-radius: 12px;
}

/* Route badges */
html[data-theme="light"] .route-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}

/* Copy buttons */
html[data-theme="light"] .copy-btn {
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.3);
}

/* i18n lang switcher in light mode */
html[data-theme="light"] .lang-switcher-btn {
  border-color: #d1d5db;
  color: #475569;
}
html[data-theme="light"] .lang-switcher-btn:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

/* Mobile nav */
html[data-theme="light"] .nav-links {
  background: rgba(255, 255, 255, 0.98);
}
@media (max-width: 768px) {
  html[data-theme="light"] .nav-links.active {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

/* Scrollbar */
html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
