/* =========================================================
 * pageArticNew.html 专属样式（文章详情页 - 预览版）
 * 设计稿来源：E:\wx\...\2026-07\news-detail.html
 * 视觉：深色 Hero + 面包屑 + 正文 + 标签 + 上一篇/下一篇 + 相关文章
 * 站点头部沿用 top.css / nav-product.css，此处仅放本页内容样式
 * ========================================================= */

:root {
    --red: #c62828;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray-50: #fafafa;
    --gray-200: #eee;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --white: #fff;
    --grad-red: linear-gradient(135deg, #c62828, #d32f2f 40%, #e53935);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --radius-md: 14px;
    --radius-lg: 20px;
    --trans: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1166px;
    --body-w: 820px;
}

/* ===== 深色 Hero 标题区 ===== */
.page-hero {
    background: linear-gradient(160deg, #0d0d1a 0%, #1a0a0a 30%, #2d1010 60%, #1a1a2e 100%);
    padding: 150px 32px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.page-hero-cat {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.page-hero-cat.cat-news {
    background: rgba(230, 81, 0, 0.2);
    color: #ffab40;
    border: 1px solid rgba(230, 81, 0, 0.3);
}

.page-hero-cat.cat-dynamic {
    background: rgba(66, 165, 245, 0.2);
    color: #90caf9;
    border: 1px solid rgba(66, 165, 245, 0.3);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.page-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, .5);
    font-size: .88rem;
    flex-wrap: wrap;
}

/* ===== 面包屑 ===== */
.breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 32px;
    font-size: .88rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--trans);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb .sep {
    color: var(--gray-400);
    margin: 0 8px;
}

/* ===== 正文区 ===== */
.section {
    padding: 60px 32px 80px;
    background: var(--gray-50);
}

/* ===== 正文排版（统一一套规则，避免重复覆盖） ===== */
.article-body {
    /* max-width: var(--body-w);
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #374151; */
}
.section-inner{
max-width: var(--body-w);
    margin: 0 auto;
}
.article-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: justify;
    word-break: break-word;
}

.article-body h2 {
    font-size: 26px;
    line-height: 1.4;
    color: #111827;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
    padding-left: 12px;
    border-left: 4px solid #ee4e41;
}

.article-body h3 {
    font-size: 21px;
    line-height: 1.4;
    color: #1f2937;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.article-body h4 {
    font-size: 18px;
    line-height: 1.4;
    color: #374151;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* 覆盖 layui 全局 li{list-style:none}，恢复正文有序/无序列表 */
.article-body ul,
.article-body ol {
    margin: 14px 0 1.5em 0;
    padding-left: 1.75em;
}

.article-body ul {
    list-style: disc outside;
}

.article-body ol {
    list-style: decimal outside;
}

.article-body li {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 0.5em;
    /* 必须写在 li 上：layui 的 li{list-style:none} 优先级会盖掉只写在 ul/ol 上的样式 */
    list-style: inherit;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

/* 列表符号（有序/无序）统一为深灰，避免继承成红色 */
.article-body li::marker {
    color: #374151;
}

.article-body strong {
    color: #111827;
    font-weight: 600;
}

.article-body a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dashed #2563eb;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}

.article-body mark {
    background-color: #fef08a;
    color: #111827;
    padding: 0 4px;
    border-radius: 2px;
}

.article-body img,
.article-body video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.article-body blockquote {
    margin: 1.8em 0;
    padding: 16px 24px;
    background-color: #f8fafc;
    border-left: 4px solid #ee4e41;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    font-size: 15px;
    color: #4b5563;
    margin: 0;
    font-style: normal;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .92rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body table th {
    background: var(--dark);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.article-body table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-200);
}

.article-body table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.article-body .highlight {
    background: rgba(198, 40, 40, 0.04);
    border: 1px solid rgba(198, 40, 40, 0.12);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 26px 0;
    font-size: .97rem;
}

.article-body .highlight strong {
    color: var(--red);
}

.article-body .image-wrapper {
    margin: 2em 0;
    text-align: center;
}

.article-body .image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-body .image-caption {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    display: block;
}

.article-body .callout-tip {
    margin: 1.8em 0;
    padding: 16px 20px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
}

.article-body .callout-tip::before {
    content: "💡";
    margin-right: 12px;
    font-size: 18px;
    line-height: 1;
}

.article-body .callout-tip-content {
    font-size: 15px;
    color: #1e40af;
    line-height: 1.6;
}

/* ===== 底部标签 ===== */
.article-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    font-size: .8rem;
    color: var(--gray-600);
}

/* ===== 上一篇 / 下一篇 ===== */
.article-nav {
    display: flex;
    gap: 24px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.article-nav a {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    transition: var(--trans);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.article-nav a:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(198, 40, 40, 0.1);
}

.article-nav .nav-label {
    font-size: .76rem;
    color: var(--gray-400);
    margin-bottom: 5px;
}

.article-nav .nav-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-nav a:hover .nav-title {
    color: var(--red);
}

.article-nav a.next {
    text-align: right;
}

/* ===== 相关文章 ===== */
.related-section {
    background: #fff;
    padding: 50px 32px 70px;
    border-top: 1px solid var(--gray-200);
}

.related-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.related-inner h2 {
    text-align: center;
    margin-bottom: 36px;
    font-size: 1.4rem;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--trans);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(198, 40, 40, 0.15);
}

.related-card .rc-thumb {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: linear-gradient(135deg, #c62828, #e53935);
}

.related-card .rc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-card:hover .rc-thumb img {
    transform: scale(1.05);
}

.related-card .rc-body {
    padding: 14px;
}

.related-card .rc-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.related-card .rc-cat.cat-news {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
}

.related-card .rc-cat.cat-dynamic {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.related-card .rc-date {
    font-size: .75rem;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.related-card h4 {
    font-size: .85rem;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover h4 {
    color: var(--red);
}

/* 响应式 —— 对齐 news-detail.html 参考稿 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .related-section {
        padding: 40px 20px 56px;
    }

    .breadcrumb {
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px 60px;
    }

    .page-hero {
        padding: 120px 20px 50px;
    }

    .page-hero h1 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .page-hero-meta {
        gap: 10px 16px;
        font-size: .8rem;
    }

    .article-body {
        font-size: .95rem;
        line-height: 1.9;
    }

    .article-body h2 {
        font-size: 1.1rem;
        margin: 28px 0 12px;
    }

    .article-body h3 {
        font-size: 1.05rem;
    }

    .article-body h4 {
        font-size: 1rem;
    }

    .article-body .highlight {
        padding: 16px 18px;
        margin: 20px 0;
        font-size: .9rem;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav a {
        min-width: 0;
        width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-card .rc-thumb {
        height: 90px;
    }

    .related-inner h2 {
        font-size: 1.15rem;
        margin-bottom: 24px;
    }

    .breadcrumb {
        padding: 12px 16px;
        font-size: .8rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 110px 16px 40px;
    }

    .section {
        padding: 32px 16px 48px;
    }
}


