:/* CSSVariantEngine v3.0 — web3-kaiyun-app.com.cn */
/* Palette: warm-minimal | Radius: sharp | Shadow: hard-offset */
/* Spacing: generous | Transition: snappy */
/* Section layouts: {"news":"featured-left","features":"centered","hero":"overlay","testimonials":"stacked","partners":"grid-4","faq":"single-column","stats":"grid-4","cta":"centered"} */

:root {
    --color-primary: #87a878;
    --color-primary-dark: #6b8f5e;
    --color-accent: #c47b5a;
    --color-surface: #faf8f3;
    --color-text: #2d2d2d;
    --rgb-primary: 135,168,120;
    --rgb-accent: 196,123,90;
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 0px;
    --shadow-sm: 3px 3px 0px 0px #2d2d2d;
    --shadow-md: 4px 4px 0px 0px #2d2d2d;
    --shadow-lg: 6px 6px 0px 0px #2d2d2d;
    --space-section: 4.5rem;
    --space-card: 1.6rem;
    --space-gap: 1.4rem;
    --transition: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #2d2d2d; }
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 #2d2d2d; background-color: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); border: 2px solid #2d2d2d; background-color: var(--color-primary); color: #2d2d2d; box-shadow: 3px 3px 0px 0px #2d2d2d; }
a:not([class]) { color: var(--color-primary-dark); transition: var(--transition); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

/* features: centered */
/* 居中大卡片 */
                .feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }

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

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

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

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

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

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #faf8f3, #e8e4d8); border-bottom: 3px solid #2d2d2d; }
.card { border: 2px solid rgba(var(--rgb-primary), .35); }
header, .header, .navbar { box-shadow: 4px 4px 0px 0px rgba(45,45,45,.15); border-bottom: 2px solid #2d2d2d; background-color: #faf8f3; }

/* 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: 2.5rem; --space-card: 1.2rem; --space-gap: 0.9rem; }
    .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; }
}