@CHARSET "UTF-8";

/* 课程报名页面新样式 */

body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* 顶部Banner区域 */
.course-banner {
    width: 100%;
    background: url('../../images/course/new/background.png') no-repeat center center;
    background-size: cover;
    padding: 40px 0;
}

.course-banner-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-banner-left {
    flex: 1;
}

.course-banner-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.course-banner-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.course-banner-right {
    width: 280px;
    display: flex;
    justify-content: flex-end;
}

.course-banner-right img {
    width: 240px;
    height: auto;
}

/* 主内容区域 */
.course-main-content {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.course-main-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

/* 分类区域 */
.course-category-section {
    margin-bottom: 40px;
}

.course-category-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #faad14;
    margin-bottom: 24px;
}

/* 课程卡片网格 */
.course-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 课程卡片 */
.course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.course-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-card-info {
    padding: 16px;
}

/* 标签行：限时优惠 + 购买人数 */
.course-card-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    min-height: 24px;
}

/* 限时优惠标签（卡片info区域内） */
.course-tag-inline {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* 报名人数（卡片info区域右侧） */
.course-enroll-count {
    font-size: 12px;
    color: #999;
}

.course-card-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-card-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
}

/* 无课程数据提示 */
.no-course-data {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 1240px) {
    .course-banner-content,
    .course-main-content {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 992px) {
    .course-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .course-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .course-banner-right {
        margin-top: 20px;
        justify-content: center;
    }

    .course-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-banner-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .course-card-grid {
        grid-template-columns: 1fr;
    }
}
