/* CSSVariantEngine v3.0 — zh-aoke-okooo.com.cn */
/* Palette: editorial-cream | Radius: medium-rounded | Shadow: glow-accent */
/* Spacing: generous | Transition: smooth-glow */
/* Section layouts: {"news":"list-view","features":"grid-3","hero":"centered","testimonials":"carousel","partners":"centered","faq":"two-column","stats":"big-number","cta":"full-bg"} */

:root {
    --color-primary: #c44536;
    --color-primary-dark: #923328;
    --color-accent: #e8877a;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 196, 69, 54;
    --rgb-accent: 232, 135, 122;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-primary), 0.25);
    --shadow-md: 0 0 24px rgba(var(--rgb-primary), 0.4);
    --shadow-lg: 0 0 32px rgba(var(--rgb-primary), 0.6);
    --space-section: 4rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50% { box-shadow: 0 0 18px rgba(var(--rgb-primary), 0.35); }
}

/* 基础覆盖 */
body { color: var(--color-text); background-color: var(--color-surface); line-height: var(--body-line-height); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 2px rgba(0,0,0,0.05); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-card); transition: var(--transition); background-color: #fffdf9; border: 1px solid rgba(var(--rgb-primary), 0.08); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); border: 1px solid transparent; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-thickness: 1px; }

/* ========== 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: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

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

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

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; color: var(--color-primary); text-shadow: 0 0 8px rgba(var(--rgb-primary), 0.3); }

/* cta: full-bg */
.cta-section { background: linear-gradient(145deg, var(--color-primary), #70271f); color: #fff9f5; padding: 4rem 2rem; box-shadow: inset 0 0 60px rgba(0,0,0,0.15); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); animation: none; }
.card:not(:hover), [class*="card"]:not(:hover) { animation: subtle-pulse 4s ease-in-out infinite; }
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 6px rgba(var(--rgb-accent), 0.4); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, var(--color-primary), #852f25); box-shadow: 0 0 40px rgba(var(--rgb-primary), 0.3); }
header, .header, .navbar { background: rgba(245, 241, 232, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(var(--rgb-primary), 0.07); }

/* 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: 0.85rem; }
    .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; }
}