/* 主内容宽度变量：与 .container、底部内层共用，保证全站内容左右对齐 */
:root {
    --container-w: 80vw;
    --container-max: 1500px;
    --gutter: 20px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #fff;
}

/* ==================== 个人在线学习课程 ==================== */
.courses {
    padding: 80px 0;
    background: #f5faff url('../images/personal/course_bg.jpg') no-repeat center;
    background-size: cover;
}

.courses-inner .section-head {
    margin-bottom: 50px;
}

.courses-inner .section-head.light-bg .section-title {
    color: #000;
}

.courses-inner .section-head.light-bg .section-desc {
    color: #666;
}

.courses-body {
    display: flex;
    align-items: center;
    gap: 50px;
}

.course-tabs {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.course-tab {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
}

.course-tab .tab-title {
    font-size: 22px;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
}

.course-tab .tab-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.course-tab.active .tab-title {
    color: #0164ff;
}

.course-tab.active .tab-desc {
    color: #0164ff;
}

.course-panels {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 44px 48px;
    box-shadow: 0 10px 40px rgba(0, 70, 160, 0.06);
    backdrop-filter: blur(8px);
}

.course-panel {
    display: none;
    align-items: flex-start;
    gap: 40px;
}

.course-panel.active {
    display: flex;
}

.course-text {
    flex: 1;
    min-width: 0;
}

.course-name {
    font-size: 28px;
    font-weight: 500;
    color: #000;
    margin-bottom: 18px;
}

.course-intro {
    font-size: 16px;
    color: #666;
    line-height: 2.0;
    margin-bottom: 22px;
}

.course-list {
    list-style: none;
    margin-bottom: 68px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-list li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.course-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: url('../images/personal/right_icon.png') no-repeat center;
    background-size: contain;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-tags span {
    display: inline-block;
    padding: 7px 18px;
    background: #e6f2ff;
    border-radius: 20px;
    font-size: 13px;
    color: #0164ff;
    font-weight: 500;
}

.course-media {
    flex: 0 0 42%;
    max-width: 380px;
    display: flex;
    align-items: center;
}

.course-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 1200px) {
    .courses-body {
        gap: 36px;
    }

    .course-tabs {
        flex: 0 0 230px;
    }

    .course-panels {
        padding: 36px;
    }
}

@media (max-width: 1024px) {
    .courses {
        padding: 64px 0;
    }

    .courses-body {
        flex-direction: column;
    }

    .course-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .course-tabs::-webkit-scrollbar {
        display: none;
    }

    .course-tab {
        flex: 0 0 auto;
        max-width: 220px;
        min-width: 180px;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 10px;
    }

    .course-tab.active {
        background: #fff;
        box-shadow: 0 4px 14px rgba(1, 100, 255, 0.1);
    }

    .course-panels {
        width: 100%;
    }

    .course-panel.active {
        flex-direction: column-reverse;
    }

    .course-media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .courses {
        padding: 48px 0;
    }

    .courses-inner .section-head {
        margin-bottom: 32px;
    }

    .course-panels {
        padding: 26px 22px;
        border-radius: 14px;
    }

    .course-name {
        font-size: 20px;
    }

    .course-tab .tab-title {
        font-size: 16px;
    }

    .course-tab .tab-desc {
        display: none;
    }

    .course-list li {
        font-size: 14px;
    }

    /* 移动端：收紧面板内间距，课程图居中限宽 */
    .course-panel.active {
        gap: 24px;
    }

    .course-intro {
        font-size: 14px;
        line-height: 1.8;
    }

    .course-list {
        margin-bottom: 28px;
    }

    .course-media img {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .course-tabs {
        gap: 10px;
    }

    .course-tab {
        min-width: 150px;
        padding: 12px 14px;
    }

    .course-tab .tab-title {
        font-size: 14px;
    }

    .course-panels {
        padding: 22px 18px;
    }
}

/* ==================== 学习答疑与学习支持 ==================== */
.learning-support {
    padding: 80px 0;
    background: url('../images/personal/support_bg.jpg') no-repeat center;
    background-size: cover;
    position: relative;
}

.learning-support::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 26, 43, 0.35);
    pointer-events: none;
}

.support-inner {
    position: relative;
    z-index: 1;
}

.support-inner .section-head.light {
    text-align: center;
    margin-bottom: 46px;
}

.support-inner .section-head.light .section-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.support-inner .section-head.light .section-desc {
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
    margin: 18px auto 0;
    font-size: 15px;
    line-height: 1.7;
}

.support-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.support-card {
    background: #fff url('../images/personal/support_item_bg.png') no-repeat center top;
    background-size: 100% 100%;
    border-radius: 16px;
    padding: 34px 30px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.support-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.16);
}

.support-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.support-header img {
    width: 56px;
    height: 56px;
    display: block;
    flex-shrink: 0;
}

.support-header h3 {
    font-size: 22px;
    font-weight: 500;
    color: #000;
}

.support-list {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 80px;
}

.support-list li {
    position: relative;
    padding-left: 18px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.support-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: #006aed;
    border-radius: 50%;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    padding: 10px 22px;
    border: 1px solid #006aed;
    border-radius: 20px;
    font-size: 14px;
    color: #006aed;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.support-btn:hover {
    background: #006aed;
    color: #fff;
}

@media (max-width: 1024px) {
    .learning-support {
        padding: 64px 0;
    }

    .support-grid {
        gap: 18px;
    }

    .support-card {
        padding: 28px 22px;
    }
}

@media (max-width: 768px) {
    .learning-support {
        padding: 48px 0;
    }

    .support-inner .section-head.light {
        margin-bottom: 32px;
    }

    .support-inner .section-head.light .section-title {
        font-size: 26px;
    }

    .support-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .support-card {
        padding: 26px 24px;
    }

    /* 移动端：取消 80px 缩进，列表不再被挤到右侧 */
    .support-list {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .support-inner .section-head.light .section-title {
        font-size: 22px;
    }

    .support-header h3 {
        font-size: 18px;
    }

    .support-btn {
        align-self: flex-end;
    }
}

/* ==================== 课程长期有效 ==================== */
.course-valid {
    padding: 80px 0;
    background: #fff;
}
.course-valid-inner .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 54px;
}

.course-valid-body {
    display: flex;
    align-items: center;
    gap: 60px;
    margin:0 auto;
    max-width: 1200px;
}

.valid-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 43px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:nth-child(1) {
    background-image: url('../images/personal/line_1.png');
    background-position: 60px bottom ;
    background-repeat: no-repeat;
    padding-left: 60px;
    background-size:100% auto ;
}

.timeline-item:nth-child(2) {
    background-image: url('../images/personal/line_2.png');
    background-position: 60px bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding-left: 60px;
}

.timeline-item:nth-child(3) {
    background-image: url('../images/personal/line_3.png');
    background-position: 60px bottom ;
    background-repeat: no-repeat;
    background-size:100% auto ;
    padding-left: 60px;
}

.timeline-content {
    padding-bottom: 26px;
    padding-right: 60px;
}

.timeline-tag {
    display: inline-block;
    padding: 8px 20px;
    min-width: 260px;
    background: linear-gradient(90deg, #305bf9 0%, #fdfdff 100%);
    border-radius: 20px;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    /* box-shadow: 0 4px 12px rgba(1, 100, 255, 0.25); */
}

.timeline-content p {
    font-size: 16px;
    color: #666;
    line-height: 2.0;
}

.valid-media {
    flex: 0 0 auto;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valid-media img {
    width: 100%;
    height: auto;
    display: block;
}



@media (max-width: 1024px) {
    .course-valid {
        padding: 64px 0;
    }

    .course-valid-inner .section-title {
        font-size: 30px;
        margin-bottom: 42px;
    }

    .course-valid-body {
        gap: 40px;
    }

    .valid-media {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .course-valid {
        padding: 48px 0;
    }

    .course-valid-inner .section-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .course-valid-body {
        flex-direction: column;
        gap: 36px;
    }

    .valid-timeline {
        width: 100%;
        gap: 20px;
    }

    .timeline-item {
        padding-bottom: 20px;
    }

    /* 移动端：取消 60px 缩进，装饰线贴左，避免内容被挤压 */
    .timeline-item:nth-child(1),
    .timeline-item:nth-child(2),
    .timeline-item:nth-child(3) {
        padding-left: 0;
        background-position: left bottom;
        background-size: 100% auto;
    }

    .timeline-content {
        padding-right: 0;
        padding-bottom: 16px;
    }

    .timeline-tag {
        min-width: 0;
        font-size: 16px;
    }

    .valid-media {
        max-width: 280px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .course-valid-inner .section-title {
        font-size: 22px;
    }

    .timeline-tag {
        font-size: 14px;
        padding: 6px 16px;
    }

    .timeline-content p {
        font-size: 13px;
    }



    .valid-media {
        max-width: 220px;
    }
}
