/* 自适应轮播图 */
.carousel-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* 确保 padding 不增加总高度 */

}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out; /* 改为0.4秒更快切换 */
}

.carousel-item {
    min-width: 100%;
    height: 100%; /* 确保高度继承 */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .navbar {
        padding: 5px 0; /* 缩小导航栏内边距 */
    }
    .logo img {
        height: 80px; /* 缩小 logo */
    }
    .carousel-container {
        padding-top: 100px; /* 调整轮播图间距 */
    }
}


/* 轮播图指示器（垂直右下角） */
.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background: #fff;
    border-color: #333;
    transform: scale(1.2);
}


/* 共享板块样式 */
.content-section {
    position: relative;
    padding: 40px 0;
    background-color: white;
}

/* 左右背景色延伸 */
.content-section::before,
.content-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100%;
    background-color: inherit;
    z-index: -1;
}

.content-section::before {
    right: 100%;
}

.content-section::after {
    left: 100%;
}

/* 内容容器 */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.section-header {
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    color: #6A6767;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

/* 增强的下划线 */
.section-underline {
    height: 3px;
    background: #e0e0e0;
    position: relative;
}

.section-underline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 140px;
    height: 100%;
    background: #555;
}

/* 分类按钮组 */
.department-filter {
    display: inline-flex;
    gap: 20px;
    position: relative;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
}

.filter-btn {
    background: none;
    border: none;
    padding: 5px 0;
    font-size: 16px;
    color: grey;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.filter-btn.active {
    color: #6A6767;
    font-weight: 600;
}

/* 添加悬停效果 */
.filter-btn:hover {
    color: #6A6767;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-header {
        padding-bottom: 50px;
    }

    .section-title {
        position: static;
        text-align: center;
        margin-bottom: 15px !important;
    }

    .department-wrapper {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
    }

    .department-filter {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 15px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* 课程网格布局 - 一行五个 */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* 课程卡片样式 */
.course-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-image {
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.card-category {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}


/* 专家板块专用样式 */
.experts-section {
    background-color: white;
    padding: 40px 0;
    position: relative;
}

/* 专家列表样式 */
.expert-list {
    max-width: 1400px; /* 与商品区完全一致 */
    margin: 0 auto;
    padding: 0 40px; /* 保持相同留白 */
}

.expert-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin: 0; /* 取消原有外边距 */
}

.expert-row:last-child {
    border-bottom: none;
}

.expert-avatar {
    flex: 0 0 120px; /* 保持原有尺寸 */
}

.expert-avatar img {
    width: 120px;
    height: 120px; /* 保持原有尺寸 */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.expert-info {
    flex: 1;
    text-align: left; /* 强制左对齐 */
}

.expert-name {
    font-size: 1.5rem; /* 保持原有字号 */
    color: #6A6767;
    margin-bottom: 8px;
}


.expert-bio {
    color: grey;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .expert-list {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .expert-bio {
        max-width: 800px; /* 等比缩小内容区 */
    }
}

@media (max-width: 768px) {
    .expert-list {
        padding: 0 20px;
    }
    .expert-row {
        flex-direction: column;
        gap: 25px;
        padding: 25px 0;
    }
    .expert-avatar {
        align-self: flex-start; /* 头像左对齐 */
    }
    .expert-bio {
        max-width: 100%; /* 移动端占满宽度 */
    }
}

@media (max-width: 480px) {
    .expert-list {
        padding: 0 15px;
    }
    .expert-avatar img {
        width: 100px;
        height: 100px;
    }
}

/* 新增赞助商板块样式 */
.sponsors-title{
    text-align: center;
    font-size: 35px;
    margin-bottom: 10px;
}


.sponsors-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

.sponsor-logo {
    height: 160px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s;
    padding-left: 70px;
    padding-right: 70px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sponsors-logos {
        gap: 30px;
    }
    .sponsor-logo {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .sponsors-section {
        padding: 40px 0;
    }
    .sponsors-logos {
        gap: 20px;
        padding-top: 20px;
    }
    .sponsor-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sponsors-logos {
        flex-direction: column;
    }
    .sponsor-logo {
        height: 35px;
    }
}
