/* 云析大数据 · global day/night theme */
:root { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --geo-bg: #f4f7fb;
  --geo-surface: #ffffff;
  --geo-surface-soft: #f8fafc;
  --geo-text: #172033;
  --geo-muted: #64748b;
  --geo-border: #dbe3ef;
}

html[data-theme="light"], html[data-theme="light"] body { background: var(--geo-bg) !important; color: var(--geo-text) !important; }
html[data-theme="light"] .dash-layout, html[data-theme="light"] .admin-layout, html[data-theme="light"] .dash-main, html[data-theme="light"] .admin-main, html[data-theme="light"] .dash-content, html[data-theme="light"] .admin-content, html[data-theme="light"] .auth-wrap { background: var(--geo-bg) !important; color: var(--geo-text) !important; }
html[data-theme="light"] .g-nav, html[data-theme="light"] .dash-topbar, html[data-theme="light"] .admin-topbar { background: rgba(255,255,255,.96) !important; border-color: var(--geo-border) !important; box-shadow: 0 1px 8px rgba(15,23,42,.06) !important; }
html[data-theme="light"] .dash-sidebar, html[data-theme="light"] .admin-sidebar { background: #fff !important; border-color: var(--geo-border) !important; }
html[data-theme="light"] .dash-logo, html[data-theme="light"] .admin-logo { border-color: var(--geo-border) !important; }
html[data-theme="light"] .dash-logo small, html[data-theme="light"] .admin-logo small, html[data-theme="light"] .dash-sidebar-footer, html[data-theme="light"] .admin-footer { color: var(--geo-muted) !important; -webkit-text-fill-color: var(--geo-muted) !important; border-color: var(--geo-border) !important; }
html[data-theme="light"] .dash-menu-item, html[data-theme="light"] .dash-menu-group > summary, html[data-theme="light"] .dash-submenu-item, html[data-theme="light"] .admin-menu-item { color: #475569 !important; }
html[data-theme="light"] .dash-menu-item:hover, html[data-theme="light"] .dash-menu-group > summary:hover, html[data-theme="light"] .admin-menu-item:hover { background: #f1f5f9 !important; color: #0f172a !important; }
html[data-theme="light"] .dash-menu-item.active, html[data-theme="light"] .dash-submenu-item.active, html[data-theme="light"] .dash-menu-group[open] > summary, html[data-theme="light"] .admin-menu-item.active { background: #eaf1ff !important; color: #1d4ed8 !important; }
html[data-theme="light"] .dash-topbar .page-title, html[data-theme="light"] .admin-topbar .title, html[data-theme="light"] .dash-user .name, html[data-theme="light"] .admin-user .name { color: #0f172a !important; }
html[data-theme="light"] .dash-user .logout, html[data-theme="light"] .admin-user .logout { color: #64748b !important; }
html[data-theme="light"] .dash-user .logout:hover, html[data-theme="light"] .admin-user .logout:hover { background: #fee2e2 !important; color: #b91c1c !important; }

html[data-theme="light"] .g-card, html[data-theme="light"] .tech-card, html[data-theme="light"] .stat-card, html[data-theme="light"] .metric-card, html[data-theme="light"] .balance-card, html[data-theme="light"] .preview-card, html[data-theme="light"] .feature-card, html[data-theme="light"] .price-card, html[data-theme="light"] .faq-item, html[data-theme="light"] .final-cta, html[data-theme="light"] .auth-card, html[data-theme="light"] .login-side, html[data-theme="light"] .questions-card { background: var(--geo-surface) !important; border-color: var(--geo-border) !important; box-shadow: 0 8px 28px rgba(15,23,42,.06) !important; }
html[data-theme="light"] .g-card:hover, html[data-theme="light"] .tech-card:hover { border-color: #c7d2fe !important; }
html[data-theme="light"] .g-page-title, html[data-theme="light"] .section-title, html[data-theme="light"] .feature-title, html[data-theme="light"] .price-name, html[data-theme="light"] .step-title, html[data-theme="light"] .auth-title, html[data-theme="light"] .form-header .welcome, html[data-theme="light"] .brand-top .logo-text .name { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; background: none !important; }
html[data-theme="light"] .g-page-subtitle, html[data-theme="light"] .section-desc, html[data-theme="light"] .feature-desc, html[data-theme="light"] .price-desc, html[data-theme="light"] .step-desc, html[data-theme="light"] .form-header .welcome-sub, html[data-theme="light"] .form-label, html[data-theme="light"] .hero-sub, html[data-theme="light"] .feature-item, html[data-theme="light"] .brand-bottom, html[data-theme="light"] .bottom-hint, html[data-theme="light"] .auth-footer { color: var(--geo-muted) !important; -webkit-text-fill-color: var(--geo-muted) !important; }

/* Inline dark surfaces and labels used heavily by page fragments */
html[data-theme="light"] [style*="background:rgba(0,0,0"],
html[data-theme="light"] [style*="background: rgba(0,0,0"],
html[data-theme="light"] [style*="background:rgba(8,8,18"],
html[data-theme="light"] [style*="background: rgba(8, 8, 18"] { background: var(--geo-surface-soft) !important; }
html[data-theme="light"] [style*="background:rgba(255,255,255,0.03"],
html[data-theme="light"] [style*="background: rgba(255,255,255,0.03"],
html[data-theme="light"] [style*="background:rgba(255,255,255,0.04"],
html[data-theme="light"] [style*="background: rgba(255,255,255,0.04"],
html[data-theme="light"] [style*="background:rgba(255,255,255,0.05"],
html[data-theme="light"] [style*="background: rgba(255,255,255,0.05"],
html[data-theme="light"] [style*="background:rgba(255,255,255,0.06"],
html[data-theme="light"] [style*="background: rgba(255,255,255,0.06"] { background: var(--geo-surface) !important; }
html[data-theme="light"] [style*="background:#0a0a1a"], html[data-theme="light"] [style*="background: #0a0a1a"],
html[data-theme="light"] [style*="background:#06060f"], html[data-theme="light"] [style*="background: #06060f"],
html[data-theme="light"] [style*="background:#0a0a14"], html[data-theme="light"] [style*="background: #0a0a14"],
html[data-theme="light"] [style*="background:#0b0b16"], html[data-theme="light"] [style*="background: #0b0b16"],
html[data-theme="light"] [style*="background:#12122a"], html[data-theme="light"] [style*="background: #12122a"] { background: var(--geo-bg) !important; }
html[data-theme="light"] [style*="border:1px solid rgba(255,255,255"],
html[data-theme="light"] [style*="border: 1px solid rgba(255,255,255"],
html[data-theme="light"] [style*="border-color:rgba(255,255,255"],
html[data-theme="light"] [style*="border-color: rgba(255,255,255"],
html[data-theme="light"] [style*="border-bottom:1px solid rgba(255,255,255"],
html[data-theme="light"] [style*="border-bottom: 1px solid rgba(255,255,255"],
html[data-theme="light"] [style*="border-top:1px solid rgba(255,255,255"],
html[data-theme="light"] [style*="border-top: 1px solid rgba(255,255,255"] { border-color: var(--geo-border) !important; }
html[data-theme="light"] [style*="color:#fff"], html[data-theme="light"] [style*="color: #fff"],
html[data-theme="light"] [style*="color:#e8e8f0"], html[data-theme="light"] [style*="color: #e8e8f0"] { color: var(--geo-text) !important; -webkit-text-fill-color: var(--geo-text) !important; }
html[data-theme="light"] [style*="color:#a8b8ff"], html[data-theme="light"] [style*="color: #a8b8ff"] { color: #3155b5 !important; }
html[data-theme="light"] [style*="color:#e8a8ff"], html[data-theme="light"] [style*="color: #e8a8ff"] { color: #7e3fa8 !important; }
html[data-theme="light"] [style*="color:#888"], html[data-theme="light"] [style*="color: #888"],
html[data-theme="light"] [style*="color:#999"], html[data-theme="light"] [style*="color: #999"],
html[data-theme="light"] [style*="color:#666"], html[data-theme="light"] [style*="color: #666"],
html[data-theme="light"] [style*="color:#777"], html[data-theme="light"] [style*="color: #777"],
html[data-theme="light"] [style*="color:#5A5A68"], html[data-theme="light"] [style*="color: #5A5A68"],
html[data-theme="light"] [style*="color:#8F8F9E"], html[data-theme="light"] [style*="color: #8F8F9E"],
html[data-theme="light"] [style*="color:#8a8a9a"], html[data-theme="light"] [style*="color: #8a8a9a"],
html[data-theme="light"] [style*="color:#8a8aa0"], html[data-theme="light"] [style*="color: #8a8aa0"] { color: var(--geo-muted) !important; }

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), html[data-theme="light"] textarea, html[data-theme="light"] select { background: #fff !important; color: #172033 !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] option { background: #fff; color: #172033; }
html[data-theme="light"] .g-btn-primary, html[data-theme="light"] .login-btn, html[data-theme="light"] .auth-btn, html[data-theme="light"] .cta-primary, html[data-theme="light"] .nav-btn-register, html[data-theme="light"] .price-btn { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="light"] .g-btn-secondary, html[data-theme="light"] .cta-secondary { background: #f1f5fb !important; color: #3155b5 !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .g-btn-secondary:hover, html[data-theme="light"] .cta-secondary:hover { background: #e8efff !important; color: #1d4ed8 !important; }
html[data-theme="light"] table th, html[data-theme="light"] table td { border-color: var(--geo-border) !important; }
html[data-theme="light"] table th { color: #475569 !important; }
html[data-theme="light"] pre, html[data-theme="light"] code { background: #f1f5f9 !important; color: #334155 !important; }
html[data-theme="light"] .bg-glow { opacity: .32 !important; }
html[data-theme="light"] .nav { background: rgba(255,255,255,.94) !important; border-color: var(--geo-border) !important; }
html[data-theme="light"] .nav-btn-login, html[data-theme="light"] .nav-links a { color: #475569 !important; }
html[data-theme="light"] .nav-btn-login:hover { color: #111827 !important; }
html[data-theme="light"] .hero h1, html[data-theme="light"] .hero-preview-bar .url, html[data-theme="light"] .service-title, html[data-theme="light"] .section-title { color: #111827 !important; -webkit-text-fill-color: #111827 !important; background: none !important; }
html[data-theme="light"] .hero-desc, html[data-theme="light"] .hero-preview-bar, html[data-theme="light"] .preview-sidebar-item, html[data-theme="light"] .preview-card .label, html[data-theme="light"] .footer, html[data-theme="light"] .section-desc { color: var(--geo-muted) !important; }
html[data-theme="light"] .hero-preview-bar { background: #f1f5f9 !important; border-color: var(--geo-border) !important; }
html[data-theme="light"] .preview-sidebar-item, html[data-theme="light"] .preview-card { background: #fff !important; border-color: var(--geo-border) !important; }

/* Login / register */
html[data-theme="light"] .brand-side { background: linear-gradient(135deg, #eef4ff, #f7f3ff) !important; }
html[data-theme="light"] .login-side { background: #fff !important; border-left-color: var(--geo-border) !important; }
html[data-theme="light"] .login-side::before { opacity: .45; }
html[data-theme="light"] .brand-mid .hero-title { background: none !important; color: #111827 !important; -webkit-text-fill-color: #111827 !important; }
html[data-theme="light"] .brand-top .logo-text .tag, html[data-theme="light"] .brand-bottom, html[data-theme="light"] .hero-sub, html[data-theme="light"] .feature-item { color: var(--geo-muted) !important; }
html[data-theme="light"] .form-header .welcome { color: #111827 !important; }
html[data-theme="light"] .form-header .welcome-sub, html[data-theme="light"] .form-label, html[data-theme="light"] .input-icon, html[data-theme="light"] .bottom-hint, html[data-theme="light"] .remember-row, html[data-theme="light"] .remember-hint { color: var(--geo-muted) !important; }
html[data-theme="light"] .form-input { background: #fff !important; color: #172033 !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .form-input:focus { background: #fff !important; border-color: #8b5cf6 !important; }
html[data-theme="light"] .captcha-img { background: #fff !important; border-color: #cbd5e1 !important; }
html[data-theme="light"] .auth-wrap { background: var(--geo-bg) !important; }
html[data-theme="light"] .auth-card { background: #fff !important; border-color: var(--geo-border) !important; }
html[data-theme="light"] .auth-title, html[data-theme="light"] .auth-logo .title { color: #111827 !important; -webkit-text-fill-color: #111827 !important; }
html[data-theme="light"] .auth-logo .sub, html[data-theme="light"] .auth-footer, html[data-theme="light"] .form-tip { color: var(--geo-muted) !important; }
html[data-theme="light"] .auth-card::before { opacity: .35; }
html[data-theme="light"] body::before { opacity: .18; }
html[data-theme="light"] img[src*="logo-white"], html[data-theme="light"] img[src*="logo-mark-white"] { filter: brightness(0) saturate(100%) opacity(.82); }

/* Floating switch */
#geo-theme-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 99999; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(16,20,38,.92); color: #fff; font: 600 12px/1.2 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22); backdrop-filter: blur(10px); transition: transform .18s, box-shadow .18s, background .18s; }
#geo-theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(80,100,255,.28); }
html[data-theme="light"] #geo-theme-toggle { background: #fff; color: #1e293b; border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
@media (max-width: 640px) { #geo-theme-toggle { right: 12px; bottom: 12px; padding: 8px 11px; } }