/* CSSVariantEngine v3.0 — aigame-club.com.cn */
/* Palette: teal-amber mosaic | Radius: tight | Shadow: subtle */
/* Spacing: compact | Transition: snappy */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"overlay","testimonials":"stacked","partners":"centered","faq":"two-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #0d9488;
    --color-primary-dark: #115e59;
    --color-accent: #f59e0b;
    --color-surface: #f5f5f4;
    --color-text: #1c1917;
    --rgb-primary: 13,148,136;
    --rgb-accent: 245,158,11;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --shadow-sm: 0 1px 2px rgba(13,148,136,.08), 0 0 1px rgba(13,148,136,.05);
    --shadow-md: 0 2px 4px rgba(13,148,136,.07), 0 1px 2px rgba(13,148,136,.04);
    --shadow-lg: 0 4px 8px rgba(13,148,136,.09), 0 2px 4px rgba(13,148,136,.05);
    --space-section: 2.5rem;
    --space-card: 1rem;
    --space-gap: 0.875rem;
    --transition: 0.2s cubic-bezier(0.2, 0.6, 0.2, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { background: var(--color-surface); color: var(--color-text); line-height: var(--body-line-height); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { background: #ffffff; 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; background: #fff7ed; box-shadow: 0 0 0 1px rgba(245,158,11,.35), var(--shadow-lg); }

/* 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; background: #ffffff; border-radius: var(--radius-md); box-shadow: 0 0 0 1px rgba(13,148,136,.1), var(--shadow-sm); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: linear-gradient(135deg, #ccfbf1 0%, #fef3c7 100%); color: var(--color-text); }
.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; }

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

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

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

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

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.card { background: #fffbeb; border: 1px solid rgba(245,158,11,.28); }

/* 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: 1.75rem; --space-card: 0.875rem; --space-gap: 0.625rem; }
    .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; }
}