.article-list-page {
    padding: 20px 0;
}
.page-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
}
/* 文章网格：2列布局，正好每页8条=4行 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
/* 文章卡片：左图右文，和你截图样式完全一致 */
.article-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}
.article-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* 封面图 */
.article-cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
/* 右侧内容区 */
.article-body {
    flex: 1;
    min-width: 0;
}
.article-cate {
    color: #4158D0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}
.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.article-title a:hover {
    color: #ff4400;
}
.article-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 12px;
    color: #999;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 响应式适配：小屏幕1列 */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-cover {
        width: 100px;
        height: 100px;
    }
}

/* 黑夜模式适配 */
body.dark-mode .article-item {
    background: #1e1e1e !important;
}
body.dark-mode .article-title a {
    color: #e0e0e0 !important;
}
body.dark-mode .article-title a:hover {
    color: #ff6b35 !important;
}
body.dark-mode .article-desc {
    color: #aaa !important;
}
body.dark-mode .article-meta {
    color: #999 !important;
}

.article-detail-page {
    padding: 30px 0;
}
.article-main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.article-content-col {
    flex: 1;
    min-width: 0;
}
.article-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    color: #999;
}
.article-cate-link {
    color: #4158D0;
    font-weight: 500;
    text-decoration: none;
}
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
.article-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.article-nav-item {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.article-nav-label {
    font-size: 12px;
    color: #999;
}
.article-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.article-sidebar-col {
    width: 320px;
    flex-shrink: 0;
}
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff4400;
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.sidebar-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.sidebar-item-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

@media (max-width: 992px) {
    .article-main-wrapper {
        flex-direction: column;
    }
    .article-sidebar-col {
        width: 100%;
    }
}

body.dark-mode .article-container,
body.dark-mode .sidebar-card {
    background: #1e1e1e !important;
}
body.dark-mode .article-title,
body.dark-mode .sidebar-title,
body.dark-mode .sidebar-item a {
    color: #e0e0e0 !important;
}
body.dark-mode .article-content {
    color: #e0e0e0 !important;
}