/* 标签云页 tag.htm 专用样式 */
.tags-main-banner {
    height: 200px;
    background: #0067c1;
    display: none;
    /* background: linear-gradient(to right, #0078e0, #0078e0); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;

    padding-top: 10px;
}

.tags-main-banner .tags-banner-container {
    width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.tags-main-banner .tags-banner-container .tags-banner-main {
    width: 50%;
    border-top: 5px #fff solid;
    border-left: 5px #fff solid;
    border-right: 5px #fff solid;
    border-bottom: 5px #fff solid;
    position: relative;

    padding: 20px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;

}

.tags-main-banner .tags-banner-container .tags-banner-main .tags-banner-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    background: #0067c1;

    position: absolute;
    top: -38px;
    left: 33.2%;
    padding: 0 30px;
}


.tags-main-banner .tags-banner-container .tags-banner-main .tags-banner-desc {
    margin-top: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    padding: 4px 40px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.tag-crumb {
    font-size: 14px;
    color: #999;
    margin: 30px 0;
}

.tag-crumb a {
    color: #999
}

.tag-crumb a:hover {
    color: #0054b2
}

.tag-crumb .current {
    color: #333
}

.tag-page {
    display: flex;
    align-items: flex-start;
    padding-bottom: 60px
}

.tag-left {
    flex: 1;
    min-width: 0
}

.tag-cloud-box {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px #efefef;
    padding: 30px;
    box-sizing: border-box
}

.tag-cloud-box .tag-cloud-title {
    position: relative;
    padding-left: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.tag-cloud-box .tag-cloud-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 20px;
    background: #0054b2
}

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 20px;

    border-top: 1px solid #f4f4f4;
    padding-top: 17px;
}

.tag-cloud-list .tag-item {
    display: inline-block;
    padding: 4px 14px;
    line-height: 1.6;
    color: #4b5563;
    border-radius: 20px;
    background: #f3f6fb;
    border: 1px solid #e6edf6;
    transition: all .2s ease
}

.tag-cloud-list .tag-item:hover {
    background: #0054b2;
    border-color: #0054b2;
    color: #fff
}

.tag-cloud-list .tag-h1 {
    font-size: 13px
}

.tag-cloud-list .tag-h2 {
    font-size: 14px
}

.tag-cloud-list .tag-h3 {
    font-size: 16px
}

.tag-cloud-list .tag-h4 {
    font-size: 18px
}

.tag-cloud-list .tag-h5 {
    font-size: 21px
}

.tag-cloud-list .tag-h6 {
    font-size: 24px
}

.tag-sidebar {
    width: 360px;
    margin-left: 20px;
    flex: none
}

/* 热门校区 sidebar star */
.tag-sidebar .hot-school-list-box {
    padding: 19px 0 0 0;
    background-color: #fff;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 20px #efefef;
    -moz-box-shadow: 0 5px 20px #efefef;
    -ms-box-shadow: 0 5px 20px #efefef;
    -o-box-shadow: 0 5px 20px #efefef;
    box-shadow: 0 5px 20px #efefef;
    margin-bottom: 22px
}

.tag-sidebar .hot-school-list-box .hot-school-list-title {
    margin: 0 20px 20px 35px;
    position: relative
}

.tag-sidebar .hot-school-list-box .hot-school-list-title:before {
    content: "";
    height: 18px;
    width: 4px;
    background-color: #0054b2;
    position: absolute;
    left: -15px;
    top: 3px
}

.tag-sidebar .hot-school-list-box .hot-school-list-title>h3 {
    font-size: 18px;
    font-weight: bold
}

.tag-sidebar .hot-school-list-box>ul {
    padding: 20px;
    border-top: 1px solid #f4f4f4;
    display: flex;
    flex-direction: column;
    row-gap: 20px
}

.tag-sidebar .hot-school-list-box>ul>li {
    display: flex;
    column-gap: 16px;
    align-items: flex-start
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item {
    display: flex;
    column-gap: 10px
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-img {
    flex: 1;
    width: 165px;
    height: 110px;
    border-radius: 5px;
    overflow: hidden
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-img>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(194, 214, 236, 0.8);
    transition: transform .5s ease-in-out
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item:hover .contact-sidebar-item-img>img {
    transform: scale(1.2)
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-desc {
    display: flex;
    flex-direction: column;
    flex: 0.8;
    justify-content: space-between
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-desc .school-item-name {
    color: #000;
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item:hover .contact-sidebar-item-desc .school-item-name {
    color: #0054b2;
    font-weight: 600
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-desc .contact-sidebar-item-hot-count {
    line-height: 18px
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-desc .contact-sidebar-item-hot-count .txt {
    font-size: 13px
}

.tag-sidebar .hot-school-list-box>ul>li .hot-school-item:hover .contact-sidebar-item-desc .contact-sidebar-item-hot-count .txt {
    color: red
}

/* 热门校区 sidebar end */

/* 近期问答 / 近期文章 sidebar star */
.tag-sidebar .recent-articles {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-bottom: 22px
}

.tag-sidebar .recent-articles .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee
}

.tag-sidebar .recent-articles .article-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5
}

.tag-sidebar .recent-articles .article-item:hover {
    background-color: #f9f9f9
}

.tag-sidebar .recent-articles .article-number {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-right: 12px
}

.tag-sidebar .recent-articles .article-number.active {
    background-color: #2563eb
}

.tag-sidebar .recent-articles .article-number.inactive {
    background-color: #9ca3af
}

.tag-sidebar .recent-articles .article-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-weight: 500
}

/* 前三个项目为蓝色，后七个为灰色 */
.tag-sidebar .recent-articles .article-item:nth-child(1) .article-number,
.tag-sidebar .recent-articles .article-item:nth-child(2) .article-number,
.tag-sidebar .recent-articles .article-item:nth-child(3) .article-number {
    background-color: #2563eb
}

.tag-sidebar .recent-articles .article-item:nth-child(n+4) .article-number {
    background-color: #9ca3af
}

/* 近期问答 / 近期文章 sidebar end */

/* 申请试听课程 sidebar star */
.tag-sidebar .trial-form {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 17px;
    overflow: hidden;
    box-sizing: border-box
}

.tag-sidebar .trial-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    filter: blur(4px);
    z-index: -1
}

.tag-sidebar .trial-form .form-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1
}

.tag-sidebar .trial-form .form-group {
    margin-bottom: 16px
}

.tag-sidebar .trial-form .form-input {
    width: 90%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease
}

.tag-sidebar .trial-form .form-input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2)
}

.tag-sidebar .trial-form .submit-btn {
    width: 100%;
    padding: 12px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 16px
}

.tag-sidebar .trial-form .submit-btn:hover {
    background: #cc0000
}

.tag-sidebar .trial-form .form-footer {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    position: relative;
    z-index: 1
}

/* 申请试听课程 sidebar end */

@media (max-width:1200px) {
    .tag-sidebar {
        width: 300px
    }

    .tag-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-img {
        width: 130px;
        height: 90px
    }
}