/* 列表页面布局 */
.list-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.left-section {
    flex: 1;
    min-width: 0;
}

.right-section {
    width: 320px;
    flex-shrink: 0;
}

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

.article-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf4;
}

.article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-item a {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.article-item a:hover {
    text-decoration: none;
}

.article-thumbnail {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
}

.article-thumbnail img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
    margin-top: auto;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date::before {
    content: "📅";
    margin-right: 4px;
}

.article-category {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 侧边栏样式 */
.sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf4;
    position: sticky;
    top: 90px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a2e;
    padding-bottom: 12px;
    border-bottom: 3px solid #4f46e5;
}

/* 网站列表样式 */
.websites-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.website-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.website-card:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
    transform: translateX(-4px);
}

.website-card a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.website-card a:hover {
    text-decoration: none;
}

.website-logo {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.website-logo img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.website-details {
    flex: 1;
    min-width: 0;
}

.website-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1a1a2e;
}

.website-details p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .list-layout {
        flex-direction: column;
    }
    
    .right-section {
        width: 100%;
        order: -1;
    }
    
    .sidebar-box {
        position: static;
        margin-bottom: 30px;
    }
    
    .articles-list {
        gap: 15px;
    }
    
    .article-item {
        padding: 15px;
    }
    
    .article-item a {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-thumbnail {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .article-thumbnail img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    .list-layout {
        gap: 20px;
        margin-top: 20px;
    }
    
    .article-info h3 {
        font-size: 16px;
    }
    
    .article-summary {
        font-size: 13px;
    }
    
    .sidebar-box {
        padding: 18px;
    }
    
    .sidebar-title {
        font-size: 18px;
    }
    
    .website-card {
        padding: 12px;
    }
    
    .website-logo img {
        width: 50px;
        height: 50px;
    }
    
    .website-details h4 {
        font-size: 14px;
    }
    
    .website-details p {
        font-size: 12px;
    }
}