/* CSSVariantEngine v3.0 — sh-pashixun.com */
/* Palette: editorial-olive | Radius: soft-rounded | Shadow: warm-gradated */
/* Spacing: generous | Transition: smooth-long */
/* Section layouts: {"news":"featured-top","features":"grid-3","hero":"centered","testimonials":"stacked","partners":"centered","faq":"with-sidebar","stats":"grid-4","cta":"card-style"} */

:root {
    --color-primary: #6b705c;
    --color-primary-dark: #4a4e3e;
    --color-accent: #a8b09a;
    --color-surface: linear-gradient(135deg, #f7f3eb 0%, #f0e9dc 50%, #e8dfce 100%);
    --color-text: #1a1a1a;
    --rgb-primary: 107, 112, 92;
    --rgb-accent: 168, 176, 154;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --shadow-sm: 0 3px 10px rgba(var(--rgb-primary), 0.08), 0 1px 3px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 6px 22px rgba(var(--rgb-primary), 0.12), 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-lg: 0 12px 45px rgba(var(--rgb-primary), 0.16), 0 4px 15px rgba(26, 26, 26, 0.08);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #f5f1e8 0%, #eee9df 100%); }
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); background: linear-gradient(145deg, #ffffff 0%, #f7f3eb 100%); border: 1px solid transparent; border-image: linear-gradient(135deg, rgba(var(--rgb-primary), 0.1) 0%, rgba(245, 241, 232, 0.6) 100%) 1; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; border: none; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
                .news-grid > *:first-child { grid-column: span 3; }

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

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

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

/* cta: card-style */
.cta-inner { background: linear-gradient(120deg, #f5f1e8 0%, #e9e2d3 50%, #ddd5c2 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; border: 1px solid transparent; border-image: linear-gradient(90deg, rgba(var(--rgb-primary), 0.15) 0%, rgba(var(--rgb-accent), 0.4) 50%, rgba(var(--rgb-primary), 0.15) 100%) 1; }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
            .page-main { max-width: 1320px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-primary-dark); text-decoration-thickness: 2px; }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #6b705c 0%, #5a5f4d 30%, #4a4e3e 70%, #3b3f30 100%); color: #fff; }
header, .header, .navbar { box-shadow: 0 2px 12px rgba(var(--rgb-primary), 0.1), 0 1px 4px rgba(26, 26, 26, 0.05); background: rgba(245, 241, 232, 0.92); 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; }
    .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; }
}