/* ========== 栏目模板页样式（column.html） ========== */
/* 复刻 nyMain 布局，颜色变量复用 index.css 的 :root */

/* ========== 覆盖 header-fixed 在栏目页的样式 ========== */
/* 首页有 padding-bottom: 120px 用于渐变覆盖轮播图，栏目页不需要 */
.header-fixed {
    padding-bottom: 0;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========== Banner 图片区 ========== */
.column-banner {
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-top: 104px; /* 为 fixed header 留出空间 */
}

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

/* ========== 主体区域 nyMain ========== */
.nyMain {
    width: 100%;
    background: var(--bg-light);
    padding: 30px 0 40px;
}

.nyContainer {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    gap: 24px;
}

/* ========== 左侧导航栏 ========== */
.nyLeft {
    width: 230px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nyLeft .nyTitle {
    background: var(--primary-color);
    padding: 22px 16px;
    text-align: center;
    position: relative;
}

.nyLeft .nyTitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid var(--primary-color);
}

.nyLeft .nyTitle h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nyLeft .nyNav {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
}

.nyLeft .nyNav li {
    border-bottom: 1px solid #f0f0f0;
}

.nyLeft .nyNav li:last-child {
    border-bottom: none;
}

.nyLeft .nyNav li a {
    display: block;
    padding: 14px 24px;
    color: var(--text-dark);
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nyLeft .nyNav li a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.06);
    padding-left: 32px;
}

.nyLeft .nyNav li.on a {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* ========== 右侧内容区 ========== */
.nyRight {
    flex: 1;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: 500px;
}

/* ========== 内容标题（含面包屑同行） ========== */
.nyContentTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.nyContentTitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.nyContentTitle h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 0;
}

/* 面包屑导航（标题右侧） */
.nyContentTitle .nyBreadcrumb {
    font-size: 13px;
    color: #999;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    flex-shrink: 0;
}

.nyContentTitle .nyBreadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.nyContentTitle .nyBreadcrumb a:hover {
    color: var(--primary-color);
}

/* ========== 文章列表（参考 bio.ncu.edu.cn txtList：时间在前，标题在后） ========== */
.nyList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nyList li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #e8e8e8;
    transition: var(--transition);
}

.nyList li:last-child {
    border-bottom: none;
}

.nyList li:hover {
    background: rgba(var(--primary-rgb), 0.03);
    padding-left: 8px;
}

/* 时间（在前） */
.nyList li .time {
    color: #999;
    font-size: 13px;
    font-family: Arial, "Helvetica Neue", sans-serif;
    flex-shrink: 0;
    margin-right: 16px;
    min-width: 80px;
}

/* 标题（在后） */
.nyList li a {
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
    padding-left: 16px;
}

.nyList li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: background 0.2s;
}

.nyList li a:hover {
    color: var(--primary-color);
}

.nyList li a:hover::before {
    background: var(--secondary-color);
}

/* ========== 分页导航 ========== */
.nyPaging {
    text-align: center;
    padding: 30px 0 10px;
    font-size: 13px;
}

.nyPaging a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.nyPaging a:hover,
.nyPaging a.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.nyPaging .pageInfo {
    color: #999;
    margin: 0 6px;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 1024px) {
    .nyContainer {
        width: 96%;
    }
}

@media screen and (max-width: 768px) {
    .column-banner {
        height: 160px;
    }

    .nyContainer {
        flex-direction: column;
    }

    .nyLeft {
        width: 100%;
    }

    .nyLeft .nyNav {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
    }

    .nyLeft .nyNav li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }

    .nyLeft .nyNav li a {
        padding: 10px 16px;
    }

    .nyLeft .nyNav li.on a {
        border-left: none;
        border-bottom: 2px solid var(--primary-color);
    }

    .nyRight {
        padding: 16px 18px;
    }
}
