

/* 最新文章展示区域样式 */
.recent-articles-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 查看全部文章按钮 */
.btn-view-all-articles {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #0d6efd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* 性能优化 */
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    .btn-view-all-articles:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        background: rgba(13, 110, 253, 0.05);
        border-color: rgba(13, 110, 253, 0.2);
        color: #0d6efd;
        text-decoration: none;
    }
}

.section-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

.recent-articles-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.article-card-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    
    /* 性能优化 */
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.article-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.05), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 只在真正支持hover的设备上启用hover动画（排除触摸板误触发） */
@media (hover: hover) and (pointer: fine) {
    .article-card-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        border-color: rgba(173, 216, 230, 0.6);
    }

    .article-card-item:hover::before {
        opacity: 1;
    }
    
    .article-card-item:hover .article-card-image img {
        transform: scale(1.08);
    }
}

.article-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.1), rgba(255, 255, 255, 0.2));
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    
    /* 性能优化 */
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-topic {
    color: #6c757d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.article-card-topic i {
    margin-right: 0.4rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.article-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-card-date {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-card-date i {
    font-size: 0.85rem;
}

/* 响应式优化 */
@media (max-width: 1400px) {
    .recent-articles-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .recent-articles-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .recent-articles-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .recent-articles-section {
        padding: 2rem 1.5rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
    }
    
    .recent-articles-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .recent-articles-section {
        padding: 1.5rem 1rem;
    }
    
    .article-card-content {
        padding: 1.25rem;
    }
    
    .recent-articles-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}
