/* CSSVariantEngine v3.0 — zh-home-crown.com.cn */
/* Palette: ember-teal | Radius: airy | Shadow: pillowy */
/* Spacing: airy | Transition: springy */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"left-aligned","testimonials":"carousel","partners":"centered","faq":"with-sidebar","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #c2410c;
    --color-primary-dark: #7c2d12;
    --color-accent: #0f766e;
    --color-surface: #ffedd5;
    --color-text: #431407;
    --rgb-primary: 194, 65, 12;
    --rgb-accent: 15, 118, 110;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 4px 16px -4px rgba(194, 65, 12, 0.10), 0 2px 6px rgba(67, 20, 7, 0.05);
    --shadow-md: 0 12px 32px -8px rgba(194, 65, 12, 0.18), 0 4px 14px rgba(67, 20, 7, 0.07), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    --shadow-lg: 0 32px 64px -16px rgba(194, 65, 12, 0.28), 0 16px 32px -12px rgba(67, 20, 7, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    --space-section: 4.5rem;
    --space-card: 1.75rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { background: linear-gradient(180deg, #fffdf5 0%, #ffedd5 42%, #fed7aa 100%); color: var(--color-text); line-height: var(--body-line-height); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 2px rgba(67, 20, 7, 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-md); padding: var(--space-card); transition: var(--transition); background: rgba(255, 253, 245, 0.88); backdrop-filter: blur(12px) saturate(1.15); -webkit-backdrop-filter: blur(12px) saturate(1.15); outline: 1px solid rgba(194, 65, 12, 0.12); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: var(--shadow-sm); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(194, 65, 12, 0.35); }

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

/* news: masonry-2 */
/* 两列瀑布流 */
.news-grid { column-count: 2; column-gap: var(--space-gap); }
.news-grid .card { break-inside: avoid; margin-bottom: var(--space-gap); }

/* 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: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

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

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

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

/* stats: inline */
/* 水平排列 */
.stats-grid { display: flex; justify-content: center; gap: 3.5rem; }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #fffdf5, #ffedd5 55%, #fed7aa); border-radius: var(--radius-xl); padding: 3.5rem; text-align: center; box-shadow: 0 0 0 4px var(--color-accent), var(--shadow-lg); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-accent); text-decoration-color: rgba(15, 118, 110, 0.4); }
.card { border-left: 3px solid 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: 2.25rem; --space-card: 1.125rem; --space-gap: 0.875rem; }
    .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; }
}