/* ==================== 通用样式 ==================== */

/* 基础重置样式 */
:root {
    --header-height: 80px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    font-family: 'AlibabaPuHuiTi', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: var(--header-height); /* 为固定头部预留空间，自动适配头部高度 */
}

/* 通用容器 */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用按钮样式 */
.btn-yellow {
    display: inline-block;
    background: #ffb503;
    color: #fff;
    padding: 8px 35px;
    border-radius: 25px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    background: #ffd700;
    color: #333;
}

/* 通用隐藏类 - 用于优化DOM操作性能 */
.hidden {
    display: none !important;
}

/* 通用标题样式 */
.section-title {
    font-size: 36px;
    color: #8d0004;
    text-align: center;
    margin: 20px 40px 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #FFD700;
}

/* 通用网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}



/* 通用响应式设计 */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
    .section-title {
        font-size: 30px;
        margin: 20px 0 20px;
    }
    
    .grid-2 {
        gap: 50px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
        margin: 20px 0 20px;
    }
    
    .section-title::after {
        width: 50px;
        height: 2px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-yellow {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    body {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 24px;
        margin: 10px 0 20px;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .grid-2 {
        gap: 25px;
    }
    
    .grid-3 {
        gap: 15px;
    }
    
    .btn-yellow {
        padding: 8px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    body {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    body {
        font-size: 12px;
    }
}