/* ============ 新闻详情页优化 ============ */
.news-detail-header {
    padding: 30px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.news-detail-header .category-tag {
    display: inline-block;
    background: #0579c4;
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.news-detail-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 16px;
}
.news-detail-header .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #888;
}
.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.news-detail-body p {
    margin-bottom: 1.2em;
}
.news-detail-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: #1a1a1a;
}
.news-detail-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 12px;
    color: #333;
}
.news-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 50px 0 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.news-nav .nav-btn {
    flex: 1;
    max-width: 48%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all .3s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.news-nav .nav-btn:hover {
    border-color: #0579c4;
    box-shadow: 0 2px 12px rgba(5,121,196,.1);
}
.news-nav .nav-btn .nav-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-nav .nav-btn .nav-title {
    font-size: 14px;
    color: #0579c4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.relevant-section {
    margin: 50px 0;
}
.relevant-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0579c4;
    display: inline-block;
}
.relevant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.relevant-grid .r-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s;
    text-decoration: none;
    color: inherit;
}
.relevant-grid .r-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.relevant-grid .r-card .r-img {
    height: 160px;
    overflow: hidden;
}
.relevant-grid .r-card .r-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.relevant-grid .r-card:hover .r-img img {
    transform: scale(1.05);
}
.relevant-grid .r-card .r-info {
    padding: 16px;
}
.relevant-grid .r-card .r-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.relevant-grid .r-card .r-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-section {
    margin-bottom: 30px;
}
.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0579c4;
}
.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-section ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
}
.sidebar-section ul li a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
    display: block;
    line-height: 1.4;
}
.sidebar-section ul li a:hover {
    color: #0579c4;
}
.sidebar-contact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}
.sidebar-contact h3 {
    margin-top: 0;
}
@media (max-width: 768px) {
    .news-detail-header h1 {
        font-size: 24px;
    }
    .news-detail-body {
        font-size: 15px;
    }
    .news-nav {
        flex-direction: column;
    }
    .news-nav .nav-btn {
        max-width: 100%;
    }
    .relevant-grid {
        grid-template-columns: 1fr;
    }
}