/* ===== 新闻详情页样式 ===== */

/* 页面容器 */
.news-detail {
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

/* 新闻头部 */
.news-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* 新闻元数据 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.news-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.news-meta .date {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* AI 翻译提示 */
.news-ai-notice {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

/* 新闻标题 */
.news-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 24px;
}


/* 新闻正文 */
.news-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.news-content p {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

.news-content p.text-center {
    text-align: center;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 24px auto;
    box-shadow: var(--shadow-md);
    display: block;
}

.news-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-gray);
}

.news-content blockquote p {
    margin-bottom: 0;
}

/* 返回链接 - 放在文章底部 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.back-link:hover {
    gap: 12px;
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
}

.related-news h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content .date {
    font-size: 13px;
    color: var(--text-light);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-header, .news-content {
        padding: 10px;
    }
    
    .news-content img {
        margin: 16px auto;
    }
}

/* 宽屏适配（≥1400px）：限制文字最大宽度 */
@media (min-width: 1400px) {
    .news-content > p,
    .news-content > blockquote {
        max-width: 1000px;
        margin: 0 auto;
    }
}
