/**
 * 新闻详情页样式 (News Detail Styles)
 * @version 1.0.0
 * @description 新闻/文章详情页 - 左右布局 (内容 + 侧边栏)
 * @updated 2026-01-05
 */

/* ============================================
   主容器布局
   ============================================ */
.news-detail {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.news-detail__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 30px;
}

.news-detail__main {
    flex: 1;
    min-width: 0;
}

/* ============================================
   文章卡片
   ============================================ */
.news-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-article__header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-article__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: 1.4;
}

.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--color-text-light);
}

.news-article__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-article__meta-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ============================================
   文章正文
   ============================================ */
.news-article__body {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.news-article__body img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto !important;
    border-radius: 4px;
    margin: 1em auto;
    object-fit: contain;
}

.news-article__body p {
    margin: 0 0 1.5em;
}

.news-article__body h2,
.news-article__body h3,
.news-article__body h4 {
    margin: 1.5em 0 0.8em;
    font-weight: 600;
    line-height: 1.4;
}

.news-article__body ul,
.news-article__body ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.news-article__body li {
    margin-bottom: 0.5em;
}

.news-article__body blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--color-primary);
    background: #f8f9fa;
    font-style: italic;
}

.news-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.news-article__body th,
.news-article__body td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.news-article__body th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ============================================
   上下篇导航
   ============================================ */
.news-prev-next {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.news-prev-next__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

.news-prev-next__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-prev-next__item--next {
    flex-direction: row-reverse;
    text-align: right;
}

.news-prev-next__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 149, 19, 0.1);
    border-radius: 50%;
}

.news-prev-next__icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
}

.news-prev-next__text {
    flex: 1;
    min-width: 0;
}

.news-prev-next__label {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.news-prev-next__title {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-prev-next__item:hover .news-prev-next__title {
    color: var(--color-primary);
}

/* 响应式样式已迁移至 responsive.css */
