:root {
    --color-primary: #3b2e5a;
    --color-primary-dark: #1a142f;
    --color-accent: #a87e2a;
    --color-surface: #faf8f2;
    --color-text: #1a142f;
    --rgb-primary: 59,46,90;
    --rgb-accent: 168,126,42;
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 6px;
    --radius-xl: 10px;
    --shadow-sm: 0 1px 3px rgba(59,46,90,0.08), 0 1px 1px rgba(168,126,42,0.05);
    --shadow-md: 0 2px 6px rgba(59,46,90,0.10), 0 2px 4px rgba(168,126,42,0.07);
    --shadow-lg: 0 4px 10px rgba(59,46,90,0.06), 0 6px 8px rgba(168,126,42,0.05);
    --space-section: 1.6rem;
    --space-card: 0.9rem;
    --space-gap: 0.6rem;
    --transition: 0.3s cubic-bezier(0.3, 0, 0.4, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { 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"] {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-card);
    transition: var(--transition);
    border-style: solid;
    border-color: rgba(var(--rgb-primary), 0.12);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-style: solid;
    border-color: transparent;
    caret-color: var(--color-accent);
    accent-color: var(--color-accent);
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-shadow: 0 0 1px rgba(var(--rgb-primary), 0.3);
}

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

/* news: featured-top */
/* 首篇横跨全宽 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gap);
}
.news-grid > *:first-child {
    grid-column: span 3;
}

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

/* hero: minimal */
.hero {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #3b2e5a 0%, #1a142f 100%);
}
.hero-content {
    max-width: 560px;
}

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

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

/* faq: single-column */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

/* cta: split */
.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.6rem;
}

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type {
    background: linear-gradient(135deg, #3b2e5a 0%, #1a142f 100%);
}
.card {
    border-color: rgba(var(--rgb-primary), 0.12);
    border-style: solid;
    box-shadow:
        0 1px 2px rgba(59,46,90,0.12),
        inset 0 0 4px rgba(168,126,42,0.10);
    border-radius: var(--radius-md);
}

/* header and navbar */
header, .header, .navbar {
    background: transparent;
    border-bottom: 1px solid rgba(var(--rgb-primary), 0.1);
}

/* 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;
        gap: 1.8rem;
    }
    .hero-inner {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 640px) {
    :root {
        --space-section: 1.6rem;
        --space-card: 0.9rem;
        --space-gap: 0.6rem;
    }
    .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;
        gap: 1.2rem;
    }
    .cta-inner {
        grid-template-columns: 1fr !important;
    }
}