/* 媒体新闻网格布局样式 */
/* Media News Grid Layout Styles */

.media-news-page {
    background: #f5f5f5;
}

/* 强制媒体页面使用全宽布局 */
.media-news-page .row {
    display: block !important;
}

.media-news-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* 隐藏侧边栏 */
.media-news-page .secondary-sidebar,
.media-news-page .secondary-left-sidebar {
    display: none !important;
}

.media-news-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
}

.media-news-header .page-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.media-news-header .archive-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 新闻网格容器 */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* 新闻卡片 */
.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 400px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

/* 新闻图片 */
.news-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* 图片占位符（无图片时） */
.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 新闻卡片遮罩层 */
.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* 新闻内容 */
.news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    color: #fff;
}

/* 分类标签 */
.news-category-tag {
    display: inline-block;
    background: #e30613;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 新闻标题 */
.news-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 新闻元信息 */
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.news-date,
.news-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date::before {
    content: '📅';
    font-size: 12px;
}

.news-time::before {
    content: '🕐';
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .news-card {
        height: 380px;
    }

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

@media (max-width: 768px) {
    .media-news-header .page-title {
        font-size: 28px;
    }

    .news-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        height: 350px;
    }

    .news-card-content {
        padding: 20px;
    }

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

    .news-card-meta {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-card {
        height: 320px;
    }

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

    .news-card-content {
        padding: 15px;
    }

    .news-category-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* 分页样式 */
.media-news-content .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
}

.media-news-content .pagination a,
.media-news-content .pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.media-news-content .pagination a:hover {
    background: #e30613;
    color: #fff;
    border-color: #e30613;
}

.media-news-content .pagination .current {
    background: #e30613;
    color: #fff;
    border-color: #e30613;
}

/* 打印样式 */
@media print {
    .news-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .media-news-content .pagination {
        display: none;
    }
}
