/* ==================== News & Blogs 共用样式 ==================== */

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #c084fc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #a855f7;
}

/* 文章网格 */
.articles-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.articles-page {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.articles-page.active {
    display: grid;
}

/* 文章卡片 */
.article-card a {
    text-decoration: none;
    display: block;
    background: rgba(30, 20, 60, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-card a:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.4);
}

/* 缩略图 */
.article-thumb {
    height: 180px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-thumb p {
    color: rgba(168, 85, 247, 0.5);
}

/* 文章内容区 */
.article-body {
    padding: 20px;
}

.article-date {
    color: #a855f7;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article-body h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 8px 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-body p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 翻页按钮 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 0 60px;
}

.page-btn,
.page-num {
    background: rgba(30, 20, 60, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #c084fc;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover,
.page-num:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

.page-num.active {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border-color: #a855f7;
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 768px) {
    .articles-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .articles-page {
        grid-template-columns: 1fr;
    }
}