/* 课程详情页面样式 */

/* 课程头部 */
.course-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 150px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.course-header.featured-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, var(--primary-color) 100%);
}

.course-header-content {
    position: relative;
    z-index: 1;
}

.course-badge-large {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.course-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.course-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.course-price-large {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.course-meta i {
    font-size: 1.2rem;
}

/* 媒体展示区域 */
.course-media-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.media-container {
    max-width: 1200px;
    margin: 0 auto;
}

.media-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="25" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.media-placeholder i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    z-index: 1;
    opacity: 0.8;
}

.media-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.media-placeholder small {
    font-size: 1rem;
    opacity: 0.8;
    z-index: 1;
}

/* 课程详情区域 */
.course-details {
    padding: 80px 20px;
    background: var(--white);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-section {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.detail-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-section h2 i {
    color: var(--primary-color);
}

/* 内容列表 */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.content-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.content-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.content-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.content-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.content-text .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* 特色列表 */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 回测信息 */
.backtest-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.backtest-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 图片/视频画廊 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="25" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 1;
    opacity: 0.8;
}

.gallery-placeholder p {
    font-size: 1rem;
    z-index: 1;
    opacity: 0.9;
}

/* 侧边栏 */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-quick {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.contact-quick p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-quick i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 课程大纲样式 */
.outline-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.outline-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.outline-week {
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.outline-week:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.week-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.week-header:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.week-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.week-header i {
    font-size: 1.2rem;
}

.week-content {
    padding: 1.5rem;
    background: var(--white);
}

.day-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.day-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, var(--bg-light) 100%);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.day-item:last-child {
    margin-bottom: 0;
}

.day-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.day-content {
    flex: 1;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 0.3rem;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-sidebar {
        position: static;
    }

    .course-header h1 {
        font-size: 2.5rem;
    }

    .course-price-large {
        font-size: 2.5rem;
    }

    .course-subtitle {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .course-header {
        padding: 120px 15px 50px;
    }

    .course-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .course-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .course-price-large {
        font-size: 2rem;
    }

    .course-badge-large {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .course-meta {
        flex-direction: column;
        gap: 0.8rem;
        font-size: 0.95rem;
    }

    .course-meta span {
        justify-content: center;
    }

    .course-media-section {
        padding: 40px 15px;
    }

    .media-placeholder {
        height: 250px;
        border-radius: 15px;
    }

    .media-placeholder i {
        font-size: 3.5rem;
    }

    .media-placeholder p {
        font-size: 1.2rem;
    }

    .media-placeholder small {
        font-size: 0.85rem;
    }

    .course-details {
        padding: 60px 15px;
    }

    .detail-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .detail-section h2 {
        font-size: 1.5rem;
    }

    .content-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        gap: 1rem;
    }

    .content-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .content-text h3 {
        font-size: 1.1rem;
    }

    .content-text p {
        font-size: 0.9rem;
    }

    .outline-container {
        padding: 1.5rem;
    }

    .outline-intro {
        font-size: 1rem;
        padding: 1.2rem;
    }

    .week-header {
        padding: 1.2rem;
    }

    .week-header h3 {
        font-size: 1.1rem;
    }

    .week-content {
        padding: 1.2rem;
    }

    .day-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .day-number {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        min-width: 70px;
    }

    .day-content {
        padding-top: 0;
        font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-placeholder {
        height: 200px;
    }

    .gallery-placeholder i {
        font-size: 2.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .sidebar-card h3 {
        font-size: 1.3rem;
    }

    .info-item {
        padding: 0.8rem 0;
    }

    .info-item i {
        font-size: 1.2rem;
    }

    .info-item strong {
        font-size: 0.85rem;
    }

    .info-item p {
        font-size: 0.95rem;
    }

    .contact-quick {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .contact-quick p {
        font-size: 0.9rem;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .course-header {
        padding: 100px 10px 40px;
    }

    .course-header h1 {
        font-size: 1.5rem;
    }

    .course-subtitle {
        font-size: 0.9rem;
    }

    .course-price-large {
        font-size: 1.8rem;
    }

    .course-badge-large {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .course-meta {
        font-size: 0.85rem;
    }

    .media-placeholder {
        height: 200px;
    }

    .media-placeholder i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .media-placeholder p {
        font-size: 1rem;
    }

    .media-placeholder small {
        font-size: 0.8rem;
    }

    .course-details {
        padding: 40px 10px;
    }

    .detail-section {
        padding: 1.2rem;
    }

    .detail-section h2 {
        font-size: 1.3rem;
    }

    .detail-section h2 i {
        font-size: 1.1rem;
    }

    .content-item {
        padding: 1rem;
    }

    .content-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .content-text h3 {
        font-size: 1rem;
    }

    .content-text p {
        font-size: 0.85rem;
    }

    .outline-container {
        padding: 1.2rem;
    }

    .outline-intro {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .week-header {
        padding: 1rem;
    }

    .week-header h3 {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .week-content {
        padding: 1rem;
    }

    .day-item {
        padding: 0.7rem;
    }

    .day-number {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
        min-width: 65px;
    }

    .day-content {
        font-size: 0.9rem;
    }

    .gallery-placeholder {
        height: 180px;
    }

    .sidebar-card {
        padding: 1.2rem;
    }

    .sidebar-card h3 {
        font-size: 1.2rem;
    }

    .btn-order,
    .btn-outline {
        width: 100%;
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

