:root {
    --brand-color: #CC290A;
}

.wrapper {
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.header-inner {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    padding-left: 10px;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav {
    display: flex;
    gap: 60px;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.nav .nav-item {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: all 0.3s;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.nav .nav-item:hover,
.nav .nav-item.active,
.container .section-title span.active{
    color: var(--brand-color);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
    height: 80px;
    line-height: 80px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content .nav-item {
    height: auto;
    line-height: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.navbar-toggler {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    padding-left: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #999;
    transition: all 0.3s;
}

.logo-text {
    display: none;
}

.carousel-container {
    flex: 1;
    width: 100%;
    position: relative;
    margin-bottom: 60px;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.container .section-title span {
    color: #333;
    text-align: left;
}

.container .section-title p {
    font-size: 12px;
    color: #999;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-item {
    background: #fff;
    padding: 5%;
}

.course-item:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
}

.course-item:hover a h3 {
    color: #2ba0e8;
}

.course-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-image {
    width: 100%;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-item:hover .course-image img {
    transform: scale(1.05);
}

.course-item h3 {
    padding: 20px;
    font-size: 18px;
    text-align: center;
    color: #333;
    border-top: 1px solid #e8e8e8;
}

.about-section {
    max-width: 100%;
    padding: 10vw 0;
    background-size: cover;
    background-color: rgb(255, 255, 255);
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(../img/about-bg.png);
    margin: 5vw 0;
}

.about-section-box {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}

.about-img-box {
    width: 50%;
    display: flex;
    justify-content: end;
    margin-right: 5%;
}

.about-img-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.about-info {
    width: 50%;
    margin-right: 10%;
}

.about-section .section-title {
    margin: 0 auto 50px;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: #666;
}

.about-text p {
    margin-bottom: 15px;
    text-align: left;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background-size: cover;
    background-color: rgb(255, 255, 255);
    background-repeat: no-repeat;
    background-position: center center;
    padding: 2.58342vw 0 3.12164vw;
    background-image: url(../img/AD0Iq6umCBAEGAAg84zi3AUorLeU6gIwgA843AE.png);
    margin: 5vw 0;
}

.stat-item {
    text-align: center;
    color: rgba(255, 255, 255, 1);
    font-size: 22px;
}

.stat-number {
}

.stat-label {
    font-size: 12px;
}

.teachers-section, .news-section, .page-img-section {
    margin-bottom: 5vw;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    background-size: cover;
    background-color: rgb(255, 255, 255);
    background-repeat: no-repeat;
    background-position: center center;
    /*background-image: url(../img/AD0Iq6umCBAEGAAg_sfv2wUo1ZOj_gIwgA841QE.png);*/
    /*padding: 5.22067vw 0% 10.4413vw;*/
}

.teacher-card {
    text-align: center;
    transition: all 0.3s;
}


.teacher-avatar {
    width: 100%;
    overflow: hidden;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.teacher-card .teacher-info-tag {
    font-size: 14px;
    color: rgba(153, 153, 153, 1);
    margin-bottom: 10px;
}

.teacher-card .teacher-name {
    font-size: 16px;
    color: var(--brand-color);
    margin-bottom: 10px;
}

.teacher-specialty {
    padding: 0 15px 18px;
    color: #999;
    font-size: 14px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    background: #fff;
    transition: all 0.3s;
}

.news-item:not(:last-child) {
    border-bottom: 1px solid #ececec;
    box-sizing: border-box;
}

.news-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.news-thumb {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-info {
    flex: 1;
}

.news-info a {
    text-decoration: none;
}

.news-info-header {
    display: flex;
    justify-content: space-between;
}

.news-info span {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-info a span{
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-info:hover a span {
    color: var(--brand-color);
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-desc {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 18px;
}

.news-category-link {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    color: #999;
    padding: 0 8px;
}

.footer {
    background: #f4f4f4;
    color: #666;
    padding: 20px;
    text-align: center;
    max-width: 100%;
}

.footer p {
    margin: 0;
}

.teaching-model-section {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(../img/AD0Iq6umCBAEGAAg_sfv2wUo1ZOj_gIwgA841QE.png);
    margin-top: 5vw;
}

.teaching-model-section .section-title {
    padding: 5vw 0;
}

.teaching-model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(../img/AD0Iq6umCBAEGAAgtbz02wUozu3NgAIwgA84rgU.png);
    padding: 5vw 0 10vw
}

.teaching-model-card {
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    flex-direction: column;
}


.teaching-model-avatar {
    width: 15%;
    overflow: hidden;
}

.teaching-model-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.teaching-model-info-tag {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    padding: 10px 0;
}

.teaching-model-specialty {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    padding: 0 10px;
}

.our-partner-section {
    display: flex;
    flex-direction: column;
    margin: 5vw;
}

.our-partner-grid {
    margin: 3vw 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;
}

.our-partner-img img {
    transition: transform 0.3s ease-in-out;
}

.our-partner-img:hover img {
    transform: scale(1.1);
}

.introduction-section {
    margin-bottom: 5vw;
}

.introduction-section .section-title {
    margin: 0;
}

.introduction-grid {
    display: flex;
    width: 100%;
    margin-top: 5.2vw;
}

.introduction-img-box {
    width: 50%;
}

.introduction-img-box img {
    width: 80%;
}

.introduction-info {
    width: 50%;
    margin-top: 3vw;
}

.introduction-info-title {
    margin-bottom: 30px;
}

.introduction-info-content {
    color: rgba(128,128,128,1);
    font-size: 14px;
    line-height: 36px;
}

.introduction-box {
    margin-top: 3vw;
    line-height: 36px;
    font-size: 14px;
    color: rgba(128, 128, 128, 1);
}

.contact-section {
    padding: 5vw 0;
}

.contact-grid {
    display: flex;
}

.contact-info {
    width: 50%;
    margin-top: 5vw;
    padding-right: 30px;
}

.contact-info-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-info-desc {
    font-size: 14px;
    color: rgba(128, 128, 128, 1);
}

.contact-info-box {
    margin-top: 40px;
}

.contact-info-item {
    font-size: 14px;
    color: rgba(128, 128, 128, 1);
    line-height: 30px;
}

.contact-img-box {
    width: 50%;
}

.contact-img-box img {
    width: 80%;
}

.contact-section .section-title {
    margin: 0;
}

.contact-form {
    margin: 0 auto;
    padding-top: 3vw;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    width: 100%;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.contact-form .required {
    color: #ff4d4f;
    margin-left: 2px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    transition: all 0.3s;
    outline: none;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: #2ba0e8;
    box-shadow: 0 0 0 2px rgba(43, 160, 232, 0.1);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: #999;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-submit {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.contact-form .form-submit input {
    padding: 12px 50px;
    background: #2ba0e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.contact-form .form-submit input:hover {
    background: #1e8bc3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 160, 232, 0.3);
}

.article-detail {
    margin: 40px auto;
    padding: 0 20px;
}

.article-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: left;
}

.article-meta {
    display: flex;
    justify-content: start;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.article-content {
    color: #666;
    font-size: 16px;
    border-bottom: 1px dashed #efefef;
    padding: 20px 0;
    margin-bottom: 20px ;
}
.article-content p {
    margin: 0;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-content: center;
    margin-bottom: 20px;
}

.article-footer .news-category-link {
    margin-bottom: 0;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.article-prev,
.article-next {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.article-prev a,
.article-next a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-prev a:hover,
.article-next a:hover {
    color: var(--brand-color);
}
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-wrapper {
    position: relative;
    display: inline-block;
}

.share-icons {
    display: none;
}

.course-detail-header {
    display: flex;
    gap: 30px;
}

.course-images-box {
    width: 50%;
}
.course-detail-info {
    width: 50%;
    padding-top: 20px;
}
.course-price-info {
    margin-top: 30px;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f7f7f7;
}
.price-current {
    color:#2ba0e8;
    font-weight: 700;
    margin: 0;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    padding-left: 20px;
}

.phone-btn {
    margin-top: 40px;
}

.phone-btn span {
    padding: 10px 30px;
    background: #2ba0e8;
    color: #fff;
    border-radius: 20px;
}

.course-detail .carousel-item {
    border: 1px solid #eee;
    box-sizing: border-box;
    padding-bottom: 100%;
    position: relative;
    width: 100%;
}

.course-detail .carousel-item img {
    height: 100%;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: absolute;
    width: 100%;
}

.detail_small_pic_wrap {
    margin-top: 20px;
}

.detail_small_pic {
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-block;
    margin: 0 0 .5px;
    padding-bottom: 17.2%;
    padding-left: 17.2%;
    position: relative;
}

.detail_small_pic img {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    bottom: 0;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
}

.jz_theme_border_color {
    border-color: #2ba0e8;
}
.detail_pagination_wrap {
    display: flex;
    justify-content: space-between;
    margin: 20px 10px;
}

.detail_page {
    border: 1px solid #e9e9e9;
    border-radius: 15px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    line-height: 1.5;
    padding: 3px 18px;
    color: #999;
    font-size: 14px;
}

.product-detail-header {
    border: 1px solid #f0f0f0;
}

.product-detail-header span {
    color: #2ba0e8;
    position: relative;
    border-right: 1px solid #f0f0f0;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    line-height: 54px;
    overflow: hidden;
    padding: 0 8px;
    text-align: center;
    text-overflow: ellipsis;
    transition: all .3s;
    white-space: nowrap;
    width: 160px;
    border-top: 3px solid #2ba0e8;
}

.product-detail-info {
    margin: 40px 0;
}

.product-detail-info p{
    margin: 0;
    font-size: 14px;
}

.product-detail-box {
    margin-top: 40px;
}

.detail_page a {
    text-decoration: none;
    color: #999;
}

.solution-box {
    position: fixed;
    top: 50%;
    right: 0;
}

.solution {
    padding: 10px 30px;
    border-radius: 10px;
    color: #fff;
    background: var(--brand-color);
}

.solution-box a {
    text-decoration: none;
    cursor: pointer;
}

.btn-box-fixed {
    position: fixed;
    top: 70%;
    right: 0;
    background: var(--brand-color);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

.btn-box-fixed a {
    padding: 15px;
    text-decoration: none;
    cursor: pointer;
}

.btn-box-fixed a:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.btn-box-fixed a img {
    width: 30px;
}
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    .nav {
        position: fixed;
        top: 40px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 40px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: left 0.3s;
        overflow-y: auto;
        gap: 0;
    }

    .nav .nav-item {
        width: calc(100% - var(--bs-gutter-x));
        text-align: left;
        height: auto;
        line-height: normal;
        padding: 15px calc(var(--bs-gutter-x) * .5);
        margin: 0 calc(var(--bs-gutter-x) * .5);
        border-bottom: 1px solid #f2f2f2;
    }

    .nav .nav-item:hover, .nav .nav-item.active {
        border-color: #f2f2f2;
    }

    .logo img {
        height: 30px;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        margin-top: 10px;
    }


    .nav .nav-item .nav-dropdown {
        width: 100%;
        border-top: 1px solid #f2f2f2;
        padding: 15px 0;
        height: auto;
        line-height: normal;
    }

    .navbar-toggler .navbar-toggler-icon{
        display: block;
        color: #999;
    }

    .nav.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .carousel-container {
        flex: none;           /* 取消 flex 填充，改为固定高度 */
        height: 200px;        /* 手机端固定高度，可根据需要调整 */
    }

    .carousel-item img {
        height: 100%;         /* 继承父容器高度 */
        width: 100%;          /* 确保宽度也填满 */
        object-fit: cover;    /* 保持裁剪，不变形 */
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-item {
        padding: 0;
    }

    .about-section {
        background-image: none;
        padding: 0 20px;
    }

    .about-section-box {
        flex-direction: column;
    }

    .about-img-box {
        width: 100%;
    }

    .about-info {
        width: 100%;
        margin-top: 20px;
    }

    .cur_img_box img {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0;
        gap: 5px;
    }

    .news-item {
        flex-direction: column;
        padding: 0;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }

    .page-img-section img {
        width: 100%;
    }

    .teaching-model-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .our-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .introduction-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .introduction-grid, .contact-grid {
        flex-direction: column;
    }

    .introduction-img-box, .introduction-info , .introduction-img-box img
    ,.contact-info, .contact-img-box, .contact-img-box img, .course-images-box, .course-detail-info{
        width: 100%;
    }

    .contact-form .form-row {
        display: flex;
        flex-direction: column;
    }

    .article-nav {
        flex-direction: column;
    }

    .course-detail-header {
        flex-direction: column;
    }
}