/* CSSVariantEngine v3.0 — aishangtiyu.net.cn */
/* Palette: warm amber gradient | Radius: soft rounded | Shadow: multi-layer tinted */
/* Spacing: generous | Transition: smooth long ease */
/* Section layouts: {"news":"grid-4","features":"centered","hero":"overlay","testimonials":"masonry","partners":"centered","faq":"with-sidebar","stats":"grid-4","cta":"full-bg"} */

:root {
    --color-primary: #d97706;
    --color-primary-dark: #7c2d12;
    --color-accent: #fbbf24;
    --color-surface: #fffbeb;
    --color-text: #291507;
    --rgb-primary: 217, 119, 6;
    --rgb-accent: 251, 191, 36;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(217, 119, 6, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px rgba(217, 119, 6, 0.12), 0 3px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 32px rgba(217, 119, 6, 0.18), 0 6px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --space-section: 4.5rem;
    --space-card: 1.6rem;
    --space-gap: 1.3rem;
    --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.7;
    caret-color: var(--color-primary);
    accent-color: var(--color-accent);
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(to bottom, #ffffff, #fff7ed); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 2px rgba(217, 119, 6, 0.1); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); background: linear-gradient(to bottom, var(--color-surface), #fef3c7); }
section:nth-child(even) { background: linear-gradient(to bottom, #ffffff, #fffbeb); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background: linear-gradient(145deg, #ffffff, #fff7ed); border: 1px solid transparent; border-image: linear-gradient(135deg, #fcd34d, #d97706, #92400e) 1 round; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); color: white; border: none; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-4 */
/* 四列紧凑网格 */
                .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* 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: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

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

/* cta: full-bg */
.cta-section { background: linear-gradient(90deg, #78350f 0%, #92400e 35%, #d97706 75%, #f59e0b 100%); color: var(--color-surface); padding: 4rem 2rem; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 4px rgba(251, 191, 36, 0.4); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(180deg, #ea580c 0%, #d97706 25%, #b45309 65%, #7c2d12 100%); }
header, .header, .navbar { background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,247,237,0.85)); 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: 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; }
}