/**
 * cursor: 新闻中心列表页样式 —— 分类 Tab、卡片网格、视频卡、查看更多
 */

/* ========== Banner ========== */
.news-banner {
    width: 100%;
    overflow: hidden;
}

.news-banner img {
    width: 100%;
    display: block;
}

/* ========== 列表区容器 ========== */
.news-list-section {
    padding: 64px 0 80px;
    background: #fff;
}

.news-list-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 分类 Tab ========== */
.news-tabs {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.news-tab {
    min-width: 120px;
    padding: 10px 28px;
    border: 1px solid #000;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.news-tab:hover:not(.active) {
    background: #f5f5f5;
}

.news-tab.active {
    background: #000;
    color: #fff;
}

/* ========== 卡片网格 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* ========== 普通卡片 ========== */
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

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

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* cursor: 底部预留 CTA 高度，避免悬停黑条遮挡标题/日期 */
    padding: 20px 20px 60px;
}

.news-card-title {
    margin: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    color: #111;
    /* cursor: 固定两行高度，避免网格错位 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.news-card-date {
    margin-top: 16px;
    font-size: 13px;
    color: #999;
}

/* ========== 视频封面播放图标 ========== */
.news-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 20px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.news-card-play i {
    margin-left: 3px;
}

/* cursor: CTA 绝对定位叠加，不占文档流，避免 hover 撑高同行卡片 */
.news-card-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
}

.news-card:hover .news-card-cta {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.news-card-cta:hover {
    background: #222;
    color: #fff;
}

.news-card-cta-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* cursor: 触控设备无 hover，始终展示 CTA（底部空间桌面侧已预留） */
@media (hover: none) {
    .news-card-cta {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

/* ========== 查看更多 ========== */
.news-load-more-wrap {
    display: flex;
    justify-content: center;
}

.news-load-more {
    min-width: 200px;
    padding: 14px 48px;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.news-load-more:hover {
    background: #222;
}

.news-load-more.is-hidden {
    display: none;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .news-list-section {
        padding: 40px 0 56px;
    }

    .news-tabs {
        gap: 10px;
        margin-bottom: 32px;
    }

    .news-tab {
        min-width: 0;
        padding: 8px 16px;
        font-size: 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 36px;
    }

    .news-card-title {
        font-size: 15px;
    }
}
