/* CSSVariantEngine v3.0 — PerfectWorldCompetitivePlatform.cn */
/* Palette: warm-sage | Radius: soft-medium | Shadow: glow-accent */
/* Spacing: airy-vertical | Transition: ease-warm */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"left-aligned","testimonials":"masonry","partners":"grid-6","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #87a878;
    --color-primary-dark: #678a59;
    --color-accent: #a7c499;
    --color-surface: #faf8f3;
    --color-text: #2d2d2d;
    --rgb-primary: 135, 168, 120;
    --rgb-accent: 167, 196, 153;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 13px;
    --radius-xl: 16px;
    --shadow-sm: 0 2px 6px rgba(45, 45, 45, 0.08);
    --shadow-md: 0 0 24px rgba(var(--rgb-primary), 0.3);
    --shadow-lg: 0 0 32px rgba(var(--rgb-primary), 0.5), 0 12px 28px rgba(45, 45, 45, 0.12);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.75rem;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
}

@keyframes gentle-pulse {
    0% { box-shadow: 0 0 18px rgba(var(--rgb-primary), 0.25); }
    50% { box-shadow: 0 0 26px rgba(var(--rgb-primary), 0.4); }
    100% { box-shadow: 0 0 18px rgba(var(--rgb-primary), 0.25); }
}

/* 基础覆盖 */
body { background-color: var(--color-surface); color: var(--color-text); line-height: var(--body-line-height); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); animation: gentle-pulse 4s infinite ease-in-out; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; }
a:not([class]) { color: var(--color-primary-dark); transition: var(--transition); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; }

/* features: horizontal */
/* 水平滚动 */
                .feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

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

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

/* Page Layout: narrow-centered */
/* 窄版居中 */
            .page-main { max-width: 740px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: 0 0 32px rgba(var(--rgb-primary), 0.6), 0 14px 32px rgba(45,45,45,0.15); animation-play-state: paused; }
header, .header, .navbar { background-color: var(--color-surface); box-shadow: 0 2px 12px rgba(var(--rgb-primary), 0.12); }

/* 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: 2.5rem; --space-card: 1rem; --space-gap: 1rem; }
    .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; }
}