/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #fff;
    color: #1d2129;
    line-height: 1.6;
}

/* 主背景样式 */
.main-bg {
    background-image: url('/wp-content/themes/my-first-theme/assets/imgs/kechengxiangqing-bg.png');
    background-size: cover;
    background-position: center;

    position: relative;
}

/* 主容器样式 */
.main-container {
    max-width: 1470px;
    margin: 0 auto;
    padding: 40px 0 80px;
    position: relative;
}

.main-pabt-0 {
    padding-bottom: 0;
}

/* 头部信息样式 */
.main-header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.university-logo {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.course-title {
    font-size: 26px;
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
}

.course-description {
    font-size: 16px;
    color: white;
}

.teacher-info {
    font-size: 16px;
    color: white;
    margin-bottom: 30px;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.btn {
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    padding: 15px 26px 15px 64px;
    border-radius: 20px;
    color: #2B53B2;
    background: url('/wp-content/themes/my-first-theme/assets/imgs/chat-aiimg.png') left 10px center no-repeat;
    background-size: 40px 40px;
    background-color: white;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

.btn-secondary {
    background-color: #fff;
    color: #25499D;
    padding: 10px 40px;
    border-radius: 40px;
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: white;
    color: #2B53B2;
}

.join-tag {
    color: #666666;
}

.price-tag {
    font-size: 18px;
    font-weight: bold;
}

/* 课程详情卡片样式 */
.course-details {
    width: 100%;
    background-color: white;
    box-shadow: 1px 4px 6px 2px #EFF1F8;
    border-radius: 26px;
    padding: 16px 20px;
    max-width: 1470px;
    position: absolute;
    left: 0;
    bottom: -70px;
}

.details-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.detail-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
}

.detail-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 20px;
    height: 60px;
    width: 2px;
    background-color: #25499D;
}

.detail-label {
    font-size: 16px;
    color: #25499D;
}

.detail-value {
    font-size: 24px;
    color: #2B53B2;
    font-weight: bold;
    margin: 6px 0;
}

.detail-info {
    font-size: 14px;
    color: #25499D;
}

/* 功能区块样式 */
.features-section {
    background-color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
}

.feature-card {
    flex: 1;
    min-width: 400px;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 1px 4px 26px 4px #EEF1F7;
}

.feature-icon {
    flex-shrink: 0;
    width: 66x;
    height: 66px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 18px;
    color: #25499D;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-description {
    font-size: 14px;
    color: #25499D;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .course-title {
        font-size: 28px;
    }

    .course-description {
        font-size: 16px;
    }

    .details-grid {
        flex-direction: column;
        gap: 20px;
    }

    .detail-item:not(:last-child)::after {
        display: none;
    }

    .btn {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }

    .feature-card {
        min-width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 24px;
    }

    .course-details {
        padding: 20px;
    }

    .detail-value {
        font-size: 20px;
    }
}

.courseinfo-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 1470px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* 左侧内容区样式 */
.left-content {
    flex: 3;
    overflow: hidden;
}

/* 右侧边栏样式 */
.right-sidebar {
    flex: 1;
    border-radius: 20px;
    box-shadow: 1px 15px 15px 15px #E9ECF5;
    overflow: hidden;
    min-width: 450px;
}

/* 顶部标签栏样式 */
.tabs {
    display: flex;
}

.tab {
    padding: 10px 0;
    margin: 0 20px;
    cursor: pointer;
    font-size: 16px;
    color: #333333;
    font-weight: 700;
}

.tab.active {
    color: #25499D;
    border-bottom: 2px solid #25499D;
}

/* 课程内容区域样式 */
.course-content {
    padding: 30px;
}

.section-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 700;
}

.content-text {
    font-size: 14px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 技能标签样式 */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.skill-tag {
    padding: 8px 16px;
    background-color: #fff;
    border-radius: 10px;
    font-size: 14px;
    color: #333333;
    border: 1px solid #25499D;
}

/* 课程列表样式 */
.course-list {
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 1px 3px 15px 3px #F2F4F9;
}

.course-item:not(:last-child) {
    padding: 10px;
    border-bottom: 1px solid #F4F4F4;
    margin-bottom: 15px;
}

.course-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.course-item-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    color: #25499D;
    font-weight: 500;
}

.python-icon {
    display: block;
    width: 120px;
    height: auto;
}

.course-item-detail {
    margin-left: 20px;
}

.course-item-detail h3 {
    font-size: 16px;
    color: #333333;
    font-weight: 700;
    margin-bottom: 16px;
}

.course-item-detail p {
    font-size: 14px;
    color: #666666;
}

.course-item-content {
    list-style: none;
}

.course-item-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    background: url('/wp-content/themes/my-first-theme/assets/imgs/kechengxiangqing-pythonicon.png') left center no-repeat;
    background-size: 14px 14px;
}

.view-details {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #25499D;
    font-size: 16px;
    cursor: pointer;
}

/* 右侧边栏样式 */
.sidebar-content {
    padding: 20px;
}

.sidebar-title {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
}

.contact-label {
    width: 80px;
    color: #666;
}

.contact-value {
    color: #25499D;
}

/* 常见问题样式 */
.faq-section {
    margin-top: 30px;
}

.faq-item {
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.faq-icon {
    transition: transform 0.3s;
    margin-right: 10px;
}

.faq-icon.expanded {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 10px 0;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

.faq-item.expanded .faq-answer {
    display: block;
}

.more-faq {
    display: block;
    text-align: left;
    margin-top: 20px;
    padding-left: 20px;
    font-size: 14px;
    color: #25499D;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .course-content {
        padding: 20px;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        min-width: 100px;
        padding: 12px 16px;
    }
}

/* 用户评价 */
.evaluate-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.evaluate-section h1 {
    font-size: 22px;
    color: #333333;
    margin-bottom: 20px;
}

.evaluate-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.evaluate-card {
    padding: 20px;
    box-shadow: 1px 13px 11px 13px #EFF1F8;
    border-radius: 20px;
    max-width: 350px;
    min-height: 180px;
}

.evaluate-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.evaluate-header img {
    width: 60px;
    height: 60px;
}

.evaluate-content {
    margin-left: 20px;
}

.evaluate-content h3 {
    font-size: 18px;
    color: #333333;
    font-weight: 700;
    margin-bottom: 10px;
}

.evaluate-content p {
    font-size: 14px;
    color: #666666;
}

.evaluate-msg {
    margin-top: 20px;
    font-size: 14px;
    line-height: 22px;
    display: -webkit-box; /* 弹性伸缩盒子 */
    -webkit-box-orient: vertical; /* 垂直排列子元素 */
    -webkit-line-clamp: 3; /* 限制显示 3 行 */
    overflow: hidden; /* 超出隐藏 */
    text-overflow: ellipsis; /* 超出文本显示省略号 (…) */
}

@media (max-width: 1337px) {
    .main-container {
        max-width: 1200px;
    }

    .courseinfo-section {
        max-width: 1200px;
    }

    .course-details {
        max-width: 1200px;
    }
}
