/* 继承基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

body {
    position: relative;
    width: 100%;
    padding-bottom: 1px;
    min-height: 100vh;
    background-image: url(../images/CourseZone/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Microsoft YaHei', serif;
}

main{
    padding-top: 40px;
}

/* 课程区域样式 */
.course-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.course-item {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 数字圆圈样式 */
.course-number {
    width: 80px;
    height: 80px;
    border: 2px solid #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.course-number::before,
.course-number::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: rgba(139, 69, 19, 0.3);
    border-radius: 50%;
}

.course-number::before {
    top: -5px;
    right: 10px;
}

.course-number::after {
    bottom: -5px;
    left: 10px;
}

.course-number span {
    font-size: 1.8rem;
    color: #8B4513;
    font-weight: bold;
}

/* 标题样式 */
.course-title {
    font-size: 1.5rem;
    color: #8B4513;
    margin-bottom: 30px;
    text-align: center;
}

/* 按钮区域 */
.course-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 200px;
}

.course-btn {
    padding: 12px 20px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.course-btn:hover {
    background-color: #6d3510;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.course-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.course-content img{
    width: 100%;
    max-height: 180px;
}

.course-content video{
    width: 100%;
    max-height: 180px;
}
/* 推荐内容区域 */
.recommended-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recommended-title {
    font-size: 1.5rem;
    color: #8B4513;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .course-section {
        flex-direction: column;
        align-items: center;
    }
    
    .course-item {
        width: 100%;
        max-width: 500px;
    }
    
    .course-number {
        width: 70px;
        height: 70px;
    }
    
    .course-number span {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .course-section {
        padding: 20px 15px;
    }
    
    .course-item {
        padding: 30px 15px;
    }
    
    .course-title,
    .recommended-title {
        font-size: 1.3rem;
    }
    
    .course-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

footer{
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}
