:root {
    --color-primary: #8a5a44;
    --color-primary-dark: #2f241f;
    --color-accent: #c98b2e;
    --color-surface: #f6efe5;
    --color-text: #2b221d;
    --rgb-primary: 138,90,68;
    --rgb-accent: 201,139,46;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 5px;
    --radius-xl: 6px;
    --shadow-sm: 0 1px 2px rgba(47, 36, 31, 0.06), 0 0 0 1px rgba(138, 90, 68, 0.05);
    --shadow-md: 0 2px 6px rgba(47, 36, 31, 0.08), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    --shadow-lg: 0 6px 18px rgba(47, 36, 31, 0.1), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #fffdf9 0%, #f7f0e8 100%); caret-color: var(--color-accent); accent-color: var(--color-accent); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #241b17; text-shadow: 0 1px 0 rgba(255, 252, 246, 0.9); }
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(180deg, #fffdfa 0%, #f8f1e8 100%); border-color: rgba(var(--rgb-primary), .12); border-style: solid; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(180deg, #9c694f 0%, #7f523f 100%); color: #fffaf4; border-color: rgba(47, 36, 31, 0.2); border-style: solid; box-shadow: 0 2px 6px rgba(47, 36, 31, 0.12), 0 1px 0 rgba(255, 255, 255, 0.2) inset; text-shadow: 0 1px 0 rgba(47, 36, 31, 0.18); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(var(--rgb-accent), 0.55); }

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

/* news: grid-4 */
/* 四列紧凑网格 */
                .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* 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: split */
/* 左文右图 */
                .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

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

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

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

/* cta: full-bg */
.cta-section { background: linear-gradient(90deg, #2f241f 0%, #4a372e 48%, #7f523f 100%); color: #fffaf4; padding: 4rem 2rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.08); }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(90deg, #fdfaf5 0%, #f2e8da 38%, #3a2c26 38%, #3a2c26 100%); color: #fffaf4; }
.card { border: 1px solid rgba(var(--rgb-primary), .08); }

section:nth-of-type(odd), .section:nth-of-type(odd) { background: #fffdf9; }
section:nth-of-type(even), .section:nth-of-type(even) { background: #f6efe5; }
section:nth-of-type(3n), .section:nth-of-type(3n) { background: #312621; color: #f8f0e7; }
section:nth-of-type(4n), .section:nth-of-type(4n) { background: #fffdfa; }

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