/* 新闻详细页面特定样式 */
:root {
    --primary-color: #00649a;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --transition: 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 页面横幅 */
.page-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 100px;
    color: white;
    z-index: 1;
}

.banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);           
}

.banner-content .news-meta {
    display: flex;
    gap: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.banner-content .news-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 主要内容区域 */
.news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* 新闻内容样式 */
.news-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.news-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.news-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
}

.news-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}

.news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.news-content .image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
}

.news-content ul, .news-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 10px;
}


/* 返回按钮 */
.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 30px;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.back-to-news:hover {
    background: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-banner {
        height: 300px;
    }

    .banner-content {
        padding: 0 20px;
        bottom: 20px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content .news-meta {
        flex-direction: column;
        gap: 10px;
    }

    .news-content {
        padding: 25px;
    }

    .news-content h2 {
        font-size: 1.6rem;
    }

    .news-content h3 {
        font-size: 1.3rem;
    }

    .news-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .news-nav-link {
        max-width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 250px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .news-content {
        padding: 20px;
        font-size: 1rem;
    }

    .news-share {
        flex-wrap: wrap;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-element {
    animation: fadeInUp 0.8s ease forwards;
}