.note-interact button {
            border: none;
            background: none;
            cursor: pointer;
            outline: none;
        }
        
        /* 通用工具类 */
.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;
    margin-bottom: 2px;
    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;
}

/* 图片计数器 */
.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: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}
.note-con {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}
/* 笔记互动按钮 */
.note-interact {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid #f5f5f5;
}
.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-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; /* 靠左对齐 */	
		}
		.mobile-back-wrapper{
			width:34px;
		}
		.back-btn{
			min-width:34px;
		}
}

/* ========== 返回顶部按钮 ========== */
.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;
}