/* 线下面授专用样式 */
.offline-courses {
    padding: 60px 0;
    background: #d8e5fa;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.courses-header {
    text-align: center;
}

.section-title{
    font-size: 50px;
}

.courses-main {
    display: flex;
    gap: 30px;
    background: #d8e5fa; /* 新增内容区背景 */
    padding: 30px; /* 新增内边距 */
    border-radius: 15px; /* 新增圆角 */
}

/* 左侧新课程 */
.new-courses {
    flex: 2;
}

.course-main-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}


/* 右侧往期课程 */
.past-courses {
    flex: 1; /* 占1/3 */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #c3d7f0; /* 新增边框 */
}

.new-courses .course-card {
    min-height: 500px;
}

.course-main-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.course-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.course-content p {
    font-size: 15px;
    line-height: 2;
    color: #444;
}

.course-content .a{
    font-size: 25px;
    color: black;
    font-weight: bold;
}

.read-more {
    align-self: flex-start;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.read-more:hover {
    background: #228176;
    transform: translateY(-2px);
}


/* 更新后的右侧课程样式 */
/* 新增样式 */
.past-courses-header {
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.past-courses-header h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.past-courses-underline {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    width: 100%;
}

.past-courses .course-card {
    padding: 20px;
}

.year-group {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    align-items: flex-start; /* 顶部对齐 */
}

.year-header {
    flex: 0 0 60px;
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
    padding-top: 3px;
    text-align: right; /* 日期右对齐 */
    margin-right: 10px; /* 增加间距 */
}

.course-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.course-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 16px;
    top: 1px;
}

/* 链接样式 */
.course-list a {
    color: #444;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    padding: 2px 0; /* 增加点击区域 */
}

.course-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* 精准对齐调整 */
.course-list li:first-child {
    margin-top: -3px; /* 补偿日期文本的基线偏移 */
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .section-container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .courses-main {
        flex-direction: column;
    }

    .new-courses,
    .past-courses {
        width: 100%;
        flex: none;
    }

    .course-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .year-group {
        flex-direction: row; /* 保持横向布局 */
        gap: 15px;
    }

    .year-header {
        flex-basis: 50px;
        font-size: 18px;
        padding-top: 1px;
    }

    .course-list li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .year-group {
        flex-direction: column;
        gap: 5px;
    }

    .year-header {
        text-align: left;
        margin-bottom: 5px;
    }

    .course-list li:first-child {
        margin-top: 0;
    }
}