:root {
    --color-primary: #1a73e8;
    --color-primary-dark: #0d47a1;
    --color-accent: #00ffa3;
    --color-surface: #f0f4ff;
    --color-text: #0d1b2a;
    --rgb-primary: 26,115,232;
    --rgb-accent: 0,255,163;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 0 8px rgba(0,255,163,0.3);
    --shadow-md: 0 0 16px rgba(0,255,163,0.4);
    --shadow-lg: 0 0 24px rgba(0,255,163,0.5);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --heading-weight: 600;
    --body-line-height: 1.65;
    --glow-pulse: 0 0 16px rgba(0,255,163,0.4);
}

body { color: var(--color-text); line-height: var(--body-line-height); background: #ffffff; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }

/* Alternating horizontal strips — 4-step pattern: white, cream, dark, white */
section:nth-of-type(4n+1):not(.cta-section):not(.hero),
.section:nth-of-type(4n+1):not(.cta-section):not(.hero) { background: #ffffff; }
section:nth-of-type(4n+2):not(.cta-section):not(.hero),
.section:nth-of-type(4n+2):not(.cta-section):not(.hero) { background: #fef9ef; }  /* cream */
section:nth-of-type(4n+3):not(.cta-section):not(.hero),
.section:nth-of-type(4n+3):not(.cta-section):not(.hero) { background: #0d1b2a; color: #ffffff; }  /* dark */
section:nth-of-type(4n+4):not(.cta-section):not(.hero),
.section:nth-of-type(4n+4):not(.cta-section):not(.hero) { background: #ffffff; }
/* Override for specific sections that already have backgrounds */
.cta-section, .hero { background: transparent; }

section, .section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    position: relative;
    z-index: 1;
}

.card, [class*="card"] {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-card);
    transition: var(--transition);
    background: var(--surface);
    backdrop-filter: blur(4px);
}
.card:hover, [class*="card"]:hover {
    box-shadow: 0 0 32px rgba(0,255,163,0.6);
    transform: translateY(-2px);
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    animation: glow-pulse 3s infinite alternate;
}
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover {
    box-shadow: 0 0 24px rgba(0,255,163,0.7);
    background: linear-gradient(135deg, var(--color-primary-dark), #0d47a1);
}

a:not([class]) {
    color: var(--color-accent);
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(0,255,163,0.3);
}
a:not([class]):hover {
    color: #00e896;
    text-shadow: 0 0 16px rgba(0,255,163,0.6);
}

/* ========== Section Layout Variants ========== */

/* news: list-view */
.news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
.news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

/* features: grid-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* testimonials: carousel */
.testimonial-list { display: flex; overflow: hidden; }
.testimonial-list > * { flex: 0 0 100%; }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* faq: with-sidebar */
.faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: full-bg */
.cta-section { background: linear-gradient(135deg, var(--color-primary), #00e896); color: #fff; padding: 4rem 2rem; box-shadow: 0 0 40px rgba(0,255,163,0.5); }

/* Page Layout: narrow-centered */
.page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
header, .header, .navbar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 16px rgba(0,255,163,0.15);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .feature-list { grid-template-columns: repeat(2, 1fr) !important; }
    .partner-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-inner { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
    :root {
        --space-section: 2rem;
        --space-card: 1rem;
        --space-gap: 0.75rem;
        --shadow-sm: 0 0 4px rgba(0,255,163,0.2);
        --shadow-md: 0 0 8px rgba(0,255,163,0.3);
        --shadow-lg: 0 0 12px rgba(0,255,163,0.4);
    }
    .news-grid { grid-template-columns: 1fr !important; }
    .feature-list { grid-template-columns: 1fr !important; }
    .faq-list { grid-template-columns: 1fr !important; }
    .testimonial-list { column-count: 1 !important; }
    .partner-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cta-inner { grid-template-columns: 1fr !important; }
}

/* Glow effects — subtle pulsing */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 8px rgba(0,255,163,0.3), 0 0 16px rgba(0,255,163,0.1);
    }
    100% {
        box-shadow: 0 0 24px rgba(0,255,163,0.6), 0 0 40px rgba(0,255,163,0.3);
    }
}

/* Hover glow on interactive elements */
button:focus, .btn:focus, a[class*="btn"]:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0,255,163,0.3);
}

/* Ensure alternating text color for dark strips */
section:nth-of-type(4n+3) h1,
section:nth-of-type(4n+3) h2,
section:nth-of-type(4n+3) h3,
section:nth-of-type(4n+3) h4,
section:nth-of-type(4n+3) p,
.section:nth-of-type(4n+3) h1,
.section:nth-of-type(4n+3) h2,
.section:nth-of-type(4n+3) h3,
.section:nth-of-type(4n+3) h4,
.section:nth-of-type(4n+3) p {
    color: #ffffff;
}