/* 课程页面样式 - 参考工作流页面 */

/* 在线播放视频样式 */
.video-section {
    margin-bottom: 20px;
}

.video-player {
    position: relative;
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 442px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

.video-info {
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.chapter-duration-info {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 章节状态标签样式 */
.status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
}

.status-tag.playing {
    background: #52c41a;
    color: #fff;
}

.status-tag.free {
    background: #1890ff;
    color: #fff;
}

.status-tag.paid {
    background: #faad14;
    color: #fff;
}

/* 章节项激活状态 */
.chapter-item.active {
    background: #f0f9ff;
    border-left: 3px solid #1890ff;
}

.chapter-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    background: #f5f5f5;
}

/* 页面标题和操作栏 */
@media (max-width: 768px) {
    .mobile-hidden { display: none !important; }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
}

.action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
}

.search-box input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    width: 280px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #1890ff;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
}

.btn-success:hover {
    filter: brightness(.98);
}

/* 课程页面主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 课程网格 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 课程卡片 */
.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* 卡片内链接无下划线并继承文字颜色 */
.course-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-card a:hover {
    text-decoration: none;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    position: absolute;
    top: 1px;
    left: 12px;
    right: 12px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b4513;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-action {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    transition: all 0.3s ease;
}

.course-card:hover .card-action {
    color: #fff;
    transform: scale(1.1);
}

.card-thumbnail {
    padding: 0 12px;
    margin-bottom: 12px;
    position: relative;
}

.card-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.course-thumbnail-bg {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.thumbnail-text {
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.card-content {
    padding: 0 12px 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.course-category i {
    font-size: 11px;
}

/* 课程详情页面的分类样式 */
.course-meta-section .meta-item.course-category {
    font-size: 1rem;
}

.course-meta-section .meta-item.course-category i {
    font-size: 1rem;
}

.card-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

.card-author .time,
.card-author .price {
    display: inline-flex;
    align-items: center;
    gap: 6px;    
}

.card-author .time i {
    color: #999;
}

.card-author .price {
    color: #1890ff;
    font-weight: 600;
    font-size: 14px;
}

.card-author .price i {
    color: #1890ff;
}

/* 底部分页容器 */
.bottom-pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0px;
}

/* 分页按钮样式 */
.bottom-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 兼容新的分页HTML结构 */
.bottom-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bottom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    border: 1px solid #eee;
}

.bottom-pagination .page-numbers:hover {
    background: #eaeaea;
}

.bottom-pagination .page-numbers.current {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.25);
}

.bottom-pagination .prev.page-numbers,
.bottom-pagination .next.page-numbers {
    padding: 0 12px;
}

/* 旧结构（向后兼容） */
.bottom-pagination .page-number,
.bottom-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    border: 1px solid #eee;
}

.bottom-pagination .page-btn i {
    font-size: 16px;
}

.bottom-pagination .page-number:hover,
.bottom-pagination .page-btn:hover {
    background: #eaeaea;
}

.bottom-pagination .page-number.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.25);
}

.bottom-pagination .page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.bottom-pagination .ellipsis {
    color: #999;
    padding: 0 4px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .main-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.course-card {
    animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }
.course-card:nth-child(7) { animation-delay: 0.7s; }
.course-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 课程详情页样式 */
.course-detail-container {
    background-color: #f8f9fa;
    min-height: calc(100vh - 160px);
}

/* 课程头部容器 */
.course-header-container {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 20px;
}

.course-header {
    position: relative;
    padding: 16px 20px;
    color: white;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.course-title-section h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    max-width: 450px;
    margin-bottom: 0;
    line-height: 1.3;
}

.course-meta-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.meta-item i {
    width: 20px;
    text-align: center;
}

/* 课程购买区域样式 */
.course-purchase-section {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.purchase-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    font-weight: 500;
}

.price-value {
    margin-bottom: 0;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.price-free {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.purchase-action {
    flex-shrink: 0;
}

.purchase-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.purchase-btn:not(.free-btn) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.purchase-btn:not(.free-btn):hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.3);
}

.purchase-btn.free-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    cursor: default;
}

.purchase-btn.purchased-btn {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
    cursor: default;
}

.purchase-btn i {
    font-size: 14px;
}

.course-main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0px;
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 20px;
}

.content-left {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-section {
    margin-bottom: 40px;
}

.video-player {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-poster {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.poster-content {
    text-align: center;
    color: white;
}

.poster-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.poster-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c5ce7;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-controls {
    background: #2c3e50;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.control-left,
.control-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-btn,
.volume-btn,
.fullscreen-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.play-btn:hover,
.volume-btn:hover,
.fullscreen-btn:hover {
    background: rgba(255,255,255,0.1);
}

.time-display {
    font-family: monospace;
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c5ce7;
}

.section-header i {
    color: #6c5ce7;
    font-size: 1.2rem;
}

.section-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.intro-content {
    line-height: 1.8;
    color: #555;
}

.intro-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 25px 0 10px 0;
    font-weight: 600;
}

.intro-content p {
    margin-bottom: 15px;
}

.intro-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.intro-content li {
    margin-bottom: 5px;
}

.chapters-section,
.instructor-info-section,
.course-category-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chapter-count {
    background: #6c5ce7;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.chapters-list {
    max-height: 400px;
    overflow-y: auto;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding:0 5px 0 0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.chapter-item:hover {
    background: #f8f9fa;
}

.chapter-item.active {
    background: #6c5ce7;
    color: white;
    border-color: #5a4fcf;
}

.chapter-number {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 600;
    color: #6c5ce7;
}

.chapter-item.active .chapter-number {
    background: rgba(255,255,255,0.2);
    color: white;
}

.chapter-content {
    flex: 1;
}

.chapter-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.chapter-duration {
    font-size: 0.85rem;
    opacity: 0.7;
}

.chapter-status {
    margin-left: 15px;
}

.status-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-tag.playing {
    background: #3498db;
    color: white;
}

.status-tag.free {
    background: #27ae60;
    color: white;
}

.status-tag.paid {
    background: #e74c3c;
    color: white;
}

.instructor-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.instructor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c5ce7;
    font-size: 24px;
}

.instructor-avatar i {
    font-size: 60px;
}

.instructor-details h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.instructor-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.instructor-introduction {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.instructor-introduction p {
    margin: 0;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 0.95rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* 课程分类样式 */
.category-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.category-item i {
    font-size: 16px;
}

/* 课程详情页响应式设计 */
@media (max-width: 768px) {
    .course-header-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 10px;
    }
    
    .course-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0px 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .course-title-section h1 {
        font-size: 1.5rem;
    }
    
    .course-subtitle {
        font-size: 1rem;
        display: none; /* 移动端隐藏课程副标题 */
    }
    
    .content-left,
    .content-right > div {
        padding: 10px;
    }
    
    .video-poster {
        height: 200px;
    }
    
    .poster-content h2 {
        font-size: 1.5rem;
    }
    
    .poster-content h3 {
        font-size: 1.2rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .course-purchase-section {
        padding: 10px 14px;
        min-height: 60px;
    }
    
    .purchase-content {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .price-info {
        align-items: center;
        text-align: center;
    }
    
    .price-amount {
        font-size: 16px;
    }
    
    .price-free {
        font-size: 14px;
    }
    
    .purchase-btn {
        padding: 8px 14px;
        font-size: 13px;
        width: 100%;
    }
}

/* 资源下载区域样式 - 重新设计 */
.download-course-section {
    background: #fff;
    border-radius: 12px;
    padding:12px;
    margin-bottom: 20px;
}

/* 课程信息区域 */
.download-course-info {
    margin-bottom: 20px;
}

.download-course-header {
    margin-bottom: 0;
}

.download-course-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.download-course-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.download-course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.download-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.download-meta-item i {
    color: #6c5ce7;
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.download-course-category {
    font-weight: 600;
    color: #6c5ce7;
}

/* 下载操作区域 */
.download-action-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e6e8ff;
}

.download-action-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.download-action-left {
    flex-shrink: 0;
}

.download-course-thumbnail {
    width: 250px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.download-course-thumbnail:hover {
    transform: scale(1.02);
}

.download-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-action-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-price-and-action {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 免费课程只有价格标签时的样式 */
.download-price-and-action.free-only {
    justify-content: left;
}

/* 推荐课程区域样式 */
.recommended-courses-section {
    padding:0 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.recommended-courses-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    /* border-bottom: 1px solid #f0f0f0; */
    /* background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%); */
}

.recommended-courses-section .section-header i {
    color: #6c5ce7;
    font-size: 1.1rem;
    padding-top:5px
}

.recommended-courses-section .section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.recommended-courses-list {
    padding:0 2px 2px 2px;
}

.recommended-course-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.recommended-course-card:hover {
    background: rgba(108, 92, 231, 0.05);
    border-color: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}

.recommended-course-card .course-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.recommended-course-card .course-thumbnail .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-course-card:hover .course-thumbnail .thumbnail-img {
    transform: scale(1.05);
}

.recommended-course-card .course-info {
    flex: 1;
    min-width: 0;
}

.recommended-course-card .course-title {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-course-card .course-description {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-course-card .course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.recommended-course-card .course-category {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6c5ce7;
    font-weight: 500;
}

.recommended-course-card .course-category i {
    font-size: 0.7rem;
}

.recommended-course-card .course-price {
    flex-shrink: 0;
}

.recommended-course-card .price-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recommended-course-card .price-tag.free {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.recommended-course-card .price-tag.paid {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
}

.download-price-info {
    display: flex;
    align-items: center;
}

.download-price-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.download-price-tag.download-free {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: #fff;
}

.download-price-tag.download-paid {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
}

.download-button-action {
    display: flex;
    align-items: center;
}

.download-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(108, 92, 231, 0.3);
    border: none;
    cursor: pointer;
}

.download-action-btn:hover {
    background: linear-gradient(135deg, #5f3dc4, #9775fa);
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(108, 92, 231, 0.4);
    color: #fff;
    text-decoration: none;
}

.download-action-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(108, 92, 231, 0.3);
}

.download-action-btn i {
    font-size: 1rem;
}

/* 百度网盘下载链接样式 */
.download-course-url {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.download-course-url span {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
}

.download-course-url span::before {
    content: '🔗';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.download-course-url a {
    display: inline-block;
    color: #6c5ce7;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    word-break: break-all;
    max-width: 100%;
}

.download-course-url a:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.3);
    color: #5f3dc4;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.2);
}

.download-course-url a:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(108, 92, 231, 0.2);
}

/* 付费课程锁定状态样式 */
.download-course-url.paid-locked {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid rgba(231, 76, 60, 0.2);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.download-course-url.paid-locked span {
    color: #e74c3c;
    font-weight: 700;
}

.download-course-url.paid-locked .locked-tip {
    margin: 8px 0 0 0;
    font-size: 0.85rem;
    color: #c0392b;
    line-height: 1.4;
    font-style: italic;
}

/* 微信支付弹窗样式 */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.payment-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px 12px 0 0;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.payment-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #e74c3c;
}

.payment-modal-body {
    padding:24px 24px 0px 24px;
}

.payment-info {
    text-align: center;
    margin-bottom: 24px;
}

.payment-info .course-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.payment-info .course-price {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 24px;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 20px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-code-img {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.qr-loading {
    text-align: center;
    color: #666;
}

.qr-loading i {
    font-size: 2rem;
    color: #6c5ce7;
    margin-bottom: 8px;
}

.qr-loading p {
    margin: 0;
    font-size: 0.9rem;
}

.payment-tips {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.payment-tips p {
    margin: 4px 0;
}

.payment-tips i {
    color: #6c5ce7;
    margin-right: 6px;
}

.expire-tip {
    color: #e74c3c !important;
    font-weight: 500;
}

.payment-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-waiting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border-radius: 25px;
    font-weight: 500;
}

.status-waiting i {
    font-size: 1.1rem;
}

.status-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-radius: 25px;
    font-weight: 500;
}

.status-success i {
    font-size: 1.1rem;
}

.status-failed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 25px;
    font-weight: 500;
}

.status-failed i {
    font-size: 1.1rem;
}

.payment-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-cancel, .btn-refresh {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-refresh {
    background: #6c5ce7;
    color: #fff;
}

.btn-refresh:hover {
    background: #5f3dc4;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-course-section {
        padding: 5px;
    }
    
    .download-course-url {
        margin-top: 12px;
        padding: 12px;
    }
    
    .download-course-url span {
        font-size: 0.9rem;
        margin-bottom: 6px;
        padding-left: 20px;
    }
    
    .download-course-url span::before {
        font-size: 0.9rem;
    }
    
    .download-course-url a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .download-course-url.paid-locked .locked-tip {
        font-size: 0.8rem;
    }
    
    .download-course-title {
        font-size: 1.6rem;
    }
    
    .recommended-course-card {
        padding: 10px;
        gap: 10px;
    }
    
    .recommended-course-card .course-thumbnail {
        width: 70px;
        height: 52px;
    }
    
    .recommended-course-card .course-title {
        font-size: 0.9rem;
    }
    
    .recommended-course-card .course-description {
        font-size: 0.75rem;
    }
    
    .download-course-subtitle {
        font-size: 1rem;
        display: none; /* 移动端隐藏下载课程副标题 */
    }
    
    .download-course-meta {
        margin-bottom: 16px;
        padding: 12px;
    }
    
    .download-meta-item {
        font-size: 0.9rem;
    }
    
    .download-action-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .download-course-thumbnail {
        width: 200px;
        height: 120px;
    }
    
    .download-action-right {
        width: 100%;
        gap: 14px;
    }
    
    .download-price-and-action {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .download-price-info {
        justify-content: center;
    }
    
    .download-button-action {
        justify-content: center;
    }
    
    .download-action-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .download-course-section {
        padding: 0px;
    }
    
    .download-course-url {
        margin-top: 10px;
        padding: 10px;
    }
    
    .download-course-url span {
        font-size: 0.85rem;
        margin-bottom: 5px;
        padding-left: 18px;
    }
    
    .download-course-url span::before {
        font-size: 0.8rem;
    }
    
    .download-course-url a {
        font-size: 0.8rem;
        padding: 5px 8px;
        display: block;
        text-align: center;
    }
    
    .download-course-url.paid-locked .locked-tip {
        font-size: 0.75rem;
    }
    
    .download-course-title {
        font-size: 1.4rem;
    }
    
    .recommended-course-card {
        padding: 8px;
        gap: 8px;
    }
    
    .recommended-course-card .course-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .recommended-course-card .course-title {
        font-size: 0.85rem;
    }
    
    .recommended-course-card .course-description {
        font-size: 0.7rem;
    }
    
    .recommended-course-card .course-category {
        font-size: 0.7rem;
    }
    
    .recommended-course-card .price-tag {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .download-course-subtitle {
        font-size: 0.95rem;
        display: none; /* 小屏移动端隐藏下载课程副标题 */
    }
    
    .download-course-meta {
        margin-bottom: 14px;
        padding: 10px;
        gap: 6px;
    }
    
    .download-meta-item {
        font-size: 0.85rem;
    }
    
    .download-course-thumbnail {
        width: 160px;
        height: 100px;
    }
    
    .download-price-and-action {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .download-price-tag {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .download-action-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
