@charset "UTF-8";

/* ========== 变量定义 ========== */
:root {
    --primary-color: #f3cb76;
    --primary-dark: #1a4288;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-hint: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-light: #eeeeee;
}

/* ========== 全局样式 ========== */
*, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimSun";
}

body {
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

.container {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    position: relative;
}

.line {
    border-bottom: 2px solid #fff;
    margin: 2rem 0 3rem;
}

.sbox {
    width: 100%;
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
    padding-bottom: 6rem;
}

/* ========== 通用背景样式 ========== */
.wmdt { background: url(wmdt_bj.jpg) no-repeat center/cover; }
.csfy { background: url(csfy_bg.jpg) no-repeat center/cover; }
.jpkc, .hzjl, .gywm { background: url(jpkc_bj.jpg) no-repeat center/cover; }
.msfc { background: url(msfc_bj.jpg) no-repeat center/cover; }

/* ========== 导航标题 ========== */
.nav_title {
    width: 40%;
    min-width: 360px;
    min-height: 143px;
    margin: 0 auto;
    background: url(top.png) no-repeat center/100% 100%;
    text-align: center;
}

.nav_title h2 {
    font-size: 3rem;
    padding: 2rem 0;
    text-indent: 5.2rem;
    display: inline-block;
}

.wmdt .nav_title h2 { background: url(wmdt_bt.png) no-repeat left center; }
.csfy .nav_title h2 { background: url(csfy_bt.png) no-repeat left center; color: #4785ea }
.jpkc .nav_title h2 { background: url(jpkc_bt.png) no-repeat left center; }
.msfc .nav_title h2 { background: url(msfc_bt.png) no-repeat left center; color: #4785ea }
.hzjl .nav_title h2 { background: url(hzjl_bt.png) no-repeat left center; }
.gywm .nav_title h2 { background: url(gywm_bt.png) no-repeat left center; }

/* ========== 主轮播区域 ========== */
.main-swiper, .section-slide {
    height: 100vh;
}

.section-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== 首页头部样式 ========== */
.header-slide {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(index.jpg) no-repeat center/cover;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: url(logo.png) center/100% 100%;
    width: 100%;
    min-height: 155px;
}

.header-search {
    position: absolute;
    top: 175px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    display: flex;
    align-items: center;
    border: 1px solid #999;
    border-radius: 4px;
    width: 600px;
}

.header-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    height: 48px;
}

.header-search .ss {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    background: #145eb3; 
    border: none;
    color: #fff;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.header-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    background: url(nav_bg.png) center/100% 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 0;
}

.header-nav a {
    position: relative;
    padding: 10px 25px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.header-nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1em;
    background-color: #fff;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -20px); }
    60% { transform: translate(-50%, -10px); }
}

/* ========== 内容区域 ========== */
.content-slide { background: var(--bg-white); }
h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
}

/* ===== 通用卡片样式 ===== */
.card-item {
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 网盟动态 ===== */
.news-swiper { margin: 20px 0; }
.wmdt .swiper-slide {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-item {
    flex: 0 0 calc(50% - 50px);
    border: 1px solid var(--border-light);
    padding: 25px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-item:hover { transform: translateY(-5px); }

.news-item:nth-child(odd) { margin-right: 75px; }

.news-date {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 5.1rem;
    position: relative;
}

.news-date::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 3rem;
    background-color: #ccc;
}

.news-date .news-year { 
    font-size: 1rem; 
    color: #ccc; 
}

.news-title {
    min-height: 3em;
    display: flex;
    align-items: center;
}

.news-title a{
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
    text-decoration: none;
}

/* ===== 城市分院 ===== */
.branch-list {
     display: flex;
     flex-wrap: nowrap;
     overflow-x: auto;
     gap: 15px;
     margin: 0 auto 30px;
     max-width: 1100px;
     border-bottom: 8px solid var(--primary-color);
     padding-bottom: 10px;
     -webkit-overflow-scrolling: touch;
}

/* 滚动条样式 */
.branch-list::-webkit-scrollbar { height: 5px; }
.branch-list::-webkit-scrollbar-thumb {
     background: var(--primary-color); 
     border-radius: 10px;
}
.branch-list::-webkit-scrollbar-track { background: #f1f1f1; }

.branch-item {
     padding: 12px 25px;
     color: var(--bg-white);
     font-weight: bold;
     transition: all 0.3s;
     cursor: pointer;
     flex-shrink: 0;
}

.branch-item.selected { background: url(csfy_ph.png) no-repeat center/100% 100%; }

.branch-desc {
    line-height: 1.8;
    max-width: 1000px;
    margin: 30px auto 0;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 25px;
    height: 60vh;
    overflow:scroll;
}

/* 滚动条样式 */
.branch-desc::-webkit-scrollbar { height:3px;}
.branch-desc::-webkit-scrollbar-thumb {
     background: var(--primary-color); 
     border-radius: 10px;
}
.branch-desc::-webkit-scrollbar-track { background: #f1f1f1; }

/* ===== 名师风采 ===== */
.msfc .sbox { display: none; }
.teacher-swiper { margin: 30px 0; }
.teacher-swiper .swiper-slide{
    display: flex;
    gap: 25px;
    margin: 0 auto;

}
.teacher-list {
    display: flex;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.teacher-item {
    flex: 0 0 calc(25% - 18.75px);
    text-align: center;
    border-radius: 8px;
    position: relative;
    padding-bottom: 4.8rem;
}

.teacher-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.teacher-avatar {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    overflow: hidden;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:0 0 10px 10px;
}

.teacher-name {
    position: absolute;
    bottom: 8.8rem;
    padding: 1rem 1.5rem;
    font-weight: bold;
    color: var(--bg-white);
    font-size: 18px;
    background: #f37e26;
    border-radius: 10px 10px 0 0;
}

.teacher-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .3em;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 1.3rem;
    border-radius: 0 0 10px 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
/*    display: flex;
    align-items: center;*/
    min-height:7.1em;
}

/* ===== 精品课程 ===== */
.course-swiper { margin: 30px 0; }
.course-swiper .swiper-slide{
    display: flex; 
    flex-wrap: wrap; 
    gap: 25px;    
}
.course-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 25px; 
}

.course-item {
    flex: 0 0 calc(50% - 50px);
    padding: 25px 25px 25px 4.5rem;
    border-left: 8px solid #f8742A;
    background: url(jpkc_jt.png) no-repeat 1.5rem center var(--bg-light);
    border-radius: 0 8px 8px 0;
    

}

.course-item a{
    text-decoration: none;
    font-size: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.course-item:hover {
    background: url(jpkc_jt.png) no-repeat .2rem center var(--bg-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-item:nth-child(odd) { margin-right: 75px; }

/* ===== 关于我们 ===== */
.contact-info {
    line-height: 2;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    color: var(--text-primary);
    height: 70vh;
    overflow-y:auto;
}

/* 滚动条样式 */
.contact-info::-webkit-scrollbar { height: 5px; }
.contact-info::-webkit-scrollbar-thumb {
     background: var(--primary-color); 
     border-radius: 10px;
}
.contact-info::-webkit-scrollbar-track { background: #f1f1f1; }

.contact-info p { margin-bottom: 10px; }

/* ========== Swiper 控件样式 ========== */
.swiper-button-prev,
.swiper-button-next {
    top: auto;
    bottom: 2rem !important;
    width: 68px;
    height: 37px;
    color: transparent;
    border-radius: 0;
    background-size: 100% 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.wmdt .swiper-button-prev,
.jpkc .swiper-button-prev { 
    background: url(wmdt_left.png) no-repeat;
    left: calc(50% - 125px);
}

.wmdt .swiper-button-next,
.jpkc .swiper-button-next { 
    background: url(wmdt_right.png) no-repeat;
    right: calc(50% - 125px);
}

.msfc .swiper-button-prev { background: url(msfc_left.png) no-repeat;left: calc(50% - 125px);}
.msfc .swiper-button-next { background: url(msfc_right.png) no-repeat;right: calc(50% - 125px); }

/* 分页器 */
.swiper-pagination-bullet {
    background: var(--text-hint);
    opacity: 1;
    width: 10px;
    height: 10px;
    color:#fff;
    line-height: 5px;
}
.swiper-pagination-bullet:hover {
  transform: scale(1.3);
}



.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width:30px;
    border-radius: 5px;
}

.main-pagination {
    right: 30px !important;
    left: auto !important;
    width: auto !important;
}

.main-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 30px;
    display: block;
    border-radius:15px;
    margin: 10px 0 !important;
    background: var(--text-hint);
    color:#fff;
    line-height:30px;
}

.main-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    border-radius: 15px;

}

/* ========== 页脚 ========== */
footer {
    background: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    color: white;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1199px) {
    .header-nav {
        flex-direction: column;
        align-items: center;
        background: none;
        padding: 10px 0;
        position: relative;
        margin-top: 150px;
    }
    
    .header-nav a {
        width: 100%;
        padding: .5rem 3rem;
        font-size: 18px;
        background: #145eb3;
        border-radius: .5rem;
    }
    
    .header-nav a:not(:last-child)::after { display: none; }
}

.search{width:100%;height:100vh;overflow:hidden}

@media (max-width: 768px) {
    .line { margin: 1rem 0; }
    .header-logo { 
        background: url(logo1.png) no-repeat center/100% 100%; 
        min-height: 90px; 
    }
    .header-nav { margin-top: 40vh }
    .header-search { 
        width: 90%; 
        max-width: 320px;
        top: 18vh;
    }
    
    .nav_title {
        width: 90%;
        min-width: unset;
        min-height: 100px;
    }
    
    .nav_title h2 {
        font-size: 2rem;
        padding: 1.5rem 0;
        text-indent: 4.5rem;
    }
    
    /* 分页器调整 */
    .main-pagination .swiper-pagination-bullet,
    .main-pagination .swiper-pagination-bullet-active {
        width: 20px;
        height: 20px;
        border-radius: 10px;
        line-height:20px;
    }
    
    /* 网盟动态 */
    .wmdt .sbox, .jpkc .sbox { width: 90%; }
    .news-item {
        flex: 0 0 100% !important;
        margin-right: 0 !important;
        padding: 7px;
    }
    
    .news-title a{ font-size: 1rem; }
    .news-date { font-size: 1.1rem; }
    .news-date .news-year { font-size: .8rem; }
    
    /* 城市分院 */
    .branch-list {
        border-bottom: none;
        margin: 0 auto 10px;
    }
    .branch-item { padding: 12px 20px; }
    .branch-desc {
        height: 65vh;
        padding: 15px;
        width: 90%;
        overflow-y: auto;
    }

    .branch-desc img{width:100%}
    
    /* 名师风采 */
    .teacher-swiper { margin: 30px 0; }
    .teacher-swiper .swiper-slide{
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding:0 1rem;
        gap: 20px;        
    }
    .teacher-list {
        flex-wrap: wrap;
        justify-content: space-evenly;
        width: 90%;
        gap: 20px;
    }
    
    .teacher-item {
        flex: 0 0 calc(50% - 12.5px) !important;
        padding-bottom: 0;
    }
    
    .teacher-name {
        font-size: 1rem;
        bottom: 4.5rem;
        padding: .5rem .8rem;
    }
    
    .teacher-title { 
        font-size: .8rem;
        -webkit-line-clamp: 3;
        min-height:5.9em;
        line-height:1.8;
    }
    
    /* 精品课程 */
    .course-list { gap: 10px; }
    .course-swiper .swiper-slide{gap:10px}
    .course-item {
        flex: 0 0 100% !important;
        margin-right: 0 !important;
        padding: 15px 15px 15px 50px;
        background-position: 10px center;
        
    }

    .course-item a{font-size: 1rem;}
    
    /* 关于我们 */
    .contact-info {
        padding: 20px;
        height: 78vh;
        width: 90%;
        overflow-y:auto;
    }
    
    /* Swiper 按钮 */
    .swiper-button-prev,
    .swiper-button-next {
        bottom: 1rem !important;
        width: 40px;
        height: 25px;
        display: none;
    }
}

/* 高度响应式调整 */
@media (max-height: 800px) {
    .course-item { padding: 13px 15px 13px 50px; }
    .course-list { gap: 10px; }
    .course-swiper .swiper-slide{gap:10px}
    .teacher-avatar img { max-height: 267px; }

}

@media (max-height: 760px) {
    .course-item { padding: 12px 15px 12px 50px; }
    .teacher-avatar img { max-height: 245px; }
}

@media (max-height: 730px) {
    .course-item { padding: 10px 15px 10px 50px; }
    .teacher-avatar img { max-height: 235px; }
}

@media (max-height: 719px) {
    .wmdt .swiper-slide { gap: 5px; }
    .news-item { padding: 5px; }
    .teacher-avatar img { max-height: 225px; }
}

@media (max-height: 700px) {
    .course-list { gap: 5px; }
    .course-swiper .swiper-slide{gap:5px}
    .teacher-avatar img { max-height: 220px; }
    .teacher-name { bottom: 3.8rem; font-size: .8rem; }
    .teacher-title { font-size: .8rem;padding:.5rem 1rem 1rem}
}
@media (max-height: 667px) {
    .teacher-avatar img { max-height: 210px; }
    .course-swiper, .news-swiper { margin: 5px 0; }

}

@media (max-height: 635px) {
    .teacher-avatar img { max-height: 200px; }
}