/* =========================================================
    高考信息 / 中考信息 / 学考信息 / 教育教学 —— 鼠标移入切换标签页
    纯 CSS 实现：利用 :hover + :has() 选择器，无 JS、无 radio
    ========================================================= 
*/

/* 整体容器 */
.tabs-hover {
    width: 100%;
    position: relative;
}

/* 标签页导航容器 */
.tabs-hover .tab-nav-container {
    position: relative;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 标签页导航：每个标签是一个 .tab，带语义化类名用于 :has() 匹配 */
.tabs-hover .tab-nav {
    display: flex;
    position: relative;
    flex: 1;
}

.tabs-hover .tab {
    position: relative;
}

/* 标签标题 */
.tabs-hover .tab-label {
    display: block;
    padding: 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    margin-right: 20px;
}

/* 移入标签标题时的反馈 */
.tabs-hover .tab-label:hover {
    background-color: #f0f2f5;
    color: #c71d07;
}

/* 当前（被悬停或激活）标签标题高亮 —— 默认高考信息高亮 */
.tabs-hover .tab.active > .tab-label,
.tabs-hover .tab:hover > .tab-label {
    color: #c71d07;
    border-bottom-color: #c71d07;
    padding-bottom: 8px;
}

/* 更多按钮容器 - 固定在右侧 */
.tabs-hover .more-buttons-container {
    position: relative;
    width: 90px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 更多按钮样式（默认隐藏） */
.tabs-hover .more-btn {
    position: absolute;
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    color: #999999;
}

/* 悬停某标签或该标签激活 => 显示对应的"更多"按钮 */
.tabs-hover .more-btn.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 标签页内容区域 */
.tabs-hover .tab-content-wrapper {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding-top: 10px;
}

.tabs-hover .tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* 列表内容项 */
.tabs-hover .tab-content .item {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url(../images/dianzhui.png);
    background-repeat: no-repeat;
    background-position: 0px center;
    padding-left: 20px;
    cursor: pointer;
}

.tabs-hover .tab-content .item .item-left {
    width: 460px;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tabs-hover .tab-content .item .item-right {
    color: #999;
    font-size: 14px;
}

/* 滚动图片容器 */
.tabs-hover .tab-content .scrollPicBox {
    width: 230px; 
    height: 190px;
    cursor: pointer;
    margin-right: 10px;
}
.tabs-hover .tab-content .scrollPicBox .scrollPic {
    width: 100%;
    height: 150px;
}
.tabs-hover .tab-content .scrollPicBox .scrollText {
    width: 100%;
    height: 25px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333;
}

/* ===== 核心：鼠标悬停某标签或该标签激活 => 显示对应内容面板 ===== */
.tabs-hover .tab-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}
