/* 壁纸电商包装系统 · 自定义补充样式（配合光年 Light Year Admin V4） */

[hidden]{display:none!important}

/* 顶部标题 */
.navbar-page-title{font-size:15px;font-weight:600;color:#4d5259;margin-left:4px}
@media (max-width:575px){.navbar-page-title{display:none}}

/* 侧栏 logo / 版权 */
.sidebar-header a img{max-width:206px}
.sidebar-footer .copyright{color:#98a2b8;font-size:12.5px;line-height:1.7;margin:0}
.sidebar-footer .copyright small{font-size:11.5px;opacity:.85}

/* 表格里的商品缩略图 */
/* 缩略图按原比例完整显示（不裁切）：横图/竖图都整张可见 */
.mini{width:auto;height:auto;max-width:72px;max-height:96px;display:block;border-radius:6px;border:1px solid #eceff5;background:#f6f8fd}
[data-photo]{cursor:zoom-in}

/* 灯箱：左右切换按钮放大，挪到图片左右两侧（位置由 assets/lightbox.js 计算） */
.viewer-container .viewer-prev,
.viewer-container .viewer-next{
  position:absolute;top:50%;left:0;z-index:3;
  width:52px;height:52px;margin:0;padding:0;border-radius:50%;
  background-color:rgba(0,0,0,.45);
  transform:translateY(-50%);
  transition:background-color .15s,transform .15s;
}
.viewer-container .viewer-prev:hover,
.viewer-container .viewer-next:hover{background-color:rgba(0,0,0,.75)}
.viewer-container .viewer-prev:before,
.viewer-container .viewer-next:before{
  display:block;width:100%;height:100%;margin:0;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M15.4 3.6 7 12l8.4 8.4 1.6-1.6L10.2 12l6.8-6.8z'/%3E%3C/svg%3E");
  background-position:center center;background-repeat:no-repeat;background-size:26px 26px;
  content:"";
}
.viewer-container .viewer-next:before{transform:scaleX(-1)}
@media (max-width:640px){
  .viewer-container .viewer-prev,
  .viewer-container .viewer-next{width:42px;height:42px}
  .viewer-container .viewer-prev:before,
  .viewer-container .viewer-next:before{background-size:20px 20px}
}
.custom-thumb{display:grid;place-items:center;width:72px;height:96px;border-radius:6px;background:#f4f6fa;color:#9aa5bd;font-size:12px;text-align:center}
.tbl-title{font-weight:600;color:#2b3550}
/* 商品列表：标题列限宽（表格里其余列都是固定宽），超长标题省略号显示、悬停看全名，不再挤压别的列 */
.title-cell .tbl-title{display:inline-block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}

/* 顶部导航右上角：接口文档入口（原来在左侧菜单里，挪到账号旁边） */
.navbar-right .nav-apidoc > a{display:inline-flex;align-items:center;gap:5px;color:#5b6b8c}
.navbar-right .nav-apidoc > a:hover{color:#33cabb}
.navbar-right .nav-apidoc > a .mdi{font-size:15px}
.navbar-right .nav-apidoc.active > a{color:#33cabb;font-weight:600}

/* 图片列表：详情弹窗 */
.img-detail{padding:14px 16px 6px;max-height:100%;overflow:auto}
.img-detail-preview{text-align:center;margin-bottom:12px;background:#f7f9fc;border:1px solid #eef1f7;border-radius:10px;padding:10px}
.img-detail-preview img{max-width:100%;max-height:260px;border-radius:6px;display:inline-block;vertical-align:bottom}
.img-detail-kv{grid-template-columns:96px 1fr}
.img-detail-kv dd{word-break:break-all}

/* 条码识别小工具 */
.bc-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bc-cell{width:96px;padding:5px;border:1px solid #eceff5;border-radius:8px;background:#fbfcfe;text-align:center}
.bc-cell img{width:100%;height:72px;object-fit:contain;border-radius:6px;background:#fff;display:block}
.bc-cell span{display:block;margin-top:4px;font-size:11px;color:#8a93a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bc-result{padding:10px 0;border-bottom:1px solid #f1f4f9}
.bc-result:first-child{padding-top:0}
.bc-result:last-child{border-bottom:0;padding-bottom:0}
.bc-result-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.bc-code{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.bc-code .bc-data{font-size:13px;word-break:break-all}
.bc-status{margin:0 0 10px}
.bc-status:last-child{margin-bottom:0}
.status-toggle{-webkit-appearance:none;appearance:none;display:inline-flex;border:0;padding:0;background:none;line-height:0;cursor:pointer}
.status-toggle:hover .badge{opacity:.86}
.status-toggle:hover{opacity:.86}
.status-toggle:focus{outline:0}
/* 预设列表：非默认的那几个显示成「设为默认」小徽标，点一下即切换默认预设 */
.default-chip{background:#f2f4f9;color:#7c869c;border:1px dashed #d7dfee;font-weight:400;cursor:pointer;
  transition:background-color .15s,color .15s,border-color .15s}
.status-toggle:hover .default-chip{opacity:1;background:#e9f9f1;color:#15c377;border-color:#b5e8d2;border-style:solid}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}

/* 商品列表：批量勾选 */
.pick-head,.pick-cell{width:40px;text-align:center;padding-left:6px;padding-right:6px}
.pick-box{display:block;margin:0;cursor:pointer;line-height:1}
.pick-box input{cursor:pointer;width:15px;height:15px;vertical-align:middle}
.batch-bar{margin-left:10px;font-size:12.5px;color:#98a2b8;white-space:nowrap}
.batch-bar b{color:#2b3550}
.batch-bar a{color:#33cabb}

/* 批量改预设弹窗 */
.bp-wrap{padding:2px 2px 0}
.bp-list{max-height:280px;overflow:auto;border:1px solid #eceff5;border-radius:10px;background:#fbfcfe}
.bp-row{display:flex;gap:10px;align-items:center;padding:7px 12px;border-bottom:1px solid #f1f4f9;font-size:12.5px}
.bp-row:last-child{border-bottom:0}
.bp-row.skip{background:#fff8f8}
.bp-id{min-width:52px;color:#5b6b8c;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.bp-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2b3550}
.bp-src{min-width:76px;color:#98a2b8}
.bp-mark{min-width:104px;text-align:right;color:#22a06b}
.bp-row.skip .bp-mark{color:#d9534f}
#bp-hint b{color:#2b3550}
#bp-hint .bp-note{display:block;color:#98a2b8;margin-top:2px}

/* 图片列表：原图下载地址（预留字段） */
.dl-cell{white-space:nowrap}
.dl-cell .dl-link{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;
  color:#2f6fed;border-bottom:1px dashed #cfe9e6}
.dl-cell .dl-link:hover{color:#33cabb;border-bottom-color:#33cabb;text-decoration:none}
/* 小按钮：列表里（dl-cell）和图片详情弹窗里（img-detail-kv）通用 */
.dl-cell .dl-btn,.img-detail-kv .dl-btn,.img-detail-kv .copy-btn{display:inline-flex;align-items:center;gap:3px;margin-left:4px;padding:2px 6px;
  border:1px solid #e6ebf3;border-radius:6px;background:#fff;color:#7c869c;font-size:12px;line-height:1.4;cursor:pointer}
.dl-cell .dl-btn:hover,.img-detail-kv .dl-btn:hover,.img-detail-kv .copy-btn:hover{border-color:#33cabb;color:#2b3550}
.dl-cell .dl-btn .mdi,.img-detail-kv .dl-btn .mdi,.img-detail-kv .copy-btn .mdi{font-size:13px}

/* 图片列表：是否已下载原图地址到本地 */
.local-cell .badge{font-size:11px;vertical-align:1px}
.local-cell .dl-link{max-width:96px;margin-left:4px}
.preset-switch{color:#5b6b8c;text-decoration:none;border-bottom:1px dashed #c8d2e6;cursor:pointer;white-space:nowrap}
.preset-switch:hover{color:#2f6fed;border-bottom-color:#2f6fed;text-decoration:none}
.preset-switch .mdi{font-size:13px;vertical-align:-1px;opacity:.7}
.inline{display:inline}
.head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.card-title-sub{font-size:12.5px;color:#98a2b8;font-weight:400;margin-left:8px}

/* 商品详情等处的空封面占位（原来首页「最近添加」的缩略图墙样式已随板块一起去掉） */
.thumb-empty{display:grid;place-items:center;aspect-ratio:3/4;border:1px dashed #dfe5f0;border-radius:10px;color:#9aa5bd;font-size:12.5px}
.thumb-empty.big{min-height:220px}

/* 上传区 */
.drop{position:relative;border:1.6px dashed #cdd6e8;border-radius:10px;padding:22px 18px;text-align:center;
  background:linear-gradient(180deg,#fbfcff,#f6f9ff);cursor:pointer;transition:.2s}
.drop:hover,.drop.over{border-color:#33cabb;background:#f1fdfb}
.drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.drop-inner strong{display:block;font-size:14px;color:#2b3550}
.drop-inner span{display:block;margin-top:4px}
/* 添加商品：按预设分「第 N 张」的图片槽位 */
.slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px;max-width:520px}
.slot{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #eceff5;border-radius:10px;background:#fbfcfe}
.slot.filled{border-color:#cfe9e6;background:#f5fffd}
.slot.empty{border-style:dashed;border-color:#dfe5f0;background:#f9fbff}
.slot img{width:100%;height:132px;object-fit:cover;border-radius:8px;border:1px solid #eceff5;display:block}
.slot-holder{display:grid;place-items:center;height:132px;border-radius:8px;background:#f1f4fa;color:#9aa5bd;font-size:12.5px;text-align:center;line-height:1.7}
.slot-holder .mdi{font-size:22px;display:block}
.slot-meta strong{display:block;font-size:12.5px;color:#2b3550}
.slot-meta span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot > input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#count-hint.text-danger{font-weight:600}

/* 批量添加：已选壁纸网格 + 生成进度 */
.batch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:10px;margin-top:12px}
.batch-cell{position:relative;padding:6px;border:1px solid #eceff5;border-radius:10px;background:#fbfcfe}
.batch-cell img{width:100%;height:92px;object-fit:cover;border-radius:7px;border:1px solid #eceff5;display:block}
.batch-cell span{display:block;margin-top:6px;font-size:11.5px;color:#7c869c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.batch-cell .batch-tag{position:absolute;top:8px;left:8px;margin-top:0;background:rgba(51,202,187,.92);color:#fff;font-size:10.5px;line-height:1;padding:3px 6px;border-radius:6px}
.batch-cell .batch-del{position:absolute;top:6px;right:6px;width:20px;height:20px;padding:0;border:0;border-radius:50%;
  background:rgba(23,38,56,.5);color:#fff;font-size:11px;line-height:1;cursor:pointer}
.batch-cell .batch-del:hover{background:#d9534f}

/* 多张一组的预设（双机等）：已选列表先按组排好，拖一张到另一张上互换（换组合） */
.batch-grid-grouped{display:flex;flex-wrap:wrap;gap:10px}
.batch-group{padding:8px 10px 10px;border:1px solid #eceff5;border-radius:10px;background:#fbfcfe}
.batch-group-head{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.batch-group-no{font-size:12px;font-weight:600;color:#2b3550}
.batch-group-tip{font-size:11.5px;color:#98a2b8}
.batch-group-cells{display:grid;gap:8px}
.batch-cell-v{cursor:grab}
.batch-cell-v:active{cursor:grabbing}
.batch-cell-v img{height:auto;aspect-ratio:9/16}
.batch-cell-v.empty{cursor:default;border-style:dashed;background:#f9fbff}
.batch-cell-v .batch-holder{display:grid;place-items:center;aspect-ratio:9/16;border-radius:7px;background:#f1f4fa;color:#9aa5bd;font-size:11.5px}
.batch-cell.dragging{opacity:.4}
.batch-cell.drop-target{border-color:#33cabb;box-shadow:0 0 0 2px rgba(51,202,187,.3)}
.batch-cell.just-moved{animation:batch-swap .45s ease}
@keyframes batch-swap{from{border-color:#33cabb;background:#f1fdfb}to{border-color:#eceff5;background:#fbfcfe}}

/* 批量添加：图库选图弹窗 */
.gal-wrap{display:flex;flex-direction:column;height:100%}
.gal-bar{display:flex;align-items:center;padding:10px 12px;border-bottom:1px solid #eef1f7;background:#fbfcfe}
/* 图库选图：壁纸都是手机竖图，格子按 9:16 竖着排，方便一眼挑图 */
.gal-grid{flex:1;min-height:0;overflow:auto;padding:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;align-content:start}
#gal-note{padding:8px 12px;border-top:1px solid #eef1f7;background:#fbfcfe;color:#98a2b8}
/* 「从图库选图」弹窗：第 2 个按钮「直接快速添加」（勾满整组才亮起来） */
.gal-pick-layer .layui-layer-btn .layui-layer-btn1{border-color:#33cabb;background:#33cabb;color:#fff}
.gal-pick-layer .layui-layer-btn .layui-layer-btn1:hover{border-color:#2bb3a5;background:#2bb3a5;color:#fff;opacity:1}
/* 勾的图还没凑满整组：灰着提示，点了会给说明 */
.gal-pick-layer .layui-layer-btn .layui-layer-btn1.gal-quick-off{border-color:#e5eaf2;background:#f7f9fc;color:#a6b0c3}
.gal-pick-layer .layui-layer-btn .layui-layer-btn1.gal-quick-off:hover{border-color:#e5eaf2;background:#f7f9fc;color:#a6b0c3;opacity:1}
/* 第 3 个按钮「将选择的图片不再出现」（别和主按钮抢眼） */
.gal-pick-layer .layui-layer-btn .layui-layer-btn2{border-color:#f0c6c4;background:#fff7f6;color:#d9534f}
.gal-pick-layer .layui-layer-btn .layui-layer-btn2:hover{border-color:#d9534f;color:#c9302c;opacity:1}

/* 批量添加页：图库屏蔽列表（可解除） */
.block-list{border:1px solid #eceff5;border-radius:10px;max-height:300px;overflow:auto}
.block-row{display:flex;gap:10px;align-items:center;padding:8px 10px;border-bottom:1px solid #f1f4f9}
.block-row:last-child{border-bottom:0}
.block-row img{width:40px;height:40px;object-fit:cover;border-radius:6px;border:1px solid #eceff5;background:#f6f8fd;flex:none}
.block-row .block-thumb-empty{display:grid;place-items:center;width:40px;height:40px;border-radius:6px;border:1px dashed #dfe5f0;color:#b9c6e4;flex:none}
.block-info{flex:1;min-width:0}
.block-info .block-title{display:block;font-size:12.5px;color:#2b3550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.block-info .block-meta{display:block;font-size:11.5px;color:#98a2b8}
.gal-cell{position:relative;display:block;margin:0;padding:5px;border:1px solid #eceff5;border-radius:10px;background:#fff;cursor:pointer;transition:.15s}
.gal-cell:hover{border-color:#cfe9e6}
.gal-cell input{position:absolute;top:9px;left:9px;z-index:2;width:16px;height:16px;cursor:pointer}
.gal-cell img{width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:7px;border:1px solid #eceff5;background:#f6f8fd;display:block}
.gal-cell input:checked ~ img{border-color:#33cabb;box-shadow:0 0 0 2px rgba(51,202,187,.35)}
.batch-log{margin-top:10px;max-height:320px;overflow:auto;border:1px solid #eceff5;border-radius:10px}
.batch-log-row{display:flex;gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid #f1f4f9;font-size:12.5px}
.batch-log-row:last-child{border-bottom:0}
.batch-log-seq{min-width:56px;color:#5b6b8c;font-weight:600}
.batch-log-names{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#98a2b8}
.batch-log-result{min-width:110px;text-align:right;color:#5b6b8c}
.batch-log-row.ok{background:#f7fffb}
.batch-log-row.ok .batch-log-result{color:#22a06b}
.batch-log-row.err{background:#fff8f8}
.batch-log-row.err .batch-log-result{color:#d9534f}
#batch-plan.text-danger{font-weight:600}

/* 模板选择 */
.tpl-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}
.tpl-choice{position:relative;display:block;margin:0;border:2px solid #e8ecf3;border-radius:10px;overflow:hidden;
  background:#fff;cursor:pointer;transition:.15s}
.tpl-choice input{position:absolute;opacity:0;pointer-events:none}
.tpl-choice img{width:100%;height:132px;object-fit:cover;display:block}
.tpl-choice > span{display:block;padding:8px 6px;font-size:12.5px;color:#7c869c;text-align:center}
.tpl-choice:hover{border-color:#cfe9e6}
.tpl-choice.active{border-color:#33cabb;box-shadow:0 0 0 3px rgba(51,202,187,.16)}
.tpl-choice.active > span{color:#2b3550;font-weight:600}
.tpl-choice-custom{height:132px;display:grid;place-items:center;font-size:24px;color:#b9c6e4;background:#f6f8fd}
.tpl-choice-custom small{display:block;font-size:11.5px;color:#9aa5bd;margin-top:2px}

/* 四角标定 */
.picker{display:flex;flex-direction:column;gap:10px}
#pick{width:100%;max-width:420px;border-radius:8px;border:1px solid #e8ecf3;background:#f2f4f9;cursor:crosshair;touch-action:none}
.picker-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}

/* 预设编辑：加文字（拖拽定位的预览） */
/* 「加文字」内置字体（免费 OFL 字体，文件在 assets/fonts/，许可证在同目录 licenses/） */
@font-face{font-family:'ZCOOL QingKe HuangYou';src:url('fonts/ZCOOLQingKeHuangYou-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'ZCOOL KuaiLe';src:url('fonts/ZCOOLKuaiLe-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'ZCOOL XiaoWei';src:url('fonts/ZCOOLXiaoWei-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Ma Shan Zheng';src:url('fonts/MaShanZheng-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Zhi Mang Xing';src:url('fonts/ZhiMangXing-Regular.ttf') format('truetype');font-display:swap}
.text-layer{border:1px solid #eceff5;border-radius:10px;background:#fbfcfe;padding:10px 12px;margin-bottom:10px}
.text-layer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.text-layer-name{font-size:12.5px;color:#7c869c}
.text-layer-name .mdi{vertical-align:-1px}
.text-layer-head .btn{padding:0 6px}
.text-layer textarea{min-height:44px}
.text-stage{position:relative;display:inline-block;max-width:100%;user-select:none;-webkit-user-select:none}
.text-stage img{display:block;max-width:100%;max-height:520px;border-radius:10px;border:1px solid #eceff5;background:#f6f8fd}
/* 只按内容排一行（width:max-content + white-space:pre）：
   绝对定位元素默认会用「容器宽 - left」当可用宽度，拖到右边就会被压窄、自动换行；
   固定成内容宽度后，拖到哪都是同样的一行，和生成时（IM 只有手动换行才换行）一致 */
.text-drag{position:absolute;z-index:2;left:50%;top:82%;transform:translate(-50%,-50%);
  width:max-content;max-width:none;white-space:pre;text-align:center;
  line-height:1.25;letter-spacing:.5px;cursor:grab;touch-action:none;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.text-drag.has-stroke{text-shadow:0 0 3px rgba(0,0,0,.9),0 0 7px rgba(0,0,0,.7),0 1px 2px rgba(0,0,0,.85)}
.text-drag.dragging{cursor:grabbing;outline:1px dashed rgba(51,202,187,.9);outline-offset:6px}
input[type=color].form-control{height:36px;padding:2px 4px;cursor:pointer}

/* 详情页 */
.preview-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.preview-box{margin:0}
.preview-box figcaption{font-size:13px;font-weight:600;color:#5b6a8c;margin-bottom:8px}
.preview-box img{width:100%;border-radius:10px;border:1px solid #eceff5;box-shadow:0 8px 22px rgba(20,35,70,.07)}
.preview-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.preview-multi{display:flex;gap:12px}
.preview-multi .preview-item{flex:1;min-width:0}
.kv{display:grid;grid-template-columns:112px 1fr;gap:9px 14px;margin:0}
.kv dt{color:#8a93a8;font-weight:400;font-size:13px}
.kv dd{margin:0;font-size:13.5px;word-break:break-all}

/* 小组件 */
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}
.muted{color:#98a2b8}
.small{font-size:12.5px}
.strong{font-weight:600;color:#2b3550}
.empty{color:#98a2b8;padding:24px;margin:0}
.tag{display:inline-block;padding:2px 9px;border-radius:999px;background:#f2f4f9;color:#5b6a8c;font-size:12px}
.tag.ok{background:#e9f9f1;color:#15c377}
.form-actions{margin-top:8px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.form-group label i{font-style:normal;color:#33cabb;font-weight:600}
.custom-block{border:1px solid #eceff5;border-radius:10px;padding:16px;background:#fbfcfe}
.custom-block .form-group:last-child{margin-bottom:0}
.tip{margin:0;padding:12px 16px;background:#f8fafd;border-radius:10px;color:#7c869c;font-size:12.5px;line-height:1.8}
.steps{margin:0;padding-left:18px;color:#4d5259;font-size:13px}
.steps li{margin:4px 0}
.side-card + .side-card{margin-top:16px}

/* 表格里的小按钮组 */
.table .btn-group .btn{padding:2px 8px}
.table td,.table th{vertical-align:middle}
.table .form-inline{display:inline}

/* 列表页：可排序的列头 */
.th-sort{cursor:pointer;white-space:nowrap;user-select:none}
.th-sort:hover,.th-sort:hover .mdi{color:#33cabb}
.th-sort.is-sorted,.th-sort.is-sorted .mdi{color:#2b3550}
.th-sort .mdi{font-size:13px;vertical-align:-1px}
a.th-sort-link{display:inline-flex;align-items:center;gap:2px;color:inherit;text-decoration:none;white-space:nowrap}
a.th-sort-link:hover{color:#33cabb;text-decoration:none}
a.th-sort-link.is-sorted{color:#2b3550}
/* 没排序的列头也带一个淡的上下箭头：一眼看出这一列可以点着排序 */
a.th-sort-link .mdi{opacity:.3}
a.th-sort-link:hover .mdi,
a.th-sort-link.is-sorted .mdi{opacity:1}

/* 分页 */
.pagination{margin:16px 0 0}

/* layer 的「加载中」提示：默认把文案塞进 32×32 的图标框里，稍长的文案会折成一列；放开宽度、图标挪到左侧。
   选择器多带一个类提高优先级：layer.js 运行时会再注入一份自己的 layer.css（排在本文件后面） */
.layui-layer-loading .layui-layer-content.layui-layer-loading2{width:max-content;height:auto;min-width:32px;min-height:32px;
  padding:6px 14px 6px 44px;line-height:20px;white-space:nowrap;text-align:left;
  background:url(layer/theme/default/loading-2.gif) no-repeat 8px center;background-color:#fff;
  border-radius:6px;box-shadow:0 2px 12px rgba(0,0,0,.18)}

/* 配置页：网盘保存目录选择器（夸克目录树弹窗） */
.qd-wrap{display:flex;flex-direction:column;height:100%;padding:12px 14px 4px}
.qd-bar{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex:none}
.qd-bar .btn{padding:2px 9px}
.qd-crumbs{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:1px;max-height:64px;overflow:auto;
  background:#fbfcfe;border:1px solid #eef1f7;border-radius:8px;padding:5px 10px;font-size:13px}
.qd-crumb{color:#5b6b8c;text-decoration:none;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qd-crumb:hover{color:#33cabb;text-decoration:none}
.qd-crumb.is-current{color:#2b3550;font-weight:600}
.qd-sep{color:#c3cbd9}
.qd-new{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex:none}
.qd-new .form-control{flex:1;min-width:0}
.qd-new .btn{white-space:nowrap}
.qd-list{flex:1;min-height:0;overflow:auto;border:1px solid #eceff5;border-radius:10px;background:#fff}
.qd-item{display:flex;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid #f1f4f9;cursor:pointer;transition:.12s}
.qd-item:last-child{border-bottom:0}
.qd-item:hover{background:#f7fbfb}
.qd-item .qd-ico{color:#f5b942;font-size:17px;flex:none}
.qd-item .qd-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2b3550;font-size:13.5px}
.qd-item .qd-meta{font-size:11.5px;color:#a6b0c3;flex:none}
.qd-item .qd-enter{display:inline-flex;align-items:center;font-size:12px;color:#a6b0c3;flex:none}
.qd-item:hover .qd-enter{color:#33cabb}
.qd-tip{margin:14px;color:#98a2b8;font-size:12.5px;text-align:center}
.qd-tip.text-danger{color:#d9534f}
.qd-more-wrap{text-align:center;padding:8px 0 0;flex:none}
.qd-tip2{margin:8px 0 0;color:#98a2b8;font-size:12px;flex:none}
.qd-tip2 .mono{color:#5b6b8c;word-break:break-all}

@media (max-width:1000px){
  .preview-pair{grid-template-columns:1fr}
}

/* 条码识别：淘宝商品批量识别 */
.tb-thumb{width:56px;height:56px;max-width:56px;max-height:56px;object-fit:cover}
#list-table .tb-barcode-cell{word-break:break-all}
#list-table .tb-barcode-cell .bc-code{margin-top:4px}
#list-table .tb-barcode-cell .bc-data{word-break:break-all;white-space:normal}
#tb-settings-form .form-group label{font-weight:500}
