/* ========================================
   instrument.css
   特点：1. 9张海报3x3网格展示 2. 每页9张 3. 支持分页 4. 响应式适配
   ======================================== */
/* ==================== 页面主体容器 ==================== */
.instrument-main {
    min-height: 90vh;
    margin: 0 10%;
    background-color: #fff;
    padding: 4rem 0;
}

/* ==================== 核心列表布局（3×3网格） ==================== */
.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 35px; /* 行间距45px，列间距35px */
    margin: 0 auto 40px;
    padding-top: 35px;
    min-height: calc(200px * 3 + 45px * 2);
    align-content: start;
    max-width: 1400px;
}

/* ==================== 海报卡片核心样式【修复双阴影关键】 ==================== */
.article-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 20px 20px 20px 0;
    transition: transform 0.3s ease; /* 删除卡片自身阴影，只保留上浮动效 */
    cursor: pointer; /* 鼠标悬浮手型 */
}
/* 悬浮仅上浮，无额外阴影，避免和图片阴影重叠 */
.article-card:hover {
    transform: translateY(-5px);
}

/* ==================== 图片容器+上凸效果【唯一阴影载体，悬浮加深】 ==================== */
.article-image {
    position: relative;
    margin-top: -30px; /* 图片向上突出卡片 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 默认轻量阴影 */
    z-index: 2;
    width: 100%;
    transition: box-shadow 0.3s ease; /* 阴影单独过渡，更丝滑 */
}
.article-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}
/* 悬浮时：仅图片阴影加深 + 图片放大，视觉统一无重叠，效果更高级 */
.article-card:hover .article-image {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}
.article-card:hover img {
    transform: scale(1.05);
}

/* ==================== 标题文字居中样式 ==================== */
.text-box {
    padding: 15px 15px 0 15px;
    box-sizing: border-box;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 450px;
    width: 450px;
}
.text-date{
    text-align: right;
    padding-bottom: 10px;
    padding-right: 15px;
    box-sizing: border-box;
    font-size: 14px;
}
/* ==================== 分页器完整样式 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}
.page-info {
    font-size: 13px;
    color: #666;
    margin-right: 15px;
}
.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.3s ease;
}
.page-btn:hover, .page-num:hover {
    border-color: #0066cc;
    color: #0066cc;
}

/* ==================== 响应式布局适配 ==================== */
@media screen and (max-width: 1200px) {
    .article-list {
        gap: 35px 25px;
        padding: 25px 20px 0;
    }
    .text-box {
        padding: 5px 0;
        font-size: 16px;
    }
}
@media screen and (max-width: 1000px) {
    .article-list {
        grid-template-columns: repeat(2, 1fr);
        min-height: calc(200px * 5 + 45px * 4);
    }
}
@media screen and (max-width: 768px) {
    .instrument-main {
        margin: 0 5%;
        padding: 2rem 0;
    }
    .article-list {
        gap: 25px 20px;
    }
    .text-box {
        padding: 4px 0;
        font-size: 12px;
    }
}
@media screen and (max-width: 480px) {
    .article-list {
        grid-template-columns: 1fr;
        padding: 20px 15px 0;
    }
    .pagination {
        flex-wrap: wrap;
    }
    .page-info {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .page-btn, .page-num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .text-box {
        padding: 4px 0;
        font-size: 8px;
    }
}