/* 新闻详情页样式 */
.page-news-detail {
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* 当前页导航高亮：最新动态 */
.page-news-detail .nav-active > a {
    color: #fff;
}
.page-news-detail .nav-list > li.nav-active::after {
    width: 100%;
    background: #fff;
}

/* 头部：默认半透明，鼠标滑入后浅蓝（同新闻列表页） */
.page-news-detail .site-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.page-news-detail .site-header:hover {
    background: rgba(191, 202, 215, 0.8);
    backdrop-filter: blur(10px);
}

/* 菜单字号放大 */
.page-news-detail .site-header .nav-list > li > a {
    font-size: 16px;
}

/* ========== Banner区域 ========== */
.news-detail-hero {
    position: relative;
    width: 100%;
    min-height: 82vh;
    margin-top: -60px;
    overflow: hidden;
}

.news-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ========== 新闻详情内容区域 ========== */
.news-detail-section {
    background: #f5f5f5;
    padding: 56px 0 80px;
}

.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 返回按钮 */
.news-detail-back {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b8d477;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #9fc44a;
}

.back-icon {
    font-size: 18px;
    font-weight: 600;
}

/* 文章容器 */
.news-detail-article {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
}

/* 文章头部 */
.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #374151;
    line-height: 1.4;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.article-date {
    color: #6b7280;
}

.article-category {
    color: #b8d477;
    font-weight: 500;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    color: #374151;
}

.article-image {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-text {
    font-size: 16px;
    line-height: 1.8;
}

.article-text p {
    margin-bottom: 20px;
    color: #374151;
}

.article-text h2 {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #b8d477;
}

.article-text ul {
    margin: 20px 0;
    padding-left: 24px;
}

.article-text li {
    margin-bottom: 12px;
    color: #374151;
    line-height: 1.8;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.tag-item {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #b8d477;
    color: #fff;
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #b8d477;
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-date {
    font-size: 13px;
    color: #9ca3af;
    margin-top: auto;
}

/* 页脚样式 - 与首页保持一致 */
.page-news-detail .site-footer {
    background: #b8d477 !important;
    padding: 0 0 48px !important;
    margin-top: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

.page-news-detail .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.page-news-detail .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: end;
}

/* 页脚左侧：品牌 + 联系方式 */
.page-news-detail .footer-left {
    flex: 0 1 auto;
    min-width: 280px;
    text-align: left;
}

.page-news-detail .footer-brand {
    margin-bottom: 24px;
}

.page-news-detail .footer-logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.page-news-detail .footer-brand-en {
    font-size: 11px;
    color: #fff;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.page-news-detail .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.page-news-detail .contact-block {
    margin-bottom: 20px;
}

.page-news-detail .contact-block:last-child {
    margin-bottom: 0;
}

.page-news-detail .contact-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.page-news-detail .footer-contact .contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.page-news-detail .contact-block-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.page-news-detail .contact-block-detail {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    padding-left: 26px;
}

/* 页脚右侧：版权与备案信息 */
.page-news-detail .footer-legal {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* 页脚右侧文字统一字号 - 确保所有文字完全一致 */
.page-news-detail .footer-legal p,
.page-news-detail .footer-legal .copyright,
.page-news-detail .footer-legal .license {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: #fff !important;
    margin: 2px 0 !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-detail-hero {
        min-height: 50vh;
    }

    .news-detail-article {
        padding: 24px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-text {
        font-size: 15px;
    }

    .article-text h2 {
        font-size: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-news-detail .footer-legal .copyright,
    .page-news-detail .footer-legal .license {
        font-size: 14px;
    }
    
    .page-news-detail .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    
    .page-news-detail .footer-legal {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }
    
    .page-news-detail .footer-left {
        min-width: unset;
    }
    
    .page-news-detail .footer-brand-en {
        font-size: 10px;
    }
    
    .page-news-detail .contact-block-title {
        font-size: 14px;
    }
    
    .page-news-detail .contact-block-detail {
        font-size: 13px;
        padding-left: 26px;
    }
}
