/* 新闻列表页样式 */

.page-header {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2) 0%, rgba(15, 25, 35, 0.5) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.news-category-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.category-tabs a {
    padding: 10px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.category-tabs a:hover,
.category-tabs a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.news-list-section {
    padding: 60px 0;
    min-height: 500px;
}

.news-list-item {
    display: flex;
    gap: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 70, 85, 0.2);
    border-color: var(--primary-color);
}

.news-thumb {
    width: 350px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-list-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.news-list-title {
    font-size: 24px;
    margin: 15px 0;
    line-height: 1.4;
}

.news-list-title a {
    color: var(--text-primary);
}

.news-list-title a:hover {
    color: var(--primary-color);
}

.news-list-summary {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.news-list-footer {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 100px 0;
    color: var(--text-secondary);
    font-size: 18px;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    padding: 10px 15px;
    color: var(--text-secondary);
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 14px;
}

/* 新闻详情页 */
.breadcrumb {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.news-detail-section {
    padding: 60px 0;
}

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.news-detail-main {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.news-detail-header {
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
    font-size: 36px;
    margin: 20px 0;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.news-detail-cover {
    width: 100%;
    overflow: hidden;
}

.news-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    padding: 40px;
    font-size: 16px;
    line-height: 2;
    color: var(--text-primary);
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.news-detail-content h2,
.news-detail-content h3 {
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-share {
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: center;
}

.share-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    padding: 8px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.share-wechat:hover { background: #07c160; }
.share-weibo:hover { background: #e6162d; }
.share-qq:hover { background: #12b7f5; }

/* 侧边栏 */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.related-news {
    list-style: none;
}

.related-news li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-news li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-news a {
    display: block;
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.related-news a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 250px;
    }

    .news-list-content {
        padding: 20px;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-tabs a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .news-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .news-detail-header,
    .news-detail-content {
        padding: 20px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}
