/* ========================================
   新闻资讯页面样式
   用于: news.php, news_cate.php
   ======================================== */

/* 页面头部卡片 */
.page-header-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-header-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header-card .description {
    font-size: 15px;
    color: #7F8C8D;
    margin: 0;
}

/* 分类网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.news-card-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f2f5;
}

.news-card h2 {
    font-size: 18px;
    margin: 0;
    color: #2C3E50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.news-card .category-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
}

.news-card-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item {
    padding: 18px 25px;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2563EB;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #fafbff;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.news-item-title {
    font-weight: 600;
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-word;
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.news-item-title:hover {
    color: #2563EB;
}

.news-item-date {
    font-size: 13px;
    color: #7F8C8D;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-item-desc {
    font-size: 13px;
    color: #7F8C8D;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 2px solid #f0f2f5;
    background: #fafbfc;
}

.news-card-footer a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-card-footer a:hover {
    color: #1D4ED8;
    gap: 10px;
}

.news-card-footer a::after {
    content: '→';
    transition: transform 0.3s;
}

.news-card-footer a:hover::after {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header-card {
        padding: 20px;
    }

    .page-header-card h1 {
        font-size: 20px;
    }

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

    .news-card-header {
        padding: 15px 20px;
    }

    .news-item {
        padding: 12px 15px;
    }
}