﻿:root {
    --primary-red: #f1750e;
    --text-dark: #333;
    --text-light: #666;
    --bg-gray: #f8f9fa;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-dark);
}

/* --- 通用容器 --- */
.section-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #222;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 16px;
}

/* --- Swiper 通用样式 --- */
.swiper {
    width: 100%;
    padding-bottom: 50px !important;
    /* 为分页器留空间 */
}

.swiper-slide {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    height: auto;
    /* 高度自适应内容 */
}

.swiper-slide:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 280px;
    /* 固定图片高度 */
    object-fit: cover;
    display: block;
}

.card-image1 {
    width: 100%;
    height: 350px;
    /* 固定图片高度 */
    object-fit: cover;
    display: block;
}


.card-content {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #222;
}

.card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.card-tag {
    display: inline-block;
    background: rgba(217, 48, 37, 0.1);
    color: var(--primary-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

/* --- 分页器样式定制 --- */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
    width: 20px;
    border-radius: 5px;
    transition: width 0.3s;
}

/* --- 导航按钮样式 --- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-red);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* --- 模块特定调整 --- */

/* 导师模块背景 */
#mentors-section {
    background-color: #fff;
    margin-top: 3em;
}

/* 客户模块背景 */
#cases-section {
    background-color: var(--bg-gray);
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    #mentors-section {
        margin-top: 28em;
    }

    /* 手机端图片高度稍矮一点 */
    .card-image {
        height: 220px;
    }

    /* 手机端图片高度稍矮一点 */
    .card-image1 {
        height: 180px;
    }

    /* 导航按钮在手机上隐藏，只保留滑动和分页 */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}