/**
 * 课程目录页面特定样式
 */

/* 页面头部背景 - 深蓝色渐变 */
.page-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 60px 0;
}

.page-header h1 {
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.9;
}

/* 区域副标题 */
.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* 课程网格容器 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

/* 课程卡片 */
.course-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.course-icon {
    font-size: 32px;
    text-align: center;
    padding: 6px 0;
}

.course-content {
    flex: 1;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 6px;
    line-height: 1.3;
}

.course-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.meta-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.course-desc {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.feature-badge {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
}

.course-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view {
    background: #1a237e;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view:hover {
    background: #0d1642;
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #1a237e;
    border: 2px solid #1a237e;
    padding: 6px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #1a237e;
    color: white;
}

/* 分类标签 */
.category-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.category-tag {
    background: white;
    color: #1a237e;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.category-tag:hover,
.category-tag.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .course-card {
        flex-direction: column;
    }

    .course-icon {
        min-width: auto;
    }

    .course-meta {
        gap: 10px;
    }

    .course-actions {
        flex-direction: column;
    }

    .btn-view,
    .btn-outline {
        text-align: center;
        width: 100%;
    }
}

/* 无结果提示 */
.no-results {
    display: none !important;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-results.show {
    display: block !important;
}

.no-results h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.no-results p {
    color: #999;
    font-size: 16px;
}
