/**
 * 分类页专用样式
 * 版本: 1.0
 */

/* ========== 1. 分类页通用样式 ========== */
.category-container {
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-bottom: 40px;
}

/* 头部样式 */
.category-header {
    padding: 70px 1.5rem;
    text-align: center;
}

.category-header .category-en-name {
    font-family: Lantinghei-SC-Extralight;
    font-size: 14px;
    letter-spacing: 2.64px;
    color: #4d4d4d;
    text-transform: uppercase;
}

.category-header .category-zh-title {
    font-family: HYQiHeiY4-EEW;
    font-size: 30px;
    letter-spacing: 8.448px;
    margin-top: 1px;
    color: #5c5c5c;
}

.category-header .category-description {
    font-family: HYQiHeiY4-EEW;
    font-size: 14px;
    letter-spacing: .7px;
    margin-top: 16px;
    color: #5c5c5c;
}

.category-header .category-en-description {
    font-family: Lantinghei-SC-Extralight;
    font-size: 14px;
    letter-spacing: 2.64px;
    margin-top: 5px;
    color: #4d4d4d;
}

/* ========== 2. 分类内容区域 ========== */
.category-content {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
}

/* 文章列表样式 */
.category-article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-article-item {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    position: relative;
}

.category-article-image {
    flex: 0 0 232px;
    margin-right: 20px;
    position: relative;
}

.category-thumbnail {
    width: 232px;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s;
}

.category-article-item:hover .category-thumbnail {
    transform: scale(1.02);
}

.category-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-article-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: normal;
}

.category-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-title a:hover {
    color: #32a46d;
}

.category-article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    margin-top: auto;
    flex-wrap: wrap;
}

.category-article-date, 
.category-article-views, 
.category-article-source, 
.category-article-location, 
.category-article-organizer, 
.category-article-hotel, 
.category-article-date-range,
.category-article-presenter,
.category-article-course-type,
.category-article-type {
    display: flex;
    align-items: center;
}

.category-article-meta i {
    margin-right: 5px;
}

.category-article-more {
    position: absolute;
    right: 0;
    bottom: 20px;
}

.category-more-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: transparent;
    color: #32a46d;
    border: 1px solid #32a46d;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-more-link:hover {
    background-color: #32a46d;
    color: white;
}

.category-article-excerpt {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-hotel-featured {
    margin: 8px 0;
    padding: 5px 10px;
    background-color: #f0f7ff;
    border-left: 3px solid #409EFF;
    border-radius: 2px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.category-article-hotel-featured i {
    margin-right: 5px;
    color: #409EFF;
}

/* ========== 3. 分页导航样式 ========== */
.category-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.category-pagination .nav-links {
    display: flex;
    align-items: center;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 5px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    color: #606266;
    background: #f4f4f5;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-pagination .page-numbers:hover {
    color: #32a46d;
    background: #e6f7ef;
}

.category-pagination .page-numbers.current {
    color: #fff;
    background-color: #32a46d;
}

.category-pagination .next,
.category-pagination .prev {
    font-weight: bold;
}

/* ========== 4. 学习中心特定样式 ========== */
/* 学习统计 */
.learning-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #32a46d;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 登录提示 */
.login-notice {
    margin: 20px auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    max-width: 500px;
    text-align: center;
}

.login-notice p {
    margin-bottom: 10px;
    color: #666;
}

/* 进度条指示器 */
.progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background: #32a46d;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* 完成和进行中状态 */
.category-article-item.completed .category-article-image:after {
    content: "✓";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: #32a46d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.category-article-item.in-progress .progress-bar {
    background: #409EFF;
}

.category-article-item.completed .progress-bar {
    background: #32a46d;
}

/* ========== 5. 响应式样式 ========== */
@media screen and (max-width: 768px) {
    .category-article-item {
        flex-direction: column;
    }
    
    .category-article-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .category-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 232/140;
    }
    
    .category-article-more {
        position: static;
        margin-top: 15px;
    }
    
    .category-article-meta {
        margin-bottom: 15px;
    }
    
    .learning-stats {
        flex-wrap: wrap;
        gap: 20px 40px;
    }
    
    .stat-item {
        flex-basis: calc(50% - 40px);
    }
}

@media screen and (max-width: 576px) {
    .category-header {
        padding: 30px 1rem;
    }
    
    .category-header .category-zh-title {
        font-size: 24px;
        letter-spacing: 5px;
    }
    
    .category-article-title {
        font-size: 16px;
    }
    
    .category-article-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* 空状态提示 */
.empty-notice {
    text-align: center;
    padding: 30px;
    color: #909399;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #dcdfe6;
} 