/* CSSVariantEngine v3.0 — qq-9game.com.cn */
/* Palette: ember-teal | Radius: blocky | Shadow: layered-gradient */
/* Spacing: balanced | Transition: smooth */
/* Section layouts: {"news":"featured-left","features":"grid-4","hero":"overlay","testimonials":"stacked","partners":"scroll","faq":"with-sidebar","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #0f766e;
    --color-primary-dark: #0b4f4a;
    --color-accent: #f97316;
    --color-surface: #fff7ed;
    --color-text: #1c1917;
    --rgb-primary: 15,118,110;
    --rgb-accent: 249,115,22;
    --radius-sm: 4px;
    --radius-md: 7px;
    --radius-lg: 11px;
    --radius-xl: 15px;
    --shadow-sm: 0 2px 3px -1px rgba(15,118,110,.22);
    --shadow-md: 0 3px 7px -2px rgba(15,118,110,.28), 0 1px 3px rgba(249,115,22,.14);
    --shadow-lg: 0 8px 18px -6px rgba(15,118,110,.32), 0 3px 8px -2px rgba(249,115,22,.20), 0 0 0 1px rgba(15,118,110,.06);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(160deg, #fff7ed 0%, #f0fdfa 55%, #ecfeff 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%, #f0fdfa 100%); border: 1px solid rgba(15,118,110,.16); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); border-color: rgba(249,115,22,.42); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(120deg, #0f766e 0%, #0b4f4a 100%); color: #fff7ed; border: 1px solid rgba(249,115,22,.30); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background: linear-gradient(120deg, #f97316 0%, #ea580c 100%); color: #fff7ed; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-accent); }

/* ========== 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(150deg, #ccfbf1 0%, #ecfeff 60%, #fff7ed 100%); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
.feature-list > * { background: linear-gradient(160deg, #ffffff 0%, #f0fdfa 100%); border-radius: var(--radius-md); border: 1px solid rgba(15,118,110,.18); box-shadow: var(--shadow-sm); transition: var(--transition); }
.feature-list > *:hover { border-color: rgba(249,115,22,.45); box-shadow: var(--shadow-lg); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: radial-gradient(circle at 25% 20%, rgba(249,115,22,.20) 0%, rgba(15,118,110,.55) 45%, rgba(11,79,74,.92) 100%); color: #fff7ed; }
                .hero-content { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(11,79,74,.55); }

/* 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, #fff7ed 0%, #ffedd5 100%); border-left: 3px solid var(--color-accent); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 20s linear infinite; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
                .faq-wrapper > *:last-child { background: linear-gradient(165deg, #f0fdfa 0%, #ccfbf1 100%); border-radius: var(--radius-lg); border: 1px solid rgba(15,118,110,.20); box-shadow: var(--shadow-md); }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; background: linear-gradient(120deg, #0f766e 0%, #f97316 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #0f766e 0%, #0b4f4a 55%, #f97316 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; color: #fff7ed; box-shadow: var(--shadow-lg); border: 1px solid rgba(249,115,22,.35); }

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

/* 条件性装饰 */
header, .header, .navbar { background: linear-gradient(180deg, rgba(240,253,250,.85) 0%, rgba(255,247,237,0) 100%); backdrop-filter: blur(6px); }

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