/* 课程列表页面样式 */
.article-list {
    padding: 0 15px;
}

.article-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.article-item a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.article-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.article-date {
    position: relative;
    padding-left: 20px;
}

.article-date:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url('_Index_/images/time.png') no-repeat center;
    background-size: contain;
}

/* 分类导航 */
.category-list {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    background: #fff;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 8px 20px;
    margin-right: 10px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.category-item.active {
    background: #c91023;
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 15px;
    color: #999;
    font-size: 14px;
}

.empty-state img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 分页样式 */
.pagination {
    padding: 15px;
    background: #fff;
    margin-top: 15px;
    text-align: center;
}

.page-info {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.page-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.page-list a,
.page-list span {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.page-list .current {
    background: #c91023;
    color: #fff;
    border-color: #c91023;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .article-title {
        font-size: 17px;
    }
    
    .article-meta {
        font-size: 14px;
    }
}

/* 确保内容区域最小高度 */
.main-content {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.article-list {
    flex: 1;
}

/* 红色故事特有样式扩展 */
.article-views {
    position: relative;
    padding-left: 20px;
    margin-left: 15px;
}

.article-views:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url('_Index_/images/view.png') no-repeat center;
    background-size: contain;
}

.article-item {
    position: relative;
}

.article-item:after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    transform: translateY(-50%) rotate(45deg);
}

.article-item:hover {
    background: #f9f9f9;
}

.article-item:hover .article-title {
    color: #c91023;
}

.article-item:hover:after {
    border-color: #c91023;
}

/* 适配大屏幕 */
@media screen and (min-width: 768px) {
    .article-item {
        padding-right: 30px;
    }
    
    .article-item:after {
        right: 20px;
        width: 10px;
        height: 10px;
    }
}

/* 适配小屏幕 */
@media screen and (max-width: 320px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-views {
        margin-left: 0;
        margin-top: 5px;
    }
} 