/* course-center.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 分页当前页背景色改为蓝色 */
.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #1e9fff !important;
}

.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin: 20px 0;
}

/* 横向标签筛选区 */
.filter-tags {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.filter-tags h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #555;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 6px 16px;
    background: #f0f2f5;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    user-select: none;
}

.tag-item:hover {
    background: #e1e5eb;
}

.tag-item.active {
    background: #165DFF;
    color: white;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.search-box input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
}

.search-box button {
    height: 38px;
    padding: 0 20px;
}

/* 课程网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.course-card {
    border: 1px solid #eef1f5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
}

.course-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #165DFF;
}

.course-img {
    height: 140px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    position: relative;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-info {
    padding: 12px;
}

.course-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.course-path {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-price {
    font-size: 16px;
    color: #e64340;
    font-weight: bold;
}

.course-price.free {
    color: #52c41a;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.seckill-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d4f;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}

.empty-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pagination-wrap {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }
}
/* VIP 标签 */
.vip-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, #ff6633, #ff3300);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

/* VIP 文字样式 */
.course-price.vip-text {
    color: #ff3300 !important;
    font-weight: bold;
    font-size: 14px !important;
}

.course-path-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.course-path {
    margin-bottom: 0 !important;
}
.course-sales {
    font-size: 12px;
    color: #ff7d00;
    white-space: nowrap;
}