/* 营销知识 - 课程区块样式 */
#mk-courses {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
}

/* 背景装饰 */
#mk-courses::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50px;
    left: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

#mk-courses::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: 50px;
    right: -150px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, rgba(236, 72, 153, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* 区块标题样式 */
#mk-courses .mk-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

#mk-courses .mk-section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

#mk-courses .mk-section-header h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 2px;
}

#mk-courses .mk-section-header p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* 课程筛选按钮样式 */
.mk-courses-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.mk-course-btn {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mk-course-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.mk-course-btn.active {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

/* 课程网格布局 */
.mk-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* 课程卡片样式 */
.mk-course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mk-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mk-course-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.mk-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mk-course-card:hover .mk-course-image img {
    transform: scale(1.05);
}

/* 课程级别标签 */
.mk-course-level {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.mk-course-level.beginner {
    background: linear-gradient(90deg, #10b981, #059669);
}

.mk-course-level.intermediate {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.mk-course-level.advanced {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.mk-course-level.specialized {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

/* 课程内容样式 */
.mk-course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mk-course-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mk-course-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* 课程详情样式 */
.mk-course-details {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.mk-course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mk-info-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.mk-info-item i {
    margin-right: 5px;
    color: #8b5cf6;
}

.mk-course-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mk-stars {
    display: flex;
    color: #f59e0b;
}

.mk-stars i {
    margin-right: 2px;
}

.mk-course-rating span {
    font-size: 13px;
    color: #6b7280;
}

/* 主要按钮样式 */
.mk-course-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
    text-align: center;
}

.mk-course-btn-primary:hover {
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* CTA 区域样式 */
.mk-course-cta {
    margin-top: 70px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.mk-cta-content {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    overflow: hidden;
    position: relative;
}

.mk-cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}

.mk-certificate-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-right: 40px;
    position: relative;
    z-index: 1;
}

.mk-cta-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.mk-cta-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mk-cta-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 500px;
}

.mk-course-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: white;
    color: #8b5cf6;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mk-course-btn-large:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .mk-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mk-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .mk-certificate-image {
        margin-right: 0;
        margin-bottom: 30px;
        width: 150px;
        height: 150px;
    }
    
    .mk-cta-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    #mk-courses {
        padding: 70px 0;
    }
    
    .mk-courses-grid {
        grid-template-columns: 1fr;
    }
    
    #mk-courses .mk-section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .mk-courses-filter {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .mk-course-btn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .mk-course-content h3 {
        font-size: 17px;
    }
    
    .mk-cta-text h3 {
        font-size: 22px;
    }
    
    .mk-cta-text p {
        font-size: 14px;
    }
    
    .mk-course-btn-large {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
} 