/* 文章 */
.articles-section {
    padding-bottom: 80px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* 取消列表过渡，避免布局抖动 */
    transition: none;
}

.article-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #252533 0%, #18191D 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    transition: all 0.3s ease;
    /* 核心：硬件加速 + 初始状态 */
    transform: translateZ(0);
    will-change: transform;
    /* 确保flex布局正常 */
    opacity: 1;
    height: auto;
}

/* 隐藏文章项的样式（完全脱离布局流） */
.article-item.filter-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    height: 0;
    padding: 0;
    margin: 0;
}

.article-item:hover {
    background-color: #2d2d3d;
    transform: translateX(8px) translateZ(0);
    /* 保留硬件加速 */
}

.article-thumbnail {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a20;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease 0.1s;
    /* 延迟动画，避免冲突 */
}

.article-item:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-thumbnail-gradient {
    background: linear-gradient(135deg, #00ff88, #00aaff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-icon {
    font-size: 48px;
    opacity: 0.8;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 4px 12px;
    border-radius: 50px;
    background-color: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-size: 12px;
}

.article-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.article-item:hover .article-content h3 {
    color: #00ff88;
}

.article-content p {
    /* 原有样式保留 */
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;

    /* 文本截断核心样式（含完整兼容） */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.article-arrow span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.article-item:hover .article-arrow span {
    background-color: #00ff88;
    color: #17171c;
    transform: scale(1.1);
}

/* CTA Dual */
.cta-dual-section {
    padding: 64px 0;
    background-color: #1a1a20;
}

.cta-dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.cta-dual-card {
    padding: 26px;
    background-color: #252533;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cta-dual-card:hover {
    transform: translateY(-8px);
}

.cta-dual-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.cta-dual-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
}