/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: #007bff;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
    vertical-align: middle;
}

.clear {
    clear: both;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.wrap {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

.w1200 {
    width: 1200px;
    margin: 0 auto;
}

.flt {
    float: left;
}

.frt {
    float: right;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav ul li a {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    display: block;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li.on a::after {
    width: 100%;
}

.nav ul li.on a {
    color: #007bff;
}

/* Main Content Padding for Fixed Header */
.mainer {
    padding-top: 80px;
}

/* Banner Styles */
.banner {
    position: relative;
    overflow: hidden;
}

.banner .owl .item .img {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.banner .owl .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner_cur {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.banner_cur span {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.banner_cur span:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner_cur .prev {
    left: 20px;
}

.banner_cur .next {
    right: 20px;
}

/* Page Stats Section */
.page_num {
    background: #f8f9fa;
    padding: 60px 0;
}

.page_num ul {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.page_num li {
    flex: 1;
}

.page_num h2 {
    font-size: 42px;
    color: #007bff;
    font-weight: bold;
}

.page_num h2 span {
    color: #007bff;
}

.page_num label {
    display: block;
    width: 40px;
    height: 3px;
    background: #007bff;
    margin: 15px auto;
}

.page_num p {
    font-size: 16px;
    color: #666;
}

/* Title Section */
.title {
    text-align: center;
    padding: 60px 0 40px;
}

.title h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.title label {
    display: block;
    width: 60px;
    height: 3px;
    background: #007bff;
    margin: 0 auto 15px;
}

.title span {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
}

/* Course Section */
.div_hot {
    padding: 0 0 60px;
}

.div_tag ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.div_tag ul li a {
    display: block;
    padding: 10px 25px;
    background: #f0f0f0;
    border-radius: 25px;
    color: #666;
    transition: all 0.3s ease;
}

.div_tag ul li a:hover {
    background: #007bff;
    color: #fff;
}

.hot_list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hot_list li {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hot_list li .img {
    height: 200px;
    overflow: hidden;
}

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

.hot_list li:hover .img img {
    transform: scale(1.1);
}

.hot_list li .text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 20px;
    color: #fff;
}

.hot_list li .text p {
    font-size: 16px;
}

.hot_list li.li_more .text {
    background: linear-gradient(transparent, rgba(0,123,255,0.9));
}

/* About Section */
.div_about {
    padding: 0 0 60px;
    background: #f8f9fa;
}

.about {
    position: relative;
    height: 500px;
}

.about .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
}

.about .img img {
    display: none;
}

.about .wrap {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about .tit h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.about .text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about .btn a {
    display: inline-block;
    padding: 10px 30px;
    background: #007bff;
    color: #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.about .btn a:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Teacher Showcase Section */
.teacher-showcase {
    padding: 0 0 60px;
    background: #fff;
}

.section-header {
    text-align: center;
}

.section-header img {
    max-width: 300px;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.main-slides-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.main-slide.active {
    opacity: 1;
    visibility: visible;
}

.tc-card {
    display: flex;
    gap: 50px;
    align-items: center;
}

.tc-card-left {
    flex: 0 0 300px;
}

.tc-card-left img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tc-card-right {
    flex: 1;
}

.tc-name {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.tc-en {
    font-size: 16px;
    color: #999;
}

.tc-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tc-badge {
    background: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
}

.tc-text {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.tc-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.tc-level {
    margin-top: 20px;
}

.thumbnail-section {
    display: flex;
    justify-content: center;
}

.thumbnail-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #0056b3;
}

.thumbnails {
    display: flex;
    gap: 15px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active {
    border-color: #007bff;
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 5px;
    font-size: 12px;
}

/* BMSJ Section */
.bmsj {
    background: #f8f9fa;
    padding: 60px 0;
}

.title-com {
    text-align: center;
    margin-bottom: 40px;
}

.title-com h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.title-com h2 span {
    color: #007bff;
}

.title-com p {
    color: #666;
}

.provinces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.provinces li {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.provinces li:hover,
.provinces li.on {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.choose-city {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.choose-city span {
    color: #007bff;
    font-weight: bold;
}

.tab-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-box table {
    width: 100%;
    border-collapse: collapse;
}

.tab-box th {
    background: #007bff;
    color: #fff;
    padding: 15px;
    font-weight: normal;
}

.tab-box td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tab-box td a {
    color: #007bff;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab-box td a:hover {
    background: #007bff;
    color: #fff;
}

/* News Section */
.div_news {
    padding: 0 0 60px;
}

.news_lt {
    width: 48%;
}

.news_lt .img {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

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

.news_lt .text {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.news_lt .text h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news_lt .text p {
    color: #666;
    line-height: 1.6;
}

.news_rt {
    width: 48%;
}

.news_rt li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news_rt li:last-child {
    border-bottom: none;
}

.news_rt li a {
    display: flex;
    gap: 20px;
}

.news_rt .date {
    flex: 0 0 80px;
    text-align: center;
}

.news_rt .date span {
    display: block;
    font-size: 24px;
    color: #007bff;
    font-weight: bold;
}

.news_rt .date label {
    display: block;
    font-size: 12px;
    color: #999;
}

.news_rt .text h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.news_rt .text p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Footer Styles */
.footer {
    padding: 50px 0;
    color: #fff;
}

.footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .left h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer .left p a {
    color: #fff;
    margin-right: 15px;
}

.footer .left p a:hover {
    color: #007bff;
}

.footer .right h3 {
    font-size: 16px;
    font-weight: normal;
}

.footer .right h3 span {
    font-size: 24px;
    color: #007bff;
}

.footer .right p {
    margin-top: 10px;
    font-size: 12px;
}

.footer .right p a {
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .wrap, .w1200 {
        width: 100%;
        padding: 0 20px;
    }

    .hot_list ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header .wrap {
        height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .nav {
        display: none;
    }

    .banner .owl .item .img {
        height: 300px;
    }

    .page_num h2 {
        font-size: 28px;
    }

    .hot_list ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        height: auto;
    }

    .about .img {
        position: relative;
        width: 100%;
        height: 200px;
    }

    .about .wrap {
        position: relative;
        width: 100%;
        transform: none;
        top: 0;
    }

    .tc-card {
        flex-direction: column;
        text-align: center;
    }

    .tc-card-left {
        flex: none;
        width: 200px;
    }

    .tc-row {
        justify-content: center;
    }

    .tc-feature-row {
        flex-direction: column;
        align-items: center;
    }

    .tc-badge {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .news_lt, .news_rt {
        width: 100%;
        float: none;
    }

    .news_lt {
        margin-bottom: 30px;
    }

    .footer .wrap {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Owl Carousel Custom Styles */
.owl-carousel {
    display: none;
    position: relative;
    width: 100%;
}

.owl-carousel .owl-stage {
    position: relative;
    touch-action: manipulation;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
}

.owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
}

.owl-carousel.owl-loaded {
    display: block;
}
