/* 文章列表页面样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin: 0 auto;
}

.article-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom:10px;
}

.category-tag {
    background: linear-gradient(135deg, #E0BBE4 0%, #D4A5D9 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(224, 187, 228, 0.3);
}

.bookmark-icon {
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 50%;
}

.bookmark-icon:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.article-content {
    margin-bottom:10px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom:10px;
    color: #1f2937;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #6366f1;
}

.article-description {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom:5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-author {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.meta-left {
    color: #374151;
    font-size: 14px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.meta-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

/* 暗色主题兼容 */
body.dark-theme .article-card {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .article-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: #4b5563;
}

body.dark-theme .article-title {
    color: #f9fafb;
}

body.dark-theme .article-title a:hover {
    color: #a78bfa;
}

body.dark-theme .article-description {
    color: #d1d5db;
}

body.dark-theme .article-author {
    color: #e5e7eb;
}

body.dark-theme .article-meta {
    border-top-color: #374151;
}

body.dark-theme .meta-left {
    color: #e5e7eb;
}

body.dark-theme .meta-item {
    color: #9ca3af;
}

body.dark-theme .bookmark-icon {
    color: #9ca3af;
}

body.dark-theme .bookmark-icon:hover {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article-list {
  
    }
}

@media (max-width: 768px) {
    .article-list {
        max-width: 100%;
        gap: 16px;
        padding: 0 20px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .article-meta {
        gap: 16px;
    }
    
    .meta-item {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .article-card {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .article-header {
        margin-bottom: 10px;
    }
    
    .article-content {
        margin-bottom: 10px;
    }
    
    .article-meta {
        padding-top: 10px;
        gap: 14px;
    }
}

/* 动画效果 */
.article-card.clicked {
    transform: scale(0.98);
    transition: transform 0.15s ease;
}

.article-card.hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* 收藏状态样式 */
.bookmark-icon.bookmarked {
    color: #f59e0b !important;
}

.bookmark-icon.bookmarked i {
    color: #f59e0b !important;
}

/* 暗色主题下的收藏状态 */
body.dark-theme .bookmark-icon.bookmarked {
    color: #fbbf24 !important;
}

body.dark-theme .bookmark-icon.bookmarked i {
    color: #fbbf24 !important;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 悬停时的渐变边框效果 */
.article-card:hover {
  border:1px solid #FFF;
}
.article-card:hover::before {
    opacity: 1;
}

/* 暗色主题下的渐变边框 */
body.dark-theme .article-card::before {
    background: linear-gradient(135deg, #a78bfa, #6366f1, #E0BBE4);
}