/* 新闻页面专用样式 */

/* 顶部横幅（新闻页统一为 200/180/150） */
.ad-hero__img {
    height: 200px !important;
}
@media (max-width: 768px) {
    .ad-hero__img { height: 180px !important; }
}
@media (max-width: 480px) {
    .ad-hero__img { height: 150px !important; }
}

/* 主要内容区域 */
.news-main {
    background: #fff;
    min-height: 70vh;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

/* 左侧导航栏 */
.news-sidebar {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3670cf;
}

.sidebar-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #3670cf;
    margin: 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav .nav-link {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: #3670cf;
    color: #fff;
    transform: translateX(5px);
}

/* 右侧内容区域 */
.news-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaecef;
}

.content-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #3670cf;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 新闻列表样式 */
.news-list {
    margin-bottom: 40px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding: 20px 20px;
    border-radius: 8px;
}

.news-item:last-child {
    border-bottom: none;
}


.news-category {
    background: #3670cf;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.news-title {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.news-title a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 1;
}

.news-title a:hover {
    color: #3670cf;
}

.news-title .news-date {
    color: #999;
    font-size: 14px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: normal;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.news-author {
    font-weight: 500;
}

.news-views {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover {
    background: #3670cf;
    color: #fff;
    border-color: #3670cf;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-number:hover,
.page-number.active {
    background: #3670cf;
    color: #fff;
    border-color: #3670cf;
}

/* 新闻详情页样式 */
.news-detail {
    line-height: 1.8;
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaecef;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.detail-meta span {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
}

.detail-content {
    margin-bottom: 30px;
}

.detail-content p {
    margin-bottom: 20px;
    color: #333;
    text-align: justify;
}

.detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #3670cf;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecef;
}

.detail-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.detail-content li {
    margin-bottom: 8px;
    color: #333;
}

.detail-content strong {
    color: #3670cf;
    font-weight: 600;
}

/* 标签样式 */
.detail-tags {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.tag-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3670cf;
    color: #fff;
}

/* 上下篇导航 */
.detail-navigation {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-label {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.nav-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #3670cf;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .news-sidebar {
        position: static;
        order: 2;
    }
    
    .news-content {
        order: 1;
        padding: 20px;
    }
    
    .content-header h1 {
        font-size: 20px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
    
    .page-btn {
        order: 1;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 15px 10px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-item:hover {
        margin: 0 -10px;
        padding: 20px 10px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-content h3 {
        font-size: 18px;
    }
}
