﻿/* 新闻详情页样式 - 基于母版页设计系统 */
:root {
    --banner-height: 300px;
    --banner-text-color: #fff;
    --breadcrumb-bg: #f8f9fa;
    --breadcrumb-color: #6c757d;
    --breadcrumb-active-color: #2c3e50;
    --article-bg: #fff;
    --article-title-color: #2c3e50;
    --article-meta-color: #6c757d;
    --article-border: 1px solid #eee;
    --article-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --content-text-color: #333;
    --content-line-height: 1.8;
    --transition: all 0.3s ease;
}

/* 横幅区域 - 与帮助中心保持一致 */
.HttpBannerBox {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--banner-text-color);
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    .HttpBannerBox::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

.HttpBannerText {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

    .HttpBannerText h1 {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

/* 面包屑导航 - 与帮助中心保持一致 */
.wherebg {
    background-color: var(--breadcrumb-bg);
    padding: 15px 0;
    margin-bottom: 30px;
}

.whereBox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

    .whereBox a {
        color: var(--breadcrumb-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .whereBox a:hover {
            color: var(--primary-color);
        }

    .whereBox span[itemprop="name"] {
        color: var(--breadcrumb-active-color);
    }

/* 新闻内容区域 */
.NewsNrBox {
    background-color: var(--article-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--article-shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.NewsBt {
    color: var(--article-title-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: var(--article-border);
}

.NewsInfo {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: var(--article-border);
}

    .NewsInfo ul {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        justify-content: center;
        gap: 15px 30px;
        color: var(--article-meta-color);
        font-size: 0.9rem;
    }

    .NewsInfo li {
        display: flex;
        align-items: center;
    }

.Infoviews::before {
    content: "👁️";
    margin-right: 5px;
}

/* 正文内容样式 */
.ContentText {
    color: var(--content-text-color);
    line-height: var(--content-line-height);
    font-size: 1rem;
}

    .ContentText img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px auto;
        border-radius: var(--border-radius);
    }

    .ContentText p {
        margin-bottom: 1.2em;
    }

    .ContentText a {
        color: var(--primary-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .ContentText a:hover {
            text-decoration: underline;
            color: #2980b9;
        }

    .ContentText table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        overflow-x: auto;
        display: block;
    }

    .ContentText table,
    .ContentText th,
    .ContentText td {
        border: 1px solid #ddd;
    }

    .ContentText th,
    .ContentText td {
        padding: 12px 15px;
        text-align: left;
    }

    .ContentText th {
        background-color: var(--light-color);
    }

/* 上一篇下一篇导航 */
.Info_NextPrev {
    margin-top: 40px;
    padding-top: 20px;
    border-top: var(--article-border);
}

.NextPrev {
    margin-bottom: 10px;
}

    .NextPrev a {
        color: var(--primary-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .NextPrev a:hover {
            color: #2980b9;
            text-decoration: underline;
        }

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --banner-height: 200px;
    }

    .HttpBannerText h1 {
        font-size: 1.8rem;
    }

    .NewsBt {
        font-size: 1.5rem;
    }

    .NewsNrBox {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .HttpBannerText h1 {
        font-size: 1.5rem;
    }

    .NewsBt {
        font-size: 1.3rem;
    }

    .NewsInfo ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ContentText {
        font-size: 0.95rem;
    }
}
