/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
/* +----------------------------------------------------------------------
/* | 开源协议 ( https://mit-license.org )
/* | 免责声明 ( https://thinkadmin.top/disclaimer )
/* +----------------------------------------------------------------------
/* | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-static
/* | github 代码仓库：https://github.com/zoujingli/think-plugs-static
/* +----------------------------------------------------------------------
/* | 自定义后台扩展样式，需要在加载 console.css 后载入
/* | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
/* +---------------------------------------------------------------------- */

/* ============ 输入框右侧操作图标（上传 / 刷新等） ============ */
.input-right-icon {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 27px;
  height: 27px;
  line-height: 27px;
  text-align: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: #7a8494;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.input-right-icon:hover {
  color: #16b777;
  background: rgba(22, 183, 119, 0.12);
}

/* ============ 单图/单视频上传预览组件（uploadOneImage / uploadOneVideo） ============ */
.uploadimage {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 10px 0 0;
  border-radius: 8px;
  background: #f6f7f9 no-repeat center center / cover;
  border: 1px dashed #ccd4dd;
  overflow: hidden;
  cursor: pointer;
}
.uploadimage.uploadvideo { height: 110px; }
.uploadimage > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 上传图标（点击直接上传） */
.uploadimage a[data-file] {
  font-size: 24px;
  color: #a5adb8;
}
.uploadimage a[data-file]:hover { color: #16b777; }
/* 悬浮操作：放大预览 / 清空 */
.uploadimage .layui-icon-search,
.uploadimage .layui-icon-close {
  position: absolute;
  top: 5px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: none;
}
.uploadimage .layui-icon-search { right: 31px; }
.uploadimage .layui-icon-close { right: 5px; }
.uploadimage:hover .layui-icon-search,
.uploadimage:hover .layui-icon-close { display: block; }
/* 视频预览 */
.uploadimage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 6px;
}
/* 行内（单词组配图等 flex 容器）预览尺寸 */
.pg-item-row .uploadimage { width: 90px; height: 64px; }
