/* CSSVariantEngine v3.0 — web-about-crown.com.cn */
/* Palette: copper | Radius: pillowy | Shadow: soft-airy */
/* Spacing: airy | Transition: eased */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"minimal","testimonials":"stacked","partners":"scroll","faq":"with-sidebar","stats":"big-number","cta":"full-bg"} */

:root {
    --color-primary: #b45309;
    --color-primary-dark: #92400e;
    --color-accent: #f97316;
    --color-surface: #faf7f2;
    --color-text: #332e2a;
    --rgb-primary: 180,83,9;
    --rgb-accent: 249,115,22;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(68, 51, 35, 0.08), 0 1px 2px rgba(68, 51, 35, 0.04);
    --shadow-md: 0 10px 20px -8px rgba(68, 51, 35, 0.12), 0 6px 10px -6px rgba(68, 51, 35, 0.08), 0 2px 6px rgba(68, 51, 35, 0.04);
    --shadow-lg: 0 24px 48px -16px rgba(68, 51, 35, 0.18), 0 12px 24px -8px rgba(68, 51, 35, 0.12), 0 4px 12px rgba(68, 51, 35, 0.06);
    --space-section: 5.5rem;
    --space-card: 2.25rem;
    --space-gap: 1.75rem;
    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: var(--color-surface); }
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); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
.news-grid > *:first-child { grid-row: span 2; }

/* features: horizontal */
/* 水平滚动 */
.feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; }
.feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: minimal */
.hero { padding: 2.25rem 0; } .hero-content { max-width: 560px; }

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

/* partners: scroll */
/* 自动滚动 */
.partner-grid { display: flex; gap: 2.25rem; overflow: hidden; animation: partnerScroll 25s linear infinite; }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

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

/* stats: big-number */
/* 大数字居中 */
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem; }
.stats-grid .stat-value { font-size: 3rem; }

/* cta: full-bg */
.cta-section { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fffdf9; padding: 4.5rem 2.25rem; }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #b45309, #92400e); }
.card { border-left: 3px solid var(--color-primary); }
header, .header, .navbar { box-shadow: 0 4px 12px rgba(68, 51, 35, 0.08); }

/* 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.25rem; --space-card: 1.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; }
}