/* news.css - 新闻详情页专用样式 */

/* 页面头部样式 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1a5fb4 0%, #0f2e5c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMjEyNjVjMjAiPjwvcmVjdD4KPHBhdGggZD0iTTAgNUw1IDBaTTYgNEw0IDZaTS0xIDFMMSAtMVoiIHN0cm9rZT0iIzIxMjY1YzQwIiBzdHJva2Utd2lkdGg9IjEiPjwvcGF0aD4KPC9zdmc+');
    opacity: 0.3;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* 新闻头部元信息样式 */
.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.news-meta .category {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-meta .category:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.news-meta .date {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 新闻标题样式 */
.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 新闻标签样式 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.news-tags .tag {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.news-tags .tag:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 标签容器样式 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags-container .tag {
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-container .tag:hover {
    background-color: var(--primary);
    color: white;
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 1.25rem 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.breadcrumb-nav .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* 文章内容样式 */
.article-content {
    padding: 2rem 0;
}

.article-main {
    position: relative;
}

.article-image {
    margin: 0 0 1rem 0;
    text-align: center;
}

.article-image img {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.article-image img:hover {
    transform: scale(1.02);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #343a40;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-body p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #343a40;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.image-gallery {
    text-align: center;
    margin: 2.5rem 0;
}

.image-gallery img {
    display: block;
    margin: 0 auto 0.5rem;
    max-width: 100%;
    height: auto;
}

.image-gallery p {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* 文章导航 */
.article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.article-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.article-nav a:hover {
    color: var(--primary);
}

/* 作者信息 */
.author-info {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    text-align: center;
}

.author-avatar {
    margin-bottom: 1.5rem;
}

.author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 相关文章 */
.related-articles {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
}

.related-article-item {
    margin-bottom: 1rem;
}

.related-article-item a {
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.related-article-item h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #212529;
    transition: color 0.3s ease;
}

.related-article-item h4:hover {
    color: var(--primary);
}

.related-article-item p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* 热门标签 */
.popular-tags {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.popular-tags h3 {
    margin-bottom: 1.5rem;
}

/* 信息框样式 */
.info-box {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    /* background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%); */
    border-radius: 0 0 0 100px;
    z-index: 0;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.info-box > * {
    position: relative;
    z-index: 1;
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.info-box ul {
    margin-bottom: 0;
    padding-left: 0;
}

.info-box li {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
    font-weight: 500;
    color: #343a40;
}

.info-box li:last-child {
    margin-bottom: 0;
}

.info-box li i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

/* 推荐阅读 */
.recommended-reading {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.recommended-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.recommended-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.recommended-image {
    width: 100%;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-card:hover .recommended-image img {
    transform: scale(1.05);
}

.recommended-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-card a {
    text-decoration: none;
    color: #212529;
    transition: color 0.3s ease;
}

.recommended-card a:hover {
    color: var(--primary);
}

.recommended-card .date {
    font-size: 0.75rem;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recommended-image img {
        height: 140px;
    }
}