﻿/* 新闻详情页面特有样式 */
.news-detail-banner {
    height: 300px;
    width: 100%;
    background: linear-gradient(rgba(22, 41, 136, 0.8), rgba(22, 41, 136, 0.9)), url('../Images/view.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

    .banner-content h1 {
        font-size: 36px;
        margin-bottom: 15px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        animation: fadeInDown 1s ease;
    }

    .banner-content p {
        font-size: 18px;
        opacity: 0.9;
        animation: fadeInUp 1s ease 0.3s both;
    }

/* 内容区域 */
.news-detail-content-section {
    padding: 60px 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 14px;
    color: var(--dark-gray);
}

    .breadcrumb-item + .breadcrumb-item::before {
        content: '/';
        padding: 0 8px;
    }

.breadcrumb-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .breadcrumb-link:hover {
        color: var(--primary-red);
    }

.breadcrumb-item.active {
    color: var(--primary-blue);
}

/* 新闻详情容器 */
.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 新闻头部信息 */
.news-detail-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-category-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.news-title {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.news-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    color: var(--dark-gray);
    font-size: 15px;
    margin-top: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
}

    .meta-item i {
        margin-right: 8px;
        color: var(--primary-blue);
    }

/* 新闻封面图 */
.news-cover-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 30px;
}

    .news-cover-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* 新闻正文区域 */
.news-detail-body {
    padding: 40px 50px 50px;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

    .news-content p {
        margin-bottom: 25px;
    }

    .news-content h2 {
        font-size: 24px;
        color: var(--dark-blue);
        margin: 40px 0 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .news-content h3 {
        font-size: 20px;
        color: var(--dark-blue);
        margin: 30px 0 15px;
    }

    .news-content ul, .news-content ol {
        margin-bottom: 25px;
        padding-left: 25px;
    }

    .news-content li {
        margin-bottom: 10px;
    }

    .news-content blockquote {
        border-left: 4px solid var(--primary-blue);
        padding-left: 20px;
        margin: 30px 0;
        font-style: italic;
        color: var(--dark-gray);
        background-color: rgba(22, 41, 136, 0.03);
        padding: 20px;
        border-radius: 0 8px 8px 0;
    }

    .news-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 30px 0;
        display: block;
    }

/* 响应式设计 */
@media (max-width: 992px) {
    .news-detail-container {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .news-detail-banner {
        height: 200px;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .news-detail-content-section {
        padding: 40px 0;
    }

    .news-detail-header,
    .news-detail-body {
        padding: 30px;
    }

    .news-title {
        font-size: 26px;
    }

    .news-cover-image {
        height: 300px;
    }

    .news-meta-info {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .news-detail-banner {
        height: 180px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .news-detail-header,
    .news-detail-body {
        padding: 20px;
    }

    .news-title {
        font-size: 22px;
    }

    .news-cover-image {
        height: 220px;
    }

    .news-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
