/* 新闻列表页（时政新闻） - 依 Figma 节点 2487:955 */

.news-page {
    background: #fff;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    width: 100%;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    height: 56px;
}

.breadcrumb-home {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.breadcrumb-item,
.breadcrumb-current {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1;
}

.breadcrumb-item:hover {
    color: var(--primary-blue);
}

.breadcrumb-sep {
    margin: 0 12px;
    font-size: 14px;
    color: #999;
    line-height: 1;
}

/* ========== 主体布局 ========== */
.news-main {
    width: 100%;
}

.news-layout {
    display: flex;
    gap: 87px;
    align-items: flex-start;
    padding-bottom: 90px;
}

/* ========== 左侧栏 ========== */
.news-sidebar {
    flex: 0 0 320px;
    width: 320px;
}

/* 侧栏标题：背景取自 hnu-images/slide/title-bg.png */
.sidebar-title {
    width: 320px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../hnu-images/slide/title-bg.png') center center no-repeat;
    background-size: cover;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
}

.sidebar-menu {
    background: #f0f8ff;
    padding: 22px 0;
}

.sidebar-menu-item {
    position: relative;
}

.sidebar-menu-item > a {
    position: relative;
    display: block;
    height: 57px;
    line-height: 57px;
    padding: 0 26px;
    text-align: center;
    font-size: 18px;
    color: var(--text-main);
}

.sidebar-menu-item > a:hover {
    color: var(--primary-blue);
}

/* 当前栏目：背景取自 hnu-images/slide/item-active-bg.png（蓝条 + 右上角折角，向上溢出 5px） */
.sidebar-menu-item.active > a {
    position: relative;
    z-index: 1;
    width: calc(100% + 7px);
    color: #fff;
}

.sidebar-menu-item.active > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 100%;
    height: 62px;
    z-index: -1;
    background: url('../hnu-images/slide/item-active-bg.png') no-repeat;
    background-size: 100% 100%;
}

/* ========== 侧栏子菜单（三级菜单展开收起） ========== */
/* 展开/收起箭头：默认朝下，展开后朝上 */
.sidebar-arrow {
    position: absolute;
    top: 50%;
    right: 26px;
    width: 0;
    height: 0;
    margin-top: -4px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #909399;
    transition: transform .3s;
    cursor: pointer;
}

/* 放大箭头点击热区 */
.sidebar-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
}

.sidebar-menu-item.open > a > .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-menu-item.active > a > .sidebar-arrow {
    border-top-color: #fff;
}

.sidebar-submenu {
    display: none;
    padding: 4px 0 8px;
    background: #e9f2fd;
}

.sidebar-menu-item.open > .sidebar-submenu {
    display: block;
}

.sidebar-submenu .sidebar-menu-item > a {
    height: 46px;
    line-height: 46px;
    padding: 0 26px;
    font-size: 16px;
    color: #666;
}

.sidebar-submenu .sidebar-menu-item > a:hover {
    color: var(--primary-blue);
}

/* 更深层级 */
.sidebar-submenu .sidebar-submenu .sidebar-menu-item > a {
    font-size: 15px;
}

/* 子层级的当前项：不使用一级栏目的蓝色条背景 */
.sidebar-submenu .sidebar-menu-item.active > a {
    width: auto;
    color: var(--primary-blue);
}

.sidebar-submenu .sidebar-menu-item.active > a::before {
    display: none;
}

/* ========== 右侧栏目标题 ========== */
.news-content {
    flex: 1;
    min-width: 0;
}

.news-content-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.news-content-icon {
    flex-shrink: 0;
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.news-content-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* ========== 新闻卡片 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.news-card {
    display: flex;
    height: 222px;
    background: #f6f8fa;
    overflow: hidden;
}

.news-card-img {
    flex-shrink: 0;
    display: block;
    width: 340px;
    height: 222px;
    margin: 0;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 36px 22px 26px;
}

.news-card-title {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-title:hover {
    color: var(--primary-blue);
}

.news-card-desc {
    margin-top: 12px;
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-sub);
}

.news-card-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #54616d;
}

.news-card-more:hover {
    color: var(--primary-blue);
}

/* 悬停态：整卡蓝底、文字反白（设计稿首个卡片展示的是 hover 效果，仅桌面端） */
@media (hover: hover) {
    .news-card:hover {
        background: var(--primary-blue);
    }

    .news-card:hover .news-card-title {
        color: #fff;
    }

    .news-card:hover .news-card-title:hover {
        color: #fff;
        opacity: 0.9;
    }

    .news-card:hover .news-card-desc,
    .news-card:hover .news-card-date,
    .news-card:hover .news-card-more {
        color: #d1e1f1;
    }
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 86px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    background: #f3f5f8;
    font-size: 16px;
    color: var(--text-main);
}

.page-num {
    width: 42px;
}

.page-text {
    padding: 0 18px;
}

.page-btn:hover {
    color: var(--primary-blue);
}

.page-btn.is-current {
    background: var(--primary-blue);
    color: #fff;
}
