/* ---- 1. 侧栏容器 ---- */
.contact-sidebar {
    margin-left: 20px;
    width: 360px;
}

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

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

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

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

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

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

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

.contact-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;
}

.contact-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;
}

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

.contact-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;
}

.contact-sidebar .hot-school-list-box>ul>li .hot-school-item .contact-sidebar-item-desc .school-item-name {
    color: #000000;
    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;
}

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

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

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

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

/* ---- 3. 申请试听课程 ---- */
/* 结构对齐 common_article_sidebar.htm 的 .trial-form，
   样式来源 css/common_article_sidebar.css，作用域限定在 .contact-sidebar 内，
   宽度由 285px 改为自适应容器（.contact-sidebar 宽 360px） */
.contact-sidebar .trial-form {
    width: auto;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
    position: sticky;
    top: 17px;
    overflow: hidden;
}

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

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

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

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

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

.contact-sidebar .trial-form .submit-btn {
    width: 100%;
    box-sizing: border-box;
    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;
}

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

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