/* CSSVariantEngine v3.0 — jifengyunapp.com.cn */
/* Palette: ocean-fire | Radius: medium rounded | Shadow: glow focused */
/* Spacing: mixed contrast | Transition: soft-ease */
/* Section layouts: {"news":"featured-top","features":"grid-4","hero":"overlay","testimonials":"carousel","partners":"centered","faq":"two-column","stats":"grid-3","cta":"card-style"} */

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 24px rgba(var(--rgb-accent), 0.4); }
    50% { box-shadow: 0 0 36px rgba(var(--rgb-accent), 0.55); }
}

:root {
    --color-primary: #0ea5e9;
    --color-primary-dark: #0369a1;
    --color-accent: #f97316;
    --color-surface: #f0fdfa;
    --color-text: #0c4a6e;
    --rgb-primary: 14, 165, 233;
    --rgb-accent: 249, 115, 22;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 2px 8px rgba(var(--rgb-primary), 0.15);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.4);
    --shadow-lg: 0 12px 32px rgba(var(--color-text), 0.1), 0 0 32px rgba(var(--rgb-accent), 0.5);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.4s ease-out;
    --heading-weight: 800;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f8fafc; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 2px rgba(var(--rgb-primary), 0.08); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.news.section { background-color: #fef3c7; }
.features.section { background-color: #ecfeff; }
.testimonials.section { background-color: #fff7ed; }
.partners.section { background-color: #f0fdf4; }
.faq.section { background-color: #f1f5f9; }
.stats.section { background-color: #f0f9ff; }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-card); transition: var(--transition); border: 2px solid rgba(var(--rgb-accent), 0.2); background-color: white; }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-md), 0 0 32px rgba(var(--rgb-accent), 0.6); transform: translateY(-2px); animation: none; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; border: 2px solid var(--color-primary-dark); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background-color: var(--color-accent); border-color: #ea580c; box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.5); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-thickness: 2px; text-underline-offset: 3px; caret-color: var(--color-accent); }

/* ========== 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-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: linear-gradient(120deg, var(--color-primary) 0%, #06b6d4 100%); }
.hero-content { position: relative; z-index: 1; color: white; text-shadow: 0 2px 12px rgba(0,0,0,0.2); }

/* 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: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card { animation: pulse-glow 5s ease-in-out infinite; }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; color: white; box-shadow: 0 0 40px rgba(var(--rgb-accent), 0.45); }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
.page-main { max-width: 1200px; margin: 0 auto; backdrop-filter: blur(0px); }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.card { accent-color: var(--color-accent); }

/* 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; }
}