/* 亮色主题：保留 #5E6AD2 主色调，覆盖暗色默认变量与硬编码样式 */

[data-theme="light"] {
    --background-deep: #E2E7F2;
    --background-base: #F4F6FB;
    --background-elevated: #FFFFFF;
    --surface: rgba(94, 106, 210, 0.06);
    --surface-hover: rgba(94, 106, 210, 0.10);
    --foreground: #1A1D26;
    --foreground-muted: #5C6370;
    --foreground-subtle: rgba(26, 29, 38, 0.62);
    --accent: #5E6AD2;
    --accent-bright: #4F57C8;
    --accent-glow: rgba(94, 106, 210, 0.22);
    --border-default: rgba(26, 29, 38, 0.045);
    --border-hover: rgba(26, 29, 38, 0.08);
    --border-accent: rgba(94, 106, 210, 0.22);
    --shadow-card: 0 1px 2px rgba(26, 29, 38, 0.03), 0 6px 18px rgba(94, 106, 210, 0.04);
    --shadow-card-hover: 0 2px 6px rgba(26, 29, 38, 0.04), 0 10px 24px rgba(94, 106, 210, 0.05);
    --shadow-accent: 0 0 0 1px rgba(94, 106, 210, 0.42), 0 4px 14px rgba(94, 106, 210, 0.28), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    --primary-light: rgba(94, 106, 210, 0.10);
    --scrollbar-track: #E8EBF2;
    --scrollbar-thumb: #B8BFD0;
    --scrollbar-thumb-hover: #9AA3B8;
    --scrollbar-button-bg: #E8EBF2;
    --scrollbar-arrow: #6B7280;
    --scrollbar-accent: #5E6AD2;

    color-scheme: light;
}

[data-theme="light"] body {
    background: radial-gradient(ellipse at top, #FFFFFF 0%, var(--background-base) 68%, var(--background-deep) 100%);
}

[data-theme="light"] .bg-noise {
    opacity: 0.025;
}

[data-theme="light"] .bg-grid {
    opacity: 0.045;
    background-image:
        linear-gradient(to right, rgba(94, 106, 210, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(94, 106, 210, 0.12) 1px, transparent 1px);
}

[data-theme="light"] .blob-1 {
    background: radial-gradient(circle at 30% 30%, rgba(94, 106, 210, 0.10), rgba(94, 106, 210, 0.03) 55%, transparent 70%);
}

[data-theme="light"] .blob-2 {
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.06), rgba(236, 72, 153, 0.02) 55%, transparent 72%);
}

[data-theme="light"] .blob-3 {
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.02) 55%, transparent 74%);
}

[data-theme="light"] .blob-4 {
    background: radial-gradient(circle at 40% 40%, rgba(94, 106, 210, 0.06), rgba(94, 106, 210, 0.02) 55%, transparent 76%);
}

[data-theme="light"] .section + .section::after {
    background: linear-gradient(
        to right,
        rgba(94, 106, 210, 0) 0%,
        rgba(94, 106, 210, 0) 8%,
        rgba(94, 106, 210, 0.14) 42%,
        rgba(94, 106, 210, 0.14) 58%,
        rgba(94, 106, 210, 0) 92%,
        rgba(94, 106, 210, 0) 100%
    );
    opacity: 0.75;
}

[data-theme="light"] .section-badge {
    background: rgba(94, 106, 210, 0.08);
    color: rgba(79, 87, 200, 0.88);
}

[data-theme="light"] .section-title {
    background: linear-gradient(to bottom, #1A1D26, #2C3140 45%, #4A5164);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .section-subtitle {
    color: rgba(26, 29, 38, 0.62);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(26, 29, 38, 0.08);
}

[data-theme="light"] .header.is-scrolled {
    box-shadow: 0 0 0 1px rgba(26, 29, 38, 0.06), 0 12px 40px rgba(26, 29, 38, 0.08) !important;
}

[data-theme="light"] .brand-tag {
    background: rgba(94, 106, 210, 0.08);
    border-color: rgba(94, 106, 210, 0.16);
    color: rgba(26, 29, 38, 0.62);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .brand-tag-icon {
    filter: none;
    opacity: 0.85;
}

[data-theme="light"] .nav a {
    color: rgba(26, 29, 38, 0.68);
    font-weight: 600;
}

[data-theme="light"] .nav a:hover {
    color: var(--foreground);
}

[data-theme="light"] .mobile-menu-btn,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .github-link {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 29, 38, 0.10);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(26, 29, 38, 0.04);
}

[data-theme="light"] .github-link:hover,
[data-theme="light"] .theme-toggle:hover {
    background: rgba(94, 106, 210, 0.06);
    border-color: rgba(94, 106, 210, 0.18);
    color: var(--foreground);
}

[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(26, 29, 38, 0.10);
}

[data-theme="light"] .mobile-nav-links a {
    background: rgba(94, 106, 210, 0.05);
    border-color: rgba(26, 29, 38, 0.06);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .mobile-nav-links a:hover {
    background: rgba(94, 106, 210, 0.10);
    border-color: rgba(94, 106, 210, 0.18);
}

[data-theme="light"] .btn-outline {
    background: rgba(255, 255, 255, 0.92);
    color: var(--foreground);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(26, 29, 38, 0.04);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(94, 106, 210, 0.06);
    border-color: rgba(94, 106, 210, 0.22);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.36), 0 4px 12px rgba(94, 106, 210, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .card,
[data-theme="light"] .case-card,
[data-theme="light"] .benefit-item,
[data-theme="light"] .knowledge-card,
[data-theme="light"] .pricing-container,
[data-theme="light"] .faq-container {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(26, 29, 38, 0.045);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .case-card:hover,
[data-theme="light"] .benefit-item:hover,
[data-theme="light"] .knowledge-card:hover,
[data-theme="light"] .pricing-container:hover,
[data-theme="light"] .faq-container:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(26, 29, 38, 0.07);
    box-shadow: var(--shadow-card-hover);
    transform: none;
}

[data-theme="light"] .card::before,
[data-theme="light"] .case-card::before,
[data-theme="light"] .benefit-item::before,
[data-theme="light"] .knowledge-card::before,
[data-theme="light"] .pricing-container::before,
[data-theme="light"] .faq-container::before {
    opacity: 0.28;
    background: linear-gradient(to right, transparent, rgba(94, 106, 210, 0.05), transparent);
}

[data-theme="light"] .card::after,
[data-theme="light"] .case-card::after,
[data-theme="light"] .benefit-item::after,
[data-theme="light"] .knowledge-card::after,
[data-theme="light"] .pricing-container::after,
[data-theme="light"] .faq-container::after {
    background: linear-gradient(to bottom, rgba(94, 106, 210, 0.12), rgba(94, 106, 210, 0.04) 35%, transparent 70%);
}

[data-theme="light"] .card:hover::after,
[data-theme="light"] .case-card:hover::after,
[data-theme="light"] .benefit-item:hover::after,
[data-theme="light"] .knowledge-card:hover::after,
[data-theme="light"] .pricing-container:hover::after,
[data-theme="light"] .faq-container:hover::after {
    opacity: 0.4;
}

[data-theme="light"] .footer {
    background: #F8F9FC;
    color: rgba(26, 29, 38, 0.88);
}

[data-theme="light"] .footer .logo-text {
    color: rgba(26, 29, 38, 0.92);
}

[data-theme="light"] .footer-desc {
    color: rgba(26, 29, 38, 0.72);
}

[data-theme="light"] .footer-text {
    color: rgba(26, 29, 38, 0.68);
}

[data-theme="light"] .footer-text i {
    background: rgba(26, 29, 38, 0.05);
    border-color: rgba(26, 29, 38, 0.10);
    color: rgba(26, 29, 38, 0.55);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(26, 29, 38, 0.06);
    color: rgba(26, 29, 38, 0.50);
}

[data-theme="light"] .qr-item h4 {
    color: rgba(26, 29, 38, 0.88);
}

[data-theme="light"] .qr-item p {
    color: rgba(26, 29, 38, 0.55);
}

[data-theme="light"] .qr-img {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 29, 38, 0.08);
}

[data-theme="light"] .tool-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(26, 29, 38, 0.62);
    border-color: rgba(26, 29, 38, 0.08);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .tool-btn:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 29, 38, 0.12);
}

/* index.css 页面专用亮色覆盖 */

[data-theme="light"] .hero {
    background: #ffffff;
}

[data-theme="light"] .hero-bg-stripes {
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        #f3f4f6 2px,
        #f3f4f6 4px
    );
}

[data-theme="light"] .hero-bg-mesh {
    display: none;
}

[data-theme="light"] .hero-bg-grid {
    opacity: 0.035;
    background-image:
        linear-gradient(to right, rgba(26, 29, 38, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 29, 38, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb {
    display: none;
}

[data-theme="light"] .hero-bg-beam {
    display: none;
}

[data-theme="light"] .hero-bg-fade {
    height: 96px;
    background: linear-gradient(to bottom, transparent, #ffffff 55%, var(--background-base));
}

[data-theme="light"] .hero::before {
    display: none;
}

[data-theme="light"] .brand-tag--hero {
    background: rgba(94, 106, 210, 0.08);
    border-color: rgba(94, 106, 210, 0.16);
    color: rgba(26, 29, 38, 0.82);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .brand-tag--hero .brand-tag-icon {
    opacity: 0.92;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(to bottom, #12141A, #1A1D26 42%, #3A4050);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

[data-theme="light"] .hero-title .text-primary {
    background: linear-gradient(
        90deg,
        rgba(79, 87, 200, 1),
        rgba(94, 106, 210, 1),
        rgba(72, 82, 198, 1)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

[data-theme="light"] .hero-subtitle {
    color: rgba(26, 29, 38, 0.68);
}

[data-theme="light"] .hero-meta {
    color: rgba(26, 29, 38, 0.48);
}

[data-theme="light"] .hero-meta strong {
    color: rgba(26, 29, 38, 0.72);
}

[data-theme="light"] .hero-meta li:not(:last-child)::after {
    background: rgba(26, 29, 38, 0.12);
}

[data-theme="light"] .hero-note {
    color: rgba(26, 29, 38, 0.48);
}

[data-theme="light"] .hero-showcase-frame {
    border: none;
    background: transparent;
    filter:
        drop-shadow(0 10px 28px rgba(26, 29, 38, 0.06))
        drop-shadow(0 4px 12px rgba(26, 29, 38, 0.04));
}

[data-theme="light"] .hero-showcase-frame::before {
    display: none;
}

[data-theme="light"] .hero-carousel-dot {
    background: rgba(26, 29, 38, 0.16);
}

[data-theme="light"] .hero-carousel-dot:hover:not(.is-active) {
    background: rgba(26, 29, 38, 0.28);
}

[data-theme="light"] .hero-carousel-dot.is-active {
    background: var(--accent);
}

[data-theme="light"] .scroll-down-hint {
    border-color: rgba(26, 29, 38, 0.08);
    color: rgba(26, 29, 38, 0.72);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 8px 24px rgba(26, 29, 38, 0.08);
}

[data-theme="light"] .scroll-down-hint:hover {
    color: var(--accent);
    border-color: rgba(94, 106, 210, 0.24);
    background: #FFFFFF;
}

[data-theme="light"] .intro-lead {
    color: rgba(26, 29, 38, 0.78);
}

[data-theme="light"] .coverage-list li {
    color: rgba(26, 29, 38, 0.72);
}

[data-theme="light"] .feature-icon {
    background: rgba(94, 106, 210, 0.05);
    border-color: rgba(94, 106, 210, 0.08);
    box-shadow: none;
}

[data-theme="light"] .feature-tags span {
    color: rgba(79, 87, 200, 0.88);
    background: rgba(94, 106, 210, 0.05);
    border-color: rgba(94, 106, 210, 0.10);
}

[data-theme="light"] .guide-timeline-marker {
    color: rgba(79, 87, 200, 0.98);
    background: rgba(94, 106, 210, 0.10);
    border-color: rgba(94, 106, 210, 0.20);
}

[data-theme="light"] .guide-timeline-item:not(:last-child)::after {
    background: linear-gradient(to bottom, rgba(94, 106, 210, 0.28), rgba(94, 106, 210, 0.06));
}

[data-theme="light"] .guide-supplement-label {
    color: rgba(26, 29, 38, 0.42);
}

[data-theme="light"] .guide-supplement-body ol {
    color: rgba(26, 29, 38, 0.72);
}

[data-theme="light"] code,
[data-theme="light"] kbd {
    background: rgba(94, 106, 210, 0.08);
    border-color: rgba(94, 106, 210, 0.14);
    color: rgba(79, 87, 200, 0.95);
}

[data-theme="light"] .code-block {
    background: rgba(94, 106, 210, 0.05);
    border-color: rgba(94, 106, 210, 0.12);
}

[data-theme="light"] .code-block code {
    color: #2C3140;
    background: transparent;
    border: none;
    padding: 0;
}

[data-theme="light"] .modal-overlay {
    background: rgba(244, 246, 251, 0.72);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .modal-panel,
[data-theme="light"] .modal-panel--wechat {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.96));
    border-color: rgba(26, 29, 38, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 18px 48px rgba(26, 29, 38, 0.10),
        0 0 80px rgba(94, 106, 210, 0.08);
    backdrop-filter: none;
}

[data-theme="light"] .modal-close {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(26, 29, 38, 0.10);
    color: rgba(26, 29, 38, 0.62);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(26, 29, 38, 0.04);
}

[data-theme="light"] .modal-close:hover {
    background: rgba(94, 106, 210, 0.06);
    border-color: rgba(94, 106, 210, 0.18);
    color: var(--foreground);
}

[data-theme="light"] .modal-wechat-title {
    color: var(--foreground);
}

[data-theme="light"] .modal-wechat-desc {
    color: rgba(26, 29, 38, 0.58);
}

[data-theme="light"] .modal-wechat-qr {
    padding: 8px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(26, 29, 38, 0.08);
    box-shadow: 0 8px 24px rgba(26, 29, 38, 0.08);
}

[data-theme="light"] .modal-wechat-qr img {
    border-radius: 8px;
}

@media (max-width: 768px) {
    [data-theme="light"] .hero-title {
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        color: #1A1D26;
        -webkit-text-fill-color: #1A1D26;
    }

    [data-theme="light"] .hero-title .text-primary {
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        color: var(--accent);
        -webkit-text-fill-color: var(--accent);
    }
}
