/* 自定义CSS样式 */

/* 移除团队成员卡片鼠标悬停时的绿色背景 */
.team-member .inner-box .overlay-box:after {
    display: none;
}

.team-member .inner-box:hover .overlay-box:after {
    display: none;
}

/* 修改团队成员信息显示位置，从照片上方移到照片下方 */
.team-member .inner-box .overlay-box {
    position: relative !important;
    background: #f8f8f8 !important;
    border-top: 1px solid #eee;
    padding: 15px 20px !important;
}

/* 覆盖default.css中的绿色背景颜色 */
.team-member .inner-box .overlay-box:after,
.team-member .inner-box .overlay-box:before {
    display: none !important;
    border-bottom-color: transparent !important;
}

/* 调整文字样式 */
.team-member .inner-box .overlay-box .user-info {
    height: 160px; /* 固定高度 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    text-align: center; /* 文本居中 */
    overflow: hidden; /* 溢出隐藏 */
}

.team-member .inner-box .overlay-box .user-info .text {
    overflow: hidden; /* 溢出隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制在2行 */
    -webkit-box-orient: vertical;
}

.team-member .inner-box .overlay-box .user-info h4 {
    margin-bottom: 5px !important;
    text-align: center; /* 标题居中 */
    width: 100%; /* 确保宽度占满 */
}

/* 确保图片容器相对定位 */
.team-member .inner-box .image-box {
    position: relative;
    overflow: hidden;
}

/* 自定义分页样式 */
.pagination-nav ul li a {
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination-nav ul li.active a, 
.pagination-nav ul li:hover a {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* 新闻列表样式 */
.service-box {
    height: 420px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.service-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.service-box .service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-box .service-text .padding-20 {
    flex: 1;
}

.service-box .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    transition: all 0.3s ease;
}

.service-box .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.service-box figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .service-box {
        height: 400px;
    }
    .service-box figure img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .service-box {
        height: 380px;
    }
    .service-box figure img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .service-box {
        height: auto;
        max-height: 450px;
    }
}

/* 合作伙伴logo样式 */
.partner-logo {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.partner-logo:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.partner-logo img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .partner-logo {
        height: 120px;
        margin-bottom: 15px;
    }
    
    .col-md-2.col-sm-4.mb-30 {
        width: 50%;
        float: left;
    }
    
    .partner-section .sec-title h2 {
        font-size: 24px;
    }
    
    .partner-section .sec-title .text {
        font-size: 14px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .col-md-2.col-sm-4.mb-30 {
        width: 100%;
    }
}

/* 合作伙伴标题样式 */
.partner-section .sec-title {
    margin-bottom: 30px;
}

.partner-section .sec-title h2 {
    position: relative;
    padding-bottom: 15px;
}

.partner-section .sec-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    transform: translateX(-50%);
}

/* 上一页/下一页按钮样式 */
.pagination-nav ul li a.prev-next {
    width: auto;
    padding: 0 15px;
    font-weight: 600;
}