:root {
  --bg: #f4f6f9; --card: #fff; --line: #e5e7eb; --text: #1f2329; --muted: #8a919f;
  --primary: #2563eb; --primary-dark: #1d4ed8; --sidebar: #1e293b; --sidebar-text: #cbd5e1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.layout { display: flex; min-height: 100vh; }

.sidebar { width: 200px; background: var(--sidebar); color: var(--sidebar-text); position: sticky; top: 0; height: 100vh; flex-shrink: 0; display: flex; flex-direction: column; }
/* 侧栏顶部品牌 LOGO（对齐原站 base.html 的 navbar-brand） */
.side-logo { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); text-decoration: none; flex: 0 0 auto; }
.side-logo-mark { width: 72px; height: auto; display: block; }
.side-logo-text { width: 76px; height: auto; display: block; }
.side-nav { flex: 1 1 auto; overflow-y: auto; padding: 4px 0 14px; }
.menu-group { padding: 10px 16px 4px; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.menu-item { display: block; padding: 8px 16px; color: var(--sidebar-text); cursor: pointer; font-size: 13px; border-left: 3px solid transparent; }
.menu-item:hover { background: #334155; }
.menu-item.active { background: #334155; border-left-color: var(--primary); color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.spacer { flex: 1; }
.tabs { display: flex; gap: 4px; }
.tab { border: 0; background: transparent; padding: 6px 14px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 14px; }
.tab:hover { background: var(--bg); color: var(--text); }
.tab.active { background: var(--primary); color: #fff; }
/* 无平台权限的页签：灰掉 + 锁图标，点击给升级引导 */
.tab.locked { color: #b9c0cc; cursor: not-allowed; }
.tab.locked::after { content: '🔒'; font-size: 11px; margin-left: 4px; vertical-align: 1px; }
.tab.locked:hover { background: transparent; color: #b9c0cc; }
.tab.locked.active { background: #c7cdd8; color: #fff; }
/* ===== 大数据选品：一级入口 + 二级菜单（Temu / 速卖通 / AI 影像工坊） =====
   色系对齐首页登录后的顶栏：红 #ff5140→#e6362a 为主、金 #f3c169 为 AI 工坊。
   工作台是浅色顶栏，故用淡红底 + 红边框、金色压深一档保证白底可读。 */
.plat-menu { position: relative; }
.plat-trigger { display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 81, 64, .35); background: rgba(255, 81, 64, .08);
  padding: 6px 10px; border-radius: 10px; cursor: pointer; font: inherit;
  font-size: 15px; font-weight: 600; color: var(--text); }
.plat-trigger:hover { background: rgba(255, 81, 64, .16); border-color: rgba(255, 81, 64, .58); }
.plat-trigger .pt-cur { font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff5140, #e6362a); box-shadow: 0 2px 8px rgba(230, 54, 42, .28);
  padding: 2px 8px; border-radius: 10px; line-height: 1.55; white-space: nowrap; }
.plat-trigger .pt-chev { width: 14px; height: 14px; stroke: #ff5140; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.plat-menu.open .pt-chev { transform: rotate(180deg); }
.plat-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 80; min-width: 204px; padding: 6px;
  background: var(--card); border: 1px solid rgba(255, 81, 64, .3); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(230, 54, 42, .14); display: none; }
.plat-menu.open .plat-panel { display: block; }
.plat-panel .tab { display: flex; align-items: center; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.plat-panel .tab:hover { background: rgba(255, 81, 64, .10); color: var(--text); }
.plat-panel .tab.active { background: linear-gradient(135deg, #ff5140, #e6362a); color: #fff; }
.plat-panel .tab.locked.active { background: #c7cdd8; color: #fff; }
.plat-sep { display: block; height: 1px; background: var(--line); margin: 6px 4px; }
/* AI 影像工坊：与「大数据选品」同级的一级入口，沿用首页的金色 */
.plat-sibling { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #b8791a; text-decoration: none; white-space: nowrap; }
.plat-sibling:hover { background: rgba(243, 193, 105, .18); }
.plat-sibling .pl-arrow { font-size: 12px; color: #b8791a; }
/* 顶栏右侧「联系客服」：回首页，首页悬浮客服栏默认展开可直接扫码。沿用导航的红色系 */
.top-contact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; color: #fff;
  background: linear-gradient(135deg, #ff5140, #e6362a); box-shadow: 0 2px 8px rgba(230, 54, 42, .22); }
.top-contact svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-contact:hover { filter: brightness(1.08); box-shadow: 0 3px 12px rgba(230, 54, 42, .32); }
/* 顶栏「充值升级」：金色会员色，与「联系客服」的红色区分，点进会员中心 */
.top-upgrade { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid #f0c274; border-radius: 10px;
  background: linear-gradient(135deg, #fff6e4, #ffe3ae); color: #a8640c; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(184, 121, 26, .16); }
.top-upgrade:hover { filter: brightness(1.03); box-shadow: 0 3px 12px rgba(184, 121, 26, .28); }
@media (max-width: 900px) { .top-contact, .top-upgrade { padding: 6px 10px; font-size: 13px; } }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #fef3c7; color: #b45309; }

.content { padding: 16px 24px 48px; }
/* TikTok 独立模块：铺满内容区，避免双层滚动条 */
.tt-embed { width: 100%; height: calc(100vh - 130px); min-height: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tt-embed.with-bar { height: calc(100vh - 182px); }
.tt-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 预览模式提示条：注册/免费账号只能看默认榜单首屏一页时挂在视图顶部 */
.preview-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
  padding: 9px 14px; border: 1px solid #ffe0b2; border-radius: 10px;
  background: linear-gradient(90deg, #fff8ec, #fffdf8); color: #8a5a00; font-size: 13px; }
.preview-bar .pv-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 999px; background: #ffb020; color: #fff; }
.preview-bar .pv-txt { flex: 1; min-width: 220px; line-height: 1.6; }
.preview-bar .btn.mini { flex-shrink: 0; height: 26px; padding: 0 12px; font-size: 12px; }
.tab.preview { color: var(--text); }
.tab.preview::after { content: '预览'; font-size: 10px; margin-left: 4px; padding: 0 4px; border-radius: 4px;
  background: rgba(255, 176, 32, .18); color: #b87400; vertical-align: 1px; }
.plat-panel .tab.preview::after { background: rgba(255, 255, 255, .28); color: #fff; }
@media (max-width: 640px) { .preview-bar { font-size: 12px; } .preview-bar .pv-txt { min-width: 100%; } }
.crumb { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.crumb small { font-weight: 400; color: var(--muted); margin-left: 10px; }

.filter-bar { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 8px; margin-bottom: 12px; position: relative; z-index: 5; }
.f-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.f-input { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text); }
.f-input:focus { outline: none; border-color: var(--primary); }
.f-input.grow { flex: 1; min-width: 180px; }
.f-input.num { width: 92px; }
.btn { height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; color: var(--text); }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger:hover { border-color: #dc2626; color: #dc2626; }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }

/* 多级行业类目级联（速卖通，对齐老站 4 级行业树） */
.cate-casc { position: relative; }
.cate-casc-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 148px; max-width: 300px; cursor: pointer; text-align: left; }
.cate-casc-btn i { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; }
.cate-casc-btn.on { border-color: var(--primary); color: var(--primary); }
/* 面板挂到 body 下用 fixed 定位：#view.fade > * 的位移动画会创建层叠上下文，
   面板若留在筛选栏内会被后面的表格盖住；top/left/width 由 cascPosition() 按视口计算。 */
.cate-casc-panel { position: fixed; z-index: 1000; top: 0; left: 0; width: 760px; max-width: calc(100vw - 24px);
  max-height: 80vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 34px rgba(15, 23, 42, .16); padding: 10px; }
/* 窄屏全屏模式：主站未声明 viewport meta，移动端各视口宽度口径不一致，
   全屏铺满不依赖任何 JS 计算，底部操作条 sticky 保证「确定/清除」始终可点。 */
.cate-casc-panel.full { inset: 0; width: auto; max-width: none; max-height: none; height: 100%;
  border-radius: 0; overflow: auto; display: flex; flex-direction: column; padding-bottom: 54px; }
.cate-casc-panel.full .cate-casc-cols { flex: 0 0 auto; max-height: none; overflow: auto; }
.cate-casc-panel.full .cate-col { flex: 0 0 160px; }
.cate-casc-panel.full .cate-col-search { flex: 0 0 100%; }
/* 底部操作条固定在屏幕底部，避免被列区域盖住（无 viewport meta 时视口高度口径不一致） */
.cate-casc-panel.full .cate-casc-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
  margin: 0; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); }
.cate-casc-search { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cate-casc-search .f-input { width: 100%; box-sizing: border-box; }
.cate-casc-cols { display: flex; min-height: 200px; max-height: 320px; overflow: hidden; }
.cate-col { flex: 1 1 0; min-width: 0; overflow-y: auto; padding: 4px; border-right: 1px solid var(--line); }
.cate-col:last-child { border-right: 0; }
.cate-col-search { flex: 1 1 auto; }
.cate-col-hd { position: sticky; top: 0; z-index: 1; background: #fff; padding: 4px 6px; font-size: 11px; color: var(--muted); }
.cate-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cate-item .txt { overflow: hidden; text-overflow: ellipsis; }
.cate-item:hover { background: #f2f6ff; }
.cate-item.sel { background: #e8efff; color: var(--primary); font-weight: 600; }
.cate-item .arrow { margin-left: auto; color: var(--muted); font-size: 11px; flex: none; }
.cate-empty { padding: 12px 8px; color: var(--muted); font-size: 12px; }
.cate-casc-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.cate-casc-foot .spacer { flex: 1; }
.cate-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.cate-path.on { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .cate-casc-panel { max-height: 80vh; overflow: auto; }
  .cate-casc-cols { overflow-x: auto; max-height: 48vh; }
  .cate-col { flex: 0 0 160px; }
  .cate-col-search { flex: 0 0 100%; }
}

.table-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
thead th { background: #fafbfc; font-weight: 600; cursor: pointer; user-select: none; position: sticky; top: 0; }
thead th.no-sort { cursor: default; }
thead th .arr { color: var(--muted); font-size: 11px; margin-left: 4px; }
thead th.sorted { color: var(--primary); }
tbody tr:hover { background: #f8faff; }
td.img img, td.img .ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; display: block; }
td.img .ph { background: linear-gradient(135deg, #e8ecf3, #d8dee9); }
td.img img { cursor: zoom-in; transition: transform .12s ease; }
td.img img:hover { transform: scale(1.08); }

/* 列表图片悬停放大预览：跟随鼠标的浮层，不拦截鼠标事件 */
.img-zoom { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none;
  width: 300px; height: 300px; border-radius: 10px; overflow: hidden; background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb); box-shadow: 0 12px 32px rgba(15,23,42,.22); }
.img-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
td.title { min-width: 260px; max-width: 320px; white-space: normal; line-height: 1.5; }
td.title a { color: var(--text); text-decoration: none; cursor: pointer; }
td.title a:hover { color: var(--primary); }
/* 店铺名：可点进店铺详情，需要一眼看出是链接（虚线下划线 + 箭头 + 悬停变实线） */
td.title a.shop-link { color: var(--primary); font-weight: 500; text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; }
td.title a.shop-link::after { content: '›'; margin-left: 3px; font-weight: 700; opacity: .65; }
td.title a.shop-link:hover { text-decoration-style: solid; }
td.title a.shop-link:hover::after { opacity: 1; }
/* 标题下方一行：行业最后一级 + 平台原链接（速卖通/TEMU）
 * 行业悬停由 .cate-tip 浮层显示完整路径；平台链接直接新窗口打开商品原页 */
td.title .cate-line { display: flex; align-items: baseline; gap: 10px; margin-top: 3px; min-width: 0; }
td.title .cate-sub { display: inline-block; flex: 0 1 auto; min-width: 0; margin-top: 0; font-size: 12px; line-height: 1.5; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
td.title .cate-sub:hover { color: var(--primary); }
td.title .plat-link { flex: none; font-size: 12px; line-height: 1.5; color: var(--primary); text-decoration: none;
  white-space: nowrap; opacity: .9; }
td.title .plat-link:hover { text-decoration: underline; opacity: 1; }
.cate-tip { position: fixed; left: -9999px; top: -9999px; z-index: 9998; max-width: 340px;
  padding: 8px 11px; border-radius: 8px; background: rgba(15,23,42,.95); color: #fff;
  font-size: 12.5px; line-height: 1.65; box-shadow: 0 10px 26px rgba(15,23,42,.28);
  word-break: break-word; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease; }
.cate-tip.on { opacity: 1; visibility: visible; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: #dc2626; } .down { color: #16a34a; }
.rank { color: var(--muted); }
.tag { display: inline-block; padding: 1px 8px; background: #eef2ff; color: var(--primary); border-radius: 10px; font-size: 12px; margin-right: 4px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

.pager { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px; position: relative; flex-wrap: wrap; }
.pager-pages { display: flex; gap: 6px; align-items: center; }
.pager .pager-cur { min-width: 62px; text-align: center; font-size: 12px; color: var(--muted); }
.pager button { min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.pager button.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
/* 每页条数切换（20 / 50 / 100）：贴分页器右侧，小屏落到底部居中 */
.pager .pager-size { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pager .pager-size .ps-label { color: var(--muted); }
.pager .pager-size button.ps { min-width: 40px; height: 28px; padding: 0 9px; font-size: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: #4b5563; cursor: pointer; transition: all .15s ease; }
.pager .pager-size button.ps:hover { border-color: #93b4f5; color: var(--primary); }
.pager .pager-size button.ps.cur { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .pager .pager-size { position: static; transform: none; width: 100%; justify-content: center; order: 2; }
}

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.panel h3 { font-size: 14px; margin-bottom: 12px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.bar-label { width: 60px; color: var(--muted); }
.bar-track { flex: 1; height: 10px; background: #eef1f5; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 5px; }
.bar-value { width: 80px; text-align: right; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 17px; font-weight: 600; margin-top: 2px; }

.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hide { display: none; }
.modal-box { background: #fff; border-radius: 12px; padding: 20px; min-width: 360px; max-width: 520px; max-height: 80vh; overflow: auto; }
.modal-box h3 { margin-bottom: 12px; font-size: 15px; }
/* 无权限页：客服微信二维码 + 一句扫码引导（旧权益清单与 2800 元话术已移除） */
.twx { text-align: center; margin-top: 18px; }
.twx-qr { width: 186px; height: 186px; margin: 0 auto 12px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.twx-qr img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.twx-hint { font-size: 13px; line-height: 1.8; color: var(--text); }
.modal-box .f-row { margin-bottom: 10px; }

.groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.groups .chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; cursor: pointer; background: #fff; }
.groups .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.quota { font-size: 12px; color: var(--muted); }
/* 列表页脚：条数上限 / 今日剩余查询次数 */
#list-limit-note:not(:empty) { margin-left: 12px; }
#list-limit-note.q-low { color: #dc2626; font-weight: 600; }

/* ===== 速卖通富筛选 ===== */
.stab-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }.stab { border: 0; background: transparent; padding: 6px 16px; border-radius: 6px 6px 0 0; cursor: pointer; color: var(--muted); font-size: 13px; text-decoration: none; }
/* ===== 我的搜索（富筛选栏：Temu / 速卖通产品榜·店铺榜通用）===== */
.ms-trigger { position: relative; flex: none; }
.ms-btn { height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; white-space: nowrap; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; }
.ms-btn:hover, .ms-btn.open { border-color: var(--primary); color: var(--primary); }
.ms-btn .ms-star { font-size: 13px; }
.ms-btn .ms-num { background: var(--primary); color: #fff; border-radius: 9px; padding: 0 5px; font-size: 10px; line-height: 15px; min-width: 16px; text-align: center; }
.ms-btn .ms-car { font-size: 9px; }
.ms-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(20,24,35,.14); z-index: 60; overflow: hidden; }
.ms-hd { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.ms-hd b { font-size: 13px; color: var(--text); }
.ms-tip { font-size: 11px; color: var(--muted); }
.ms-new { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ms-new .f-input { flex: 1; min-width: 0; height: 30px; }
.ms-list { max-height: 320px; overflow: auto; }
.ms-empty { padding: 20px 12px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.ms-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ms-item:hover { background: var(--bg); }
.msi-main { flex: 1; min-width: 0; }
.msi-name { font-size: 13px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msi-meta { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msi-del { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.msi-del:hover { color: #e6362a; }
.stab:hover { color: var(--text); background: var(--bg); }
.stab.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); border-radius: 0; }
.kw-mode { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.kw-mode.hide { display: none; }
.kw-mode .radio { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.more-filters { border-top: 1px dashed var(--line); padding-top: 12px; }
.more-filters.hide { display: none; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px 20px; }
.fgroup { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fafbfc; }
.fg-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.fpresets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.preset { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.preset:hover { border-color: var(--primary); color: var(--primary); }
.preset.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.finputs { display: flex; align-items: center; gap: 6px; }
.finputs .f-input { width: 90px; height: 28px; }
.f-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ===== 速卖通产品详情 ===== */
.detail-head { display: flex; gap: 20px; }
.dh-img { width: 180px; height: 180px; flex-shrink: 0; }
.dh-img img, .dh-img .ph { width: 180px; height: 180px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.dh-img .ph { background: linear-gradient(135deg, #e8ecf3, #d8dee9); }
.dh-main { flex: 1; min-width: 0; }
.dh-title { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.dh-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.dh-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px; margin-bottom: 14px; }
.dh-meta .m { font-size: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.dh-meta .k { color: var(--muted); margin-right: 6px; }
.dh-meta .v { font-weight: 600; }
.dh-actions { display: flex; gap: 8px; }
.dh-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* 轻量提示 */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(10px);
  background: #1f2937; color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 9999; }
.toast.show { opacity: .95; transform: translateX(-50%) translateY(0); }
.dh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dh-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.btn.mini { padding: 2px 8px; font-size: 12px; text-decoration: none; }

/* ==== Temu 产品详情页 ==== */
.pd-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.pd-table th, .pd-table td { border: 1px solid var(--line, #e5e7eb); padding: 7px 10px; text-align: left; font-weight: normal; }
.pd-table th { background: rgba(127,127,127,.06); }
.pd-table td span.up, .pd-table td span.down { font-weight: 600; }
/* 店铺详情信息栅格：不能用 <table>，否则产品行会被写进第一个 tbody */
.shop-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; font-size: 13px;
  border-top: 1px solid var(--line, #e5e7eb); border-left: 1px solid var(--line, #e5e7eb); }
.shop-kv > div { border-right: 1px solid var(--line, #e5e7eb); border-bottom: 1px solid var(--line, #e5e7eb);
  padding: 7px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-kv > div.full { grid-column: 1 / -1; }
@media (max-width: 900px) { .shop-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qmark { display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center;
  border-radius: 50%; background: #3b82f6; color: #fff; font-size: 11px; cursor: help; text-decoration: none; }
.badge-half { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  background: #9ca3af; color: #fff; font-size: 11px; vertical-align: middle; }
.video-link { margin-left: 8px; color: #38bdf8; font-size: 15px; text-decoration: none; }
.pd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line, #e5e7eb); margin: 18px 0 0; }
.pd-tab { padding: 8px 16px; font-size: 13px; color: var(--muted, #6b7280); text-decoration: none;
  border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; cursor: pointer; position: relative; }
.pd-tab.active { color: var(--primary, #2563eb); background: rgba(127,127,127,.07);
  border-color: var(--line, #e5e7eb); font-weight: 600; }
/* 外链 Tab（智能找货等）：与普通 Tab 区分开，避免被误认为已禁用 */
.pd-tab-ext { color: var(--primary, #2563eb); }
.pd-tab-ext:hover { background: rgba(37,99,235,.07); }
/* 右上角「付费」角标（对齐原站 icon-new1 橙色角标） */
.pd-tab .pay-badge { position: absolute; top: -3px; right: -2px; background: #f0ad4e; color: #fff;
  font-size: 9px; line-height: 1; padding: 2px 3px; border-radius: 3px; font-style: normal; font-weight: 600;
  transform: scale(.92); transform-origin: right top; pointer-events: none; }
.pd-pane { padding: 16px 2px; }
.pd-block { margin-bottom: 18px; }
.pd-h { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pd-b { font-size: 13px; line-height: 1.7; }
.pd-imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #e5e7eb); }
.pd-range { display: inline-flex; gap: 4px; margin-left: auto; }
.pd-range .btn.mini.active { background: var(--primary, #2563eb); color: #fff; }

/* ============ 速卖通 经营数据（对齐原站版式） ============ */
/* 原站 .details-header：浅灰底 + 边框，与下方内容合成一张卡片 */
.biz-card { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; overflow: hidden; background: var(--card, #fff); }
.biz-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 13px; font-weight: 600;
  background: var(--bg, #fafafa); border-bottom: 1px solid var(--line, #e5e7eb); }
.biz-body { padding: 16px; }
.pd-why { color: #e5342a; font-weight: 400; font-size: 12px; text-decoration: none; }
.pd-why:hover { text-decoration: underline; }
.biz-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 12px 14px; background: var(--bg, #f7f8fa); border: 1px solid var(--line, #e5e7eb); border-radius: 8px; }
.biz-bar .pd-range { margin-left: 0; }
.biz-sep { width: 1px; height: 20px; background: var(--line, #e5e7eb); }
.biz-daterange { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #8a93a5); font-size: 12px; }
.biz-daterange svg { flex: none; opacity: .65; }
.biz-date { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--line, #e5e7eb);
  border-radius: 5px; background: var(--card, #fff); color: inherit; }
.biz-date:focus { outline: none; border-color: var(--primary, #2563eb); }
.biz-dash { color: var(--muted, #8a93a5); }
.biz-ok { padding: 4px 16px; }
.biz-chart { min-height: 240px; }
.biz-chart .legend { justify-content: center; }   /* 原站 Highcharts 图例居中 */
.biz-table-wrap { background: var(--card); border: 1px solid var(--line, #e5e7eb); border-radius: 10px; overflow: auto; }
.biz-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.biz-table th, .biz-table td { padding: 7px 10px; border-bottom: 1px solid var(--line, #e5e7eb); text-align: right; }
.biz-table thead th { background: var(--bg, #f7f8fa); font-weight: 600; color: var(--muted, #8a93a5);
  position: sticky; top: 0; z-index: 2; }
.biz-table th:first-child, .biz-table td:first-child { text-align: left; position: sticky; left: 0; z-index: 1;
  background: var(--card, #fff); }
.biz-table thead th:first-child { z-index: 3; background: var(--bg, #f7f8fa); }
.biz-table tbody tr:hover td { background: rgba(127,127,127,.05); }
.biz-table tbody tr:hover td:first-child { background: rgba(127,127,127,.08); }
.biz-table .row-name { font-weight: 600; }
.biz-q { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px;
  margin-left: 2px; border-radius: 50%; background: #38bdf8; color: #fff; font-size: 10px; line-height: 1;
  cursor: help; position: relative; vertical-align: 1px; }
.biz-q b { display: none; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 240px; padding: 8px 10px; border-radius: 6px; background: #1f2937; color: #fff; font-size: 12px;
  font-weight: 400; line-height: 1.55; text-align: left; white-space: normal; z-index: 9; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.biz-q:hover b { display: block; }

/* 全局工具类 */
.hide { display: none !important; }

/* 我的关注：分组计数徽标 & 已下架提示 */
.groups .chip b { margin-left: 4px; font-weight: 500; opacity: .75; }
.groups .chip.active b { opacity: .9; }
.muted { color: var(--muted, #8a93a5); font-size: 12px; }

/* ==================== 会员模块 ==================== */
/* 顶栏用户区 */
.user-box { display: flex; align-items: center; }
.ubox { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 20px; cursor: pointer; }
.ubox:hover { background: var(--bg); }
.ubox .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.ubox .umeta { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ubox .umeta b { font-size: 13px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ubox .udue { color: var(--muted); }
.ubox .udue.warn { color: #dc2626; }
.ubox .ucaret { color: var(--muted); font-size: 10px; }
.umenu { position: absolute; right: 0; top: 40px; min-width: 148px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.12); padding: 5px; z-index: 40; }
.umenu a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; text-decoration: none; }
.umenu a:hover { background: var(--bg); }
.umenu a.danger { color: #dc2626; }
.umenu .usep { height: 1px; background: var(--line); margin: 4px 6px; }

/* 等级徽章 */
.gr-badge { display: inline-block; padding: 0 7px; height: 18px; line-height: 18px; border-radius: 9px; font-size: 11px; font-weight: 500;
  background: #eef1f5; color: #64748b; }
.gr-badge.gr-4 { background: #fef3c7; color: #b45309; }
.gr-badge.gr-9 { background: #ede9fe; color: #6d28d9; }
/* VIP会员（11）：当前主推付费等级，用金色渐变与老等级区分 */
.gr-badge.gr-11 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #451a03; }
.gr-badge.gr-7, .gr-badge.gr-6, .gr-badge.gr-8 { background: #dbeafe; color: #1d4ed8; }
.tag-mini { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #f1f5f9; color: #64748b; font-size: 11px; }

/* 登录/注册浮层 */
.auth-mask { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.auth-mask.hide { display: none; }
.auth-card { position: relative; width: 400px; max-width: 100%; background: #fff; border-radius: 14px; padding: 26px 28px 20px;
  box-shadow: 0 20px 60px rgba(15,23,42,.28); }
.auth-close { position: absolute; right: 10px; top: 8px; width: 28px; height: 28px; border: 0; background: transparent;
  font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 6px; }
.auth-close:hover { background: var(--bg); color: var(--text); }
/* 登录门禁提示条（未登录时必须登录，浮层不可关闭） */
.auth-gate-tip { margin: -6px 0 14px; padding: 8px 10px; background: #fff7e6; border: 1px solid #ffe1a8; color: #a45b00;
  border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-logo .alogo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 19px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.auth-logo b { display: block; font-size: 15px; }
.auth-logo small { color: var(--muted); font-size: 11px; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.auth-tab { border: 0; background: transparent; padding: 8px 16px; font-size: 13px; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.af-label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; }
.af-input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.af-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.af-row { display: flex; gap: 8px; }
.af-row .af-input { flex: 1; }
.af-row .btn { height: 38px; flex-shrink: 0; min-width: 106px; }
.af-between { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 2px; font-size: 12px; }
.af-between a { color: var(--primary); text-decoration: none; }
.af-check { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); cursor: pointer; }
.af-submit { width: 100%; height: 40px; margin-top: 16px; font-size: 14px; letter-spacing: 2px; }
.af-tip { min-height: 18px; margin-top: 8px; font-size: 12px; }
.af-tip.err { color: #dc2626; }
.af-tip.ok { color: #16a34a; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-foot a { color: var(--primary); text-decoration: none; }
.auth-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); line-height: 1.6; }
.auth-note code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-size: 11px; }

/* 未登录引导 */
.login-guide { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 56px 20px; text-align: center; }
.login-guide .lg-icon { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.login-guide h3 { font-size: 16px; margin-bottom: 8px; }
.login-guide code { background: #f1f5f9; padding: 1px 5px; border-radius: 3px; }
.login-guide .np-invite { max-width: 360px; margin: 18px auto 0; padding-top: 16px; border-top: 1px dashed var(--line); text-align: left; }
.login-guide .np-invite .af-label { text-align: left; }
.login-guide .np-tip { font-size: 12.5px; margin: 6px 2px 0; min-height: 16px; color: var(--muted); }
.login-guide .np-tip.err { color: #dc2626; }

/* 升级会员页 */
.sec-title { font-size: 15px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.sec-title small { font-size: 11px; font-weight: 400; color: var(--muted); }
.vip-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #1e293b, #334155); color: #e2e8f0; border-radius: 12px; padding: 18px 22px; }
.vip-hero.on { background: linear-gradient(120deg, #312e81, #4c1d95 55%, #6d28d9); }
.vh-left { display: flex; align-items: center; gap: 14px; }
.vh-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex;
  align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.vh-name { font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.vh-sub { font-size: 12px; opacity: .82; }
.vh-sub .warn { color: #fca5a5; }
.vh-right { display: flex; gap: 26px; }
.vh-kv { font-size: 12px; opacity: .85; }
.vh-kv b { display: block; font-size: 17px; margin-top: 2px; }
.plan-groups { display: grid; gap: 14px; }
.plan-group { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.pg-head span { color: var(--muted); font-size: 11px; }
/* 套餐区的积分规则说明（赠送 / 重置 / 扣费顺序） */
.pg-note { display: grid; gap: 5px; margin-bottom: 12px; padding: 10px 12px; border-radius: 9px;
  background: #f8fafc; border: 1px solid var(--line); }
.pn-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.7; color: #475569; }
.pn-k { flex: 0 0 60px; color: var(--muted); }
.pn-row b { font-weight: 600; color: #1e293b; }
.pn-row b.pn-num { color: #b45309; }
@media (max-width: 620px) { .pn-row { flex-wrap: wrap; gap: 2px; } .pn-k { flex: 0 0 100%; } }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plan-card { position: relative; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; cursor: pointer; transition: .15s; background: #fff; }
.plan-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.plan-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.plan-flag { position: absolute; right: 0; top: 0; background: var(--primary); color: #fff; font-size: 11px;
  padding: 1px 8px; border-radius: 0 9px 0 9px; }
.plan-flag.off { background: #f59e0b; }
.plan-days { font-size: 14px; font-weight: 600; }
.plan-days small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 11px; }
.plan-price { margin: 8px 0 2px; }
.plan-price b { font-size: 22px; color: #b45309; }
.plan-price s { margin-left: 8px; font-size: 12px; color: var(--muted); }
.plan-per { font-size: 11px; color: var(--muted); }
/* 会员尝鲜包：9.9 单平台 / 99 三平台，7 天平台权益，与会员时长并列展示 */
.trial-sec { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.trial-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.trial-head > span { color: var(--muted); font-size: 11px; }
.trial-head .trial-new { display: inline-block; background: #f59e0b; color: #fff; font-size: 10px;
  padding: 1px 5px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }
.trial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.trial-card { position: relative; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; background: #fff; transition: .15s; }
.trial-card:hover { border-color: #f0b27a; transform: translateY(-1px); }
.trial-card.active { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.14); }
.trial-card.bought { opacity: .62; }
.tr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.tr-badge { flex: none; font-size: 11px; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 10px; padding: 1px 7px; }
.trial-card.bought .tr-badge { color: var(--muted); background: #f1f5f9; border-color: var(--line); }
.tr-price { margin: 8px 0 6px; font-size: 22px; font-weight: 700; color: #b45309; }
.tr-price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.tr-gift { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: #059669;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 2px 7px; vertical-align: 3px; }
.tr-plats { min-height: 22px; font-size: 12px; color: #475569; }
.tr-radios { display: flex; gap: 12px; flex-wrap: wrap; }
.tr-radios label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.tr-note { margin-top: 6px; font-size: 11px; color: var(--muted); }
.trial-foot { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #f8fafc;
  border: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--muted); }
@media (max-width: 620px) { .trial-grid { grid-template-columns: 1fr; } .trial-head { flex-wrap: wrap; } }
.pay-box { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.pay-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.pay-row:last-child { margin-bottom: 0; }
.pay-k { color: var(--muted); font-size: 12px; }
.pay-m { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.pay-m.disabled { opacity: .45; cursor: not-allowed; }
.pay-right { display: flex; align-items: center; gap: 16px; }
.pay-amount { font-size: 13px; color: var(--muted); }
.pay-amount b { font-size: 22px; color: #b45309; margin-left: 4px; }
.btn.lg { height: 40px; padding: 0 26px; font-size: 14px; }

/* 升级页 → 积分包入口提示条 */
.vip-tip { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px;
  background: #fafbfc; font-size: 12.5px; color: var(--muted); }
.vip-tip a { color: var(--primary); font-weight: 600; cursor: pointer; white-space: nowrap; }
.vip-tip a:hover { text-decoration: underline; }

/* 积分包购买页 */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pkg-card { position: relative; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px;
  background: #fff; cursor: pointer; transition: .15s; }
.pkg-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.pkg-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pkg-card .pk-name { font-size: 12.5px; color: var(--muted); }
.pkg-card .pk-pt { margin: 6px 0 2px; font-size: 25px; font-weight: 700; color: #1d4ed8; letter-spacing: -.5px; }
.pkg-card .pk-pt small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pkg-card .pk-price { font-size: 13px; font-weight: 600; color: #b45309; }
.pkg-card .pk-use { margin-top: 6px; font-size: 11px; color: var(--muted); }

/* 支付弹窗 */
.paym { display: flex; gap: 20px; align-items: flex-start; }
.paym-qr { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; display: flex; align-items: center; justify-content: center; min-width: 196px; min-height: 196px; }
.paym-info { flex: 1; font-size: 12px; line-height: 1.9; }
.paym-amount { font-size: 24px; font-weight: 700; color: #b45309; margin-bottom: 4px; }
.paym-line { color: var(--text); }
.paym-status { margin-top: 8px; color: var(--muted); }
.paym-info .ok { color: #16a34a; }
.paym-info .warn { color: #dc2626; }
/* 支付宝：跳转收银台的占位块 */
.paym-ali { width: 180px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.paym-ali-logo { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  margin-bottom: 10px; border-radius: 12px; background: #1677ff; color: #fff; font-size: 26px; font-weight: 700; }
.paym-ali p { margin: 0; }
.paym-count { margin-top: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 权益对比表 */
.perm-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 520px; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: normal; }
.perm-table th, .perm-table td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.perm-table thead th { position: sticky; top: 0; background: #fafbfc; z-index: 2; cursor: default; }
.perm-table .pm-mod { background: #fafbfc; font-weight: 600; color: var(--text); vertical-align: top; width: 90px; }
.perm-table .pm-grade { text-align: center; width: 120px; }
.perm-table .pm-grade.gr-4 { color: #b45309; }
.perm-table .pm-grade.gr-9 { color: #6d28d9; }
.perm-table .pm-cell { text-align: center; }
.perm-table .yes { color: #16a34a; font-weight: 500; }
.perm-table .no { color: #d1d5db; }
.ord-table .mono, .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; }
.ok { color: #16a34a; } .warn { color: #dc2626; }

/* 会员中心 */
.acct-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.acct-card { flex: 1 1 420px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px; }
.acct-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.acct-row:last-child { border-bottom: 0; }
.acct-row span { color: var(--muted); }
.acct-stats { flex: 0 0 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.acct-stats .btn { grid-column: 1 / -1; height: 36px; }
.stat.ok .v { color: #16a34a; } .stat.warn .v { color: #dc2626; }
.quota-table .qbar { display: inline-block; width: 180px; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.quota-table .qbar-fill { height: 100%; background: var(--primary); border-radius: 4px; }
.acct-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }

/* ================= 数据读取过渡动画 ================= */
/* 顶部全局进度条：任一接口在途时显示，最后一个请求结束后淡出 */
.nprog { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 9999; pointer-events: none;
  opacity: 0; transition: opacity .2s ease; overflow: hidden; }
.nprog.on { opacity: 1; }
.nprog::after { content: ''; display: block; width: 38%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), #60a5fa, transparent);
  animation: nprogRun 1s cubic-bezier(.45, .05, .55, .95) infinite; }

/* 骨架占位条 */
.sk { display: inline-block; height: 11px; border-radius: 4px; vertical-align: middle;
  background: linear-gradient(90deg, #edf1f7 25%, #e0e6f1 37%, #edf1f7 63%);
  background-size: 400% 100%; animation: skShine 1.25s ease infinite; }
.sk-row > td { padding-top: 15px; padding-bottom: 15px; }
.sk-row:hover { background: transparent; }
.sk-block { border-radius: 10px; background: linear-gradient(90deg, #edf1f7 25%, #e0e6f1 37%, #edf1f7 63%);
  background-size: 400% 100%; animation: skShine 1.25s ease infinite; }

/* 表格容器加载态：顶部细进度条 */
.table-wrap.is-loading { position: relative; }
.table-wrap.is-loading::before { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: barSlide .85s linear infinite; }

/* 行入场：逐行上浮淡入 */
tr.row-in { animation: rowIn .26s cubic-bezier(.22, .61, .36, 1) both; }
/* 视图切换：整块淡入 */
#view.fade > * { animation: viewIn .22s ease both; }

@keyframes nprogRun { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes skShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes barSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* 无障碍：跟随系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  .nprog::after, .sk, .sk-block, .table-wrap.is-loading::before { animation: none; }
  tr.row-in, #view.fade > * { animation: none; }
}

/* ===== 侧栏：说明图标（? 气泡）与关注配额括号 ===== */
.mi-help { display: inline-block; width: 14px; height: 14px; line-height: 14px; margin-left: 6px;
  border-radius: 50%; background: #38a3f1; color: #fff; font-size: 10px; font-style: normal;
  text-align: center; cursor: help; vertical-align: middle; font-weight: 700; }
.mi-quota { margin-left: 4px; color: #94a3b8; font-size: 12px; }

/* ===== Temu 经营数据（对齐原站 nav-time + 转置表格） ===== */
.biz-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.biz-day { display: inline-block; padding: 4px 14px; border: 1px solid var(--line, #e5e7eb);
  border-radius: 4px; color: var(--muted, #6b7280); text-decoration: none; font-size: 13px; cursor: pointer; }
.biz-day.active { background: #50b3f5; border-color: #50b3f5; color: #fff; }
.biz-range { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.biz-range input { border: 1px solid var(--line, #e5e7eb); border-radius: 4px; padding: 3px 6px;
  font-size: 12px; color: var(--text, #1f2329); background: #fff; }
.biz-range em { font-style: normal; color: var(--muted, #9ca3af); }
.biz-chart { margin: 8px 0 4px; }
.biz-wrap { margin-top: 14px; }
.biz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.biz-table th, .biz-table td { border: 1px solid var(--line, #e5e7eb); padding: 7px 10px; text-align: center; font-weight: normal; }
.biz-table thead th { background: rgba(127,127,127,.06); white-space: nowrap; }
.biz-table tbody th { text-align: left; white-space: nowrap; background: rgba(127,127,127,.04); }
.biz-corner { position: relative; min-width: 92px; height: 34px; padding: 0 !important; }
.biz-corner .biz-name { position: absolute; left: 10px; top: 4px; }
.biz-corner .biz-time { position: absolute; right: 10px; bottom: 4px; }

/* ================= 企业中心（子账号 / 组织架构 / 平台 / 店铺） ================= */
/* 顶部提示条：对齐原站 childaccount 的绿色 alert */
.ent-tip { background: #f0f9eb; border: 1px solid #d7efc2; color: #4b7a2b; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.ent-tip b { color: #2f7a20; font-weight: 600; margin: 0 2px; }

/* 表格：12 列，紧凑、可横向滚动 */
.ent-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ent-table thead th { background: #f7f8fa; color: #4b5563; font-weight: 600; text-align: left;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ent-table tbody td { padding: 8px 10px; border-bottom: 1px solid #f1f3f6; color: var(--text); vertical-align: middle; }
.ent-table tbody tr:hover td { background: #fafbfd; }
.ent-table .ent-ck { width: 34px; text-align: center; }
.ent-table .ent-ops { white-space: nowrap; }
.ent-table .ent-acc { color: #2563eb; }
.ent-ell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-on { color: #16a34a; }
.ent-off { color: #dc2626; }

/* 行内小按钮（对齐原站 btn-primary / btn-success / btn-warning 三色） */
.ent-btn { height: 24px; padding: 0 9px; font-size: 12px; line-height: 22px; border-radius: 4px; cursor: pointer;
  border: 1px solid #cbd5e1; background: #fff; color: #475569; margin-right: 4px; }
.ent-btn:hover { border-color: var(--primary); color: var(--primary); }
.ent-btn.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.ent-btn.ok:hover { background: #15803d; color: #fff; }
.ent-btn.warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.ent-btn.warn:hover { background: #d97706; color: #fff; }

/* 批量操作条 */
.ent-batch { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ent-batch .btn.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.ent-batch .btn.ok:hover { background: #15803d; color: #fff; }
.ent-batch .btn.warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.ent-batch .btn.warn:hover { background: #d97706; color: #fff; }
.ent-batch-tip { font-size: 12px; color: var(--muted); }

/* 弹窗表单 */
.ent-lb { display: inline-block; width: 76px; flex: 0 0 76px; font-size: 13px; color: #4b5563; }
.ent-req { color: #dc2626; font-style: normal; }
.modal-box .f-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ent-modal-foot { justify-content: flex-end; margin-top: 16px; margin-bottom: 0 !important; }
.ent-check-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; background: #fcfcfd; }
.ent-check { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 2px; cursor: pointer; }
.ent-check.disabled { opacity: .55; cursor: not-allowed; }
.ent-check .ent-acc { color: var(--muted); font-size: 12px; }
.ent-taken { font-size: 11px; color: #dc2626; margin-left: 6px; }
.ent-delp { font-size: 13px; color: #4b5563; margin-bottom: 4px; }
/* 子账号 12 列：宽表横向滚动 + 操作列吸附右侧（避免按钮被裁） */
.ent-table.wide { min-width: 1280px; }
.ent-table th.ent-ops, .ent-table td.ent-ops { position: sticky; right: 0; background: #fff;
  box-shadow: -8px 0 10px -10px rgba(15, 23, 42, .35); z-index: 2; }
.ent-table thead th.ent-ops { background: #f7f8fa; }
.ent-table tbody tr:hover td.ent-ops { background: #fafbfd; }
.ent-table.wide + .pager, .ent-table + .pager { margin-top: 14px; }
.ent-table .ent-nowrap { white-space: nowrap; }

/* 企业子账号标记（主账号与子账号账号名相近，标出来避免混淆） */
.ubox .umeta .uchild { font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 4px;
  background: #eef2ff; color: #4338ca; border: 1px solid #dfe3ff; font-style: normal; }

/* 登录弹窗顶部：改用站点 LOGO（牛头标志）+ 品类说明 */
.auth-logo .alogo-img { width: 46px; height: 46px; object-fit: contain; display: block; flex: 0 0 46px; }
.auth-logo b { letter-spacing: .5px; }
.auth-logo small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }

/* ============ 会员中心（总览 / 权益 / 会员+积分选购） ============ */
.mc-hero { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #312e81, #4c1d95 55%, #6d28d9); color: #fff;
  border-radius: 12px; padding: 20px 22px; }
.mc-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mc-avatar { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex: 0 0 50px; }
.mc-idname { min-width: 0; }
.mc-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-name .gr-badge { background: rgba(255,255,255,.22); color: #fff; }
.mc-sub { font-size: 12px; opacity: .82; margin-top: 3px; }
/* hero 内的「修改账号资料」按钮（深紫底上用半透明白描边） */
.mc-edit { flex: 0 0 auto; margin-left: 8px; height: 30px; padding: 0 13px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; line-height: 28px; white-space: nowrap; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.46);
  transition: background .16s, border-color .16s; }
.mc-edit:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.8); }
.mc-edit:active { transform: translateY(1px); }
@media (max-width: 620px) { .mc-edit { margin-left: 0; } }
.mc-kpis { display: flex; gap: 30px; flex-wrap: wrap; }
.mc-kpi { font-size: 12px; opacity: .88; }
.mc-kpi span { display: block; }
.mc-kpi b { display: block; font-size: 20px; line-height: 1.35; margin-top: 2px; }
.mc-kpi small { display: block; font-size: 11.5px; opacity: .82; }
.mc-kpi .mc-warn { color: #fde68a; font-weight: 600; opacity: 1; }
.mc-kpi .mc-bad { color: #fca5a5; }

/* 权益卡片：宽屏 2×2，每张卡留足宽度，长标题不折行 */
.bn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .bn-grid { grid-template-columns: 1fr; } }
.bn-card { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 14px 14px 14px; position: relative; }
.bn-card.on { border-color: #c7d2fe; background: linear-gradient(180deg, #f8faff, #fff); }
.bn-ic { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 36px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed); }
.bn-ic.off { background: #cbd5e1; }
.bn-txt { flex: 1 1 auto; min-width: 0; }
.bn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bn-head b { font-size: 13.5px; line-height: 1.4; }
.bn-txt p { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.bn-tag { flex: 0 0 auto; margin-top: 1px; font-size: 11px; color: #15803d; background: #dcfce7;
  border-radius: 8px; padding: 1px 7px; white-space: nowrap; }
.bn-tag.off { color: var(--muted); background: #f1f5f9; }

/* 选购 Tab（会员时长 / 积分包）：提示条 + 明显可点的切换控件，沿用全站红色系 */
.shop-title { align-items: center; flex-wrap: wrap; }
.shop-hint { display: inline-block;
  font-size: 13px; font-weight: 600; color: #b3351f; line-height: 1.55;
  background: linear-gradient(90deg, rgba(255,81,64,.14), rgba(255,81,64,.04));
  border: 1px solid rgba(255,81,64,.34); border-radius: 8px; padding: 5px 11px; }
.shop-hint b { color: #d0341f; font-weight: 800; }
.shop-tabs { display: inline-flex; gap: 6px; background: #f1f5f9; border: 1px solid #dbe2ea;
  border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.shop-tab { border: 1px solid #e2e8f0; background: #fff; padding: 8px 22px; border-radius: 7px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #475569; font-family: inherit; transition: background .16s, color .16s, border-color .16s; }
.shop-tab:hover { color: #d0341f; border-color: rgba(255,81,64,.45); background: #fff5f3; }
.shop-tab.on { background: linear-gradient(135deg, #ff5140, #e6362a); color: #fff; font-weight: 700;
  border-color: transparent; box-shadow: 0 2px 8px rgba(230,54,42,.28); }
.shop-tab.on:hover { color: #fff; background: linear-gradient(135deg, #ff6a58, #e6362a); border-color: transparent; }
.shop-pane.hide { display: none; }

/* 账户设置（折叠区） */
.acct-set { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.acct-set summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.acct-set summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.as-body { margin-top: 14px; }
.as-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.as-row span { color: var(--muted); width: 70px; flex: 0 0 70px; }
.as-row i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.as-grid label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.as-sep { height: 1px; background: var(--line); margin: 18px 0; }

/* ===== AI制作：产品图推送到 AI 影像工坊素材箱 ===== */
.btn.ai-batch { height: 30px; padding: 0 15px; font-weight: 700; color: #fff; border-color: #f0592b;
  background: linear-gradient(135deg, #ff9346, #f0592b); box-shadow: 0 2px 6px rgba(240, 89, 43, .22); }
.btn.ai-batch:hover { color: #fff; border-color: #f0592b; filter: brightness(1.06); }
.btn.ai-batch:disabled { opacity: .72; cursor: wait; filter: none; }
/* 结果条左侧：AI制作 紧跟总数，再是全选 / 全不选 / 已选计数 */
.table-head .btn.ai-batch { margin-right: 10px; flex-shrink: 0; }
/* 导出当前列表：紧挨在 AI制作 右边，次要动作用描边样式，不抢主按钮 */
.table-head .btn.export-batch { height: 30px; padding: 0 14px; margin-right: 10px; flex-shrink: 0; font-weight: 700; }
.table-head .btn.export-batch:disabled { opacity: .6; cursor: not-allowed; }
.ck-ops { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-size: 12px; white-space: nowrap; }
.ck-ops a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ck-ops a:hover { text-decoration: underline; }
.ck-ops i { width: 1px; height: 12px; background: var(--line); }
.ck-ops em { font-style: normal; color: var(--muted); }
/* 表格最左侧的勾选列 */
th.ck-col, td.ck-col { width: 34px; min-width: 34px; padding-left: 6px !important; padding-right: 6px !important;
  text-align: center !important; }
th.ck-col input, td.ck-col input { width: 14px; height: 14px; margin: 0; cursor: pointer;
  accent-color: var(--primary); vertical-align: middle; }
/* 单品：常驻在缩略图下方的小胶囊，不遮挡图片、不改变图片列宽 */
td.img.ai-cell { white-space: nowrap; }
.ai-one { display: block; width: 44px; height: 20px; margin: 5px 0 0; padding: 0 2px;
  border: 1px solid #ffc09e; border-radius: 5px; cursor: pointer; overflow: hidden;
  background: #fff6f1; color: #e4551f; font-size: 10px; font-weight: 700;
  line-height: 18px; text-align: center; white-space: nowrap; letter-spacing: -.2px;
  transition: background .15s, color .15s, border-color .15s; }
.ai-one:hover, .ai-one:focus-visible { color: #fff; border-color: #f0592b;
  background: linear-gradient(135deg, #ff9346, #f0592b); }
.ai-one:disabled { cursor: wait; opacity: .78; }
/* 单品：AI制作 下方的侵权查询小胶囊，点击把首图+标题带到侵权查询 */
.qz-one { display: block; width: 44px; height: 20px; margin: 3px 0 0; padding: 0 2px;
  border: 1px solid #bcd4ff; border-radius: 5px; cursor: pointer; overflow: hidden;
  background: #f2f7ff; color: #2563eb; font-size: 10px; font-weight: 700;
  line-height: 18px; text-align: center; white-space: nowrap; letter-spacing: -.2px;
  transition: background .15s, color .15s, border-color .15s; }
.qz-one:hover, .qz-one:focus-visible { color: #fff; border-color: #2563eb;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
/* AI制作：推送进度与结果卡片（留在当前页，不再开 about:blank 白屏中间页） */
.ai-push { position: fixed; right: 22px; bottom: 22px; z-index: 9998; width: 330px;
  max-width: calc(100vw - 32px); padding: 14px 16px 12px; border-radius: 12px;
  border: 1px solid var(--line, #e5e7eb); background: #fff; font-size: 13px; color: var(--text);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .16); }
.ai-push-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-push-hd b { font-size: 14px; color: #e4551f; }
.ai-push-x { border: 0; background: none; font-size: 20px; line-height: 1;
  color: var(--muted); cursor: pointer; }
.ai-push-msg { min-height: 40px; line-height: 1.65; word-break: break-word; }
.ai-push-bar { height: 4px; margin: 8px 0 10px; border-radius: 999px; background: #f1f3f6; overflow: hidden; }
.ai-push-bar.hide { display: none; }
.ai-push-bar i { display: block; height: 100%; width: 2%; border-radius: 999px;
  background: linear-gradient(90deg, #ff9a4d, #f0592b); transition: width .2s ease; }
.ai-push-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-push-op { display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 6px;
  background: #fff; font-size: 12px; color: var(--text); text-decoration: none; cursor: pointer; }
.ai-push-op:hover { color: #e4551f; border-color: #f0592b; }
.ai-push-op.primary { color: #fff; font-weight: 600; border-color: transparent;
  background: linear-gradient(135deg, #ff9346, #f0592b); }
.ai-push-op.primary:hover { color: #fff; filter: brightness(1.05); }

/* ============ 1688 智能找货（产品详情内置 tab） ============
 * 视觉参考 1688 搜索结果页：白底卡片流 + 橙色价格/主按钮；
 * 布局沿用工作台浅色风格，不整页改成 1688 的橙色调。
 */
.src-wrap { --src-o: #ff6a00; --src-o-d: #d95400; }

.src-hero { display: flex; gap: 16px; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; }
.src-shot { position: relative; width: 152px; height: 152px; flex: 0 0 auto;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f8fafc; }
.src-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.src-shot.busy img { opacity: .45; }
.src-shot > span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 11px; color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 0; }
.src-shot-ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
.src-intro { flex: 1; min-width: 0; }
.src-h { font-size: 16px; font-weight: 600; }
.src-h b { color: var(--src-o); font-size: 18px; margin: 0 1px; }
.src-d { color: var(--muted); font-size: 12.5px; line-height: 1.75; margin: 6px 0 10px; }

/* 图集：默认首图选中，点任意一张即用该图重新找货 */
.src-pick { margin: 0 0 6px; }
.src-pick-h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px;
  font-size: 12px; font-weight: 600; color: #5b6472; }
.src-pick-h em { font-style: normal; font-weight: 400; font-size: 11.5px; color: #9aa3b2; }
.src-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.src-thumbs::-webkit-scrollbar { height: 6px; }
.src-thumbs::-webkit-scrollbar-thumb { background: #dfe4ec; border-radius: 3px; }
.src-thumb { position: relative; flex: 0 0 auto; width: 66px; height: 66px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f8fafc;
  cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.src-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.src-thumb:hover { border-color: #ffc59a; }
.src-thumb.on { border-color: var(--src-o); box-shadow: 0 0 0 2px rgba(255, 106, 0, .3); }
/* 选中态再加一圈内描边，深色/浅色产品图都能一眼看出当前用的是哪张 */
.src-thumb.on::after { content: ""; position: absolute; inset: 0; border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(255, 106, 0, .95); pointer-events: none; }
.src-thumb-flag { position: absolute; left: 0; top: 0; font-style: normal; font-size: 10px;
  line-height: 1.5; color: #fff; background: rgba(255, 90, 0, .92); padding: 0 5px; border-radius: 0 0 6px 0; }
.src-noimg { font-size: 12px; color: var(--muted); padding: 14px; text-align: center;
  border: 1px dashed var(--line); border-radius: 8px; background: #fbfcfe; }
.src-hints { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: #9aa3b2; }
.src-hints span::before { content: "·"; margin-right: 4px; }

.src-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 10px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.src-bar-lab { font-size: 12px; color: var(--muted); }
.src-bar-sep { width: 1px; height: 16px; background: var(--line); }
.src-seg { display: flex; gap: 2px; }
.src-seg a { padding: 5px 11px; border-radius: 6px; font-size: 12.5px; color: #5b6472;
  cursor: pointer; border: 1px solid transparent; user-select: none; }
.src-seg a:hover { color: var(--src-o); }
.src-seg a.on { color: var(--src-o-d); background: rgba(255, 106, 0, .09);
  border-color: rgba(255, 106, 0, .45); font-weight: 600; }
.src-price { display: flex; align-items: center; gap: 6px; }
.src-price input { width: 78px; height: 28px; padding: 0 8px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px; outline: none; }
.src-price input:focus { border-color: var(--src-o); }
.src-price em { color: var(--muted); font-style: normal; }

.src-state { font-size: 12.5px; color: var(--muted); padding: 2px 2px 10px; }
.src-state b { color: var(--text); }
.src-state.loading { color: #b26a00; }
.src-state.error { color: #d93025; line-height: 1.7; }
.src-state .src-hint { display: inline-block; margin-top: 4px; color: #9aa3b2; font-size: 11.5px; }

.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.src-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.src-card:hover { transform: translateY(-2px); border-color: #ffcb9e; box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.src-pic { position: relative; aspect-ratio: 1 / 1; background: #f6f8fb; }
.src-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.src-pic-ph { height: 100%; background: #eef1f6; }
.src-flag { position: absolute; left: 0; top: 8px; padding: 2px 7px; font-size: 10.5px; color: #fff;
  background: rgba(255, 90, 0, .92); border-radius: 0 6px 6px 0; }
.src-info { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.src-t { font-size: 12.5px; line-height: 1.5; height: 3em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.src-priceline { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.src-priceline b { color: #ff4d0d; font-size: 17px; font-weight: 800; }
.src-priceline b.src-noprice { font-size: 13px; color: var(--muted); font-weight: 600; }
.src-consign { font-size: 11px; color: #7c8698; }
.src-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: #7c8698; }
.src-meta b { color: #3f4756; font-weight: 600; }
.src-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.src-tags i { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  color: #7c8698; background: #f3f5f9; border: 1px solid #e8ecf3; }
.src-tags i.src-t-one { color: #0b7a45; background: #eafaf1; border-color: #c6efdb; }
.src-tags i.src-t-jx { color: #b26a00; background: #fff6e6; border-color: #ffe2b0; }
.src-tags i.src-t-sel { color: #1d4ed8; background: #eef3ff; border-color: #d6e2ff; }
.src-shop { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 11px; color: #9aa3b2; border-top: 1px dashed #eef1f6; padding-top: 6px; margin-top: 2px; }
.src-open { color: var(--src-o); font-weight: 600; }

.src-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 0 4px; }
.src-page { font-size: 12.5px; color: var(--muted); }
.src-foot { text-align: center; font-size: 11px; color: #aab2c0; padding: 10px 0 2px; }

@media (max-width: 760px) {
  .src-hero { flex-direction: column; padding: 14px; }
  .src-shot { width: 108px; height: 108px; }
  .src-thumb { width: 58px; height: 58px; }
  .src-pick-h { flex-direction: column; gap: 2px; }
  .src-bar-sep { display: none; }
  /* min(150px, 100%) 保证极窄容器下卡片不会撑破父级 */
  .src-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
}

/* ============ 列设置弹窗（列自定义：拖拽排序 + 显隐） ============ */
.col-set-box { max-width: 440px; }
.col-set-box h3 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.col-set-box h3 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.col-set-list { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; margin: 6px 0 14px; background: #fff; }
.col-set-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; background: #fff; }
.col-set-row + .col-set-row { margin-top: 2px; }
.col-set-row:hover { background: #f8faff; }
.col-set-row.dragging { opacity: .4; }
.col-set-row.locked { background: #fafbfc; color: var(--muted); }
.cs-grip { cursor: grab; color: var(--muted); width: 16px; text-align: center; user-select: none; flex: none; }
.col-set-row.locked .cs-grip { cursor: default; }
.cs-mv { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 5px; cursor: pointer; color: var(--text); font-size: 13px; line-height: 1; flex: none; }
.cs-mv:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.cs-mv:disabled { opacity: .35; cursor: not-allowed; }
.cs-chk { display: flex; align-items: center; gap: 7px; flex: 1; cursor: pointer; font-size: 13px; }
.cs-chk input { width: 15px; height: 15px; accent-color: var(--primary); }
.cs-fixed { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; flex: none; }
.col-set-foot { display: flex; align-items: center; gap: 8px; }
.table-head button#btn-col-set, .table-head .btn#btn-col-set { flex-shrink: 0; }

/* ============ 商品侵权查询 ============ */
.q-wrap { display: flex; flex-direction: column; gap: 16px; }
.q-muted { color: var(--muted); font-weight: 400; font-size: 12px; }

/* 顶部横幅 */
.q-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eef4ff, #f7f9ff); border: 1px solid #dbe6ff;
  border-radius: 14px; padding: 18px 20px; }
.q-hero-txt { flex: 1 1 360px; }
.q-hero-txt h2 { font-size: 20px; margin-bottom: 4px; }
.q-hero-txt p { color: #4b5563; font-size: 13px; }
.q-hero-side { display: flex; gap: 10px; }
.q-side-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; text-align: center; min-width: 96px; }
.q-side-box span { display: block; color: var(--muted); font-size: 11.5px; }
.q-side-box b { font-size: 20px; color: var(--primary); }
.q-side-box small { color: var(--muted); font-size: 11px; margin-left: 2px; }

/* 卡片 */
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.q-card-hd { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 14px; flex-wrap: wrap; }
.q-card-hd .q-refresh { margin-left: auto; }

/* 表单 */
.q-form { display: flex; flex-direction: column; gap: 14px; }
.q-row { display: flex; gap: 12px; align-items: flex-start; }
.q-lb { width: 88px; flex: none; padding-top: 8px; color: #4b5563; font-size: 13px; text-align: right; }
.q-lb i { color: #ef4444; font-style: normal; }
.q-row > .f-input, .q-row > .q-line, .q-row > .q-cc-wrap, .q-row > .q-imgs, .q-row > .q-check { flex: 1; min-width: 0; }
.q-line { display: flex; gap: 8px; }
.q-textarea { resize: vertical; min-height: 70px; font-family: inherit; }

/* 国家多选 */
.q-cc-wrap { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.q-cc-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.q-cc-bar .q-hint { font-size: 12px; color: var(--muted); }
.q-link { border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 12.5px; padding: 0; }
.q-link:hover { text-decoration: underline; }
.q-cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; max-height: 208px; overflow: auto; }
.q-cc { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.q-cc:hover { border-color: #c7d2fe; background: #f8faff; }
.q-cc input { accent-color: var(--primary); }
.q-cc-code { font-weight: 600; color: #374151; }
.q-cc-name { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-cc input:checked ~ .q-cc-code { color: var(--primary); }

/* 图片 */
.q-imgs { display: flex; flex-direction: column; gap: 8px; }
.q-img-list { display: flex; flex-wrap: wrap; gap: 8px; }
.q-img { position: relative; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f8fafc; }
.q-img img { width: 100%; height: 100%; object-fit: cover; }
.q-img.up::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.q-img-up { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 10px; color: var(--primary); }
.q-img-x { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: rgba(17,24,39,.6); color: #fff; cursor: pointer; line-height: 1; font-size: 13px; }
.q-img-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-upload { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px dashed #93b4ff; color: var(--primary);
  border-radius: 8px; cursor: pointer; font-size: 13px; background: #f5f8ff; white-space: nowrap; }
.q-upload:hover { background: #eef4ff; }
.q-or { color: var(--muted); font-size: 12px; }
.q-hint { color: var(--muted); font-size: 12px; }

/* 勾选 / 提交 */
.q-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.q-check input { accent-color: var(--primary); }
.q-warn { color: #b45309; font-size: 12px; }
.q-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-top: 1px dashed var(--line); padding-top: 14px; margin-left: 100px; }
.q-costline { color: var(--muted); font-size: 13px; }
.q-costline b { color: var(--primary); }
.btn.primary.q-submit { padding: 9px 28px; font-size: 15px; }

/* 查询记录 */
.q-jobs { overflow-x: auto; }
.q-jt { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-jt th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.q-jt td { padding: 10px; border-bottom: 1px solid #f1f3f6; vertical-align: middle; }
.q-jt tr:hover td { background: #fafbff; }
.q-cell-title { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-st { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; }
.q-st.wait { background: #f1f5f9; color: #64748b; }
.q-st.run { background: #eef4ff; color: var(--primary); }
.q-st.ok { background: #ecfdf5; color: #059669; }
.q-st.bad { background: #fef2f2; color: #dc2626; }
.q-st.mute { background: #f1f5f9; color: #94a3b8; }
.q-prog { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.q-mini-err { color: #dc2626; font-size: 12px; cursor: help; }

/* 风险标签 */
.q-risk { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.q-risk.high, .q-risk.bad { background: #fef2f2; color: #dc2626; }
.q-risk.medium, .q-risk.warn { background: #fffbeb; color: #d97706; }
.q-risk.low, .q-risk.ok { background: #ecfdf5; color: #059669; }
.q-risk.info { background: #eff6ff; color: #2563eb; }
.q-risk.mute { background: #f1f5f9; color: #94a3b8; }

/* 报告页 */
.q-back { align-self: flex-start; }
.q-rep-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-radius: 14px; padding: 20px 22px; color: #fff; }
.q-rep-hero.bad { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.q-rep-hero.warn { background: linear-gradient(135deg, #f59e0b, #b45309); }
.q-rep-hero.ok { background: linear-gradient(135deg, #10b981, #047857); }
.q-rep-main { flex: 1 1 320px; }
.q-rep-tag { display: inline-block; background: rgba(255,255,255,.22); padding: 2px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.q-rep-title { font-size: 18px; font-weight: 700; margin: 10px 0 6px; }
.q-rep-sum { font-size: 13.5px; opacity: .95; }
.q-rep-stats { display: flex; gap: 10px; }
.q-stat { background: rgba(255,255,255,.16); border-radius: 10px; padding: 10px 18px; text-align: center; min-width: 84px; }
.q-stat b { display: block; font-size: 24px; }
.q-stat span { font-size: 12px; opacity: .92; }

/* 重大风险 */
.q-alert { border: 1px solid #fecaca; background: #fff5f5; border-radius: 12px; padding: 14px 16px; }
.q-alert-hd { color: #b91c1c; font-weight: 700; margin-bottom: 10px; }
.q-alert-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #fee2e2; }
.q-alert-row:first-child { border-top: 0; }
.q-alert-cc { display: flex; align-items: baseline; gap: 6px; min-width: 120px; }
.q-alert-cc b { color: #b91c1c; }
.q-alert-cc span { color: var(--muted); font-size: 12px; }
.q-alert-sm { flex: 1; color: #7f1d1d; font-size: 13px; }

/* 建议列表 */
.q-advice { margin: 0; padding-left: 20px; color: #374151; font-size: 13.5px; }
.q-advice li { margin: 5px 0; line-height: 1.6; }
.q-advice.danger li b { color: #b91c1c; }

/* 逐国明细 */
.q-cc-list { display: flex; flex-direction: column; gap: 8px; }
.q-cc-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 10px 14px; }
.q-cc-item.high { border-left-color: #dc2626; background: #fffafa; }
.q-cc-item.medium { border-left-color: #d97706; background: #fffdf7; }
.q-cc-item.low { border-left-color: #16a34a; }
.q-cc-item-l { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.q-cc-item-s { flex: 1; color: #4b5563; font-size: 13px; }
.q-rep-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 弹窗（单国细节）：父级 .modal-box 默认 max-width:520，这里单独放宽 */
.modal-box:has(.q-modal) { min-width: 720px; max-width: 900px; width: 900px; }
.q-modal { max-width: 100%; }
.q-modal-hd { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.q-modal-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.q-modal-x:hover { color: var(--text); }
.q-modal-body { max-height: 66vh; overflow: auto; padding-top: 12px; }
.q-cd-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.q-cd-sum { color: #374151; font-size: 13.5px; margin-bottom: 10px; }
.q-cd-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.q-cd-sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.q-cd-items { display: flex; flex-direction: column; gap: 8px; }
.q-cd-item { display: flex; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.q-cd-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid var(--line); }
.q-cd-it-b { min-width: 0; }
.q-cd-it-t { font-weight: 600; font-size: 13px; color: #1f2937; word-break: break-word; }
.q-cd-it-d { color: #4b5563; font-size: 12.5px; margin-top: 2px; word-break: break-word; }
.q-cd-it-m { color: var(--muted); font-size: 12px; margin-top: 3px; }
.empty.sm { padding: 10px; font-size: 12.5px; }

/* 检测中占位 */
.q-pending { text-align: center; padding: 30px 10px; }
.q-pending-st { display: inline-block; padding: 4px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.q-pending-st.wait { background: #f1f5f9; color: #64748b; }
.q-pending-st.run { background: #eef4ff; color: var(--primary); }
.q-pending-st.bad { background: #fef2f2; color: #dc2626; }
.q-pending-st.ok { background: #ecfdf5; color: #059669; }
.q-pending-st.mute { background: #f1f5f9; color: #94a3b8; }

@media (max-width: 640px) {
  .q-row { flex-direction: column; }
  .q-lb { width: auto; text-align: left; padding-top: 0; }
  .q-actions { margin-left: 0; }
  .q-rep-stats { width: 100%; }
  .q-stat { flex: 1; }
  .q-cc-item { flex-wrap: wrap; }
  .q-cc-item-l { min-width: 0; }
  .modal-box:has(.q-modal) { min-width: 0; width: 94vw; max-width: 94vw; }
}
.q-cd-it-a { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--primary); text-decoration: none; }
.q-cd-it-a:hover { text-decoration: underline; }
.q-cd-it-d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
