/* 文章列表 - 重新设计 */
.sidebar .articles-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
}

/* 文章�?- 卡片式设�?*/
.sidebar .article-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar .article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .article-item:hover {
    transform: translateY(-4px);
}

.sidebar .article-item:hover::before {
    opacity: 1;
}

.sidebar .article-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar .article-item:hover a {
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.9) 0%, rgba(40, 40, 40, 0.9) 100%);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(243, 186, 47, 0.15), 0 0 0 1px rgba(243, 186, 47, 0.1);
}

/* 图标包装�?- 发光效果 */
.sidebar .article-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(145deg, #333 0%, var(--card-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .article-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .article-item:hover .article-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(243, 186, 47, 0.2);
}

.sidebar .article-item:hover .article-icon-wrapper::after {
    opacity: 1;
}

.sidebar .article-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.sidebar .article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #3a3a3a 0%, var(--card-bg) 100%);
}

/* 文章信息 */
.sidebar .article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar .article-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.sidebar .article-item:hover .article-title {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(243, 186, 47, 0.3);
}

.sidebar .article-desc {
    font-size: 12px;
    color: #a0a0a0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 500;
}

.sidebar .article-item:hover .article-desc {
    color: #c0c0c0;
}

/* 元信�?*/
.sidebar .article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
    font-weight: 500;
}

.sidebar .meta-icon {
    width: 14px;
    height: 14px;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.sidebar .article-item:hover .meta-icon {
    color: var(--primary);
}

/* 箭头图标 - 圆形背景 */
.sidebar .article-arrow {
    width: 32px;
    height: 32px;
    color: var(--text-gray);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 6px;
}

.sidebar .article-item:hover .article-arrow {
    color: var(--primary);
    background: rgba(243, 186, 47, 0.15);
    transform: translateX(4px);
}

/* ==================== 响应式适配 ==================== */

/* 1000-1200px 屏幕适配 */
@media screen and (min-width: 1000px) and (max-width: 1200px) {
    .sidebar .articles-list {
        padding: 12px;
        gap: 10px;
    }

    .sidebar .article-item a {
        padding: 12px;
        gap: 12px;
    }

    .sidebar .article-icon-wrapper {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .sidebar .article-title {
        font-size: 14px;
    }

    .sidebar .article-desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .sidebar .article-arrow {
        width: 28px;
        height: 28px;
        padding: 5px;
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 480px) {
    .sidebar {
        border-radius: 12px;
    }

    .sidebar .sidebar-header {
        padding: 16px;
    }

    .sidebar .articles-list {
        padding: 12px;
        gap: 10px;
    }

    .sidebar .article-item a {
        padding: 12px;
        gap: 12px;
    }

    .sidebar .article-icon-wrapper {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .sidebar .article-title {
        font-size: 14px;
    }

    .sidebar .article-desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .sidebar .article-arrow {
        width: 28px;
        height: 28px;
        padding: 5px;
    }
}

/* 列表动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar .article-item {
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.sidebar .article-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar .article-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar .article-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar .article-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar .article-item:nth-child(5) { animation-delay: 0.3s; }

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 186, 47, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(243, 186, 47, 0);
    }
}

.sidebar .article-item:hover .article-icon-wrapper {
    animation: pulse 1.5s infinite;
}
