/* CSSVariantEngine v3.0 — yijingjidianjing.sx.cn */
/* Palette: gold-spotlight | Radius: large | Shadow: soft-pillowy */
/* Spacing: airy | Transition: smooth-slow */
/* Section layouts: {"news":"featured-top","features":"centered","hero":"centered","testimonials":"stacked","partners":"centered","faq":"with-sidebar","stats":"inline","cta":"full-bg"} */

:root {
    --color-primary: #b78628;
    --color-primary-dark: #8a651d;
    --color-accent: #f0c674;
    --color-surface: #fdfcff;
    --color-text: #1a1a2e;
    --rgb-primary: 183,134,40;
    --rgb-accent: 240,198,116;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 4px 12px rgba(15,15,26,.08);
    --shadow-md: 0 12px 28px rgba(15,15,26,.12);
    --shadow-lg: 0 24px 60px rgba(15,15,26,.16);
    --space-section: 4rem;
    --space-card: 2.25rem;
    --space-gap: 2.5rem;
    --transition: 0.6s cubic-bezier(0.3, 0, 0.1, 1);
    --heading-weight: 600;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #fdfcff; }
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-color: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: #ffffff; }
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: centered */
/* 居中大卡片 */
                .feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }

/* 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: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: full-bg */
.cta-section { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #0f0f1a; padding: 4rem 2rem; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #0f0f1a, #2d2d55); }
.hero h1, .hero h2 { color: #ffffff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.card { border: 1px solid rgba(var(--rgb-primary), .1); }
header, .header, .navbar { background: rgba(15,15,26,0.03); 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: 3.5rem; --space-card: 1.75rem; --space-gap: 2rem; }
    .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; }
}