/* ========== Categories Page ========== */
.categories-page {
    margin-top: 16px;
    padding-bottom: 30px;
}

.categories-page .container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ========== Main Content ========== */
.categories-main {
    flex: 1;
    min-width: 0;
}

/* ========== Article List ========== */
.article-list {
    background: #fff;
    border-radius: 6px;
    padding: 0 20px;
}

.article-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.2s;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover .article-title {
    color: #ff2d5b;
}

.article-thumb {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-item:hover .article-thumb img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.article-content {
    flex: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-author:hover {
    text-decoration: underline;
    color: #999;
}

.article-author i {
    font-size: 14px;
    color: #999;
}

.article-author .author-name {
    font-size: 13px;
    color: #999;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.article-info span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.article-info .info-divider {
    width: 1px;
    height: 12px;
    background: #ddd;
}

/* ========== Sidebar ========== */
.categories-sidebar {
    width: 330px;
    flex-shrink: 0;
}

.sidebar-panel {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.sidebar-header h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 18px;
    background: #ff2d5b;
    border-radius: 2px;
}

.sidebar-list {
    padding: 12px 20px;
}

.sidebar-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.2s;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover .sidebar-item-title {
    color: #ff2d5b;
}

.sidebar-item-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.sidebar-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.sidebar-item-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.sidebar-item-date {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}


