/* ================================================================
   新闻详情页 news_detail.css
   复刻 toobest.net/news/36.html 布局：面包屑 + 左文章正文 + 右热门侧栏
   （侧栏白卡片样式复用 news_page.css）
   配色与站点一致：#2538FF → #8F00FF 蓝紫渐变
   ================================================================ */

/* ---------- 1. 面包屑 ---------- */
.detail-breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
}
.detail-breadcrumb-section .container {
    max-width: 1200px;
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    line-height: 1;
}
.breadcrumb-nav .home-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    flex-shrink: 0;
    color: #8a8f9c;
}
.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb-nav a:hover {
    color: #2538FF;
}
.breadcrumb-nav .crumb-sep {
    font-style: normal;
    color: #c3c7d1;
    margin: 0 8px;
}
.breadcrumb-nav .crumb-current {
    color: #1A2233;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 420px;
}

/* ---------- 2. 主体两栏 ---------- */
.article-main-section {
    padding: 30px 0 60px;
    background: #f8f9fa;
}
.article-main-section .container {
    max-width: 1200px;
    padding-left: 0;
    padding-right: 0;
}
.article-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.article-content-column {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 36px 40px 24px;
    box-sizing: border-box;
    /* 强制标题、正文、上下篇纵向排列 */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* 详情页侧栏（与 news_page 保持一致） */
.article-main-section .news-sidebar-column {
    width: 260px;
    flex-shrink: 0;
}

/* ---------- 3. 文章标题与元信息 ---------- */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f4;
}
.article-header .article-meta {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #999;
}
.article-header .article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1A2233;
    margin: 0 0 18px 0;
    line-height: 1.35;
    word-wrap: break-word;
    word-break: break-word;
    /* 重置列表页同名样式 */
    min-height: 0;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}
.article-header .article-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.article-header .article-category {
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.article-header .article-author,
.article-header .article-date {
    color: #999;
}
.article-header .article-sep {
    color: #d5d8e0;
}

/* ---------- 4. 文章正文 ---------- */
.article-header,
.article-body,
.article-navigation {
    width: 100%;
    flex-shrink: 0;
}
.article-body {
    line-height: 1.8;
    color: #1A2233;
    font-size: 16px;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}
.article-body::after {
    content: '';
    display: block;
    clear: both;
}
.article-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
}
.article-body p:last-child {
    margin-bottom: 0;
}
.article-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
}
.article-body a {
    color: #2538FF;
}
.article-body table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
}
.article-body table td,
.article-body table th {
    border: 1px solid #e8eaf0;
    padding: 8px 12px;
    word-break: break-word;
}
.article-body iframe,
.article-body video {
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
}

/* ---------- 5. 上一篇 / 下一篇 ---------- */
.article-navigation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #f0f0f4;
    clear: both;
}
.article-navigation .nav-item {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    align-items: center;
    max-width: calc(50% - 10px);
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 8px 16px 8px 0;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: #fbfbfe;
    transition: all 0.3s ease;
}
.article-navigation .nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 56, 255, 0.35);
}
.article-navigation .nav-label {
    font-size: 14px;
    color: rgba(26, 34, 51, 0.7);
    padding-left: 16px;
    width: 70px;
    flex-shrink: 0;
}
.article-navigation .nav-title {
    font-size: 14px;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.article-navigation .nav-none {
    font-size: 14px;
    color: #bbb;
    flex: 1;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
    .article-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .article-main-section .news-sidebar-column {
        width: 100%;
    }
    .article-content-column {
        padding: 24px 20px;
        max-width: 100%;
    }
    .article-navigation .nav-item {
        max-width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .article-header .article-title {
        font-size: 24px;
    }
    .article-body p {
        font-size: 15px;
    }
    .article-navigation {
        flex-direction: column;
        gap: 12px;
    }
    .article-navigation .nav-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
@media screen and (max-width: 480px) {
    .article-header .article-title {
        font-size: 20px;
    }
    .article-body p {
        font-size: 14px;
    }
    .article-content-column {
        padding: 18px 16px;
    }
}
