/* 染色体新闻栏目专用样式，仅在新栏目页面与首页加载，不改动原站 css/style.css */

/* 首页「最新染色体新闻」模块 */
.home-news {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.home-news-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.home-news-head h2 {
    font-size: 32px;
    color: #2c3e50;
}

.home-news-more {
    color: #3498db;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.home-news-more:hover {
    text-decoration: underline;
}

.home-news .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 150px 0 70px;
    text-align: center;
}

.news-hero h2 {
    font-size: 42px;
    margin-bottom: 14px;
}

.news-hero p {
    font-size: 17px;
    opacity: 0.92;
}

.news-content {
    padding: 60px 0 80px;
    background-color: #f5f7fa;
    min-height: 60vh;
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
}

.news-tabs a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 22px;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.news-tabs a:hover {
    border-color: #3498db;
    color: #3498db;
}

.news-tabs a.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.news-meta-line {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.news-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.news-tag {
    display: inline-block;
    background: #e8f4fc;
    color: #2471a3;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    margin: 0 6px 6px 0;
}

.news-date {
    color: #888;
    font-size: 12px;
}

.news-card h3 {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: #3498db;
}

.news-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 14px;
}

.news-source {
    color: #888;
    font-size: 12px;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 48px 0;
}

.news-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 10px;
}

.news-pager a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
}

.news-pager a.current {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.news-disclaimer {
    color: #888;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 28px;
    border-top: 1px dashed #dfe6e9;
    padding-top: 14px;
}

.news-back {
    margin-bottom: 24px;
}

.news-back a {
    color: #3498db;
    text-decoration: none;
}

.news-detail h1 {
    font-size: 30px;
    line-height: 1.45;
    margin-bottom: 14px;
    color: #2c3e50;
}

.news-article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}

.news-article p {
    color: #444;
    line-height: 1.9;
    margin-bottom: 16px;
}

.news-tags {
    margin-bottom: 14px;
}

.news-source a {
    color: #3498db;
    text-decoration: none;
}

@media (max-width: 768px) {
    .home-news {
        padding: 56px 0;
    }

    .home-news-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 26px;
    }

    .home-news-head h2 {
        font-size: 26px;
    }

    .news-hero {
        padding: 110px 0 50px;
    }

    .news-hero h2 {
        font-size: 30px;
    }

    .news-content {
        padding: 40px 0 60px;
    }

    .news-detail h1 {
        font-size: 24px;
    }

    .news-article {
        padding: 20px;
    }
}
