/* CSSVariantEngine v3.0 — haotiyu.sh.cn */
/* Palette: centered-stage gold | Radius: airy-pill | Shadow: soft-pillowy */
/* Spacing: airy-rhythm | Transition: smooth-breathing */
/* Section layouts: {"news":"featured-top","features":"centered","hero":"left-aligned","testimonials":"carousel","partners":"grid-6","faq":"with-sidebar","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #d4af37;
    --color-primary-dark: #b8860b;
    --color-accent: #ffc83d;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --rgb-primary: 212, 175, 55;
    --rgb-accent: 255, 200, 61;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-sm: 0 4px 12px rgba(212, 175, 55, 0.07);
    --shadow-md: 0 12px 28px rgba(15, 15, 26, 0.1);
    --shadow-lg: 0 24px 60px rgba(15, 15, 26, 0.16);
    --space-section: 5.5rem;
    --space-card: 2.5rem;
    --space-gap: 2.25rem;
    --transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background-color: #0f0f1a;
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { 
    padding-top: var(--space-section); 
    padding-bottom: var(--space-section); 
    background-color: #ffffff;
    max-width: 920px;
    margin: 0 auto;
}
.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;
    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: centered */
/* 居中大卡片 */
.feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 1.8); max-width: 720px; margin: 0 auto; }

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

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

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

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

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

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

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

/* 条件性装饰 */
.card { border-left: 4px solid var(--color-primary); }
header, .header, .navbar { 
    box-shadow: 0 4px 16px rgba(15, 15, 26, 0.07); 
    background-color: #ffffff;
}

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