@charset "utf-8";

/* ===== 培训首页样式 ===== */
.container {
    padding-top: 80px; /* 为固定header留出空间 */
}

/* ===== Banner区域 ===== */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.ban {
    width: 100%;
    height: 100%;
}

.ban ul {
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ban li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ban li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner文字 */
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-text h3 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* 轮播指示点 */
.hd {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hd ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.hd ul li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hd ul li.active {
    background: #009B96;
    width: 30px;
    border-radius: 5px;
}

/* 轮播箭头 */
.ban-fx {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 30px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s;
    display: none;
}

.ban-fx:hover {
    background: rgba(0,155,150,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* ===== 通用容器 ===== */
.con-center {
    width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ===== 公司简介区域 ===== */
.about-section {
    background: #f9f9f9;
    padding: 60px 0;
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h4 {
    font-size: 32px;
    color: #009B96;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-content h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #009B96;
}

.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== 通用标题样式 ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h3 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 16px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-more:hover {
    color: #009B96;
}

.section-more i {
    font-style: normal;
    font-size: 16px;
}

/* ===== 培训风采区域 - 一行三个 ===== */
.style-section {
    padding: 60px 0;
    background: #fff;
}

.style-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.style-item {
    width: 386px; /* (1200px - 21px*2)/3 ≈ 386px */
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.style-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,155,150,0.15);
}

.style-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.style-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-item:hover .style-img img {
    transform: scale(1.08);
}

.style-info {
    padding: 20px 15px;
    text-align: center;
}

.style-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.style-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
}

/* ===== 新闻资讯区域 - 一行两条 ===== */
.news-section {
    background: #f9f9f9;
    padding: 60px 0;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-item {
    width: 585px; /* (1200px - 30px)/2 ≈ 585px */
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,155,150,0.15);
}

.news-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.news-date {
    width: 120px;
    background: #009B96;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    flex-shrink: 0;
}

.news-date .year {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 5px;
}

.news-date .day {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.news-content {
    flex: 1;
    padding: 20px;
}

.news-content h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
}

/* ===== 培训专业区域 - 一行四个 ===== */
.major-section {
    padding: 60px 0;
    background: #fff;
}

.major-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.major-item {
    width: 277px; /* (1200px - 30px*3)/4 ≈ 277px */
    margin-bottom: 30px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.major-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,155,150,0.15);
}

.major-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #f0f0f0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #009B96;
}

.major-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.major-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.major-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 67px;
}

/* ===== 师资力量区域 - 一行五个 ===== */
.teacher-section {
    background: #f9f9f9;
    padding: 60px 0;
}

.teacher-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-item {
    width: 216px; /* (1200px - 30px*4)/5 ≈ 216px */
    margin-bottom: 30px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 25px 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.teacher-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,155,150,0.15);
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #009B96;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.teacher-item p {
    font-size: 14px;
    color: #999;
}

/* ===== 荣誉证书区域 - 一行四个 ===== */
.honor-section {
    padding: 60px 0 40px;
    background: #fff;
}

.honor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.honor-item {
    width: 277px; /* (1200px - 30px*3)/4 ≈ 277px */
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,155,150,0.12);
}

.honor-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 15px;
}

.honor-img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.honor-item p {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* ===== 查看更多按钮 ===== */
.more-btn {
    text-align: center;
    margin-top: 20px;
    clear: both;
}

.more-btn a {
    display: inline-block;
    padding: 12px 40px;
    background: #009B96;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,155,150,0.3);
}

.more-btn a:hover {
    background: #007B76;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,155,150,0.4);
}

/* ===== 清除浮动 ===== */
.clearfloat {
    clear: both;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .con-center {
        width: 100%;
        padding: 0 20px;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-text h3 {
        font-size: 42px;
    }
    
    .style-item,
    .news-item,
    .major-item,
    .teacher-item,
    .honor-item {
        width: auto;
    }
    
    .style-grid,
    .news-grid,
    .major-grid,
    .teacher-grid,
    .honor-grid {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .style-item {
        width: calc((100% - 40px) / 3);
    }
    
    .news-item {
        width: calc((100% - 20px) / 2);
    }
    
    .major-item {
        width: calc((100% - 60px) / 4);
    }
    
    .teacher-item {
        width: calc((100% - 80px) / 5);
    }
    
    .honor-item {
        width: calc((100% - 60px) / 4);
    }
}

@media (max-width: 992px) {
    .banner {
        height: 350px;
    }
    
    .banner-text h3 {
        font-size: 36px;
    }
    
    .style-item {
        width: calc((100% - 20px) / 2);
    }
    
    .news-item {
        width: 100%;
    }
    
    .major-item {
        width: calc((100% - 40px) / 3);
    }
    
    .teacher-item {
        width: calc((100% - 60px) / 4);
    }
    
    .honor-item {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-text h3 {
        font-size: 28px;
    }
    
    .about-content h4 {
        font-size: 24px;
    }
    
    .style-item,
    .major-item,
    .teacher-item,
    .honor-item {
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .news-item a {
        flex-direction: column;
    }
    
    .news-date {
        width: 100%;
        padding: 15px 0;
    }
    
    .style-grid,
    .major-grid,
    .teacher-grid,
    .honor-grid {
        justify-content: center;
    }
    
    .section-more {
        position: static;
        transform: none;
        margin-top: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 250px;
    }
    
    .banner-text h3 {
        font-size: 24px;
    }
    
    .style-img {
        height: 180px;
    }
    
    .honor-img {
        height: 140px;
    }
    
    .teacher-avatar {
        width: 100px;
        height: 100px;
    }
}