/* ============ 模板七 课程详情 ============ */

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

.ld7-hero-box {
    width: 1200px;
    max-width: 96%;
    margin: -40px auto 20px;
    position: relative;
    z-index: 3;
}

.ld7-hero {
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.ld7-cover {
    width: 320px;
    flex-shrink: 0;
    min-height: 180px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.ld7-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--idx7-theme, #1F3A91) 55%, transparent), rgba(180, 40, 80, 0.45)),
        url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/6ea40935-7c07-4b7d-88e7-eb42c8605b8d.jpg') center / cover no-repeat;
    transition: transform 0.35s ease;
    z-index: 0;
}

.ld7-cover.has-image::before {
    background: var(--ld7-bg) center / cover no-repeat;
}

.ld7-cover:hover::before {
    transform: scale(1.08);
}

.ld7-cover-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

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

.ld7-cover-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--idx7-theme, #1F3A91);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
}

.ld7-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 180px 8px 0;
}

.ld7-hero-deco {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 160px;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.ld7-hero-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.ld7-hero-meta {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 22px;
}

.ld7-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ld7-meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.ld7-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: all 0.2s;
    outline: none;
}

.ld7-btn:hover,
.ld7-btn:focus,
.ld7-btn:active,
.ld7-btn:visited {
    text-decoration: none !important;
}

.ld7-btn-outline {
    color: var(--idx7-theme, #1F3A91);
    border: 1px solid var(--idx7-theme, #1F3A91);
    background: #fff;
}

.ld7-btn-outline:hover,
.ld7-btn-outline:focus,
.ld7-btn-outline:active {
    background: var(--idx7-theme, #1F3A91);
    color: #fff;
    text-decoration: none !important;
}

.ld7-btn-solid {
    color: #fff;
    background: var(--idx7-theme, #1F3A91);
    border: 1px solid var(--idx7-theme, #1F3A91);
}

.ld7-btn-solid:hover,
.ld7-btn-solid:focus,
.ld7-btn-solid:active {
    background: color-mix(in srgb, var(--idx7-theme, #1F3A91) 75%, #000);
    border-color: color-mix(in srgb, var(--idx7-theme, #1F3A91) 75%, #000);
    color: #fff;
    text-decoration: none !important;
}

.ld7-body {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-sizing: border-box;
}

.ld7-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 0 32px 40px;
    box-sizing: border-box;
}

.ld7-tabs {
    display: flex;
    gap: 36px;
    border-bottom: 1px solid #eef0f5;
    margin: 0 -32px 24px;
    padding: 0 32px;
}

.ld7-tab {
    position: relative;
    display: inline-block;
    padding: 18px 0 14px;
    font-size: 16px;
    color: #666;
    text-decoration: none;
    outline: none;
}

.ld7-tab:focus,
.ld7-tab:active {
    outline: none;
    text-decoration: none;
}

.ld7-tab:hover {
    color: var(--idx7-theme, #1F3A91);
    text-decoration: none;
}

.ld7-tab.active {
    color: var(--idx7-theme, #1F3A91);
    font-weight: 700;
}

.ld7-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--idx7-theme, #1F3A91);
    border-radius: 2px 2px 0 0;
}

.ld7-panel {
    display: none;
}

.ld7-panel.active {
    display: block;
}

.ld7-content {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
    word-break: break-word;
}

.ld7-content img {
    max-width: 100%;
    height: auto;
}

.ld7-content p {
    margin: 0 0 1em;
}

.ld7-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* 课程目录 */
.ld7-chapter {
    border-bottom: 1px solid #eef0f5;
}

.ld7-chapter-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 4px;
    cursor: pointer;
    user-select: none;
}

.ld7-chapter-hd:hover .ld7-chapter-title {
    color: var(--idx7-theme, #1F3A91);
}

.ld7-chapter-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.ld7-chapter-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #999;
    font-size: 13px;
}

.ld7-chapter-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -4px;
}

.ld7-chapter.open .ld7-chapter-arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.ld7-chapter-bd {
    display: none;
    padding: 0 4px 16px 18px;
    position: relative;
}

.ld7-chapter.open .ld7-chapter-bd {
    display: block;
}

.ld7-chapter-bd::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 20px;
    width: 1px;
    background: #dfe3ee;
}

.ld7-section {
    position: relative;
    padding: 10px 0 10px 18px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.ld7-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--idx7-theme, #1F3A91);
}

.ld7-side {
    width: 300px;
    flex-shrink: 0;
}

.ld7-side-card {
    position: sticky;
    top: 20px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px;
    box-sizing: border-box;
}

.ld7-cover-sm {
    width: 100%;
    min-height: 160px;
    margin-bottom: 16px;
}

.ld7-cover-sm .ld7-cover-name {
    font-size: 20px;
}

.ld7-side-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ld7-side-meta {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 18px;
}

.ld7-side-meta .ld7-meta-row {
    margin-bottom: 4px;
}

.ld7-side-card .ld7-btn {
    width: 100%;
}

@media (max-width: 1023px) {
    .ld7-hero-box {
        margin-top: -40px;
    }

    .ld7-hero {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .ld7-cover {
        width: 100%;
        min-height: 160px;
    }

    .ld7-hero-title {
        font-size: 22px;
    }

    .ld7-hero-info {
        padding-right: 100px;
    }

    .ld7-hero-deco {
        width: 96px;
    }

    .ld7-body {
        flex-direction: column;
        gap: 16px;
    }

    .ld7-main {
        padding: 0 16px 24px;
    }

    .ld7-tabs {
        margin: 0 -16px 20px;
        padding: 0 16px;
        gap: 24px;
    }

    .ld7-side {
        width: 100%;
    }

    .ld7-side-card {
        position: static;
    }
}
