/* ========== 覆盖公共组件细微差异 ========== */
.news-scroll-box {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eef0f3;
}
.sidebar-widget {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eef0f3;
}
.ad-table-list {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.article-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.article-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

/* ========== 文章页：文章头部卡片 ========== */
.article-header-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    padding: 20px 20px 16px;
    margin-top: -1px;
    border-radius: 0 0 8px 8px;
}
.article-h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 14px;
}
.article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
}
.article-meta-row .article-tags {
    gap: 6px;
}
.meta-divider {
    width: 1px;
    height: 12px;
    background: #e5e7eb;
}

/* ========== 文章页：正文内容容器 ========== */
.article-content-card {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 30px 28px;
    margin-bottom: 0;
    margin-top: -1px;
    border-radius: 8px;
    border: 1px solid #eef0f3;
}
/* 正文图片 */
.article-content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    margin: 16px auto;
    display: block;
    transition: all 0.25s ease;
}
.article-content-card img:hover {
    border-color: #165DFF;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.08);
}
/* 正文标题 */
.article-content-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    border-left: 3px solid #165DFF;
    padding-left: 12px;
    margin: 28px 0 14px;
    line-height: 1.4;
}
.article-content-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin: 22px 0 10px;
    line-height: 1.5;
}
.article-content-card a {
    color: #1f6ad3;
}
/* 正文段落 */
.article-content-card p {
    font-size: 16px;
    color: #4b5563;
    line-height: 2;
    margin-bottom: 20px;
}
.article-content-card strong {
    color: #1f2937;
    font-weight: 600;
}
/* 正文列表 */
.article-content-card ul,
.article-content-card ol {
    margin: 0 0 14px 26px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}
.article-content-card li {
    margin-bottom: 6px;
}
.article-content-card ul li {
    list-style: disc;
}
.article-content-card ol li {
    list-style: decimal;
}
/* 正文表格 */
.table-responsive {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid #eef0f3;
}
.article-content-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
}
.article-content-card th {
    background: #f0f6ff;
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #eef0f3;
    white-space: nowrap;
}
.article-content-card td {
    padding: 11px 16px;
    border-bottom: 1px solid #eef0f3;
    color: #4b5563;
}
.article-content-card tr:last-child td {
    border-bottom: none;
}
/* 引用块 */
.article-content-card blockquote {
    border-left: 3px solid #165DFF;
    background: #f8faff;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}
/* 代码样式 */
.article-content-card code,
.article-content-card pre {
    font-family: Consolas, Monaco, "Courier New", monospace;
}
.article-content-card code {
    background: #f3f4f6;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.article-content-card pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
}
.article-content-card pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ========== 文章页：免责声明 ========== */
.disclaimer-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 24px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.7;
}
.disclaimer-box strong {
    color: #78350f;
}

/* ========== 文章页：上下篇导航 ========== */
.prev-next {
    display: flex;
    gap: 0;
    margin: -1px 0 16px 0;
    border: 1px solid #eef0f3;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.prev-next-item {
    flex: 1;
    background: #fff;
    padding: 14px 18px;
    transition: all 0.25s ease;
    overflow: hidden;
    border-right: 1px solid #eef0f3;
}
.prev-next-item:last-child {
    border-right: none;
}
.prev-next-item:hover {
    background: #f8faff;
    color: #165DFF;
}
.prev-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}
.prev-text {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 文章页：相关推荐 ========== */
.recommend-section {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 20px 20px 0;
}
.recommend-section .section-title {
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 12px;
    margin-bottom: 0;
}
.recommend-section .article-list {
    gap: 0;
    margin-bottom: 0;
}
.recommend-section .article-card {
    box-shadow: none;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0;
    padding: 18px 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
.recommend-section .article-card:last-child {
    border-bottom: none;
}
.recommend-section .article-card:hover {
    transform: none;
    background: #f8faff;
}

/* ========== 文章页响应式微调 ========== */
@media (max-width: 768px) {
    .article-header-card {
        padding: 10px 16px;
    }
    .article-h1 {
        font-size: 20px;
    }
    .article-content-card {
        padding: 22px 16px;
    }
    .recommend-section {
        padding: 16px 16px 0;
    }
    .prev-next {
        flex-direction: column;
    }
    /*一行显示截断失效，新增换行防止撑破容器*/
    .main-content .prev-next .prev-next-item .prev-text{
        white-space: normal;
    }
    .prev-next-item {
        border-right: none;
        border-bottom: 1px solid #eef0f3;
    }
    .prev-next-item:last-child {
        border-bottom: none;
    }
}
@media (max-width: 480px) {
    .article-meta-row {
        gap: 10px;
    }
}
