/* 主要内容区域样式 */
main {
    background-color: #d8e5fa;
    padding: 40px 16%;
}

.course-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}


/* 商品头部信息 */
.course-header-section {
    background: white;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(26, 115, 232, 0.25);
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.course-image {
    width: 300px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.course-info {
    flex: 1;
    padding: 0 30px;
}

.course-title {
    font-size: 28px;
    color: black;
    margin-bottom: 15px;
}


.course-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.course-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #0d62d9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #f0f7ff;
}

/* 商品独立内容区域 */
.course-container-section{
    background: white;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 选项卡区域 - 修复部分 */
.course-tabs {
    padding: 0 30px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.tab-item:hover {
    color: #1a73e8;
}

.tab-item.active {
    color: #1a73e8;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a73e8;
    border-radius: 3px 3px 0 0;
}

.tab-content {
    padding-bottom: 30px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 详情页内容 */
.detail-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    color: black;
}

.detail-content {
    color: #555;
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-image {
    width: 100%;
    max-width: 300px;
    height: 400px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
}



/* 评价内容 */
.review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rating-value {
    font-size: 48px;
    font-weight: bold;
    color: #1a237e;
}

.rating-stars {
    color: #ffc107;
    font-size: 24px;
    letter-spacing: 2px;
}

.rating-count {
    color: #666;
}

.review-list {
    list-style: none;
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer {
    font-weight: 500;
}

.review-date {
    color: #888;
}

.review-content {
    color: #555;
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .course-header {
        flex-direction: column;
    }

    .course-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .course-info {
        padding: 0;
    }

    .footer-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }

    .course-meta {
        flex-wrap: wrap;
    }

    .course-actions {
        flex-direction: column;
    }

    .tab-header {
        flex-wrap: wrap;
    }
}