/* ============ 模板七 课程中心列表 ============ */

.lesson7-wrap {
    background: #f1f3f8;
    padding: 0 0 35px;
    flex: 1;
}

.lesson7-card {
    width: 1200px;
    max-width: 96%;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 28px 36px 36px;
    box-sizing: border-box;
}

.lesson7-filter {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
}

.lesson7-filter-label {
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    line-height: 32px;
}

.lesson7-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.lesson7-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.lesson7-cat:hover {
    color: #1F3A91;
    text-decoration: none;
}

.lesson7-cat.active {
    background: rgba(31, 58, 145, 0.1);
    color: #1F3A91;
    font-weight: 600;
}

.lesson7-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lesson7-item {
    display: block;
    background: #fff;
    border: 1px solid #eef0f5;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s;
}

.lesson7-item:hover {
    box-shadow: 0 8px 22px rgba(31, 58, 145, 0.16);
    transform: translateY(-3px);
    text-decoration: none;
}

.lesson7-cover {
    position: relative;
    width: 100%;
    height: 148px;
    overflow: hidden;
    background: linear-gradient(135deg, #1F3A91, #4A63C9);
}

.lesson7-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lesson7-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    text-align: center;
    box-sizing: border-box;
}

.lesson7-cover-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
    word-break: break-word;
}

.lesson7-cover-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: #1F3A91;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.lesson7-cover-tone-0 { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.lesson7-cover-tone-1 { background: linear-gradient(135deg, #d35400, #f39c12); }
.lesson7-cover-tone-2 { background: linear-gradient(135deg, #1F3A91, #4A63C9); }
.lesson7-cover-tone-3 { background: linear-gradient(135deg, #1a5276, #2980b9); }
.lesson7-cover-tone-4 { background: linear-gradient(135deg, #b7950b, #f1c40f); }
.lesson7-cover-tone-5 { background: linear-gradient(135deg, #6c3483, #9b59b6); }

.lesson7-info {
    padding: 14px 12px 16px;
}

.lesson7-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.lesson7-item:hover .lesson7-name {
    color: #1F3A91;
}

.lesson7-type {
    font-size: 13px;
    color: #888;
}

.lesson7-empty {
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 14px;
}

.lesson7-card .cate7-pager {
    margin-top: 32px;
}

.lesson7-card .cate7-pager-item {
    cursor: pointer;
}

@media (max-width: 1023px) {
    .lesson7-card {
        margin-top: -40px;
        padding: 16px;
    }

    .lesson7-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lesson7-cover {
        height: 120px;
    }

    .lesson7-cover-title {
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .lesson7-grid {
        grid-template-columns: 1fr;
    }
}
