﻿/* ========== 二级页面全局布局 ========== */
.second-wrapper {
    padding-top: 0;
}

/* ========== 入场动画初始状态 ========== */
.second-sidebar {
    opacity: 0;
}
.second-content {
    opacity: 0;
}


/* ========== 静态Banner ========== */
.second-banner {
    width: 100%;
    height: 400px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.second-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.second-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

/* ========== 主体区域：侧边栏 + 右侧内容 ========== */
.second-main {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 40px 0 60px;
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

/* ========== 左侧快捷导航 ========== */
.second-sidebar {
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 0;
    align-self: flex-start;
    position: sticky;
    top: 120px;
    overflow: hidden;
    margin-top: -76px;
    z-index: 3;
}
.second-sidebar .sidebar-title {
    background: #c20c1e;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 20px 0;
    letter-spacing: 2px;
}
.second-sidebar .sidebar-nav {
    padding: 10px 0;
}
.second-sidebar .sidebar-nav a {
    display: block;
    padding: 16px 28px;
    font-size: 16px;
    color: #333;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}
.second-sidebar .sidebar-nav a:hover {
    color: #c20c1e;
    background: #fef0f0;
    border-left-color: #c20c1e;
}
.second-sidebar .sidebar-nav a.sidebar-active {
    color: #c20c1e;
    background: #fef0f0;
    border-left-color: #c20c1e;
    font-weight: 600;
}

/* ========== 右侧内容区 ========== */
.second-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 15px 36px 40px;
}

/* ========== 面包屑盒子（右上角） ========== */
.second-breadcrumb-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.second-breadcrumb {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}
.second-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.second-breadcrumb a:hover {
    color: #c20c1e;
}
.second-breadcrumb span {
    color: #c20c1e;
}

/* ========== 页面标题盒子（左侧） ========== */
.second-page-title-wrap {
    margin-bottom: 24px;
}
.second-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.second-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #c20c1e;
    border-radius: 2px;
}

/* ========== 分隔线 ========== */
.second-divider {
    width: 100%;
    height: 1px;
    background: #eee;
    margin-bottom: 28px;
}

/* ================================================================ */
/*  图文详情 (content.1.htm)                                       */
/* ================================================================ */
.article-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.article-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    color: #999;
}
.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-meta .meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}
.article-body {
    font-size: 16px;
    color: #444;
    line-height: 2;
    margin-bottom: 36px;
}
.article-body p {
    text-indent: 2em;
    margin-bottom: 16px;
}
.article-body img {
    max-width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}
.article-pager {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    gap: 16px;
}
.article-pager a {
    flex: 1;
    padding: 14px 20px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-pager a:hover {
    background: #fef0f0;
    color: #c20c1e;
}
.article-pager a.prev-link {
    justify-content: flex-start;
}
.article-pager a.next-link {
    justify-content: flex-end;
    text-align: right;
}
.article-pager a .pager-arrow {
    font-size: 18px;
    font-weight: 700;
}

/* ================================================================ */
/*  文字列表 (content.2.htm)                                        */
/* ================================================================ */
.text-list {}
.text-list-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px dashed #e8e8e8;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 20px;
}
.text-list-item:last-child {
    border-bottom: none;
}
.text-list-item:hover {
    background: #fefafa;
    padding-left: 12px;
    padding-right: 12px;
}
.text-list-item .text-list-num {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.text-list-item:hover .text-list-num {
    background: #c20c1e;
    color: #fff;
}
.text-list-item .text-list-info {
    flex: 1;
    min-width: 0;
}
.text-list-item .text-list-info h4 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.text-list-item:hover .text-list-info h4 {
    color: #c20c1e;
}
.text-list-item .text-list-info p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-list-item .text-list-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-self: center;
    opacity: 0.4;
    transition: all 0.25s ease;
}
.text-list-item:hover .text-list-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ================================================================ */
/*  时间列表 (content.3.htm)                                        */
/* ================================================================ */
.time-list {}
.time-list-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px dashed #e8e8e8;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 20px;
}
.time-list-item:last-child {
    border-bottom: none;
}
.time-list-item:hover {
    background: #fefafa;
    padding-left: 12px;
    padding-right: 12px;
}
/* 时间方块 */
.time-block {
    width: 72px;
    min-width: 72px;
    background: #c20c1e;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
    align-self: flex-start;
}
.time-block .time-day {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 0 4px;
}
.time-block .time-ym {
    display: block;
    font-size: 13px;
    padding: 6px 0;
    background: rgba(0,0,0,0.15);
    letter-spacing: 1px;
}
/* 右侧信息 */
.time-list-item .time-list-info {
    flex: 1;
    min-width: 0;
}
.time-list-item .time-list-info h4 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.time-list-item:hover .time-list-info h4 {
    color: #c20c1e;
}
.time-list-item .time-list-info p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.time-list-item .time-list-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-self: center;
    opacity: 0.4;
    transition: all 0.25s ease;
}
.time-list-item:hover .time-list-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ================================================================ */
/*  图文列表 (content.4.htm)                                        */
/* ================================================================ */
.image-text-list {}
.image-text-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px dashed #e8e8e8;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 24px;
}
.image-text-item:last-child {
    border-bottom: none;
}
.image-text-item:hover {
    background: #fefafa;
    padding-left: 12px;
    padding-right: 12px;
}
.image-text-item .it-thumb {
    width: 200px;
    min-width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.image-text-item .it-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.image-text-item:hover .it-thumb img {
    transform: scale(1.06);
}
.image-text-item .it-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}
.image-text-item .it-info h4 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.image-text-item:hover .it-info h4 {
    color: #c20c1e;
}
.image-text-item .it-info .it-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
}
.image-text-item .it-info .it-time {
    font-size: 13px;
    color: #bbb;
    margin-top: auto;
}

/* ================================================================ */
/*  折叠列表 (content.5.htm)                                        */
/* ================================================================ */

/* 区域标题 */
.collapse-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #c20c1e;
    margin-bottom: 24px;
    text-align: left;
}

/* 折叠列表容器 - 两个独立列，瀑布流 */
.collapse-list {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 每列独立堆叠 */
.collapse-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.collapse-col .collapse-item {
    margin-bottom: 0;
}

/* 单个折叠项 */
.collapse-item {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}
.collapse-item:hover {
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.12);
}
.collapse-item.open {
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.12);
}

/* 折叠头部 */
.collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #f5f5f5;
    transition: background 0.3s ease;
    user-select: none;
    gap: 10px;
    color: #c20c1e;
}
.collapse-header:hover {
    background: #fef0f0;
}

/* 学院名称 */
.collapse-header .collapse-title {
    font-size: 17px;
    font-weight: 500;
    color: #c20c1e;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.collapse-header .collapse-title:hover {
    color: #a00a18;
}

/* 加号/叉号图标 */
.collapse-header .collapse-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 400;
    color: #c20c1e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* 展开状态 - 头部背景变为红色浅灰色，字体颜色不变 */
.collapse-item.open .collapse-header {
    background: #f0dcdc;
}
.collapse-item.open .collapse-header .collapse-title {
    color: #c20c1e;
}
.collapse-item.open .collapse-header .collapse-icon {
    color: #c20c1e;
    transform: rotate(45deg);
}

/* 折叠体 - 渐变背景（更淡的灰到红） */
.collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: linear-gradient(to bottom, #f0f0f0, #f5e0e0);
}

/* 专业列表 */
.collapse-major-list {
    list-style: none;
    margin: 0;
    padding: 16px 20px 16px 28px;
}
.collapse-major-list li {
    position: relative;
    padding: 6px 0 6px 16px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}
/* 左侧红色圆点 */
.collapse-major-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c20c1e;
}
.collapse-major-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.collapse-major-list li a:hover {
    color: #c20c1e;
}

/* ================================================================ */
/*  宫格列表 (content.6.htm)                                        */
/* ================================================================ */
.grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}
.grid-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.grid-item .grid-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.grid-item .grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.grid-item:hover .grid-img img {
    transform: scale(1.06);
}
.grid-item .grid-info {
    padding: 16px;
}
.grid-item .grid-info .grid-time {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 8px;
}
.grid-item .grid-info .grid-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.grid-item:hover .grid-info .grid-title {
    color: #c20c1e;
}

/* ================================================================ */
/*  分页组件                                                        */
/* ================================================================ */
.second-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
}
.second-pagination a,
.second-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    text-decoration: none;
    transition: all 0.2s ease;
}
.second-pagination a:hover {
    background: #fef0f0;
    color: #c20c1e;
}
.second-pagination span.active {
    background: #c20c1e;
    color: #fff;
    font-weight: 600;
}
.second-pagination .page-prev,
.second-pagination .page-next {
    width: auto;
    padding: 0 14px;
}

/* ========== 响应式 - 平板 (≤1024px) ========== */
@media (max-width: 1024px) {
    .second-wrapper {
        padding-top: 0;
    }
    .second-banner {
        height: 300px;
    }
    .second-main {
        width: 92%;
        gap: 20px;
        padding: 24px 0 40px;
    }
    .second-sidebar {
        width: 180px;
        min-width: 180px;
    }
    .second-sidebar .sidebar-title {
        font-size: 17px;
        padding: 16px 0;
    }
    .second-sidebar .sidebar-nav a {
        padding: 14px 18px;
        font-size: 14px;
    }
    .second-content {
        padding: 24px 20px;
    }
    .second-page-title {
        font-size: 24px;
    }

    /* 图文列表 */
    .image-text-item .it-thumb {
        width: 160px;
        min-width: 160px;
        height: 110px;
    }
    .image-text-item .it-info {
        min-height: 110px;
    }

    /* 宫格列表 */
    .grid-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ========== 响应式 - H5手机端 (≤768px) ========== */
@media (max-width: 768px) {
    .second-wrapper {
        padding-top: 0;
    }
    .second-banner {
        height: 240px;
    }
    .second-main {
        width: 94%;
        flex-direction: column;
        gap: 16px;
        padding: 16px 0 32px;
        margin-top: -20px;
    }

    /* 侧边栏 → 横向滚动 */
    .second-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        border-radius: 8px;
        margin-top: 0;
    }
    .second-sidebar .sidebar-title {
        font-size: 16px;
        padding: 12px 0;
    }
    .second-sidebar .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }
    .second-sidebar .sidebar-nav::-webkit-scrollbar {
        display: none;
    }
    .second-sidebar .sidebar-nav a {
        flex-shrink: 0;
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .second-sidebar .sidebar-nav a:hover,
    .second-sidebar .sidebar-nav a.sidebar-active {
        border-left-color: transparent;
        border-bottom-color: #c20c1e;
    }

    .second-content {
        padding: 20px 16px;
        border-radius: 8px;
    }
    .second-breadcrumb {
        font-size: 12px;
    }
    .second-page-title {
        font-size: 20px;
    }

    /* 图文详情 */
    .article-title {
        font-size: 20px;
    }
    .article-meta {
        gap: 16px;
        flex-wrap: wrap;
        font-size: 12px;
    }
    .article-body {
        font-size: 15px;
    }
    .article-pager {
        flex-direction: column;
        gap: 10px;
    }
    .article-pager a {
        font-size: 13px;
        padding: 12px 16px;
    }

    /* 文字列表 */
    .text-list-item {
        padding: 14px 0;
        gap: 12px;
    }
    .text-list-item:hover {
        padding-left: 8px;
        padding-right: 8px;
    }
    .text-list-item .text-list-info h4 {
        font-size: 15px;
    }
    .text-list-item .text-list-info p {
        font-size: 12px;
    }
    .text-list-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    /* 时间列表 */
    .time-list-item {
        padding: 14px 0;
        gap: 12px;
    }
    .time-list-item:hover {
        padding-left: 8px;
        padding-right: 8px;
    }
    .time-block {
        width: 56px;
        min-width: 56px;
    }
    .time-block .time-day {
        font-size: 24px;
        padding: 8px 0 2px;
    }
    .time-block .time-ym {
        font-size: 11px;
        padding: 4px 0;
    }
    .time-list-item .time-list-info h4 {
        font-size: 15px;
    }
    .time-list-item .time-list-info p {
        font-size: 12px;
    }

    /* 图文列表 */
    .image-text-item {
        gap: 14px;
        padding: 14px 0;
    }
    .image-text-item:hover {
        padding-left: 8px;
        padding-right: 8px;
    }
    .image-text-item .it-thumb {
        width: 120px;
        min-width: 120px;
        height: 84px;
    }
    .image-text-item .it-info {
        min-height: 84px;
    }
    .image-text-item .it-info h4 {
        font-size: 15px;
    }
    .image-text-item .it-info .it-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    .image-text-item .it-info .it-time {
        font-size: 11px;
    }

    /* 折叠列表 */
    .collapse-section-title {
        font-size: 22px;
    }
    .collapse-list {
        flex-direction: column;
        gap: 10px;
    }
    .collapse-col {
        gap: 10px;
    }
    .collapse-header {
        padding: 14px 16px;
    }
    .collapse-header .collapse-title {
        font-size: 15px;
    }
    .collapse-major-list {
        padding: 12px 16px 12px 22px;
    }
    .collapse-major-list li {
        font-size: 14px;
    }

    /* 宫格列表 */
    .grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .grid-item .grid-info {
        padding: 10px;
    }
    .grid-item .grid-info .grid-title {
        font-size: 14px;
    }
    .grid-item .grid-info .grid-time {
        font-size: 11px;
        margin-bottom: 4px;
    }

    /* 分页 */
    .second-pagination {
        gap: 4px;
        margin-top: 24px;
    }
    .second-pagination a,
    .second-pagination span {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 4px;
    }
}

/* ========== 响应式 - 小屏手机 (≤640px) ========== */
@media (max-width: 640px) {
    .second-banner {
        height: 200px;
    }
    .second-main {
        width: 96%;
    }
    .second-content {
        padding: 16px 12px;
    }
    .second-page-title {
        font-size: 18px;
    }

    /* 宫格列表 → 两列 */
    .grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 图文列表缩略图更小 */
    .image-text-item .it-thumb {
        width: 100px;
        min-width: 100px;
        height: 70px;
    }
    .image-text-item .it-info {
        min-height: 70px;
    }
}