
  *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
  #chat, #chat *, #list, #list *, .rail, .rail *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  input, textarea{-webkit-user-select:text;user-select:text}
  #chat input, #chat textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
  html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;scroll-behavior:auto}
  body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;position:fixed;inset:0;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1a1a1a;background:#f6f7f9}
  #app{position:fixed;left:0;right:0;top:0;height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--ql-bg)}
  /* ---------- 登录 ---------- */
  #login{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 28px;gap:14px}
  #login h1{font-size:24px;margin:0 0 6px;font-weight:600}
  #login p{margin:0 0 18px;color:#8d8d8d;font-size:13.5px;line-height:1.6}
  #phone{height:50px;border:1px solid #e5e6eb;border-radius:12px;background:#fff;font-size:17px;padding:0 16px;outline:none}
  #phone:focus{border-color:#111}
  #go{height:50px;border:0;border-radius:12px;background:#111;color:#fff;font-size:16px;letter-spacing:1px}
  #go:disabled{opacity:.45}
  #err{color:#e5484d;font-size:13px;min-height:18px}
  /* ---------- 主界面 ---------- */
  #main{flex:1;display:none;flex-direction:column;min-height:0}
  .pane{flex:1;display:flex;flex-direction:column;min-height:0;position:relative}
  .top{height:46px;flex:none;display:flex;align-items:center;gap:8px;padding:0 10px;background:#fff;border-bottom:1px solid #f0f0f0}
  .top b{font-size:16px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ttlwrap{min-width:0;flex:1;display:flex;flex-direction:row;align-items:baseline;gap:7px;overflow:hidden}
  .ttlwrap b{font-size:16px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
  .top .sub{font-size:12px;color:#9a9a9a;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
  .m.pending .bub{opacity:.55}
  .m.badsend .bub{outline:2px solid #fa5151;outline-offset:-2px}
  .mstat{font-size:10.5px;color:#999;margin-top:2px}
  .mstat.bad{color:#fa5151}
  .back{width:34px;height:34px;display:none;place-items:center;margin-left:-6px;color:#333}
  .top .acts{display:flex;gap:6px;align-items:center}
  .addrtab{flex:none;height:26px;padding:0 11px;border:1px solid #e2d6f4;background:#f7f2ff;color:#7b4fd0;border-radius:13px;font-size:12.5px;font-weight:600;line-height:24px;cursor:pointer;font-family:inherit}
  .addrtab:active{background:#efe6ff}
  .addrtab.on{background:#7b4fd0;border-color:#7b4fd0;color:#fff}
  .addrtab.on:active{background:#6b41bb}
  .addrtab.bound{border-color:#e2e5e9;background:#f1f3f5;color:#8d949f}
  .icobtn{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#7c7c7c}
  .icobtn:active{background:#f2f3f5}
  #list{flex:1;overflow:auto;background:#fff;-webkit-overflow-scrolling:touch}
  .row{display:flex;gap:12px;padding:12px 14px;align-items:center;border-bottom:1px solid #f6f6f6}
  .row:active{background:#f7f8fa}
  .av{width:42px;height:42px;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:15px;flex:none}
  .rmain{flex:1;min-width:0}
  .rname{display:flex;align-items:center;gap:6px;font-size:15px}
  .rprev{font-size:13px;color:#9a9a9a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
  .rtime{font-size:11.5px;color:#b6b6b6}
  .dot{min-width:18px;height:18px;border-radius:9px;background:#ff3b30;color:#fff;font-size:11px;display:grid;place-items:center;padding:0 5px}
  .chan{font-size:10.5px;color:#c47b16;background:#fff4e5;padding:1px 6px;border-radius:4px}
  /* 底部两个入口 */
  .swap{flex:none;height:34px;min-width:52px;padding:0 10px;border:none;border-radius:10px;background:#eef3ff;color:#2f6fed;font-size:13px;font-weight:500}
  .swap:active{background:#dfe8ff}
  /* 键盘弹出时不改布局（隐藏切换条会让整页跳一下） */
  html,body{overscroll-behavior:none}
  /* ---------- 聊天 ---------- */
  #chat{flex:1;display:none;flex-direction:column;min-height:0;position:relative}
  #shipBar{flex:none;display:none;align-items:center;gap:8px;padding:8px 12px;background:#eef6ff;border-bottom:1px solid #dbeafe;font-size:12.5px;color:#2c5d8f}
  #shipBar.on{display:flex}
  #shipBar b{color:#1f4e79}
  #shipBar .txt{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #shipBar .edit{font-size:12px;color:#2f6fed;padding:2px 6px;border:1px solid #bcd7f7;border-radius:8px}
  #pins{flex:none;padding:7px 12px;background:#fffaf0;border-bottom:1px solid #f6ecd8;font-size:12.5px;color:#8a6a2f;display:none;max-height:96px;overflow:auto}
  #pins.on{display:block}
  #pins .p{margin:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #pins b{color:#c47b16}
  .jump-bottom{position:absolute;right:14px;bottom:78px;width:38px;height:38px;border-radius:50%;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.18);display:none;place-items:center;color:#555;cursor:pointer;z-index:7;font-size:17px;line-height:1}
  .jump-bottom.show{display:grid}
  .jump-bottom .badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;border-radius:8px;background:#fa5151;color:#fff;font-size:10px;line-height:16px;text-align:center;padding:0 4px}
  #msgs{flex:1;overflow:auto;overflow-anchor:none;-webkit-overflow-scrolling:touch;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y;padding:14px 12px 8px;background-color:var(--ql-bg);
    background-image:radial-gradient(1200px 600px at 30% 10%,rgba(255,255,255,.35),rgba(255,255,255,0) 60%),
      radial-gradient(900px 500px at 90% 90%,rgba(255,255,255,.28),rgba(255,255,255,0) 60%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.6'%3E%3Ccircle cx='44' cy='38' r='8'/%3E%3Cpath d='M160 28l5 11 12 2-9 8 2 12-10-6-10 6 2-12-9-8 12-2z'/%3E%3Cpath d='M252 104c0-5 8-9 12-4 4-5 12-1 12 4 0 7-12 12-12 12s-12-5-12-12z'/%3E%3Ccircle cx='86' cy='150' r='6'/%3E%3Cpath d='M250 236h18M259 227v18' stroke-linecap='round'/%3E%3Cpath d='M120 250c7-7 18-7 25 0M120 250c7 7 18 7 25 0' stroke-linecap='round'/%3E%3Cpath d='M188 150c9 0 15 6 15 14s-6 14-15 14-15-6-15-14 6-14 15-14z'/%3E%3C/g%3E%3C/svg%3E");
    background-size:auto,auto,320px 320px}
  .m{display:flex;gap:8px;margin-bottom:9px;align-items:flex-start}
  .m .col{max-width:80%;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
  .m .bub{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#fff;border-radius:12px;padding:8px 11px;font-size:15px;line-height:1.45;word-break:break-word;white-space:pre-wrap;box-shadow:0 1px 1px rgba(0,0,0,.04);display:inline-block}
  .m.me{flex-direction:row-reverse}
  .m.me .col{align-items:flex-end}
  .m.me .bub{background:#95ec69}
  .m .bub img{max-width:190px;max-height:260px;border-radius:8px;display:block}
  .bub img.stock-crop-img{width:auto;max-width:190px;height:auto;max-height:280px;object-fit:contain;background:#f4f5f7}
  /* 时间放气泡右侧、底部对齐（省出竖向空间） */
  .m .mrow{display:flex;align-items:flex-end;gap:6px;max-width:100%}
  .m.me .mrow{flex-direction:row}
  .m .t{font-size:10.5px;color:#6f7d69;margin:0 0 2px;padding:0;white-space:nowrap;flex:none}
  .bub.imgwrap{position:relative;padding:0;overflow:hidden;line-height:0}
  .bub .imgtime{position:absolute;right:7px;bottom:7px;background:rgba(0,0,0,.42);color:#fff;font-size:11px;line-height:16px;padding:1px 7px;border-radius:9px;letter-spacing:0;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
  .bub.txtb{display:inline-flex;align-items:center;gap:8px;max-width:100%}
  .bub.txtb .bubtxt{min-width:0;flex:1 1 auto;word-break:break-word}
  .bub .tin{flex:none;align-self:center;font-size:11px;line-height:15px;color:#8b8b8b;white-space:nowrap;letter-spacing:0}
  .m.me .bub .tin{color:#b36b00}
  .m.me .t{color:#7d6a1e}
  .quote{font-size:12px;color:#5f6f59;background:rgba(0,0,0,.06);border-radius:6px;padding:4px 7px;margin-bottom:5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .m.picked .bub{outline:2px solid #07c160;outline-offset:1px}
  .m.recalled{justify-content:center}
  .m.recalled .recall{font-size:12px;color:#6d7a68;background:rgba(255,255,255,.7);padding:3px 10px;border-radius:10px}
  .m.press .bub{transform:scale(.97);filter:brightness(.96)}
  #replyBar{flex:none;display:none;align-items:center;gap:8px;padding:7px 12px;background:#f5f6f7;border-top:1px solid #eaeaea;font-size:12.5px;color:#666}
  #replyBar.on{display:flex}
  #replyBar .txt{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #replyBar .x{padding:0 6px;color:#999}
  #selBar{flex:none;display:none;align-items:center;gap:10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#f5f6f7;border-top:1px solid #eaeaea}
  #selBar.on{display:flex}
  #selBar span{flex:1;font-size:13px;color:#666}
  #selBar button{height:34px;border:0;border-radius:8px;padding:0 14px;font-size:14px;background:#eee;color:#333}
  #selBar #selDel{background:#ff3b30;color:#fff}
  #bar{flex:none;display:flex;gap:8px;align-items:center;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#f7f8f7;border-top:1px solid #e6e6e6;will-change:transform}
  html.kbup #bar{padding-bottom:8px}
  html.kbup #selBar{padding-bottom:8px}

  #inp{flex:1;min-width:0;height:40px;min-height:40px;max-height:132px;border-radius:9px;border:1px solid #e2e2e2;background:#fff;padding:9px 11px;font-size:16px;line-height:20px;outline:none;resize:none;overflow-y:auto;font-family:inherit}
  .cbtn{width:38px;height:40px;flex:none;border:0;background:transparent;color:#6b6b6b;border-radius:8px;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .vhidden{position:absolute;left:-9999px;top:0;width:1px;height:1px;opacity:0;overflow:hidden}
  #send{width:58px;height:40px;flex:none;white-space:nowrap;border:0;border-radius:9px;background:#07c160;color:#fff;font-size:15px}
  #send:disabled{background:#c8e6d3}
  .empty{padding:40px 20px;text-align:center;color:#b0b0b0;font-size:13.5px}
  /* ---------- 图片查看/画笔 ---------- */
  #lb{position:fixed;inset:0;background:rgba(0,0,0,.92);display:none;flex-direction:column;z-index:80}
  #lb.on{display:flex}
  #lbTop{flex:none;height:50px;display:flex;align-items:center;gap:14px;padding:0 14px;color:#fff;font-size:14px}
  #lbTop .sp{flex:1}
  #lbTop .btn2{padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.14)}
  #lbTop .btn2.on{background:#07c160}
  #lbWrap{flex:1;min-height:0;overflow:hidden;position:relative;padding:0;background:#000}
  #lbCanvas{position:absolute;left:0;top:0;touch-action:none;display:block}
  #lbBar{flex:none;display:flex;gap:10px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));color:#fff}
  #lbBar button{flex:1;height:42px;border:0;border-radius:10px;background:rgba(255,255,255,.16);color:#fff;font-size:14px}
  #lbBar button.pri{background:#07c160}
  #lbBar button.small{flex:none;min-width:64px;background:rgba(255,255,255,.12)}
  #lbBar button.small.on{background:#2563eb}
  /* ---------- 长按浮动菜单（贴着消息，参考互传） ---------- */
  #ctxBackdrop{position:fixed;inset:0;z-index:95;display:none}
  #ctxBackdrop.on{display:block}
  #ctxMenu{position:fixed;z-index:96;display:none;background:#fff;border-radius:12px;
    box-shadow:0 8px 34px rgba(0,0,0,.26);overflow:hidden}
  #ctxMenu.on{display:flex;flex-direction:column}
  #ctxMenu .ctx-acts{display:flex;flex-direction:row}
  .ctx-item{flex:0 0 auto;padding:13px 20px;border:0;background:transparent;font-size:16px;
    color:#1a1a1a;white-space:nowrap;font-family:inherit;line-height:1.2}
  .ctx-item + .ctx-item{border-left:1px solid rgba(0,0,0,.1)}
  .ctx-item:active{background:rgba(0,0,0,.07)}
  .ctx-item.danger{color:#e64340}
  #ctxMenu .arrow{position:absolute;width:12px;height:12px;background:#fff;transform:rotate(45deg);border-radius:2px}
  #ctxMenu.below .arrow{top:-5px}
  #ctxMenu.above .arrow{bottom:-5px}

  /* ---------- 长按菜单 / 收货信息 ---------- */
  .mask{position:fixed;inset:0;background:rgba(0,0,0,.32);display:none;align-items:flex-end;z-index:90}
  .mask.on{display:flex}
  .sheet{width:100%;background:#fff;border-radius:16px 16px 0 0;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom));
    max-height:calc(100% - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .mask.on{padding-bottom:var(--kb,0px)}
  .sheet .row2{position:sticky;bottom:-2px;background:#fff;padding-top:10px}
  .sheet h3{margin:0 0 12px;font-size:16px}
  .acts-list{display:flex;flex-direction:column}
  .acts-list .act{padding:13px 6px;font-size:15px;border-bottom:1px solid #f3f3f3;display:flex;align-items:center;gap:8px}
  .acts-list .act:active{background:#f7f8fa}
  .acts-list .act.danger{color:#ff3b30}
  .sheet .f{margin-bottom:10px}
  .sheet .f label{display:block;font-size:12px;color:#9a9a9a;margin-bottom:5px}
  .sheet input,.sheet textarea{width:100%;border:1px solid #e6e6e6;border-radius:9px;padding:10px 12px;font-size:16px;font-family:inherit;outline:none}
  .sheet textarea{height:66px;resize:none}
  .addr{display:flex;gap:8px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f2f2f2;font-size:13.5px;line-height:1.5}
  .addr .who{flex:1;min-width:0;color:#333}
  .addr .who b{font-size:14px}
  .addr .who small{color:#9a9a9a}
  .addr .op{flex:none;color:#2f6fed;font-size:12.5px;padding:2px 6px}
  .addr .op.danger{color:#e64340}
  .addr .def{font-size:11px;color:#07c160;border:1px solid #b7e7c7;border-radius:6px;padding:0 5px;margin-left:6px}
  .sheet .row2{display:flex;gap:10px;margin-top:12px}
  .sheet button{flex:1;height:44px;border:0;border-radius:10px;font-size:15px;background:#f2f2f2;color:#333}
  .sheet button.pri{background:#07c160;color:#fff}
  .link-help{font-size:12.5px;line-height:1.55;color:#7b8494;margin:-4px 0 12px}
  .link-err{min-height:18px;color:#e64340;font-size:12.5px;line-height:1.45;margin:-2px 0 8px}
  .link-actions{display:flex;gap:10px;margin-bottom:14px}
  .link-actions button{flex:1;height:44px;border:0;border-radius:10px;font-size:15px;font-family:inherit}
  .link-bound{padding:14px;border:1px solid #dfe8f6;border-radius:10px;background:#f7faff;margin-bottom:14px}
  .link-bound-main{font-size:14px;line-height:1.5;color:#2b3442;word-break:break-all}
  .link-bound-main b{font-weight:600;color:#1f4f88}
  .link-bound-tip{margin-top:7px;font-size:12px;color:#8d949f}
  .link-list-title{font-size:12px;color:#8d949f;margin:0 0 6px}
  .link-list{max-height:210px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid #edf0f3;border-radius:9px;padding:2px 10px;background:#fafbfc}
  .link-person{display:flex;align-items:center;gap:8px;min-height:42px;border-bottom:1px solid #eef1f4;font-size:13.5px;color:#333}
  .link-person:last-child{border-bottom:0}
  .link-person b{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .link-person span{flex:none;margin-left:auto;color:#8d949f;font-size:12.5px;letter-spacing:0}
  .link-empty{padding:18px 8px;text-align:center;color:#b0b6bf;font-size:12.5px}

  .m{position:relative}
  .love-badge{position:absolute;right:-4px;top:-8px;background:#fff;border:1px solid #ffd6e0;color:#f0506e;
    border-radius:10px;padding:0 5px;font-size:10.5px;line-height:16px;box-shadow:0 1px 4px rgba(240,80,110,.25);z-index:6}
  .love-badge.mine{background:#ffe9ef;border-color:#ffb3c6;font-weight:600}
  .love-badge.pop{animation:lovepop .32s ease}
  @keyframes lovepop{0%{transform:scale(.6)}60%{transform:scale(1.25)}100%{transform:scale(1)}}

  #msgs .m,#msgs .m *{-webkit-user-select:none;user-select:none}
  /* 消息里出现的输入框（库存选数量、订单备注等）必须能点出键盘：iOS 上父级 user-select:none 会挡住 input */
  #msgs input,#msgs textarea,#msgs select,#msgs [contenteditable='true']{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;pointer-events:auto}
  /* 爱心：气泡内左下角 */
  .bub{position:relative}
  .bub.loved:not(.imgwrap){padding-bottom:18px}
  .love-badge{position:absolute;left:11px;right:auto;top:auto;bottom:2px;background:transparent;border:0;padding:0;box-shadow:none;font-size:12px;line-height:1;color:#ff3b30;
    text-shadow:0 1px 2px rgba(0,0,0,.12);pointer-events:none;z-index:5}
  .m.me .bub .love-badge{left:auto;right:11px}
  .love-badge.mine{color:#ff2d55;background:transparent;border:0;padding:0;box-shadow:none}
  .bub.imgwrap .love-badge{left:7px;right:auto;top:auto;bottom:7px;background:rgba(255,255,255,.86);padding:1px 5px;border-radius:9px;
    font-size:11.5px;box-shadow:0 1px 3px rgba(0,0,0,.18)}
  .m.me .bub.imgwrap .love-badge{left:auto;right:7px}
  .love-badge.pop{animation:lovepop .32s ease}

  #stockBar{display:flex;align-items:center;gap:8px;background:#f2f7ff;border-bottom:1px solid #e2ecff;
    padding:8px 12px;font-size:13px;color:#2f6fed}
  #stockBar b{color:#1d4ed8}
  #stockBar .go{margin-left:auto;background:#fff;border:1px solid #d7e3fb;border-radius:8px;padding:3px 10px;font-size:12.5px;color:#2f6fed}
  .stk-card{background:#fff;border:1px solid #eef0f3;border-radius:12px;margin:0 0 9px;overflow:hidden}
  .stk-head{display:flex;align-items:center;gap:8px;padding:10px 12px;font-size:13.5px}
  .stk-head .n{font-weight:600;flex:1}
  .stk-head .c{font-size:11.5px;color:#22a35b}
  .stk-head .a{color:#c3c9d2;font-size:12px}
  .stk-body{display:none;flex-wrap:wrap;gap:6px;padding:0 12px 12px}
  .stk-card.open .stk-body{display:flex}
  .stk-chip{font-size:12.5px;padding:4px 9px;border-radius:8px;border:1px solid #eceff3;background:#fbfcfd;color:#333}
  .stk-chip.s2{background:#fffbeb;border-color:#fbe7a5;color:#8a6d1f}
  .stk-chip.s3{color:#b8bec8;text-decoration:line-through;background:#f7f8fa}

  /* 品类按钮条 */
  .skbar{display:flex;gap:6px;overflow-x:auto;padding:6px 10px;background:#fff;border-top:1px solid #f0f1f3;-webkit-overflow-scrolling:touch}
  .skbar::-webkit-scrollbar{display:none}
  .skb{flex:none;border:1px solid #e2e7ef;background:#f8fafc;color:#2b6cb0;font-size:12.5px;padding:5px 11px;border-radius:14px}
  .skb:active{background:#e8f1ff}
  /* 品类卡 */
  .skc{background:#fff;border:1px solid #e8ecf2;border-radius:12px;overflow:hidden;max-width:290px}
  .skc-hd{display:flex;align-items:center;gap:6px;padding:8px 10px;font-size:13.5px;background:#f7f9fc;border-bottom:1px solid #eef1f6}
  .skc-hd i{font-style:normal;font-size:11px;color:#8a94a3;background:#eef1f6;padding:1px 6px;border-radius:8px}
  .skc-img{display:block;width:100%;max-height:190px;object-fit:cover;object-position:top;background:#fafbfc}
  .skc-list{padding:6px 8px;max-height:250px;overflow:auto}
  .skc-row{display:flex;align-items:center;justify-content:space-between;padding:5px 4px;font-size:13px;border-bottom:1px dashed #f2f4f7}
  .skc-row:last-child{border-bottom:0}
  .skc-row.out{color:#b9bfc8}
  .skc-row.less .skc-n{color:#8a6d1f}
  .skc-i{font-style:normal;font-size:10.5px;color:#b45309;background:#fffbeb;padding:0 4px;border-radius:5px;margin-left:4px}
  .skc-tag{font-size:11.5px;color:#b42318;background:#fdeeee;padding:1px 7px;border-radius:7px}
  .skc-step{display:flex;align-items:center;gap:8px}
  .skc-minus,.skc-plus{width:24px;height:24px;line-height:22px;text-align:center;border:1px solid #dfe4ea;border-radius:50%;font-style:normal;color:#3c7dd9;background:#fff}
  .skc-plus{color:#fff;background:#3c7dd9;border-color:#3c7dd9}
  .skc-step u{min-width:16px;text-align:center;text-decoration:none;font-size:13px;color:#222}
  .skc-ft{padding:8px;border-top:1px solid #f0f2f5;display:flex;justify-content:flex-end;gap:8px;align-items:center}
  .skc-ok{border:0;background:#3c7dd9;color:#fff;font-size:13px;padding:6px 14px;border-radius:9px}
  .skc-sel{font-size:12px;color:#2f9e44}
  .skc.done .skc-list{opacity:.7;max-height:none}
  .skc.done .skc-img{display:none}
  .skc.done .skc-ok{display:none}
  .skc-img{max-height:200px!important;object-fit:cover;object-position:top}

/* 库存切图网格 */
.stk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:8px 0}
.stk-item{background:#f7f8fa;border-radius:10px;overflow:hidden;text-align:center;cursor:pointer}
.stk-item img{width:100%;display:block;background:#eef0f3;min-height:80px}
.stk-item span{display:block;font-size:12px;padding:5px 2px;color:#333;line-height:1.3}

/* ===== 频道页面（库存） ===== */
#chPage{flex:1;min-height:0;background:#f5f6f8;display:none;flex-direction:column;position:relative}
#chPage.on{display:flex}
#chpBody{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 12px 16px}
#chpNav{flex:none;display:flex;background:#fff;border-top:1px solid #e9ebef;padding:5px 4px calc(5px + env(safe-area-inset-bottom))}
#chpNav button{flex:1;min-width:0;border:0;background:none;font-size:13px;color:#6b7280;padding:7px 2px 5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chpNav button.on{color:#2f6fed;font-weight:600}
#chpNav button.on::after{content:"";display:block;width:16px;height:2px;background:#2f6fed;border-radius:2px;margin:4px auto 0}
.chp-doc{background:#fff;border-radius:12px;padding:14px;font-size:14px;line-height:1.8;color:#333;white-space:pre-wrap;word-break:break-word}
.chp-h{font-size:13px;color:#9aa3b1;padding:2px 2px 8px}
/* 价格卡片：用两列瀑布流，图片完整显示也不留大空洞 */
.chp-grid{column-gap:8px}
.chp-grid.c2{column-count:2}
.chp-grid.c1{column-count:1}
.chp-grid .chp-card{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 8px;display:inline-block;width:100%}
.chp-card{background:#fff;border-radius:12px;padding:10px;box-shadow:0 1px 2px rgba(17,24,39,.05)}
.chp-n{font-size:13.5px;color:#1f2937;font-weight:600;line-height:1.35;word-break:break-word}
.chp-p{display:flex;align-items:baseline;gap:6px;margin-top:6px;flex-wrap:wrap}
.chp-old{font-size:12px;color:#b3b8c2;text-decoration:line-through}
.chp-now{font-size:16px;color:#ff6a00;font-weight:700}
.chp-tag{font-size:10.5px;padding:1px 5px;border-radius:4px;background:#ffece5;color:#f4511e}
.chp-tag.up{background:#eaf6ee;color:#1f9d55}
.chp-foot{text-align:center;font-size:12px;color:#9aa3b1;padding:14px 0 92px;white-space:pre-wrap}
.chp-empty{text-align:center;color:#9aa3b1;font-size:13px;padding:40px 0}

#chpTop{position:absolute;right:14px;bottom:74px;width:40px;height:40px;border-radius:50%;background:rgba(0,0,0,.42);color:#fff;display:none;align-items:center;justify-content:center;font-size:17px;z-index:26;box-shadow:0 2px 8px rgba(0,0,0,.18)}
#chpTop.show{display:flex}
.chp-iw{position:relative;margin:-10px -10px 8px;border-radius:12px 12px 0 0;overflow:hidden;background:#f1f3f5}
.chp-iw img{width:100%;height:auto;display:block}
.chp-badge{position:absolute;left:0;top:0;color:#fff;font-size:10.5px;padding:2px 7px;border-radius:0 0 8px 0;letter-spacing:.5px}
.chp-puff{font-style:normal;font-size:11px;color:#8b93a1;margin-left:4px}
.chp-act{margin-top:5px;font-size:11.5px;color:#e0574a;background:#fff2f0;border-radius:6px;padding:3px 6px;line-height:1.35}
.chp-ask{margin-top:8px;width:100%;border:1px solid #2f6fed;background:#f2f7ff;color:#2f6fed;border-radius:8px;padding:5px 0;font-size:12.5px;font-weight:600}
.chp-ask:active{background:#e2edff}

.cropcap{margin-top:3px;font-size:11.5px;color:#8b93a1;text-align:right;padding-right:2px}

/* 纯看图（卡片图片用，不带工具） */
#photoView{position:fixed;inset:0;background:#000;display:none;align-items:center;justify-content:center;z-index:320}
#photoView.on{display:flex}
#photoView img{max-width:100%;max-height:100%;object-fit:contain;display:block}

.chp-iw .chp-thumb{width:100%;height:132px;display:block;object-fit:cover}

.chp-grid.c3{column-count:3}
@media (max-width:400px){.chp-grid.c3{column-count:3}.chp-grid.c3 .chp-n{font-size:11.5px}.chp-grid.c3 .chp-now{font-size:14px}}
.chp-note{font-size:12.5px;color:#7b8494;padding:2px 2px 8px;line-height:1.5}

/* 卡片固定统一高度 */
.chp-card{display:flex;flex-direction:column;height:230px;overflow:hidden;position:relative}
.chp-iw img.chp-thumb{width:100%;height:100px;object-fit:cover;display:block}
.chp-iw{height:100px;margin:-10px -10px 6px}
.chp-n{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px;font-size:12.5px;line-height:1.28}
.chp-p{margin-top:2px;flex:none}
.chp-act{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:3px}
.chp-hint{font-size:10.5px;color:#9aa3b1;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chp-ask{margin-top:auto;font-size:12px;padding:4px 0}
.chp-hot{position:absolute;right:0;top:0;color:#fff;font-size:10px;padding:1px 6px;border-radius:0 0 0 7px}
.chp-oos{position:absolute;right:0;top:0;background:#6b7280;color:#fff;font-size:10px;padding:1px 6px;border-radius:0 0 0 7px}
.chp-card.oos .chp-iw img{filter:grayscale(.7);opacity:.75}

/* 卡片版式（最终）：品名/价格在上，图片在下 */
.chp-card{display:flex;flex-direction:column;height:214px;padding:9px;box-sizing:border-box}
.chp-n{order:1;min-height:32px;margin:0}
.chp-p{order:2;margin-top:2px}
.chp-iw{order:3;height:86px;margin:6px -9px 0;border-radius:0}
.chp-iw img.chp-thumb{height:86px;width:100%;object-fit:cover;display:block}
.chp-act{order:4;margin-top:5px}
.chp-hint{order:5}
.chp-ask{order:6;margin-top:auto}
.chp-badge{order:0}

/* 覆盖瀑布流里的 inline-block，恢复 flex 排序 */
.chp-grid .chp-card{display:flex;flex-direction:column;height:214px;padding:9px;box-sizing:border-box}

/* 手机端卡片一律不可拖动 */
.chp-card,.chp-iw,.chp-iw img{-webkit-user-drag:none;user-drag:none;user-select:none;-webkit-user-select:none}
.chp-iw img{pointer-events:auto;cursor:pointer}


/* 库存页右下角悬浮「会话」按钮 */
#chpChatBtn{position:absolute;right:12px;bottom:74px;z-index:45;background:#2f6fed;color:#fff;font-size:13px;font-weight:600;
  padding:9px 16px;border-radius:22px;box-shadow:0 4px 14px rgba(47,111,237,.38);cursor:pointer;letter-spacing:.5px;
  display:none;align-items:center;gap:6px}
#chpChatBtn.on{display:inline-flex}
#chpChatBtn:active{transform:scale(.96)}
.chp-unread{position:absolute;right:-7px;top:-8px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#fa5151;color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 2px 7px rgba(197,35,35,.35)}
/* 回顶部按钮往上挪，别和会话按钮打架 */
#chpTop{bottom:74px}

/* ===== 卡片版式（照独角商店报价单） ===== */
.chp-grid .chp-card{display:block;height:auto;padding:8px;box-sizing:border-box;position:relative}
.chp-card .chp-iw{height:auto;aspect-ratio:1/1;margin:0 0 6px;border-radius:8px;overflow:hidden;background:#f1f3f5}
.chp-card .chp-iw img.chp-thumb{width:100%;height:100%;object-fit:cover;display:block}
.chp-card .chp-noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#c2c8d2;font-size:11px}
.chp-line{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
.chp-line .chp-badge{flex:none;font-size:10px;font-weight:700;color:#fff;padding:1px 5px;border-radius:3px;border:1px solid;line-height:1.3}
.chp-line .chp-n{flex:1 1 auto;min-width:0;font-size:12.5px;color:#222;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chp-line .chp-puff{font-style:normal;font-size:11px;color:#8b93a1;margin-left:3px;font-weight:400}
.chp-line .chp-price{flex:none;display:flex;align-items:baseline;gap:3px;white-space:nowrap}
.chp-line .chp-price b{font-size:14px;font-weight:700;color:#ff9500}
.chp-line .chp-old{font-size:10.5px;color:#999;text-decoration:line-through}
.chp-line .chp-delta{font-style:normal;font-size:10.5px;font-weight:700;color:#34c759}
.chp-line .chp-delta.up{color:#ff3b30}
.chp-card .chp-act{margin-top:4px;font-size:10.5px;color:#ff3b30;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;order:0}
.chp-card .chp-hint{margin-top:2px;font-size:10px;color:#9aa3b1;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chp-card .chp-ask{margin-top:6px;width:100%;font-size:11.5px;padding:4px 0;border-radius:7px}
.chp-hotc{position:absolute;right:8px;bottom:42px;font-size:9.5px;font-weight:700;color:#fff;padding:1px 5px;border-radius:3px;border:1px solid;line-height:1.3;pointer-events:none}
.chp-card.oos .chp-iw img{filter:grayscale(.75);opacity:.7}

/* 推荐标回到品名左边（覆盖早期绝对定位） */
.chp-line .chp-badge{position:static !important;left:auto !important;top:auto !important;margin:0}
.chp-line{display:flex !important;align-items:center;flex-wrap:nowrap;gap:4px}
.chp-line .chp-price{margin-left:auto}

/* ===== 卡片：完全照独角商店报价单 ===== */
.chp-grid.c3{column-count:3}
.chp-grid.c2{column-count:2}
.chp-grid .chp-card{display:block;height:auto;padding:7px;border-radius:10px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.06);margin:0 0 8px}
.chp-top{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;min-height:17px}
.chp-top .chp-badge{position:static !important;flex:none;font-size:9px;font-weight:700;color:#fff;padding:1px 4px;border-radius:3px;line-height:1.35;letter-spacing:0}
.chp-top .chp-n{flex:1 1 auto;min-width:0;font-size:11px;font-weight:700;color:#222;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chp-top .chp-puff{font-style:normal;font-size:10px;color:#8b93a1;margin-left:2px;font-weight:400}
.chp-top .chp-price{flex:none;font-size:12px;font-weight:700;color:#111;white-space:nowrap}
.chp-card .chp-act{margin:2px 0 4px;font-size:9px;color:#444;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.chp-card .chp-act b{color:#666;font-weight:400}
.chp-card .chp-iw{position:relative;aspect-ratio:1/1;border-radius:6px;overflow:hidden;background:#f2f3f5;margin:0}
.chp-card .chp-iw img{width:100%;height:100%;object-fit:cover;display:block}
.chp-card .chp-hotc{position:absolute;right:0;bottom:0;font-size:8.5px;font-weight:700;color:#fff;padding:1px 4px;border-radius:4px 0 4px 0;line-height:1.35}
.chp-card .chp-ask{margin-top:5px;width:100%;border:1px solid #2f6fed;background:#f2f7ff;color:#2f6fed;border-radius:6px;padding:3px 0;font-size:10.5px;font-weight:600}
.chp-card.oos .chp-iw img{filter:grayscale(.75);opacity:.72}

.chp-card .chp-noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#c2c8d2;font-size:10px;background:#f2f3f5}

.chp-grid.c1{column-count:1}
.chp-top .chp-chg{font-style:normal;font-size:10px;font-weight:700;color:#34c759;margin-left:2px}
.chp-top .chp-chg.up{color:#ff3b30}
.chp-card .chp-hotc{position:absolute;font-size:8.5px;font-weight:700;color:#fff;padding:1px 4px;line-height:1.35;border-radius:4px}
.chp-card .chp-hotc.hp-left{left:0;top:0;border-radius:0 0 4px 0}
.chp-card .chp-hotc.hp-right{right:0;top:0;border-radius:0 0 0 4px}
.chp-card .chp-hotc.hp-bottom-left{left:0;bottom:0;border-radius:0 4px 0 4px}
.chp-card .chp-hotc.hp-bottom-right{right:0;bottom:0;border-radius:4px 0 4px 0}
.chp-card .chp-hint{font-size:9px;color:#ff9500;margin-top:2px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 卡片：固定高度 + 图片撑满剩余空间（三个卡片一样大） */
.chp-grid .chp-card{display:flex !important;flex-direction:column;height:auto;overflow:hidden}
.chp-card .chp-top{flex:none}
.chp-card .chp-act{flex:none;margin:2px 0 0;font-size:9.5px;line-height:1.3;color:#333;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.chp-card .chp-act b{color:#ff3b30;font-weight:700}
.chp-card .chp-hint{flex:none;font-size:9px;color:#ff9500;margin-top:1px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chp-card .chp-iw{flex:1 1 auto;min-height:0;aspect-ratio:auto;margin:4px 0 0;border-radius:6px;overflow:hidden;position:relative}
.chp-card .chp-iw img{width:100%;height:100%;object-fit:cover;display:block}
.chp-card .chp-ask{flex:none;margin-top:4px}
.chp-top .chp-price{color:#ff9500 !important}

/* 手机端卡片 = 报价单卡片，询库存改成图片左下角浮层，不占卡高 */
.chp-card{position:relative;height:auto;padding:6px}
.chp-card .chp-ask{
  position:absolute;left:10px;bottom:10px;width:auto;margin:0;padding:2px 8px;
  font-size:9.5px;line-height:1.5;border-radius:6px;border:1px solid rgba(47,111,237,.5);
  background:rgba(255,255,255,.88);color:#2f6fed;font-weight:600;backdrop-filter:blur(2px);
}
.chp-card .chp-iw{margin:3px 0 0}
.chp-top .chp-n{font-size:10.5px}
.chp-top .chp-price{font-size:11.5px;color:#ff9500}

.chp-card .chp-ask{z-index:6}
.chp-card .chp-iw{position:relative;z-index:1}

/* 顶部一行：推荐 / 品名 / 价格，绝不换行、品名尽量完整 */
.chp-card .chp-top{display:flex;align-items:center;flex-wrap:nowrap;gap:3px;min-width:0}
.chp-card .chp-top .chp-badge{flex:none}
.chp-card .chp-top .chp-n{flex:1 1 auto;min-width:0;font-size:11.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chp-card .chp-top .chp-price{flex:none;margin-left:auto;font-size:12px;font-weight:700;color:#ff9500;white-space:nowrap}

.chp-card .chp-top .chp-price{padding-left:4px}
.chp-card .chp-top .chp-n{padding-right:2px}


.cropcap b{color:#2f6fed;font-weight:600}


/* 纯文本模式 */
.chp-tlist{background:#fff;border-radius:10px;overflow:hidden}
.chp-trow{padding:9px 12px;border-bottom:1px solid #f2f3f5}
.chp-trow:last-child{border-bottom:0}
.chp-trow.oos{opacity:.55}
.chp-tmain{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.chp-tn{font-size:14px;color:#1c1c1e;flex:1;min-width:0;word-break:break-all}
.chp-tpr{font-size:14px;font-weight:700;color:#FF9500}
.chp-told{font-size:11.5px;color:#999;text-decoration:line-through}
.chp-tb{font-style:normal;font-size:10.5px;color:#fff;border-radius:4px;padding:1px 5px}
.chp-tp{font-style:normal;font-size:11px;color:#8a8a8e;margin-left:2px}
.chp-tact{font-size:12px;color:#333;margin-top:3px}
.chp-tact b{color:#FF3B30}
.chp-thint{font-size:12px;color:#FF9500;margin-top:2px}

.chp-trow{cursor:pointer}
.chp-tthumb{position:relative;width:34px;height:26.5px;border-radius:6px;overflow:hidden;margin-left:6px;flex:0 0 34px;display:block;background:#f2f3f5}
.chp-tt{position:absolute;left:0;top:0;display:block;max-width:none;max-height:none;object-fit:fill;background:transparent}
.chp-tmain .chp-tpr{margin-left:auto;padding-left:6px}

/* ===== 询库存按钮：文字模式和卡片模式同一套样式 ===== */
/* 文字列表：价格和缩略图靠左留出位置，最右边是询库存 */
.chp-trow .chp-tmain{flex-wrap:nowrap}
.chp-trow .chp-tn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chp-task{
  flex:0 0 auto;margin-left:8px;padding:3px 9px;line-height:1.35;
  border:1px solid #2f6fed;background:#f2f7ff;color:#2f6fed;border-radius:7px;
  font-size:11.5px;font-weight:600;font-family:inherit;
}
.chp-task:active{background:#e2edff}
/* 卡片：不再浮在图片上，改成卡片内、图片正下方，占满一行 */
.chp-card .chp-ask{
  position:static;left:auto;bottom:auto;z-index:auto;backdrop-filter:none;
  display:block;width:100%;margin:5px 0 0;padding:3px 0;
  border:1px solid #2f6fed;background:#f2f7ff;color:#2f6fed;border-radius:6px;
  font-size:10.5px;line-height:1.5;font-weight:600;
}

/* ===== 卡片顶部一行：推荐 + 品名（左边）+ 价格（右边），必须同一行 ===== */
.chp-card .chp-top{
  display:flex !important; align-items:center; gap:4px; flex-wrap:nowrap;
  min-height:0 !important; height:auto !important;
}
.chp-card .chp-top .chp-badge{order:0 !important; flex:none; font-size:9px; padding:1px 4px; border-radius:3px; line-height:1.35}
.chp-card .chp-top .chp-n{
  order:0 !important; flex:1 1 auto; min-width:0; min-height:0 !important;
  display:block !important; -webkit-line-clamp:unset !important; -webkit-box-orient:unset !important;
  font-size:11.5px !important; font-weight:700; line-height:1.3; color:#222;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.chp-card .chp-top .chp-n .chp-puff{font-style:normal; font-size:10px; color:#8b93a1; font-weight:400; margin-left:2px}
.chp-card .chp-top .chp-price{
  order:0 !important; flex:none; margin-left:auto !important;
  font-size:12px !important; font-weight:700; color:#ff9500 !important; white-space:nowrap;
}

/* ===== 卡片高度自适应 + 图片再高三分之一 ===== */
/* 原来图片 165×96（宽度的 58%），现在按宽度 78% 撑高（约高三分之一）；
   卡片高度不写死，由内容自然撑开，询库存按钮始终在图片下方，不会盖住东西 */
.chp-card{
  height:auto !important; min-height:0 !important;
  display:flex !important; flex-direction:column; overflow:hidden;
}
.chp-card .chp-iw{
  position:relative !important; height:auto !important;
  flex:0 0 auto !important; margin:4px 0 0 !important;
  /* 用 padding-bottom 撑高（老 WebKit 也认），里面的图是绝对定位、height:100% 对 padding 盒生效 */
  padding-bottom:78% !important; border-radius:6px; overflow:hidden; background:#f2f3f5;
}
.chp-card .chp-iw img{
  position:absolute !important; left:0; top:0;
  width:100% !important; height:100% !important; object-fit:cover;
}
.chp-card .chp-noimg{
  position:absolute !important; left:0; top:0; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.chp-card .chp-ask{flex:0 0 auto !important; margin-top:5px !important}

/* ===== 卡片统一高度：活动行固定一行、不换行（超出打点），没活动也留同样的空位 ===== */
.chp-card .chp-act{
  flex:0 0 auto !important; height:18px !important; line-height:18px !important;
  margin:3px 0 0 !important; overflow:hidden; white-space:nowrap;
  text-overflow:ellipsis; font-size:9.5px; color:#333;
}
.chp-card .chp-act b{font-weight:700; color:#e0574a}
.chp-card .chp-act.ec{visibility:hidden}   /* 占位但不显示，保持每张卡一样高 */
.chp-card .chp-iw{margin-top:3px !important}

/* ===== 公告画布（文字/图片按后台摆放的位置显示）===== */
.chp-cvb{position:relative;width:100%;height:0;padding-top:100%;background:#fff;border-radius:12px;overflow:hidden}
.chp-cvb-in{position:absolute;left:0;top:0;right:0;bottom:0}
.chp-cvb .cb{position:absolute;box-sizing:border-box}
.chp-cvb .tx{white-space:pre-wrap;word-break:break-word;line-height:1.6;color:#333;font-size:13px;font-weight:400}
.chp-cvb img{width:100%;display:block;border-radius:6px}

/* ===== 「全部库存」整图查看器（可缩放 + 切图名字标签） ===== */
#fv{position:fixed;inset:0;background:#0b0b0c;display:none;z-index:310;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}
#fv.on{display:block}
#fvStage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
#fvStage img{display:block;width:100%;height:100%;-webkit-user-drag:none}
#fvTags{position:absolute;inset:0;pointer-events:none}
.fv-tag{position:absolute;display:flex;flex-direction:column;align-items:flex-start;gap:2px;pointer-events:none}
.fv-tag b{pointer-events:none;background:rgba(255,255,255,.95);color:#111;border-radius:5px;padding:2px 6px;font-size:11px;line-height:1.35;font-weight:600;white-space:nowrap;box-shadow:0 1px 5px rgba(0,0,0,.45)}
.fv-tag i{pointer-events:auto;font-style:normal;background:#2f6fed;color:#fff;border-radius:5px;padding:2px 7px;font-size:11px;line-height:1.35;white-space:nowrap;box-shadow:0 1px 5px rgba(0,0,0,.35);cursor:pointer}
.fv-tag i:active{background:#1c58d6}
#fvTop{position:absolute;left:0;right:0;top:0;height:calc(52px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 6px;display:flex;align-items:center;gap:10px;color:#fff;font-size:13px;background:linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,0));z-index:3}
#fvTop .sp{flex:1}
/* 整图右上角关闭键：白底圆钮 + 深色 ×，压在亮图上也能一眼看到 */
/* 整图右上角关闭键：只有一个 X，灰底 */
#fvClose{background:rgba(120,120,120,.85);color:#fff;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;cursor:pointer;font-size:19px;line-height:1;font-weight:400;box-shadow:0 1px 4px rgba(0,0,0,.25)}
#fvClose::before{content:"×";margin-top:-2px}
#fvSave{background:#07c160;color:#fff;border-radius:8px;padding:4px 11px;cursor:pointer;margin-right:8px}
#fvHint{position:absolute;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom));text-align:center;color:rgba(255,255,255,.6);font-size:11.5px;z-index:3;pointer-events:none}
#lb{z-index:340}   /* 「查看此品」打开的切图查看器要盖在整图上面 */

/* 整图标签里的价格（一人一价；价格隐藏就没有这个） */
.fv-tag .fv-pv{color:#e64340;font-weight:700;margin-left:3px;font-size:11px}

/* 多选：圆圈（和管理端一样的做法） */
.m .m-check{display:none;width:20px;height:20px;border-radius:50%;border:2px solid #c9c9c9;background:#fff;flex:none;align-self:center;place-items:center;margin:0 2px;order:-1}
.m.me .m-check{order:99}
body.selmode .m .m-check{display:grid}
.m.picked .m-check{background:#07c160;border-color:#07c160}
.m.picked .m-check::after{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.m.picked .bub{outline:none}

/* ===== 卡片图片统一模型 + 同行等高（最终覆盖） ===== */
.chp-grid{
  display:grid !important;
  grid-auto-rows:1fr;
  align-items:stretch !important;
  column-count:auto !important;
  column-gap:8px;
  row-gap:8px;
  width:100%;
}
.chp-grid.c2{grid-template-columns:repeat(2,minmax(0,1fr));column-count:auto !important}
.chp-grid.c3{grid-template-columns:repeat(3,minmax(0,1fr));column-count:auto !important}
.chp-grid.c1{grid-template-columns:minmax(0,1fr);column-count:auto !important}
.chp-grid .chp-card{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column;
  overflow:hidden;
}
.chp-card .chp-iw{
  position:relative !important;
  height:auto !important;
  flex:0 0 auto !important;
  padding-bottom:78% !important;
  overflow:hidden;
}
.chp-card .chp-iw img.chp-thumb{
  position:absolute !important;
  object-fit:fill !important;
  max-width:none !important;
  max-height:none !important;
  display:block;
}
.chp-card .chp-ask{flex:0 0 auto !important;margin-top:auto !important}

/* ===== 批量 125：WebKit 低风险渲染优化 + 图片失败占位 ===== */
.m .bub{box-shadow:none;border:1px solid rgba(0,0,0,.045)}
.chp-grid .chp-card{box-shadow:none !important;border:1px solid #eceff3}

.skc-imgshell{display:block;position:relative;background:#f3f4f6}
.stk-imgshell{display:block;position:relative;min-height:80px;background:#f3f4f6}
.imgfail-host{position:relative;background:#f3f4f6 !important}
img.img-broken{visibility:hidden !important}
.imgfail{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:5px;background:#f3f4f6;color:#8b93a1;font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap;overflow:hidden;pointer-events:none}
.imgfail>i{display:grid;place-items:center;width:16px;height:16px;flex:none;border:1px solid #b8bec8;border-radius:50%;font-style:normal;font-size:11px;font-weight:700;line-height:1;box-sizing:border-box}
.chp-tthumb .imgfail{font-size:0}
.chp-tthumb .imgfail>i{width:14px;height:14px;font-size:10px}
