/**
 * 动态中心列表页样式
 * news-hub.css
 */

/* ===== Hero区域 ===== */
.news-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.news-hero .container {
    position: relative;
    z-index: 1;
}

.news-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.news-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 分类标签 ===== */
.category-tabs {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-tabs .tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tabs .tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs .tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.category-tabs .tab:hover {
    background: #e2e8f0;
    color: #334155;
}

.category-tabs .tab.active {
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 166, 251, 0.3);
}

.category-tabs .tab i {
    font-size: 0.9rem;
}

/* ===== 文章列表 ===== */
.news-list {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 60vh;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ===== 文章卡片 ===== */
.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.article-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.article-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.category-tag i {
    font-size: 0.75rem;
}

.article-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: #1a365d;
}

.article-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content h2 a:hover {
    color: #00a6fb;
}

.article-content .summary {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta i {
    font-size: 0.8rem;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-link:hover {
    background: #e2e8f0;
    color: #334155;
}

.page-link.active {
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 166, 251, 0.3);
}

.page-link.prev,
.page-link.next {
    font-size: 0.9rem;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.empty-state .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

/* ===== CTA区域 ===== */
.cta-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    display: inline-block;
    background: #00a6fb;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
    background: #0084d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 166, 251, 0.4);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #00a6fb;
}

.breadcrumb li:last-child {
    color: #334155;
    font-weight: 500;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .news-hero {
        padding: 80px 20px 50px;
    }

    .news-hero h1 {
        font-size: 1.75rem;
    }

    .news-hero p {
        font-size: 1rem;
    }

    .category-tabs {
        top: 60px;
    }

    .category-tabs .tabs {
        padding: 0.75rem 0;
    }

    .category-tabs .tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .news-list {
        padding: 40px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-cover {
        height: 180px;
    }

    .article-content {
        padding: 1.25rem;
    }

    .article-content h2 {
        font-size: 1.1rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
