/* 文章页面样式 */

/* 英雄区域 */
.articles-hero {
    height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(18, 18, 18, 0.9)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.articles-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(30, 136, 229, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.articles-hero .hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.articles-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 136, 229, 0.3);
    letter-spacing: 1px;
}

.articles-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* 文章容器 */
.articles-container {
    padding: 2rem 0 4rem;
    background-color: #0f0f0f;
    position: relative;
    overflow: hidden;
}

.articles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(126, 87, 194, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* 文章卡片 */
.article-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(30, 136, 229, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-background);
    border: 1px solid rgba(30, 136, 229, 0.1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05) 0%, transparent 50%, rgba(126, 87, 194, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(30, 136, 229, 0.2);
    border-color: rgba(30, 136, 229, 0.2);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.article-card:hover .article-title {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(30, 136, 229, 0.2);
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.article-card:hover .article-title::after {
    width: 100%;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--accent-dark);
}

.read-more:hover i {
    transform: translateX(3px);
}

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

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a.next {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
}

.pagination a.active {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.pagination a:not(.active):hover {
    background-color: var(--bg-medium);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 2.5rem;
    }
    
    .articles-hero p {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .articles-hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 1.2rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
}