/* 全局样式重置与基础变量 */
:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2d6bc1;
    --secondary-color: #f5f7fa;
    --text-main: #333;
    --text-secondary: #666;
    --text-light: #999;
    --white: #fff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --transition-base: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 优化后的文字页头样式 */
.page-header {
    width: 100%;
    /* 渐变背景 + 主色调搭配，提升视觉层次 */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    /* 底部阴影增强立体感 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* 轻微圆角，弱化直角生硬感 */
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.header-title {
    font-size: 38px;
    color: var(--white);
    font-weight: 600;
    line-height: 1.3;
    /* 文字轻微阴影，增强可读性 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 字间距优化，提升美观度 */
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.header-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.4;
}

/* 优势板块样式 */
.benefit-section {
    max-width: 1280px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border-top: 3px solid var(--primary-color);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 核心文章板块样式 */
.content-section {
    max-width: 1100px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-sm);
}

.content-wrapper {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.content-wrapper h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 600;
}

.content-wrapper p {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
    text-indent: 2em;
    line-height: 1.8;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2d6bc1;
}

/* 页脚样式 */
.site-footer {
    background-color: #222;
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.footer-follow {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.footer-follow h4 {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.footer-qrcode {
    width: 130px;
    height: 130px;
    border: 4px solid var(--white);
    border-radius: var(--radius-sm);
}

.footer-link {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.footer-link a {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-base);
}

.footer-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #333;
}

/* 响应式适配 */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }

    /* 响应式调整页头标题大小 */
    .header-title {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .content-wrapper {
        padding: var(--spacing-md);
    }

    .content-wrapper h3 {
        font-size: 20px;
    }

    .footer-qrcode {
        width: 110px;
        height: 110px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    /* 移动端进一步缩小页头标题 */
    .header-title {
        font-size: 24px;
    }

    .benefit-card {
        padding: var(--spacing-sm);
    }

    .content-wrapper p {
        font-size: 14px;
    }

    .site-footer {
        padding: var(--spacing-md) var(--spacing-xs);
    }
}