/* taglist 标签文章列表页专用样式 */

/* 顶部 banner */
.tags-main-banner {
    height: 200px;
    background: #0067c1;
    display: none;
    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;
}

/* 主体布局：taglist_main 内含左侧主体 + 右侧 sidebar，分页位于其下 */
.tag-page {
    display: block;
}

.taglist_main {
    display: flex;
    align-items: flex-start;
}

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

/* 左侧主体：栏目标题 */
.tag-left .news_h1 {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 0 24px;
}

.tag-left .news_h1 .bk-title {
    font-family: 'iconfont';
    display: inline-block;
    line-height: 34px;
    margin: 20px 0;
    font-size: 22px;
    font-weight: bold;
    color: #1f2d3d;
    border-left: 5px solid #0c4698;
    padding-left: 15px;
}

/* 左侧主体：文章列表 */
.tag-left .article-list {
    font-family: 'Inter', sans-serif;
}

.tag-left .article-list>a {
    display: block;
    width: 100%;
}

.tag-left .article-list .article-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    transition: transform 0.2s ease;
}

.tag-left .article-list .article-item:hover {
    transform: translateY(-2px);
}

.tag-left .article-list .article-image {
    width: 300px;
    height: 175px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.tag-left .article-list .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

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

.tag-left .article-list .article-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
    cursor: pointer;
}

.tag-left .article-list .article-title:hover {
    color: #2563eb;
    text-decoration: underline;
}

.tag-left .article-list .article-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 80px;
}

.tag-left .article-list .article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 20px;
}

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

/* 热门校区 sidebar */
.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 0.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 */
.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 */
.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;
}

/* 响应式 */
@media (max-width: 1200px) {
    .tag-left .article-list .article-image {
        width: 220px;
        height: 140px;
    }

    .tag-sidebar {
        width: 300px;
    }

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