/* 课程体系页面特定样式 */
.courses-banner {
    margin-top: 70px;  /* 与导航栏高度相同 */
    height: 0;
    padding-bottom: 42.85%;  /* 与首页banner相同的宽高比 */
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ibpse-logo {
    margin-bottom: 30px;
}

.ibpse-logo img {
    height: 80px;
    width: auto;
}

.courses-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.courses-banner h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 500;
}

.courses-banner p {
    font-size: 1.4em;
    opacity: 0.9;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* 光线效果 */
.light-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.light-beam {
    position: absolute;
    background: linear-gradient(135deg, 
        rgba(44, 104, 255, 0.9), 
        rgba(52, 228, 170, 0.9)
    );
    opacity: 0;
    filter: blur(4px);
    transition: all 0.5s ease;
    transform-origin: center;
    pointer-events: none;
    box-shadow: 
        0 0 20px rgba(44, 104, 255, 0.7),
        0 0 40px rgba(52, 228, 170, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ibpse-logo img {
        height: 60px;
    }

    .courses-banner h1 {
        font-size: 2.2em;
        padding: 0 20px;
    }

    .courses-banner p {
        font-size: 1.2em;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .ibpse-logo img {
        height: 50px;
    }

    .courses-banner h1 {
        font-size: 1.8em;
    }

    .courses-banner p {
        font-size: 1em;
    }
}

/* CSTA标准部分样式 */
.csta-standard {
    padding: 80px 0;
    background: white;
}

.standard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.standard-text {
    max-width: 800px;
    text-align: center;
}

.standard-text h2 {
    font-size: 2.4em;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.standard-text h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.standard-text h2:hover::after {
    width: 100%;
}

.standard-text h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.standard-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.standard-text h3:hover::after {
    width: 100%;
}

.standard-text p {
    font-size: 1.2em;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

.standard-text .subtitle {
    font-size: 1.2em;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .csta-standard {
        padding: 60px 0;
    }

    .standard-text h2 {
        font-size: 2em;
    }

    .standard-text h3 {
        font-size: 1.5em;
    }

    .standard-text p {
        font-size: 1.1em;
    }

    .standard-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .csta-standard {
        padding: 40px 0;
    }

    .standard-text h2 {
        font-size: 1.8em;
    }

    .standard-text h3 {
        font-size: 1.3em;
    }

    .standard-text p {
        font-size: 1em;
    }

    .standard-content {
        gap: 20px;
    }
}

/* 主体课程部分样式 */
.main-courses {
    padding: 80px 0;
    background: var(--light-bg);
}

.courses-header {
    text-align: center;
    margin-bottom: 60px;
}

.courses-header h2 {
    font-size: 2.4em;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.courses-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.courses-header h2:hover::after {
    opacity: 1;
}

.courses-header h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.courses-header h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.courses-header h3:hover::after {
    opacity: 1;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto;
}

.course-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.course-icon {
    font-size: 1.8em;
    font-weight: bold;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.course-title {
    display: flex;
    flex-direction: column;
    color: white;
}

.course-title span:first-child {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 300;
}

.course-title span:last-child {
    font-size: 0.95em;
    font-weight: 500;
}

.course-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    overflow: hidden;
    padding-top: 2px;
}

.course-content h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: white;
    margin: 0;
}

.course-tag {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.course-text {
    font-size: 0.8em;
    line-height: 1.5;
    color: white;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    padding: 0 5px;
    font-weight: 300;
}

/* 各卡片尺寸 */
.i-series {
    width: 160px;
    height: 140px;
    background: #ffb820;
}

.b-series {
    width: 200px;
    height: 171px;
    background: #fe5e3e;
}

.p-series {
    width: 240px;
    height: 207px;
    background: #f22b3e;
}

.s-series {
    width: 280px;
    height: 243px;
    background: #ef3469;
}

/* 各系列颜色样式 */
.i-series .course-icon {
    color: #ffb820;
}

.i-series .course-tag {
    background: rgba(255, 184, 32, 0.2);
    color: #ffb820;
}

.b-series .course-icon {
    color: #fe5e3e;
}

.b-series .course-tag {
    background: rgba(254, 94, 62, 0.2);
    color: #fe5e3e;
}

.p-series .course-icon {
    color: #f22b3e;
}

.p-series .course-tag {
    background: rgba(242, 43, 62, 0.2);
    color: #f22b3e;
}

.s-series .course-icon {
    color: #ef3469;
}

.s-series .course-tag {
    background: rgba(239, 52, 105, 0.2);
    color: #ef3469;
}

/* 默认桌面布局（>1200px）保持不变 */

/* 平板电脑布局 (768px - 1199px) */
@media (max-width: 1199px) {
    .course-card {
        width: calc(50% - 20px) !important;
        height: 280px !important;
        margin: 10px;
    }

    .courses-grid {
        justify-content: center;
    }
}

/* 手机布局 (<768px) */
@media (max-width: 767px) {
    .course-card {
        width: 100% !important;
        height: 250px !important;
        margin: 10px 0;
    }

    .courses-grid {
        gap: 15px;
        padding: 0 15px;
    }

    .course-text {
        font-size: 0.9em;
        -webkit-line-clamp: 5;
    }
}

/* 小屏手机布局 (<480px) */
@media (max-width: 479px) {
    .course-card {
        height: 220px !important;
    }

    .course-text {
        font-size: 0.85em;
        -webkit-line-clamp: 4;
    }
}

/* 大屏幕布局 (>1200px) */
@media (min-width: 1200px) {
    .course-card {
        /* 恢复原来的阶梯式尺寸 */
        width: initial;
        height: initial;
    }

    .i-series {
        width: 160px;
        height: 162px;
    }

    .b-series {
        width: 200px;
        height: 198px;
    }

    .p-series {
        width: 240px;
        height: 243px;
    }

    .s-series {
        width: 280px;
        height: 297px;
    }
}

/* 专题课程样式 */
.special-courses {
    padding-top: 20px;  /* 减小顶部间距 */
    padding-bottom: 80px;
    background: var(--light-bg);
}

.special-courses .courses-header {
    margin-bottom: 30px;  /* 减小标题下方间距 */
}

.special-courses .courses-header h2 {
    font-size: 2.4em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.e-series {
    width: 100%;
    max-width: 800px;
    height: 200px;
    background: #538bfc;
}

.e-series .course-icon {
    color: #538bfc;
}

/* 响应式调整专题课程 */
@media (max-width: 1199px) {
    .e-series {
        height: 250px !important;
    }
}

@media (max-width: 767px) {
    .e-series {
        height: 280px !important;
    }
}

@media (max-width: 479px) {
    .e-series {
        height: 300px !important;
    }
}

/* 课程详情部分样式 */
.course-details {
    padding: 80px 0;
    background: white;
}

.course-detail-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-logo {
    flex-shrink: 0;
    text-align: center;
}

.logo-bg {
    width: 120px;
    height: 120px;
    background: #ffb820;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    font-weight: bold;
    border-radius: 15px;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 1.4em;
    color: var(--text-color);
    font-weight: 500;
}

.course-info {
    flex: 1;
}

.course-description h3 {
    font-size: 1.6em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.course-description p {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.course-bottom {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.meta-list {
    flex: 1;
    max-width: 400px;
}

.course-tag-header {
    background: #ffb820;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.course-tag-header .tag-bg {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.course-tag-header h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
}

.course-tag-header p {
    font-size: 0.9em;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

.meta-row {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.meta-label {
    width: 80px;
    color: var(--text-color);
    font-size: 0.9em;
    opacity: 0.7;
    font-weight: 300;
}

.meta-value {
    flex: 1;
    color: var(--text-color);
    font-size: 1em;
    font-weight: 400;
}

.course-chart {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.course-chart img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .course-detail-card {
        flex-direction: column;
        padding: 30px;
    }

    .course-logo {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .course-bottom {
        flex-direction: column;
    }

    .meta-list {
        max-width: 100%;
    }

    .course-tag-header {
        max-width: 600px;
        margin: 0 auto 20px;
    }

    .course-chart {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .course-details {
        padding: 40px 0;
    }

    .course-detail-card {
        padding: 20px;
    }

    .logo-bg {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }
}

/* 添加不同系列的背景色 */
.b-series-bg {
    background: #fe5e3e !important;
}

.p-series-bg {
    background: #f22b3e !important;
}

/* 交替背景色 */
.course-details:nth-child(even) {
    background: var(--light-bg);
}

.course-details:nth-child(odd) {
    background: white;
}

.s-series-bg {
    background: #ef3469 !important;
}

/* C++课程特殊样式 */
.s-series-bg + .course-info .meta-list {
    max-width: 600px;  /* 限制标签头部的宽度 */
}

.s-series-bg + .course-info .course-bottom {
    justify-content: space-between;
    align-items: flex-start;
}

/* C++课程的元数据列表样式 */
.s-series-bg + .course-info .meta-rows {
    width: 400px;
    margin-left: 40px;
}

/* 全局字体调整 */
body {
    font-weight: 300;  /* 设置全局细体字重 */
} 