@charset "utf-8";
/* CSS Document */
/* ========== 新增：文章列表页面样式 ========== */
.article-list-section {
    padding: 60px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

/* 左侧分类列表 */
.sidebar {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    align-self: start;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a40013;
    display: inline-block;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 8px;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
    font-size: 16px;
}

.category-item a:hover {
    color: #a40013;
    padding-left: 8px;
}

.category-item.active a {
    color: #a40013;
    font-weight: bold;
    border-left: 3px solid #a40013;
    padding-left: 10px;
}

/* 右侧文章列表 */
.article-main {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
}

.current-category {
    margin-bottom: 25px;
    position: relative;
}

.current-category h2 {
    font-size: 28px;
    font-weight: bold;
    color: #a40013;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #a40013;
}

.article-list {
    list-style: none;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.article-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.article-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    flex: 1;
}

.article-title:hover {
    color: #a40013;
}

.article-date {
    color: #888;
    font-size: 14px;
    margin-left: 20px;
    white-space: nowrap;
}

