/* CSSVariantEngine v3.0 — zh-int-yobo-game-qq.com.cn */
/* Palette: coral-teal | Radius: soft rounded | Shadow: layered elevation */
/* Spacing: mosaic balanced | Transition: smooth long */
/* Section layouts: {"news":"featured-left","features":"grid-4","hero":"overlay","testimonials":"stacked","partners":"grid-4","faq":"with-sidebar","stats":"grid-4","cta":"full-bg"} */

:root {
    --color-primary: #ff6b6b;
    --color-primary-dark: #d6336c;
    --color-accent: #4ecdc4;
    --color-surface: #f7fff7;
    --color-text: #1a535c;
    --rgb-primary: 255,107,107;
    --rgb-accent: 78,205,196;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(26, 83, 92, 0.08), 0 1px 3px rgba(26, 83, 92, 0.04);
    --shadow-md: 0 6px 18px rgba(26, 83, 92, 0.12), 0 3px 8px rgba(26, 83, 92, 0.07), 0 1px 2px rgba(26, 83, 92, 0.05);
    --shadow-lg: 0 14px 36px rgba(26, 83, 92, 0.18), 0 7px 18px rgba(26, 83, 92, 0.11), 0 3px 8px rgba(26, 83, 92, 0.07);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 600;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #f7fff7 0%, #f0fff4 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);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #ff6b6b, #4ecdc4, #ffe66d) 1;
    background: linear-gradient(145deg, #ffffff, #f0fff4);
}
.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition);
    background: linear-gradient(135deg, #ff6b6b, #d6336c);
    color: white;
    border-image: linear-gradient(135deg, #ffe66d, #4ecdc4) 1;
    border: 2px solid transparent;
}
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover {
    background: linear-gradient(135deg, #d6336c, #9d4edd);
    box-shadow: 0 0 16px rgba(var(--rgb-primary), 0.4);
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover {
    color: var(--color-accent);
    text-shadow: 0 0 4px rgba(var(--rgb-accent), 0.3);
}

/* ========== 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; background: linear-gradient(135deg, #fff0f0, #ffe0e8); }
.news-grid > *:nth-child(2) { background: linear-gradient(135deg, #e0fff9, #c8fff0); }
.news-grid > *:nth-child(3) { background: linear-gradient(135deg, #fffde0, #fff8c0); }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
.feature-list > *:nth-child(1) { background: linear-gradient(135deg, #fff0f0, #ffd6d6); }
.feature-list > *:nth-child(2) { background: linear-gradient(135deg, #e8fff7, #c0fff0); }
.feature-list > *:nth-child(3) { background: linear-gradient(135deg, #fff8e8, #fff0c0); }
.feature-list > *:nth-child(4) { background: linear-gradient(135deg, #f0e8ff, #e0c8ff); }

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

/* testimonials: stacked */
/* 垂直堆叠 */
.testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
.testimonial-list > * { background: linear-gradient(135deg, #ffffff, #f8fffd); }

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }
.partner-grid > * { background: linear-gradient(135deg, #f7fff7, #f0fff4); }

/* 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; }
.stats-grid > *:nth-child(1) { background: linear-gradient(135deg, #ff6b6b, #d6336c); color: white; }
.stats-grid > *:nth-child(2) { background: linear-gradient(135deg, #4ecdc4, #2a9d8f); color: white; }
.stats-grid > *:nth-child(3) { background: linear-gradient(135deg, #ffe66d, #f9c74f); color: #2d3142; }
.stats-grid > *:nth-child(4) { background: linear-gradient(135deg, #9d4edd, #7b2cbf); color: white; }

/* cta: full-bg */
.cta-section { 
    background: linear-gradient(120deg, #ff6b6b 0%, #d6336c 35%, #9d4edd 70%, #4ecdc4 100%); 
    color: #fff; 
    padding: 4rem 2rem; 
}

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { 
    background: linear-gradient(145deg, #ff9a76 0%, #ff6b6b 25%, #4ecdc4 65%, #1a535c 100%); 
}
header, .header, .navbar { 
    box-shadow: 0 4px 12px rgba(26, 83, 92, 0.1), 0 2px 6px rgba(26, 83, 92, 0.06); 
    background: linear-gradient(180deg, #ffffff, #f7fff7);
}

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