﻿/* 科研成果列表页 - 湖南大学生命医学交叉研究院（依 Figma 设计稿 PC 端）
   内页公共骨架（Banner / 面包屑 / 两栏布局 / 左侧栏目导航）见 page-side.css */

/* ========== 页面主体 ========== */
.page-main {
    padding-bottom: 54px;
}

/* ========== 右侧成果列表 ========== */
.content-main {
    flex: 1;
    min-width: 0;
}

.ach-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ach-item a {
    display: flex;
    align-items: center;
    height: 66px;
    padding: 0 39px 0 34px;
    background: #F5F5F5;
    border-radius: 8px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.ach-item a:hover {
    background: var(--primary-red);
}

.ach-item a:hover .ach-title,
.ach-item a:hover .ach-date {
    color: #fff;
}

.ach-title {
    flex: 1;
    min-width: 0;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ach-date {
    flex-shrink: 0;
    margin-left: 20px;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-sub);
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 34px;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

.pg-total {
    margin-right: 12px;
    font-size: 14px;
    line-height: 24px;
    color: var(--text-main);
}

.pg-total b {
    font-size: 16px;
    font-weight: 700;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 37px;
    height: 24px;
    padding: 0 9px;
    background: #fff;
    border: 1px solid #DDD;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1;
    color: var(--text-main);
    box-sizing: border-box;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pg-num {
    min-width: 24px;
    padding: 0;
}

.pg-btn.is-disabled {
    color: #C9C9C9;
    pointer-events: none;
}

.pg-num.is-current {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

.pg-btn:not(.is-disabled):not(.is-current):hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* 分页中移动端专属的部分（首页/尾页按钮与移动端文案），桌面端隐藏 */
.pg-edge,
.pg-label-mob {
    display: none;
}

/* ============================================================
   响应式：平板（768–1279px）为过渡兜底；移动端（≤767px）
   ============================================================ */
@media (min-width: 768px) and (max-width: 1279px) {
    .ach-item a {
        padding: 0 20px;
    }
}

@media (max-width: 767px) {

    /* ---------- 成果列表 ---------- */
    .ach-list {
        gap: 12px;
    }

    .ach-item a {
        display: block;
        height: auto;
        padding: 9px 15px 10px;
        border-radius: 0;
    }

    .ach-title {
        display: block;
        font-size: 14px;
        line-height: 23px;
        white-space: normal;
    }

    .ach-date {
        display: block;
        margin: 7px 0 0;
        font-size: 12px;
        line-height: 16px;
        color: #8E98A2;
    }

    /* ---------- 分页 ---------- */
    .page-main {
        padding-bottom: 35px;
    }

    .pagination {
        gap: 5px;
        margin-top: 35px;
    }

    .pg-total {
        display: none;
    }

    .pg-btn {
        min-width: 36px;
        height: 33px;
        padding: 0 8px;
        background: #F3F5F8;
        border: none;
        border-radius: 0;
        font-size: 12px;
        color: #666;
    }

    .pg-num {
        min-width: 20px;
        padding: 0;
    }

    .pg-edge {
        display: inline-flex;
    }

    /* 设计稿中不可用按钮不做置灰处理，与其余按钮同色 */
    .pg-btn.is-disabled {
        color: #666;
    }

    .pg-label-pc {
        display: none;
    }

    .pg-label-mob {
        display: inline;
    }

    .pg-num.is-current {
        background: #C13432;
        color: #fff;
    }
}