/* Related Articles List - 币安风格重新设计 */

/* 侧边栏容器 */
.related-articles-sidebar {
    background: var(--bg-card, #181A20);
    border-radius: 12px;
    border: 1px solid var(--border-light, rgba(240, 185, 11, 0.1));
    overflow: hidden;
}

/* 侧边栏头部 */
.related-articles-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.1) 0%, rgba(240, 185, 11, 0.05) 100%);
    border-bottom: 1px solid var(--border-light, rgba(240, 185, 11, 0.1));
}

.related-articles-sidebar .sidebar-header-icon {
    width: 24px;
    height: 24px;
    color: var(--primary, #F0B90B);
    flex-shrink: 0;
}

.related-articles-sidebar .sidebar-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light, #ffffff);
}

/* 文章列表 */
.related-articles-sidebar .articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 文章项 */
.related-articles-sidebar .article-item {
    border-bottom: 1px solid var(--border-light, rgba(240, 185, 11, 0.05));
    transition: all 0.3s ease;
}

.related-articles-sidebar .article-item:last-child {
    border-bottom: none;
}

.related-articles-sidebar .article-item:hover {
    background: rgba(240, 185, 11, 0.02);
}

/* 文章链接 */
.related-articles-sidebar .article-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* 文章图标/封面 */
.related-articles-sidebar .article-icon {
    width: 80px;
    height: 60px;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-dark, #0B0E11);
    flex-shrink: 0;
}

.related-articles-sidebar .article-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-articles-sidebar .article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-articles-sidebar .article-placeholder::after {
    content: '📄';
    font-size: 24px;
    opacity: 0.5;
}

/* 文章信息 */
.related-articles-sidebar .article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-articles-sidebar .article-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light, #ffffff);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.related-articles-sidebar .article-item:hover .article-title {
    color: var(--primary, #F0B90B);
}

/* 文章描述 */
.related-articles-sidebar .article-desc {
    font-size: 0.8125rem;
    color: var(--text-gray, #848E9C);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 文章元信息 */
.related-articles-sidebar .article-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-gray, #848E9C);
}

.related-articles-sidebar .meta-icon {
    width: 14px;
    height: 14px;
    color: var(--text-gray, #848E9C);
}

/* 箭头 */
.related-articles-sidebar .article-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-gray, #848E9C);
    flex-shrink: 0;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.related-articles-sidebar .article-item:hover .article-arrow {
    color: var(--primary, #F0B90B);
    transform: translateX(4px);
}

/* ==================== 响应式适配 ==================== */

@media screen and (max-width: 768px) {
    .related-articles-sidebar .sidebar-header {
        padding: 1rem 1.25rem;
    }
    
    .related-articles-sidebar .sidebar-header-title {
        font-size: 1rem;
    }
    
    .related-articles-sidebar .article-link {
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }
    
    .related-articles-sidebar .article-icon {
        width: 72px;
        height: 54px;
        min-width: 72px;
    }
    
    .related-articles-sidebar .article-title {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
    
    .related-articles-sidebar .article-desc {
        display: none;
    }
    
    .related-articles-sidebar .article-arrow {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 480px) {
    .related-articles-sidebar .article-icon {
        width: 64px;
        height: 48px;
        min-width: 64px;
    }
    
    .related-articles-sidebar .article-title {
        font-size: 0.8125rem;
    }
}

/* 列表入场动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-articles-sidebar .article-item {
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
}

.related-articles-sidebar .article-item:nth-child(1) { animation-delay: 0.05s; }
.related-articles-sidebar .article-item:nth-child(2) { animation-delay: 0.1s; }
.related-articles-sidebar .article-item:nth-child(3) { animation-delay: 0.15s; }
.related-articles-sidebar .article-item:nth-child(4) { animation-delay: 0.2s; }
.related-articles-sidebar .article-item:nth-child(5) { animation-delay: 0.25s; }