/* 新闻详情页样式 */
.news-detail-page {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: 600px;
}

.news-detail-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 左右布局 */
.news-detail-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 文章容器 */
.news-article {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 50px 60px 30px;
    border-bottom: 1px solid #e8ecf1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 25px 0;
    word-wrap: break-word;
}

.article-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.meta-item svg {
    color: #999;
    flex-shrink: 0;
}

/* 文章摘要 */
.article-summary {
    padding: 30px 60px;
    background: #f8f9fb;
    border-left: 4px solid #3d5a80;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* 文章内容 */
.article-content {
    padding: 50px 60px;
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.article-content h2 {
    font-size: 24px;
    padding-left: 15px;
    border-left: 4px solid #3d5a80;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content ul,
.article-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fb;
    border-left: 4px solid #ff6b35;
    font-style: italic;
    color: #666;
}

.article-content a {
    color: #3d5a80;
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: #ff6b35;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-content table th,
.article-content table td {
    padding: 12px 15px;
    border: 1px solid #e8ecf1;
    text-align: left;
}

.article-content table th {
    background: #f8f9fb;
    font-weight: 600;
}

.article-content table tr:hover {
    background: #f8f9fb;
}

/* 文章底部 */
.article-footer {
    padding: 40px 60px;
    border-top: 1px solid #e8ecf1;
    background: #fafbfc;
}

.article-tags {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px 5px 5px 0;
    background: #e8ecf1;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: #3d5a80;
    color: #fff;
}

/* ========================================
   上下篇导航 - 简洁设计
   ======================================== */
.article-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px 60px 50px;
    margin: 0;
    background: #fff;
}

.pagination-item {
    display: block;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
    min-height: 80px;
    border-radius: 8px;
}

.pagination-item:hover {
    background: #fff;
    border-left-color: #3d5a80;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.prev-article:hover {
    transform: translateX(-4px);
}

.pagination-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-title {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* 样式化内部链接 */
.pagination-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.pagination-item:hover .pagination-title a {
    color: #3d5a80;
}

/* 当没有上一篇或下一篇时的样式 */
.pagination-title:empty::after {
    content: '没有了';
    color: #999;
    font-style: italic;
}

/* 响应式 */
@media screen and (max-width: 992px) {
    .article-pagination {
        padding: 30px 40px 40px;
    }
}

@media screen and (max-width: 768px) {
    .article-pagination {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px 25px 30px;
    }
    
    .pagination-item {
        padding: 16px 20px;
        min-height: 70px;
    }
    
    .pagination-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .pagination-title {
        font-size: 14px;
    }
    
    .pagination-title a {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .article-pagination {
        padding: 20px 20px 25px;
    }
    
    .pagination-item {
        padding: 14px 18px;
        min-height: 65px;
    }
    
    .pagination-title {
        font-size: 13px;
    }
    
    .pagination-title a {
        font-size: 13px;
    }
}

/* ========================================
   右侧边栏样式
   ======================================== */

.news-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8ecf1;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3d5a80 0%, #ff6b35 100%);
}

/* 推荐新闻列表 */
.recommended-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.news-item:hover {
    background: #f8f9fb;
    border-color: #e8ecf1;
    transform: translateX(5px);
}

.news-item-image {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item:hover .news-item-title {
    color: #3d5a80;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-date {
    font-size: 12px;
    color: #999;
}

/* 热门文章列表 */
.hot-news {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hot-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 10px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-item:hover {
    background: #f8f9fb;
    padding-left: 15px;
}

.hot-number {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3d5a80 0%, #4a6a95 100%);
    border-radius: 4px;
}

.hot-news-item:nth-child(1) .hot-number {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
}

.hot-news-item:nth-child(2) .hot-number {
    background: linear-gradient(135deg, #ff8c5a 0%, #ffa07a 100%);
}

.hot-news-item:nth-child(3) .hot-number {
    background: linear-gradient(135deg, #ffa07a 0%, #ffb499 100%);
}

.hot-title {
    flex: 1;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-news-item:hover .hot-title {
    color: #3d5a80;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .news-detail-container {
        max-width: 90%;
    }
}

@media (max-width: 1200px) {
    .news-detail-container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .news-detail-layout {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100%;
    }
    
    .article-header {
        padding: 40px 40px 25px;
    }
    
    .article-summary {
        padding: 25px 40px;
    }
    
    .article-content {
        padding: 40px;
    }
    
    .article-footer {
        padding: 30px 40px;
    }
    
    .article-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-detail-page {
        padding: 30px 0;
    }
    
    .news-detail-container {
        padding: 0 15px;
    }
    
    .news-detail-layout {
        gap: 20px;
    }
    
    .sidebar-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .news-item {
        padding: 10px;
    }
    
    .news-item-image {
        width: 80px;
        height: 60px;
    }
    
    .news-item-title {
        font-size: 13px;
    }
    
    .hot-news-item {
        padding: 12px 8px;
    }
    
    .hot-title {
        font-size: 13px;
    }
    
    .article-header {
        padding: 30px 25px 20px;
    }
    
    .article-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    .article-summary {
        padding: 20px 25px;
        font-size: 15px;
    }
    
    .article-content {
        padding: 30px 25px;
        font-size: 15px;
        line-height: 1.8;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin-top: 30px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-content h4 {
        font-size: 16px;
    }
    
    .article-footer {
        padding: 25px;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .nav-link {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 25px 20px;
        font-size: 14px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
