/* 详情页样式 */

.detail-container {
    background-color: var(--card-color);
    border-radius: 0;
    padding: 30px ;
    margin-bottom: 20px;
    --light-blue: #e6f7ff;
    --text-dark: #222;
    --text-gray: #666;
    --border-radius: 12px;
}
.detail-container:not(:last-child){
	 border-bottom: 1px solid #efefef;
	
}
.detail-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}

.detail-meta {
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.detail-content {
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.detail-content p,
.detail-content ol,
.detail-content li {
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.detail-content h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.detail-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    color: var(--primary-color);
}

/* 点赞按钮激活状态 */
.action-btn.like-btn.active {
    color: var(--primary-color);
}

.action-btn.like-btn.active svg path {
    fill: var(--primary-color);
}

/* 收藏按钮激活状态 */
.action-btn.favorite-btn.active {
    color: #ff9800;
}

.action-btn.favorite-btn.active svg path {
    fill: #ff9800;
}

/* 课程详情页样式 */
.course-header {
    display: flex;
    margin-bottom: 30px;
}

.course-image {
    width: 40%;
    height: 250px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 24px;
}

.course-info {
    flex: 1;
}

.course-price {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.course-meta {
    margin-bottom: 20px;
}

.course-meta-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-outline {
    margin-bottom: 30px;
}

.outline-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.instructor {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 24px;
}

.instructor-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.instructor-info p {
    color: var(--light-text);
}

.reviews {
    margin-top: 30px;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-rating {
    color: #ff9800;
    margin-bottom: 5px;
}

.answer-item {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.expert-info {
    display: flex;
    align-items: center;
}

.expert-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 24px;
}

.expert-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.expert-title {
    color: var(--primary-color);
    margin-bottom: 3px;
    font-weight: 500;
}

.expert-company {
    color: var(--light-text);
    font-size: 14px;
}

.answer-time {
    color: var(--light-text);
    font-size: 14px;
}

.answer-content {
    margin-bottom: 20px;
    line-height: 1.8;
}

.answer-content h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--secondary-color);
}

.answer-content ol,
.answer-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-actions {
    margin-top: 20px;
}

/* 评论区样式 */
.answer-comments {
    margin-top: 2px;
    padding: 20px 0;
}

.answer-comments h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 14px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 500;
    margin-right: 10px;
}

.comment-time {
    color: var(--light-text);
    font-size: 14px;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.comment-submit {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
}

/* 查看更多回答按钮 */
.more-answers {
    text-align: center;
    margin-top: 30px;
}

/* 相关问题样式 */
.related-questions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.related-link {
    text-decoration: none;
    color: var(--text-color);
}

.related-link h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.related-meta {
    font-size: 14px;
    color: var(--light-text);
    display: flex;
    gap: 15px;
}

.ask-btn {
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none; /* 移除黑边 */
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.ask-btn:hover {
    background-color: #c1121f; /* 鼠标划过效果：颜色变深 */
    transform: translateY(-2px); /* 鼠标划过效果：轻微上移 */
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3); /* 鼠标划过效果：阴影加深 */
}

.ask-btn:active {
    transform: translateY(0); /* 点击时回到原位 */
}

.syn-tag { background: #f0f2f5; color: var(--text-gray); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: 0.2s all; white-space: nowrap; text-decoration: none; display: inline-block; }
.syn-tag:hover { background: var(--primary-color); color: #fff; }
.syn-tag-more { background: #f8f9fa; border: 1px dashed #ced4da; color: var(--text-gray); cursor: pointer; }
.syn-tag-collapse { display: none; }
.syn-tags-expanded .syn-tag-collapse { display: inline-block; }
.syn-tags-expanded .syn-tag-more { display: none; }


.jxclass-info .jxclass-list {
    display: flex;
    width: 100%;
    margin-top: 10px;
    border-bottom: 1px solid #f9f9f9
}

.jxclass-info .jxclass-list dt {
    width: 80px;
    overflow: auto;
    margin-right: 8px;
    padding-left: 8px
}

.jxclass-info .jxclass-list dt img {
    width: 100%;
    object-fit: contain
}

.jxclass-info .jxclass-list dd {
    width: 100%;
    display: flex;
    justify-content: space-between
}

.jxclass-info .jxclass-list dd .jxclass-btn {
    align-self: center;
    text-align: center
}

.jxclass-info .jxclass-list dd .price {
    color: #e53f42
}

.jxclass-info .jxclass-list dd s {
    padding-left: 4px
}

.jxclass-info .jxclass-list dd .bc-text {
    font-size: 12px;
    margin-top: 5px;
    color: #999;
    line-height: 1.2;
    text-align: left
}

.jxclass-info .jxclass-list dd .bc-text span {
    font-size: 11px;
    padding-right: 5px;
    border-right: 1px solid #d8d8d8;
    margin-left: 5px;
    height: 12px;
    line-height: 12px;
    display: inline-block;
    margin-top: 5px;
    color: #ff6900
}

.jxclass-info .jxclass-list dd .bc-text span:first-child {
    color: #999
}

.jxclass-info .jxclass-list dd .bc-text span:last-child {
    border-right: none
}

.jxclass-info .jxclass-list dd .jxclass-btn a {
    padding: 2px;
    border-radius: 5px;
    color: #dd4b39 !important;
    font-size: 12px;
    margin-right: 6px;
    display: inline-block;
    text-align: center;
    border: 1px solid #dd4b39;
    min-width: 62px
}

.jxclass-info .jxclass-list dd .jxclass-btn span {
    align-self: center;
    color: #dd4b39;
    font-size: 14px
}
@media (max-width: 768px) {

    .breadcrumb-nav{
        margin: 0; /* 移除默认的上下边距 */
        position: fixed; /* 使用固定定位 */
        bottom: 0; /* 固定在底部 */
        left: 0; /* 靠左对齐 */
    }
    .breadcrumb-nav .breadcrumb {
        margin:0;
    }
    .detail-container{
    	padding:10px 8px;
    }
    .detail-actions{
    	flex-direction: column;
    	gap:10px;
    }
}