
        /* 图片预览模态框增强样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            overflow: hidden;
            align-items: center;
            justify-content: center;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-img-container {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.5);
            border-radius: 50%;
        }
        
        .modal-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            box-sizing: border-box;
        }
        
        .modal-nav-btn {
            color: white;
            font-size: 40px;
            cursor: pointer;
            background: rgba(0,0,0,0.3);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            transition: background 0.3s;
        }
        
        .modal-nav-btn:hover {
            background: rgba(0,0,0,0.6);
        }
        
        .modal-info {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            font-size: 16px;
            background: rgba(0,0,0,0.5);
            padding: 8px 0;
        }

        /* 表情包相关样式 */
        .emoji-container {
            position: relative;
            margin-bottom: 10px;
        }
        
        .emoji-btn {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        
        .emoji-btn:hover {
            background-color: #f0f0f0;
        }
        
        .emoji-panel {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 0;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 100;
            width: 280px;
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 5px;
        }
        
        .emoji-panel.active {
            display: block;
        }
        
        .emoji-list {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .emoji-item {
            font-size: 18px;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        
        .emoji-item:hover {
            background-color: #f0f0f0;
        }
        
        .emoji-tabs {
            display: flex;
            margin-bottom: 10px;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }
        
        .emoji-tab {
            padding: 5px 10px;
            cursor: pointer;
            border-radius: 4px;
            margin-right: 5px;
            font-size: 14px;
        }
        
        .emoji-tab.active {
            background-color: #f0f0f0;
            font-weight: bold;
        }

/* 图片容器：相对定位 + 预留标签空间 */
.img-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  /* 给标签预留空间，避免标签超出容器遮挡其他元素 */
  padding-bottom: 26px; /* 刚好容纳标签高度，不遮挡图片 */
  padding-left: 40px; 
}

/* 图片：旋转动画 + 固定宽度32，层级低于标签但不被遮挡 */
.rotate-img {
  width: 32px; /* 强制宽度32，高度自动等比 */
  animation: rotate 5s linear infinite;
  display: block;
  /* 图片层级默认低于标签，但通过容器padding让标签在图片下方，不重叠 */
}

/* 标签：在图片正下方（左下角对齐），不遮挡图片 */
.label {
  position: absolute;
  bottom: 0; /* 紧贴容器底部（图片下方） */
  left: 0; /* 与图片左下角对齐 */
  padding: 2px 6px;
  background: #09ba07; /* 绿色背景 */
  color: #fff;
  font-size: 11px; /* 缩小字体，减少占用空间 */
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 21; /* 标签在图片上方，但因位置在下方，不遮挡 */
  white-space: nowrap; /* 防止文字换行 */
  animation: slideIn 1.5s ease-out forwards;
  opacity: 0;
}

/* 箭头：向上指向图片（调整位置，精准指向图片底部） */
.label::before {
  content: '';
  position: absolute;
  top: -8px; /* 箭头在标签顶部 */
  right:0px; /* 箭头水平居中 */
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: #09ba07; /* 箭头向上指向图片 */
}

/* 旋转动画：保持匀速循环 */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 从左向右移动动画 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100%) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(-0%) translateY(0);
  }
}
