        /* 通用工具类 */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ========== 用户信息 ========== */
.user-section {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.back-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}
.user-info {
    flex: 1;
}
.user-name {
    font-size: 15px;
    font-weight: bold;
    color:#333;
}
.user-desc {
    font-size: 12px;
    color: #999;
}
.user-operate {
    display: flex;
    gap: 10px;
}
.follow-btn {
    padding: 5px 12px;
    background: #fff;
    color: var(--secondary-red,#e53935);
    border: 1px solid var(--secondary-red,#e53935);
    border-radius: 15px;
    font-size: 12px;
}
.msg-btn {
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

/* ========== 笔记图片轮播 (3:4固定比例) ========== */
.note-swiper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    border-radius: 8px;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.02);
}

/* 轮播指示器 */
.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #000;
    margin: 0 4px;
    opacity: .2;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
	opacity:1 ;
    background-color: var(--secondary-red);
}

/* 轮播控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.carousel-container:hover .carousel-control-prev,
.carousel-container:hover .carousel-control-next {
    opacity: 1;
    visibility: visible;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.6);
    width: 55px;
    height: 55px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}
.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: grab;
}
/* 图片计数器 */
.image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.carousel-container:hover .image-counter {
    opacity: 1;
    visibility: visible;
}

/* ========== 笔记内容 ========== */
.note-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.note-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}
.note-con {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}
.offer-content img{
    max-width: 100%;
    height:auto;
}
/* 笔记互动按钮 */
.note-interact {
    display: flex;
    justify-content: end;
    padding: 15px;
    gap:3rem;
    margin-top: 10px;
    border-top: 1px solid #f5f5f5;
}
.offer-consult-btn{
    padding: 12px 40px;
    background-color: #e49900;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.offer-consult-btn:hover{
    background-color: #e48900;
    color: #fff;
}
.offer-enroll-btn{
    padding: 12px 40px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin: 0 20px;
}
.offer-enroll-btn:hover{
    background-color: #c0392b;
    color: #fff;
} 
@media (max-width: 768px) {
	.offer-enroll-btn,.offer-consult-btn{
	padding: 12px 20px;
	}
	
}      
.note-interact button {
            border: none;
            background: none;
            cursor: pointer;
            outline: none;
}
.interact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}
.interact-item i {
    font-size: 16px;
}

/* ========== 评论区 ========== */
.comment-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.comment-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}
.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.comment-avatar img{
	width:100%;
}
.comment-main {
    flex: 1;
}
.comment-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.author-tag {
    font-size: 12px;
    font-weight: normal;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}
.comment-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.comment-time {
    font-size: 12px;
    color: #999;
}
/* 评论输入框 */
.comment-input {
    position: relative;
    margin-top: 10px;
}
.comment-input input {
    width: 100%;
    height: 40px;
    padding: 0 50px 0 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
}
.comment-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #cccccc;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border:none;
}

/* ========== 相关笔记推荐 ========== */
.related-notes {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.related-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.related-item {
    border-radius: 8px;
    overflow: hidden;
}
.related-img {
    /* 3:4比例 */
    padding-bottom: 133.33%;
    position: relative;
}
.related-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.related-name {
    padding: 8px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
}

/* ========== PC端适配 (768px以上) ========== */
@media (min-width: 768px) {
    /* PC端核心：左图右文布局 */
.note-detail-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.note-swiper{
	position: sticky;
    top: 70px;
    margin-top:4px;
	
}

    .note-detail-wrap.offer-detail-wrap{
        background-color: #fff;
        border-radius: 8px;

	}
/* 内容区域自适应 */
.note-right {
    flex: 1;
}
.note-content, .comment-section {
    margin-bottom: 15px;
}
/* 相关笔记4列布局 */
    .related-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

		.breadcrumb-nav{
			 margin: 0; /* 移除默认的上下边距 */
			position: fixed; /* 使用固定定位 */
			bottom: 0; /* 固定在底部 */
			left: 0; /* 靠左对齐 */	
		}
		.breadcrumb-nav .breadcrumb {
			margin:0;	
		}
		.mobile-back-wrapper{
			width:34px;
		}
		.back-btn{
			min-width:34px;
		}
		.user-name{
			font-weight:400;
		}
		.user-avatar{
			height:26px;
			width:26px;
		}
}

/* ========== 返回顶部按钮 ========== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 99;
    display: none;
}

/* 全屏查看模态框 */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fullscreen-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 10000;
}

.fullscreen-modal .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  z-index: 10000;
}
.fullscreen-modal .prev-btn {
  left: 20px;
}
.fullscreen-modal .next-btn {
  right: 20px;
}
.fullscreen-modal .image-counter-fullscreen {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 20px;
}

        .course-type {
            color: #e74c3c;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .course-title {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .course-info {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
        }

        .course-price {
            font-size: 18px;
            color: #e74c3c;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .course-card .enroll-btn {
            display: block;
            width: 90%;
            padding: 10px;
            background-color: #e74c3c;
            color: white;
            border: none;
            border-radius: 4px;
            font-weight: bold;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
            margin: 0 auto;
        }
        .course-card .enroll-btn:hover{
            color:white;
        }
        
 .course-card .course-period {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}
.course-card .card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;
}

.course-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 针对Bootstrap Icons 小图标统一样式 */
.course-card .meta-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    color: #9ca3af;
    font-size: 13px;
}
.course-card .meta-icon i {
    font-size: 0.9rem;
}
.course-card .meta-value {
    color: #6b7280;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
 /* 响应式：桌面端 */
@media (min-width: 900px) {
	.course-card .meta-item {
                font-size: 12.5px;
                gap: 7px;
            }
         .course-card   .meta-icon {
                font-size: 14px;
                width: 18px;
            }
}
