/* Related Articles List 组件 - 赛博朋克风格 - 增强版 */

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

/* 文章列表项 */
.article-item {
    border-bottom: 1px solid rgba(0, 255, 136, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

/* 扫描线效果 */
.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* 悬停背景光效 */
.article-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    transition: left 0.5s ease;
}

.article-item:hover {
    background: rgba(0, 255, 136, 0.03);
    transform: translateX(4px);
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-item:hover::after {
    left: 100%;
}

/* 文章链接 */
.article-item a {
    display: flex;
    align-items: stretch;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.article-item a:hover {
    color: var(--primary);
}

/* 文章图标 */
.article-icon-wrapper {
    width: auto;
    height: 100%;
    aspect-ratio: 4/3;
    max-width: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--theme-black-light), var(--theme-black-lighter));
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: stretch;
    align-self: stretch;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
    transition: all 0.3s ease;
}

/* 图标悬停效果 */
.article-item:hover .article-icon-wrapper {
    border-color: var(--primary);
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.4),
        0 0 30px rgba(0, 255, 136, 0.2);
    transform: scale(1.02);
}

/* 赛博朋克边框光效 */
.article-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 136, 0.15) 50%, transparent 60%);
    pointer-events: none;
    animation: iconShine 3s infinite;
}

@keyframes iconShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.article-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.article-item:hover .article-placeholder img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 文章信息 */
.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0.5rem;
}

/* 文章标题 */
.article-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.article-item:hover .article-title {
    color: var(--primary);
    text-shadow: 
        0 0 8px rgba(0, 255, 136, 0.6),
        0 0 16px rgba(0, 255, 136, 0.3);
}

/* 标题霓虹闪烁 */
.article-title::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.article-item:hover .article-title::before {
    height: 80%;
}

/* 文章描述 */
.article-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.375rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.article-item:hover .article-desc {
    opacity: 1;
    color: var(--text-light);
}

/* 文章元信息 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.article-item:hover .article-meta {
    color: var(--primary);
}

.meta-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.article-item:hover .meta-icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--primary));
}

/* 箭头 - 垂直居中 */
.article-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: center;
    position: relative;
}

.article-item:hover .article-arrow {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
    filter: drop-shadow(0 0 6px var(--primary));
}

/* 箭头脉冲动画 */
.article-arrow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.article-item:hover .article-arrow::after {
    box-shadow: 0 0 10px var(--primary);
    animation: arrowPulse 1s infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .article-item a {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .article-icon-wrapper {
        max-width: 80px;
    }
    
    .article-title {
        font-size: 0.8rem;
    }
    
    .article-desc {
        font-size: 0.7rem;
    }
    
    .article-arrow {
        width: 14px;
        height: 14px;
    }
    
    .article-item:hover {
        transform: translateX(2px);
    }
}
