/* ========================================
   前台网站全局样式
   包含：基础重置、通用布局、分页等
   ======================================== */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础 body 样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 主内容区容器 - 75% 宽度居中 */
.container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

/* 通用分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 返回顶部按钮（预留） */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
}

/* ========================================
   移动端响应式样式
   ======================================== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        width: 95%;
        padding: 20px 10px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination a {
        padding: 8px 14px;
        font-size: 14px;
    }
}