/* 内页内容样式 - 取自经贸学院主题，仅含 inner-page 内容布局，不含 header/footer/nav */

.news-page,
.inner-page,
.notice-detail-page {
    background: #fff;
}

/* 面包屑 */
.breadcrumb {
    max-width: 1587px;
    margin: 0 auto;
    padding: 44px 0;
    font-size: 14px;
    color: #8C8C8C;
}

.breadcrumb-prefix {
    color: #8C8C8C;
}

.breadcrumb a {
    color: #8C8C8C;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #C41E24;
}

.breadcrumb .separator {
    margin: 0 4px;
    color: #8C8C8C;
}

.breadcrumb .current {
    color: #C41E24;
}

/* 内页主体 */
.inner-main {
    max-width: 1587px;
    margin: 0 auto;
    display: flex;
    gap: 75px;
    align-items: flex-start;
    justify-content: space-between;
}

/* 侧边栏 */
.sidebar {
    width: 340px;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
}

.sidebar-header {
    height: 100px;
    background: url('../image/faculty-section-title-bg@2x.png') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.sidebar-menu {
    width: 100%;
    padding: 20px 0 30px;
    background: #fff;
    border: 1px solid #EEEEEE;
    box-sizing: border-box;
}


.sidebar-menu-item {
    position: relative;
}

.sidebar-menu-item > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    color: #333333;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s;
}

.sidebar-menu-item > a:hover {
    color: #C13432;
}

.sidebar-menu-item.active > a {
    width: calc(100% - 24px);
    max-width: 296px;
    min-height: 60px;
    padding: 14px 16px;
    margin: 0 auto;
    color: #fff;
background: linear-gradient(90deg, #C13432 0%, #BC1613 100%);
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 侧边栏二级菜单 */
.sidebar-submenu {
    display: none;
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
}

/* 二级菜单展开状态 */
.sidebar-menu-item.open > .sidebar-submenu {
    display: flex;
}

/* 有子菜单的一级菜单项添加展开收起图标 */
.sidebar-toggle {
    position: absolute;
    right: 32px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: url('../image/slider-open.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
    z-index: 1;
    /* 普通收起：slider-open 旋转180° */
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* 普通展开：slider-open 正常 */
.sidebar-menu-item:not(.active).open .sidebar-toggle {
    transform: rotate(0deg);
}

/* 激活状态：用 slider-close-avtive */
.sidebar-menu-item.active .sidebar-toggle {
    background-image: url('../image/slider-close-avtive.png');
    top: 22px;
    transform: rotate(0deg);
}

/* 激活展开：slider-close-avtive 旋转180° */
.sidebar-menu-item.active.open .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    color: #333333;
    font-size: 16px;
    text-decoration: none;
    line-height: 48px;
    transition: color 0.3s;
}

.sidebar-submenu-item::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #9F9F9F;
    flex-shrink: 0;
}

.sidebar-submenu-item:hover {
    color: #C13432;
}

/* 内容区域 */
.content-area {
    flex: 1;
    min-width: 0;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 70px;
}

.news-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 84px;
    padding: 18px 24px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    text-decoration: none;
}

.news-list-item:hover {
    background: linear-gradient(90deg, #C13431 0%, #B12421 100%);
}

.news-list-item:hover .item-title {
    color: #fff;
}

.news-list-item:hover .item-date {
    color: #fff;
}

.item-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-date {
    flex-shrink: 0;
    font-size: 16px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    margin-bottom: 70px;
}

.page-btn,
.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

.page-num {
    width: 36px;
    padding: 0;
}

.page-btn:hover,
.page-num:hover {
    color: #C41E24;
    border-color: #C41E24;
}

.page-num.active {
    background: #C41E24;
    color: #fff;
    border-color: #C41E24;
}

/* 详情页顶部横幅 */
.detail-top-banner {
    line-height: 0;
    margin-bottom: -4px;
}

.detail-top-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 详情内容 */
.detail-content {
    background: #fff;
    border-radius: 4px;
    padding: 40px 50px 50px;
    margin-bottom: 0 !important;
}

.detail-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 18px;
}

.detail-meta {
    text-align: center;
    margin-bottom: 35px;
}

.detail-time {
    font-size: 14px;
    color: #999;
}

.detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.detail-body p {
    margin-bottom: 14px;
    text-indent: 2em;
    text-align: justify;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
}

.detail-divider {
    height: 1px;
    background: #C13432;
    margin-bottom: 40px;
}

.detail-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-article {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    color: #666666;
    text-decoration: none;
}

.nav-article:hover {
    color: #C13432;
    text-decoration-line: underline;
}

.nav-icon {
    width: 13px;
    height: 13px;
    background: url('../image/icon-marker-gold.png') no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    margin-top: 5px;
}

.nav-label {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-title {
    line-height: 1.6;
}

/* 视频播放器 */
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    aspect-ratio: 16 / 9;
    outline: none;
    background: #000;
}

.video-description {
    padding: 24px 0 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.video-description h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.video-description p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    text-indent: 0;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1200px) {
    .breadcrumb {
        padding: 24px;
        font-size: 13px;
    }

    .inner-main {
        width: 100%;
        padding: 0 24px 60px;
        gap: 30px;
        box-sizing: border-box;
    }

    .sidebar {
        width: 280px;
    }

    .sidebar-header {
        height: 80px;
        font-size: 20px;
    }

    .sidebar-menu {
        width: calc(100% - 20px);
        padding: 15px 0 20px;
    }

    .sidebar-menu-item > a {
        font-size: 17px;
        padding: 12px 20px;
        line-height: 1.4;
    }

    .detail-content {
        padding: 35px 40px 45px;
    }

    .detail-title {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .inner-main {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-bottom: 50px;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-header {
        height: 64px;
        font-size: 18px;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 0;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .sidebar-menu-item {
        flex: 1 1 auto;
        min-width: 110px;
        border-bottom: 1px solid #f0f0f0;
    }

    .sidebar-menu-item > a {
        justify-content: center;
        padding: 10px 16px;
        min-height: 48px;
        line-height: 1.4;
        font-size: 15px;
        border-bottom: 2px solid transparent;
        box-sizing: border-box;
    }

    .sidebar-menu-item.active > a,
    .sidebar-menu-item > a:hover {
        width: auto;
        height: auto;
        margin: 0;
        background: transparent;
        color: #C13432;
        border-bottom-color: #C13432;
        border-radius: 0;
    }

    /* 992px 平板端隐藏子菜单 */
    .sidebar-submenu {
        display: none;
    }

    .detail-content {
        padding: 30px 30px 40px;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-body {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 15px;
        font-size: 12px;
    }

    .inner-main {
        flex-direction: column;
        padding: 10px 15px 40px;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
    }

    /* 移动端隐藏 sidebar-header */
    .sidebar-header {
        display: none;
    }

    /* 移动端侧边栏只显示当前 active 菜单项 */
    .sidebar-menu-item:not(.active) {
        display: none;
    }

    .sidebar-menu {
        display: block;
        padding: 0;
        border: none;
    }

    .sidebar-menu-item.active {
        display: block;
        min-width: 0;
    }

    .sidebar-menu-item.active > a {
        display: inline-block;
        width: auto;
        height: auto;
        padding: 0 0 6px;
        margin: 0;
        font-weight: bold;
        font-size: 16px;
        color: #333333;
        line-height: 1.6;
        border-bottom: 2px solid #C13432;
        background: transparent;
        border-radius: 0;
        justify-content: flex-start;
    }

    /* 移动端子菜单样式 */
    .sidebar-submenu {
        padding: 8px 0;
    }

    .sidebar-submenu-item {
        justify-content: flex-start;
        font-size: 14px;
        line-height: 40px;
    }

    .sidebar-submenu-item::before {
        position: static;
        transform: none;
        margin-right: 8px;
    }

    /* 新闻列表 */
    .news-list {
        gap: 10px;
        margin-bottom: 30px;
    }

    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto;
        padding: 14px 16px;
    }

    .item-title {
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .item-date {
        font-size: 12px;
    }

    .pagination {
        gap: 6px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .page-btn,
    .page-num {
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .page-num {
        width: 32px;
        padding: 0;
    }

    /* 详情页 */
    .detail-top-banner {
        display: none;
    }

    .detail-content {
        padding: 25px 20px 30px;
    }

    .video-player-wrapper {
        margin: 0 -10px 20px;
        border-radius: 4px;
    }

    .video-description {
        padding: 16px 0 6px;
    }

    .video-description h3 {
        font-size: 16px;
    }

    .video-description p {
        font-size: 14px;
    }

    .detail-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .detail-meta {
        margin-bottom: 25px;
    }

    .detail-time {
        font-size: 13px;
    }

    .detail-body {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    .detail-body p {
        margin-bottom: 14px;
    }

    .detail-divider {
        margin-bottom: 20px;
    }

    .detail-nav {
        gap: 12px;
    }

    .nav-article {
        font-size: 13px;
        gap: 6px;
    }

    .nav-icon {
        width: 12px;
        height: 12px;
        margin-top: 3px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        padding: 12px 10px;
        font-size: 12px;
    }

    .inner-main {
        padding: 8px 10px 0;
    }

    .sidebar-menu-item.active > a {
        font-size: 15px;
    }

    .sidebar-submenu-item {
        font-size: 13px;
        line-height: 36px;
    }

    .news-list-item {
        padding: 12px 14px;
    }

    .item-title {
        font-size: 13px;
    }

    .page-btn,
    .page-num {
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }

    .page-num {
        width: 30px;
    }

    .detail-content {
        padding: 20px 16px 24px;
        margin-bottom: 0;
    }

    .video-player-wrapper {
        margin: 0 -8px 16px;
        border-radius: 2px;
    }

    .video-description h3 {
        font-size: 15px;
    }

    .video-description p {
        font-size: 13px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-body {
        font-size: 13px;
    }

    .nav-article {
        font-size: 12px;
    }
}
