/* 新闻页面样式 - Linear风格 */

/* 页面标题区域 */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #e8e9eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* 新闻列表区域 */
.news-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 新闻卡片 */
.news-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-card:hover::before {
    transform: scaleX(1);
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.news-category {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(94, 106, 210, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 500;
}

/* 新闻标题 */
.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--accent);
}

/* 新闻摘要 */
.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* 新闻标签 */
.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tags .tag {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.news-tags .tag:hover {
    background: rgba(94, 106, 210, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.page-item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 500;
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .news-card {
        padding: 24px;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
