/* CSSVariantEngine v3.0 — mahjonggame.com.cn */
/* Palette: editorial neutrals | Radius: soft generous | Shadow: multi-layer warm */
/* Spacing: generous editorial | Transition: smooth long gradient-rich */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"overlay","testimonials":"carousel","partners":"grid-6","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #c44536;
    --color-primary-dark: #922b21;
    --color-accent: #6b705c;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 196,69,54;
    --rgb-accent: 107,112,92;
    --radius-sm: 3px;
    --radius-md: 7px;
    --radius-lg: 14px;
    --radius-xl: 22px;
    --shadow-sm: 0 2px 4px rgba(26,26,26,.06), 0 1px 2px rgba(26,26,26,.04);
    --shadow-md: 0 6px 12px rgba(26,26,26,.08), 0 3px 6px rgba(26,26,26,.05), 0 1px 2px rgba(26,26,26,.03);
    --shadow-lg: 0 16px 32px rgba(26,26,26,.1), 0 8px 16px rgba(26,26,26,.07), 0 2px 4px rgba(26,26,26,.04);
    --space-section: 4.5rem;
    --space-card: 1.6rem;
    --space-gap: 1.4rem;
    --transition: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(180deg, #f5f1e8 0%, #ede6d8 50%, #f5f1e8 100%);
}
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: linear-gradient(145deg, #ffffff 0%, #f7f3eb 100%);
    border: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(196,69,54,0.2) 0%, rgba(107,112,92,0.2) 100%) 1;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition);
    background: linear-gradient(135deg, #c44536 0%, #922b21 100%);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== 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: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: radial-gradient(circle at 70% 30%, rgba(196,69,54,0.08) 0%, transparent 60%), linear-gradient(180deg, #f5f1e8 0%, #e9e2d3 100%); }
                .hero-content { position: relative; z-index: 1; }

/* 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: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

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

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

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

/* 条件性装饰 */
header, .header, .navbar { 
    box-shadow: 0 4px 12px rgba(26,26,26,.07), 0 2px 4px rgba(26,26,26,.04);
    background: linear-gradient(90deg, #f5f1e8 0%, #faf7f1 50%, #f5f1e8 100%);
}

/* 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.2rem; --space-card: 1.1rem; --space-gap: 0.8rem; }
    .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; }
}