﻿/* ai指令集页面 */
.ai-prompt-item-wrap {
    margin-bottom: 20px;
}

.ai-prompt-thumbnail {
    width: 186px;
    height: 184px;
    border-radius: 6px;
    overflow: hidden;
}

.ai-prompt-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-prompt-bot {
    width: calc(100% - 206px);
    margin-left: 20px;
}

.ai-prompt-bot .c-tag {
    padding: 0 10px;
    border-radius: 3px;
    background-color: #3d444a;
    color: #6D9FBF;
}

.ai-prompt-item {
    display: flex;
    /* 添加显式的flex布局 */
    flex-direction: row;
    /* 默认是左右结构 */
    color: var(--body-color) !important;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    background-color: #21242d;
}

.ai-prompt-item:hover {
    transform: translateY(-5px);
}

.ai-prompt-item:hover .ai-prompt-thumbnail img {
    transform: scale(1.05);
}

.ai-prompt-item .loock-more {
    width: 122px;
    height: 35px;
    background: #21242d;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #805af5;
    border: 1px solid #8d64f2;
    font-size: 12px;
}

.ai-prompt-item .loock-more:hover{
    background-color: #8d64f2;
    color: #fff;
    transition: all 250ms;
}

.ai-prompt-item .loock-more i {
    transform: rotate(-45deg);
}

.ai-prompt-item .two-line {
    height: 46px;
}

/* 移动端适配 - 转为上下结构 */
@media (max-width: 768px) {
    .ai-prompt-item {
        flex-direction: column;
        /* 改为上下结构 */
    }

    .ai-prompt-thumbnail {
        width: 100%;
        /* 缩略图宽度100% */
        height: auto;
        /* 高度自适应 */
        aspect-ratio: 16/9;
        /* 保持宽高比 */
        margin-bottom: 15px;
        /* 添加底部间距 */
    }

    .ai-prompt-bot {
        width: 100%;
        /* 内容区域宽度100% */
        margin-left: 0;
        /* 移除左边距 */
    }

    .ai-prompt-item .loock-more {
        width: 100%;
        /* 查看更多按钮宽度100% */
        margin-top: 15px;
        /* 添加顶部间距 */
    }

    .ai-prompt-item .two-line {
        height: auto;
        /* 高度自适应 */
        max-height: 46px;
        /* 设置最大高度 */
    }
}

/* 更小屏幕的额外调整 */
@media (max-width: 480px) {
    .ai-prompt-item {
        padding: 15px;
        /* 减小内边距 */
    }

    .ai-prompt-thumbnail {
        aspect-ratio: 3/2;
        /* 更改宽高比 */
        margin-bottom: 10px;
        /* 减小底部间距 */
    }

    .ai-prompt-item .loock-more {
        height: 38px;
        /* 减小按钮高度 */
        margin-top: 10px;
        /* 减小顶部间距 */
    }
}


/* 以下为详情页 */


.course-header {
    background: #21242d;
    padding: 40px 0;
}

.header-content {
    max-width: 1250px;
    margin: 0 auto;
}

.course-title {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.course-subtitle {
    margin-top: 15px;
    font-size: 16px;
    color: #BCC3D7;
    margin-bottom: 24px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #BCC3D7;
}

.status,
.update-info {
    color: #8D64F2;
}

.meta-divider {
    width: 1px;
    height: 14px;
    background: rgba(188, 195, 215, 0.2);
}

.rank-tag {
    background: rgba(255, 27, 107, 0.1);
    color: #FF1B6B;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(141, 100, 242, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price {
    font-size: 36px;
    color: #FF1B6B;
    font-weight: bold;
}

.original-price {
    color: #BCC3D7;
    text-decoration: line-through;
    font-size: 16px;
}

.promotion-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 27, 107, 0.1);
    color: #FF1B6B;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.btn-buy,
.btn-cart {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy {
    background: #FF1B6B;
    color: #ffffff;
    border: none;
}

.btn-buy:hover {
    background: #FF3378;
    transform: translateY(-2px);
}

.btn-cart {
    background: transparent;
    color: #8D64F2;
    border: 1px solid #8D64F2;
}

.btn-cart:hover {
    background: rgba(141, 100, 242, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .course-header {
        padding: 20px;
    }

    .course-title {
        font-size: 24px;
    }

    .course-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .price-action {
        flex-direction: column;
        gap: 20px;
    }

    .action-buttons {
        width: 100%;
    }

    .btn-buy,
    .btn-cart {
        flex: 1;
        padding: 12px;
    }
}

/* 第二部分 */
/* 课程导航 */
.course-nav {
    position: sticky;
    top: 120px;
    background: #16181E;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 20px 0;
}

.nav-item {
    color: #BCC3D7;
    font-size: 16px;
    text-decoration: none;
    padding-bottom: 20px;
    margin-bottom: -20px;
    position: relative;
}

.nav-item:hover {
    color: #FF1B6B;
}

.nav-item.active {
    color: #FF1B6B;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF1B6B;
}

/* 课程概览 */
/* 课程概览样式优化 */
.course-overview {
    margin: 40px 0 0 0;
    padding: 32px;
    background: #21242d;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.learning-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.learning-point-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.learning-point-card:hover {
    transform: translateY(-5px);
    background: rgba(141, 100, 242, 0.05);
    border-color: rgba(141, 100, 242, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.point-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(141, 100, 242, 0.1);
    border-radius: 12px;
    color: #8D64F2;
    font-size: 24px;
    transition: all 0.3s ease;
}

.learning-point-card:hover .point-icon {
    background: rgba(141, 100, 242, 0.2);
    transform: scale(1.1);
}

.point-content {
    flex: 1;
}

.point-content h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.point-content p {
    color: #BCC3D7;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .learning-points-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .course-overview {
        padding: 20px;
    }

    .learning-point-card {
        padding: 16px;
    }

    .point-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* 第三部分 */
/* 课程简介样式 */
.course-intro {
    background: #21242d;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0 0 0;
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.intro-icon {
    width: 40px;
    height: 40px;
    background: rgba(141, 100, 242, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8D64F2;
    font-size: 20px;
}

.intro-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.intro-content {
    color: #BCC3D7;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0px;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(141, 100, 242, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(141, 100, 242, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(141, 100, 242, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8D64F2;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: #BCC3D7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .course-intro {
        padding: 24px;
        margin: 20px 0;
    }

    .intro-header {
        margin-bottom: 20px;
    }

    .intro-title {
        font-size: 20px;
    }

    .intro-text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .feature-item {
        padding: 16px;
    }
}

/* 第四部分 */
/* 课程目录样式 */
.course-catalog {
    background: #21242d;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0 0 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.expand-all {
    padding: 10px 20px;
    border-radius: 10px;
    color: #bcc3d7;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background-color: transparent;
}

.chapter-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.chapter-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chapter-header:hover {
    background: rgba(141, 100, 242, 0.1);
}

.chapter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chapter-title {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.lesson-title {
    font-size: 15px;
}

.chapter-meta {
    color: #BCC3D7;
    font-size: 14px;
}

.btn-expand {
    background: none;
    border: none;
    color: #bcc3d7;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lesson-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson-item {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #BCC3D7;
}

.lesson-info i {
    color: #8D64F2;
}

.copy-tag {
    background: rgba(141, 100, 242, 0.1);
    color: #8D64F2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.lesson-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-copy {
    background: rgba(141, 100, 242, 0.1);
    color: #8D64F2;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(141, 100, 242, 0.2);
}

.duration {
    color: #BCC3D7;
    font-size: 14px;
}

/* 第五部分 */
/* 课程要求信息样式 */
.course-requirements {
    margin: 40px 0 0 0;
}

.requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.requirement-card {
    background: #21242d;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 24px;
    color: #8D64F2;
}

.card-header h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-list li {
    color: #BCC3D7;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.requirement-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8D64F2;
}

.env-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.env-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.env-item:last-child {
    border-bottom: none;
}

.env-name {
    color: #BCC3D7;
    font-size: 15px;
}

.env-version {
    color: #8D64F2;
    font-size: 14px;
    font-weight: 500;
}

.env-version a {
    color: #25bce5;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .requirement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .requirement-grid {
        grid-template-columns: 1fr;
    }

    .requirement-card {
        padding: 20px;
    }
}

/* 讲解人 */
/* 讲师信息样式 */
.instructor-section {
    margin: 40px 0;
    padding: 32px;
    background: #21242d;
    border-radius: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 24px;
}

.title-icon {
    font-size: 24px;
}

.instructor-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.instructor-info {
    display: flex;
    gap: 24px;
}

.instructor-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-details {
    flex: 1;
}

.instructor-name {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.instructor-title {
    color: #BCC3D7;
    font-size: 14px;
    margin-bottom: 12px;
}

.student-count {
    color: #8D64F2;
    font-weight: 500;
}

.instructor-courses {
    color: #BCC3D7;
    font-size: 14px;
    margin-bottom: 16px;
}

.course-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.course-links a {
    color: #8D64F2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-links a:hover {
    color: #FF1B6B;
}

.view-all {
    color: #8D64F2;
}

.instructor-desc {
    color: #BCC3D7;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .instructor-section {
        padding: 20px;
    }

    .instructor-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .instructor-avatar {
        width: 100px;
        height: 100px;
    }

    .course-links {
        justify-content: center;
    }
}

/* 其他指令 */
/* 相关课程推荐样式 */
/* 相关课程推荐样式 */
.related-courses {
    margin: 40px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 20px;
    margin: 0;
}

.title-emoji {
    font-size: 24px;
}

.view-more {
    color: #8D64F2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #FF1B6B;
}

/* 课程网格布局 */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 课程卡片样式 */
.course-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.course-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

.course-image {
    height: 120px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-title {
    color: #ffffff;
    font-size: 33px;
    margin: 0 0 17px 0;
    font-weight: bold;
}

.r-tuijian-title {
    color: #ffffff;
    font-size: 19px;
    margin: 27px 0 0 0;
    font-weight: bold;
}

.course-subtitle {
    font-size: 15px;
}

.course-meta {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #2E313D;
    color: #BCC3D7;
    font-size: 14px;
}

/* 光效动画 */
.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.course-card:hover .course-image::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .related-courses {
        padding: 20px;
    }

    .course-image {
        height: 100px;
    }
}

/* 关联指令样式 */

.r-item-wrap {
    position: relative;
    transition: all 250ms;
    margin-bottom: 25px;
}

.r-case-bot {
    padding: 20px;
    box-sizing: border-box;
    background-color: #21242d;
    border-radius: 6px;
}

.r-case-bot .content-box {
    background: #2E313D;
    border-radius: 8px;
    padding: 20px;
    color: #BCC3D7;
    font-size: 15px;
    margin-top: 20px;
}