/* CSSVariantEngine v3.0 — go-dezhoupukezaixian.com.cn */
/* Palette: vibrant-gradient | Radius: playful rounded | Shadow: multi-layer elevation */
/* Spacing: spacious | Transition: smooth long */
/* Section layouts: {"news":"grid-3","features":"grid-3","hero":"left-aligned","testimonials":"stacked","partners":"grid-6","faq":"with-sidebar","stats":"grid-3","cta":"card-style"} */

:root {
    --color-primary: #7928ca;
    --color-primary-dark: #ff0080;
    --color-accent: #00d4ff;
    --color-surface: #fff7fb;
    --color-text: #2d0c5e;
    --rgb-primary: 121, 40, 202;
    --rgb-accent: 0, 212, 255;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 12px rgba(121, 40, 202, 0.12), 0 1px 4px rgba(255, 0, 128, 0.08);
    --shadow-md: 0 8px 24px rgba(121, 40, 202, 0.18), 0 3px 8px rgba(0, 212, 255, 0.1);
    --shadow-lg: 0 16px 48px rgba(255, 0, 128, 0.2), 0 6px 16px rgba(121, 40, 202, 0.15);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #fff7fb 0%, #f0f9ff 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%, #fdf4ff 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #7928ca, #ff0080, #00d4ff) 1;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-3 */
/* 三列等宽网格 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* features: grid-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

/* testimonials: stacked */
/* 垂直堆叠 */
.testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
.faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card {
    background: linear-gradient(135deg, #00d4ff22 0%, #7928ca22 100%);
}

/* cta: card-style */
.cta-inner { 
    background: linear-gradient(135deg, #ff008015 0%, #7928ca15 50%, #00d4ff15 100%); 
    border-radius: var(--radius-xl); 
    padding: 3rem; 
    text-align: center; 
    border: 3px solid transparent;
    border-image: linear-gradient(90deg, #7928ca, #ff0080, #00d4ff) 1;
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
    filter: saturate(1.1);
}
a:not([class]):hover { color: var(--color-primary-dark); text-shadow: 0 0 8px rgba(255, 0, 128, 0.3); }
.hero, [class*="hero"], section:first-of-type { 
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 45%, #00d4ff 100%); 
    color: white;
}
header, .header, .navbar { 
    box-shadow: 0 4px 16px rgba(121, 40, 202, 0.15), 0 2px 6px rgba(255, 0, 128, 0.07); 
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

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