/* ============ 模板七 专业详情 ============ */

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

/* 顶部摘要卡：上浮叠 Banner */
.md7-hero {
    width: 1200px;
    max-width: 96%;
    margin: -40px auto 20px;
    position: relative;
    z-index: 3;
    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;
}

/* 专业封面：默认背景图 + 名称叠加 */
.md7-cover {
    width: 320px;
    flex-shrink: 0;
    min-height: 180px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.md7-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://sszxapp-1317415100.cos.ap-guangzhou.myqcloud.com/%E6%96%87%E7%AB%A0%E5%9B%BE%E7%89%87/d2004a07-f07e-4e75-a369-7e96379911e8.jpg') center / cover no-repeat;
    transition: transform 0.35s ease;
    z-index: 0;
}

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

.md7-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;
}

.md7-cover-name {
    color: #fff;
    font-size: 24px;
    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;
}

/* 默认图已含「同等学力申硕」徽章，避免叠字 */
.md7-cover-badge {
    display: none;
}

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

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

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

.md7-hero-meta span {
    display: inline-block;
    margin-right: 24px;
}

.md7-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;
    box-sizing: border-box;
    transition: all 0.2s;
}

.md7-btn-outline {
    color: #1F3A91;
    border: 1px solid #1F3A91;
    background: #fff;
}

.md7-btn-outline:hover {
    background: #1F3A91;
    color: #fff;
    text-decoration: none;
}

.md7-btn-solid {
    color: #fff;
    background: #1F3A91;
    border: 1px solid #1F3A91;
}

.md7-btn-solid:hover {
    background: #16296B;
    border-color: #16296B;
    color: #fff;
    text-decoration: none;
}

/* 主体：左介绍 + 右粘性侧栏 */
.md7-body {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-sizing: border-box;
}

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

.md7-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.md7-section-icon {
    width: 4px;
    height: 18px;
    background: #1F3A91;
    border-radius: 2px;
}

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

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

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

.md7-content h1,
.md7-content h2,
.md7-content h3,
.md7-content h4 {
    font-weight: 700;
    color: #222;
    margin: 1.2em 0 0.6em;
}

.md7-lessons {
    margin-top: 24px;
    padding-top: 8px;
}

.md7-lessons-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.md7-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.md7-lessons-list li {
    padding: 10px 14px;
    background: #f7f8fb;
    font-size: 14px;
    color: #555;
}

/* 右侧粘性卡片 */
.md7-side {
    width: 300px;
    flex-shrink: 0;
}

.md7-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;
}

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

.md7-cover-sm .md7-cover-name {
    font-size: 22px;
}

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

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

.md7-side-meta span {
    display: block;
}

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

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

@media (max-width: 1023px) {
    .md7-hero {
        margin-top: -40px;
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

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

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

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

    .md7-main {
        padding: 16px;
    }

    .md7-side {
        width: 100%;
    }

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