/* ========== 新闻详情页专属样式 ========== */
/* Banner/面包屑区 */
.news-banner {
    position: relative;
    height: 20vh;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    background-color: #222;
}

.news-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.news-banner-container {
    position: relative;
    z-index: 1;
    padding: 30px 0;
}

.news-breadcrumb {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

.news-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.news-breadcrumb a:hover {
    opacity: 0.7;
}

/* 新闻详情主体区 */
.news-detail {
    padding: 60px 0;
    background-color: #fff;
}

.news-detail-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* 左侧正文区 */
.news-main {
    padding-right: 20px;
}

/* 文章元信息 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.meta-category {
    background-color: #0052cc;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-date, .meta-read {
    color: #888;
}

/* 文章标题 */
.news-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* 文章导语 */
.news-intro {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
}

/* 文章主图 */
.news-featured-img {
    margin-bottom: 40px;
}


.news-featured-img img{
       width: 100%;
    height: auto;
}




.img-full {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 子标题 */
.news-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 35px 0 15px;
}

/* 段落 */
.news-paragraph {
    margin-bottom: 20px;
    color: #444;
}

/* 信息卡片 */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #0052cc;
    margin: 25px 0;
}

.info-card-icon {
    font-size: 24px;
    color: #0052cc;
    margin-top: 2px;
}

.info-card-text {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

/* 多图片组 */
.news-img-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.img-grid {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 总结段落 */
.news-conclusion {
    margin: 30px 0 40px;
    font-weight: 500;
    color: #333;
}

/* 分享区 */
.news-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-top: 40px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 16px;
    color: #444;
    font-weight: 500;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: #0052cc;
    color: #fff;
}

/* 右侧侧边栏 */
.news-sidebar {
    padding-left: 20px;
}

/* 侧边栏通用样式 */
.sidebar-widget {
    margin-bottom: 40px;
    background-color: #fff;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0052cc;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #0052cc;
    color: #fff;
    border: none;
    width: 45px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0047b3;
}

/* 分类列表 */
.categories-list {
    list-style: none;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.active {
    background-color: #f0f7ff;
    padding-left: 10px;
    border-left: 3px solid #0052cc;
}

.category-name {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}


.category-name a{
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}






.category-item:hover .category-name {
    color: #0052cc;
}

.category-count {
    font-size: 14px;
    color: #888;
    background-color: #f0f0f0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 相关文章 */
.related-posts-list {
    list-style: none;
}

.related-post-item {
    margin-bottom: 20px;
}

.post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.post-link:hover {
    transform: translateY(-2px);
}

.post-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.post-link:hover .post-title {
    color: #0052cc;
}

.post-date {
    font-size: 12px;
    color: #888;
}

/* 订阅框 */
.subscribe-widget {
    background-color: #0052cc;
    color: #fff;
    padding: 25px;
}

.subscribe-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.subscribe-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    border-radius: 2px;
}

.subscribe-btn {
    background-color: #fff;
    color: #0052cc;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #f0f0f0;
    color: #0047b3;
}

/* ========== 响应式适配（新闻详情专属） ========== */
@media (max-width: 1200px) {
    .news-detail-container {
        gap: 30px;
    }
    .news-title {
        font-size: 32px;
    }
    .news-img-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-img-group img:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .news-detail-container {
        grid-template-columns: 1fr;
    }
    .news-main {
        padding-right: 0;
    }
    .news-sidebar {
        padding-left: 0;
        margin-top: 50px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .subscribe-widget {
        grid-column: span 2;
    }
    .news-banner {
        height: 18vh;
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 28px;
    }
    .news-intro {
        font-size: 16px;
    }
    .news-subtitle {
        font-size: 20px;
    }
    .news-img-group {
        grid-template-columns: 1fr;
    }
    .news-img-group img:last-child {
        grid-column: span 1;
    }
    .img-grid {
        height: auto;
    }
    .news-sidebar {
        grid-template-columns: 1fr;
    }
    .subscribe-widget {
        grid-column: span 1;
    }
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .news-breadcrumb {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 24px;
    }
    .news-banner {
        height: 15vh;
        min-height: 120px;
    }
    .info-card {
        flex-direction: column;
        gap: 10px;
    }
    .info-card-icon {
        margin-top: 0;
    }
    .news-share {
        flex-direction: column;
        align-items: flex-start;
    }
    .subscribe-widget {
        padding: 20px 15px;
    }
}