/* ===== 基础样式 ===== */
body.news-detail-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    padding: 0 15px;
}

.main-content {
    flex: 1;
}

/* ===== 文章顶部区域 ===== */
.article-hero {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height-mobile) + var(--nav-height-mobile));
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
    opacity: 0.2;
}

.article-title {
    font-size: 2rem;
    margin: 0 0 1.5rem;
    color: white;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: white;
}

/* 文章元信息容器 */
.article-meta-container {
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* 文章元信息样式 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-divider {
    color: rgba(255,255,255,0.5);
}

.article-meta i {
    font-size: 0.9em;
}

/* ===== 面包屑导航 ===== */
.article-breadcrumb {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* ===== 文章卡片 ===== */
.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

/* 文章封面图 */
.article-cover {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.article-cover:hover img {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.9rem;
    text-align: center;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* 文章正文 */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.article-body img:hover {
    transform: scale(1.02);
}

.article-body h2 {
    font-size: 1.7rem;
    margin: 3rem 0 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.article-body blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.tag-badge {
    display: inline-block;
    background: #f0f7ff;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: #3498db;
    color: white;
}

/* 上一篇/下一篇导航 */
.article-navigation {
    margin-top: 3rem;
}

.nav-card {
    display: block;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.nav-card:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.nav-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.nav-title {
    color: #2c3e50;
    font-weight: 500;
}

/* 相关文章 */
.related-articles {
    margin-top: 5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-body {
    padding: 1.5rem;
}

.related-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.related-card:hover .related-title {
    color: #3498db;
}

.related-meta {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
}

/* ===== 响应式调整 ===== */
@media (max-width: 992px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.6rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.4rem;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    /* 优化文章元信息区域 */
    .article-meta-container {
        padding: 0.3rem 0;
        margin-top: 1rem;
    }

    .article-meta {
        font-size: 0.75rem;
        gap: 0.3rem 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.2rem;
        justify-content: flex-start;
    }

    .article-meta::-webkit-scrollbar {
        display: none;
    }

    .meta-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .meta-divider {
        display: inline-block !important;
        color: rgba(255,255,255,0.3);
    }

    /* 调整英雄区域整体间距 */
    .article-hero {
        padding: 2.5rem 0 2rem;
    }

    .article-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    /* 调整图标大小 */
    .article-meta i {
        font-size: 0.7em;
    }

    /* 其他移动端调整 */
    .article-breadcrumb {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }

    .article-card {
        margin-top: -0.5rem;
    }
}

@media (max-width: 400px) {
    .article-meta {
        font-size: 0.7rem;
        gap: 0.2rem 0.3rem;
    }

    .article-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .article-hero {
        margin-top: calc(var(--header-height-desktop) + var(--nav-height-desktop));
    }
}