:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e8eaed;
  --text: #1f2329;
  --text-2: #6b7280;
  --primary: #e02e24;
  --primary-2: #ff4a2d;
  --green: #16a34a;
  --orange: #f59e0b;
  --blue: #2563eb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05);
  --sidebar-w: 220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}

a { color: var(--primary); text-decoration: none; }

.app { display: flex; height: 100vh; overflow: hidden; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: #1f2329;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-size: 16px; font-weight: 700; }
.brand-sub { font-size: 11px; color: #9aa0ab; margin-top: 2px; }

.nav { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  color: #c4c9d4; cursor: pointer; user-select: none;
  transition: background .15s, color .15s;
  font-size: 14px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 600; }
.nav-icon { font-size: 16px; }

.sidebar-footer { padding: 16px 18px; }
.mode-badge {
  text-align: center; padding: 8px; border-radius: 8px;
  background: rgba(255,255,255,.08); font-size: 12px; color: #c4c9d4;
}
.mode-badge.real { background: rgba(22,163,74,.25); color: #86efac; }
.mode-badge.demo { background: rgba(245,158,11,.2); color: #fcd34d; }

/* ---------- 主区域 ---------- */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 58px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-clock { color: var(--text-2); font-size: 13px; }

.content { flex: 1; overflow-y: auto; padding: 22px 24px; }

.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { width: 100%; height: 320px; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.kpi-label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.kpi-unit { font-size: 13px; color: var(--text-2); font-weight: 400; margin-left: 2px; }
.kpi-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.kpi-value.red { color: var(--primary); }
.kpi-value.green { color: var(--green); }
.kpi-value.blue { color: var(--blue); }
.kpi-value.orange { color: var(--orange); }

/* ---------- 按钮/输入 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent; border-radius: 9px; padding: 9px 16px;
  font-size: 14px; cursor: pointer; transition: all .15s; background: #fff;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { color: var(--primary); border-color: #f3c0bc; }
.btn-danger:hover { background: #fdecea; }

.input {
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
  outline: none; transition: border .15s;
}
.input:focus { border-color: var(--primary); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.toolbar-left, .toolbar-right { display: flex; gap: 10px; align-items: center; }

/* ---------- 店铺卡片 ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.store-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.store-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.store-name { font-size: 16px; font-weight: 700; }
.store-mall { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.store-badge { font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.store-badge.demo { background: #fef3c7; color: #b45309; }
.store-badge.real { background: #dcfce7; color: #15803d; }
.store-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.store-metric .m-label { font-size: 12px; color: var(--text-2); }
.store-metric .m-value { font-size: 17px; font-weight: 700; margin-top: 2px; }
.store-actions { display: flex; gap: 8px; }

/* ---------- 分组 ---------- */
.group-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.group-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 20px; font-size: 13px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: all .15s; user-select: none;
}
.group-chip:hover { border-color: var(--primary); }
.group-chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; font-weight: 600; }
.group-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.group-chip.active .group-dot { background: #fff !important; }
.group-count { font-size: 11px; opacity: .75; }
.group-del {
  font-size: 14px; line-height: 1; width: 16px; height: 16px;
  display: none; align-items: center; justify-content: center; border-radius: 50%;
  color: #fff; background: rgba(0,0,0,.25); margin-left: 2px;
}
.group-chip:hover .group-del { display: inline-flex; }
.group-del:hover { background: rgba(0,0,0,.5); }
.group-add {
  border: 1px dashed var(--border); background: transparent; color: var(--text-2);
  padding: 7px 12px; border-radius: 20px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.group-add:hover { color: var(--primary); border-color: var(--primary); }

/* 订单分组栏内的时间筛选 */
.group-time-sep { width: 1px; height: 20px; background: var(--border); margin: 0 2px; flex-shrink: 0; }
.group-time-bar { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.gt-label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.group-chip.gt { font-size: 12px; padding: 5px 11px; }
/* 自定义时间段筛选 */
.gt-custom { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.gt-custom .gt-date { width: 138px; height: 28px; font-size: 12px; padding: 0 8px; }
.gt-sep { font-size: 12px; color: var(--text-2); white-space: nowrap; }

.store-group { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.store-group-label { font-size: 12px; color: var(--text-2); }
.store-group-select {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text); outline: none;
}
.store-group-select:focus { border-color: var(--primary); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--text-2); font-weight: 600; background: #fafbfc; }
.table tbody tr:hover { background: #fafbfc; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-orange { background: #fef3c7; color: #b45309; }
.tag-red { background: #fdecea; color: #b91c1c; }
.tag-gray { background: #f0f1f3; color: #6b7280; }

/* 排名表格 */
.table-rank td { white-space: nowrap; }
.rank-cell { width: 60px; text-align: center; }
.rank-medal { font-size: 20px; line-height: 1; }
.rank-num { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #f0f1f3; color: var(--text-2); font-size: 12px; font-weight: 700; }
.roi-good { color: var(--primary); }
.roi-bad { color: var(--green); }

/* ---------- 设置 ---------- */
.settings-card { max-width: 720px; }
.form { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; align-items: center; gap: 14px; }
.field > span { width: 180px; flex-shrink: 0; color: var(--text-2); font-size: 13px; }
.field .input { flex: 1; }
.hint { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.callback-info { margin-top: 14px; padding: 12px; background: #f0f7ff; border: 1px solid #cfe3ff; border-radius: 9px; font-size: 13px; color: #1e40af; }
.help-list { padding-left: 20px; font-size: 13px; color: var(--text-2); line-height: 2; }
.help-list b { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: #1f2329; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; z-index: 999; transition: transform .3s ease; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  max-width: 80%;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* 空状态 */
.empty { text-align: center; color: var(--text-2); padding: 40px 0; font-size: 14px; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { width: 64px; }
  .brand-text, .nav-item { font-size: 0; }
  .nav-icon { font-size: 20px; }
}

/* ---------- 商品管理（商家编码） ---------- */
.mp-toggle { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 4px; cursor: pointer; color: #6b7280; user-select: none; transition: all .15s; }
.mp-toggle:hover { background: #f0f1f3; color: var(--primary); }
.mp-notes { font-size: 11px; color: #9aa0ab; margin-top: 2px; }
.mp-expand-box { padding: 12px 8px 4px; }
.mp-expand-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.table-mp td, .table-mp th { vertical-align: middle; }
.table-sku { background: transparent; }
.table-sku th { font-size: 12px; background: transparent; }
.table-sku td { font-size: 12px; padding: 8px 10px; }
.sku-actions { white-space: nowrap; text-align: right; }
.sku-edit-actions { white-space: nowrap; text-align: right; }
.sku-edit-row { background: #fff8e7; }
.sku-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; background: #eef2ff; color: #4338ca; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.sku-input-spec, .sku-input-code, .sku-input-pgid, .sku-input-stock, .sku-input-price, .sku-input-cost, .sku-input-shipping,
.sku-new-spec, .sku-new-code, .sku-new-pgid, .sku-new-stock, .sku-new-price, .sku-new-cost, .sku-new-shipping,
.sku-input-store, .sku-new-store { width: 100%; min-width: 60px; padding: 5px 8px; font-size: 12px; }

/* ---------- 运营管理 ---------- */
.tag-blue { background: #e0edff; color: #1d4ed8; }
.ops-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow);
}
.order-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-right: 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.filter-item label { font-size: 12px; color: var(--text-2); }
.filter-item .input { width: 100%; box-sizing: border-box; }
.filter-actions { flex-direction: row; align-items: flex-end; gap: 8px; }
.filter-actions .btn { flex: 1; white-space: nowrap; }
.filter-grid.collapsed .filter-item:not(.filter-actions) { display: none; }
.ops-tab {
  position: relative; border: none; background: transparent; cursor: pointer; font-family: inherit;
  padding: 9px 16px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: all .15s;
}
.ops-tab:hover { background: #f5f6f8; color: var(--text); }
.ops-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 600; }
.ops-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  background: #fff; color: var(--primary); border-radius: 9px; font-size: 11px; font-weight: 700;
  margin-left: 5px; text-align: center;
}
.ops-panel { display: none; }
.ops-panel.active { display: block; animation: fade .25s ease; }

.ops-suggest-list { display: flex; flex-direction: column; gap: 12px; }
.suggest-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.suggest-item { background: #fafbfc; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; }
.suggest-item:last-child { margin-bottom: 0; }
.suggest-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.suggest-item-detail { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ---------- 售后分析 ---------- */
.as-toggle {
  display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 4px; cursor: pointer; color: #6b7280; user-select: none; transition: all .15s;
  font-size: 11px; margin-right: 4px;
}
.as-toggle:hover { background: #f0f1f3; color: var(--primary); }
.as-tree-store td { background: #fafbfc; }
.as-tree-store:hover td { background: #f2f4f7; }
.as-tree-merchant td { background: #fff; }
.as-tree-merchant:hover td { background: #fafbfc; }
.as-tree-goods td { background: #fff; }
.as-tree-goods:hover td { background: #fafbfc; }
.goods-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #9aa0ab; margin-right: 4px; }

/* ---------- 原因分析（多维筛选 + 四级下钻） ---------- */
.as-filter-card { padding: 14px 16px; }
.as-filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.as-filter-row:last-child { margin-bottom: 0; }
.as-filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 140px; flex: 1; }
.as-filter-item > span { font-size: 12px; color: var(--text-2); }
.as-filter-item .input { width: 100%; }
.as-filter-actions { flex-direction: row; align-items: flex-end; justify-content: flex-end; gap: 8px; }

.as-breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; flex-wrap: wrap; }
.as-crumb { color: var(--blue); cursor: pointer; padding: 3px 8px; border-radius: 6px; }
.as-crumb:hover { background: #eef2ff; }
.as-crumb.current { color: var(--text); font-weight: 700; cursor: default; }
.as-crumb-sep { color: #c4c9d4; }

.as-link-head { display: flex; justify-content: space-between; align-items: center; }
.as-link-head-main { flex: 1; }
.as-link-meta { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.as-link-stats { display: flex; gap: 18px; }
.as-stat { text-align: center; }
.as-stat span { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.as-stat b { font-size: 18px; }
.as-warn-row { background: #fff8e7; }

/* ---------- 推广管理 ---------- */
.ad-detail-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ad-detail-modal { position: relative; background: var(--surface); border-radius: 14px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.ad-detail-close { position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; cursor: pointer; color: #6b7280; font-size: 16px; z-index: 2; }
.ad-detail-close:hover { background: #f0f1f3; color: var(--primary); }
.ad-detail-modal .as-link-head { margin-top: 6px; }

/* ---------- 账号权限管理 ---------- */
.user-switch { width: auto; min-width: 150px; font-size: 12px; }
.tag-purple { background: #f3e8ff; color: #7e22ce; }
.shop-col { width: 90px; }
.shop-check { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.shop-check input { cursor: pointer; }
.shop-checks { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.perm-group { margin-bottom: 12px; }
.perm-group-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.perm-panel { max-height: 360px; overflow-y: auto; }
.perm-check span { color: var(--text); }
.field-check { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.field-check input { width: 16px; height: 16px; cursor: pointer; }
.field-check span { font-size: 14px; }

/* 通用模态弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { width: 28px; height: 28px; line-height: 28px; text-align: center; border: none; background: transparent; border-radius: 50%; cursor: pointer; color: #6b7280; font-size: 18px; }
.modal-close:hover { background: #f0f1f3; color: var(--primary); }
.modal-body { padding: 16px 20px 20px; }

/* 调整工单模态 */
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ticket-alert-info { background: #fff8f1; border: 1px solid #fde3c4; border-radius: 10px; padding: 12px 14px; }
.ticket-alert-info .tai-name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.ticket-alert-info .tai-sub { font-size: 12px; color: #6b7280; margin-top: 4px; }
.ticket-alert-info .tai-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-alert-info .tai-metrics { margin-top: 10px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; color: #4b5563; }
.ticket-alert-info .tai-metrics b { font-size: 14px; color: #1f2329; margin-right: 2px; }
.ticket-alert-info .tai-metrics .neg { color: #dc2626; }



/* ---- 首页工作台 数据舱 + 浅色系 ---- */
.tk-shell { position: relative; border-radius: 16px; padding: 16px 18px 18px; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.9);
}
.tk-shell::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1200px 300px at 20% -10%, rgba(37,99,235,.07), transparent 60%),
              radial-gradient(800px 260px at 85% 120%, rgba(52,211,153,.05), transparent 60%);
}
.tk-shell-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; position: relative; }
.tk-shell-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #1e293b; letter-spacing: .5px; }
.tk-shell-title .hint { color: #94a3b8; }
.tk-shell-ico { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 8px; font-size: 13px; color: #2563eb;
  background: linear-gradient(135deg, #dbeafe, #eff6ff); border: 1px solid #bfdbfe; }
.tk-shell-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-shell-tools .trade-dim, .tk-shell-tools .trade-time { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tk-shell-tools .trade-dim-chip, .tk-shell-tools .trade-time-chip { padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  color: #0f172a; background: linear-gradient(180deg, #ffffff, #f1f5f9); border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.9); transition: all .15s; }
.tk-shell-tools .trade-dim-chip:hover, .tk-shell-tools .trade-time-chip:hover { background: #ffffff; border-color: #60a5fa; color: #1d4ed8; }
.tk-shell-tools .trade-dim-chip.active, .tk-shell-tools .trade-time-chip.active { color: #ffffff; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: #3b82f6;
  box-shadow: 0 2px 10px rgba(59,130,246,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.tk-shell-tools .trade-time-date { background: #fff; color: #334155; border-color: #cbd5e1; }
.tk-shell-tools .trade-time-sep { color: #94a3b8; font-size: 12px; }
.tk-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

.tk-context { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-size: 11px; color: #64748b;
  padding: 5px 10px; border-radius: 8px; background: #eff6ff; border: 1px solid #dbeafe; width: fit-content; }
.tk-ctx-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #10b981);
  box-shadow: 0 0 6px rgba(59,130,246,.5); }

.tk-card { position: relative; border-radius: 13px; padding: 14px 16px 12px; color: #1e293b; overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 12px rgba(15,23,42,.05);
}
.tk-card::before { content: ''; position: absolute; top: -36px; right: -36px; width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.09), transparent 65%); }
.tk-card::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3b82f6, rgba(59,130,246,.15)); }
.tk-card.tk-green::before { background: radial-gradient(circle, rgba(16,185,129,.09), transparent 65%); }
.tk-card.tk-green::after { background: linear-gradient(180deg, #10b981, rgba(16,185,129,.15)); }
.tk-card.tk-amber::before { background: radial-gradient(circle, rgba(245,158,11,.08), transparent 65%); }
.tk-card.tk-amber::after { background: linear-gradient(180deg, #f59e0b, rgba(245,158,11,.15)); }
.tk-card.tk-red::before { background: radial-gradient(circle, rgba(239,68,68,.08), transparent 65%); }
.tk-card.tk-red::after { background: linear-gradient(180deg, #ef4444, rgba(239,68,68,.15)); }
.tk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tk-ico { width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 7px; font-size: 12px;
  background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(37,99,235,.3); }
.tk-green .tk-ico { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 2px 6px rgba(16,185,129,.3); }
.tk-amber .tk-ico { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 2px 6px rgba(245,158,11,.3); }
.tk-red .tk-ico { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 2px 6px rgba(248,113,113,.3); }
.tk-label { font-size: 12px; color: #64748b; letter-spacing: .5px; }
.tk-val { font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: .3px;
  background: linear-gradient(180deg, #1e293b 30%, #2563eb 135%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; }
.tk-green .tk-val { background: linear-gradient(180deg, #1e293b 30%, #059669 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-amber .tk-val { background: linear-gradient(180deg, #1e293b 30%, #b45309 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-red .tk-val { background: linear-gradient(180deg, #1e293b 30%, #b91c1c 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-foot { margin-top: 9px; min-height: 20px; display: flex; align-items: center; }
.tk-diff { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; color: #475569;
  background: #f1f5f9; letter-spacing: .3px; }
.tk-diff.up { color: #fff; background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 2px 8px rgba(239,68,68,.3); }
.tk-diff.down { color: #fff; background: linear-gradient(135deg, #047857, #10b981); box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.tk-diff.flat { color: #94a3b8; background: #f1f5f9; }
.tk-sparkbox { margin-top: 9px; height: 34px; color: #3b82f6; }
.tk-spark { width: 100%; height: 34px; display: block; }

.tk-card.tk-pending { border-color: #e2e8f0; background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.tk-card.tk-pending::before { background: radial-gradient(circle, rgba(148,163,184,.08), transparent 65%); }
.tk-card.tk-pending::after { background: linear-gradient(180deg, #94a3b8, rgba(148,163,184,.15)); }
.tk-pending .tk-ico { background: #e2e8f0; color: #64748b; box-shadow: none; filter: grayscale(.3); }
.tk-pending .tk-val { background: none; -webkit-text-fill-color: #94a3b8; font-size: 20px; letter-spacing: 1px; }
.tk-pending .tk-label { color: #94a3b8; }
.tk-pending-tag { font-size: 11px; color: #64748b; background: #f1f5f9; padding: 2px 9px; border-radius: 20px; border: 1px dashed #cbd5e1; }
.tk-synced-tag { font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0891b2, #06b6d4); padding: 2px 10px; border-radius: 20px; letter-spacing: .3px; box-shadow: 0 2px 6px rgba(6,182,212,.3); }

/* 网页采集数据卡（商品访客/支付转化率/推广花费/净投产比）四色 tone */
.tk-card.tk-cyan::before { background: radial-gradient(circle, rgba(6,182,212,.08), transparent 65%); }
.tk-card.tk-cyan::after { background: linear-gradient(180deg, #06b6d4, rgba(6,182,212,.15)); }
.tk-cyan .tk-ico { background: linear-gradient(135deg, #0e7490, #22d3ee); box-shadow: 0 2px 6px rgba(6,182,212,.3); }
.tk-cyan .tk-val { background: linear-gradient(180deg, #1e293b 30%, #0e7490 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-card.tk-violet::before { background: radial-gradient(circle, rgba(139,92,246,.08), transparent 65%); }
.tk-card.tk-violet::after { background: linear-gradient(180deg, #8b5cf6, rgba(139,92,246,.15)); }
.tk-violet .tk-ico { background: linear-gradient(135deg, #6d28d9, #a78bfa); box-shadow: 0 2px 6px rgba(139,92,246,.3); }
.tk-violet .tk-val { background: linear-gradient(180deg, #1e293b 30%, #6d28d9 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-card.tk-orange::before { background: radial-gradient(circle, rgba(249,115,22,.08), transparent 65%); }
.tk-card.tk-orange::after { background: linear-gradient(180deg, #f97316, rgba(249,115,22,.15)); }
.tk-orange .tk-ico { background: linear-gradient(135deg, #c2410c, #fb923c); box-shadow: 0 2px 6px rgba(249,115,22,.3); }
.tk-orange .tk-val { background: linear-gradient(180deg, #1e293b 30%, #c2410c 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-card.tk-lime::before { background: radial-gradient(circle, rgba(132,204,22,.08), transparent 65%); }
.tk-card.tk-lime::after { background: linear-gradient(180deg, #84cc16, rgba(132,204,22,.15)); }
.tk-lime .tk-ico { background: linear-gradient(135deg, #4d7c0f, #a3e635); box-shadow: 0 2px 6px rgba(132,204,22,.3); }
.tk-lime .tk-val { background: linear-gradient(180deg, #1e293b 30%, #4d7c0f 135%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 900px) { .tk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .tk-grid { grid-template-columns: repeat(2, 1fr); } }

/* 工作台三列科技化 */
.wb-tech .card { border-radius: 14px; position: relative; overflow: hidden; }
.wb-tech .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, rgba(37,99,235,.05)); }
.wb-tech .card:nth-child(2)::before { background: linear-gradient(90deg, #dc2626, rgba(220,38,38,.05)); }
.wb-tech .card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, rgba(245,158,11,.05)); }
.wb-title { display: flex; align-items: center; gap: 8px; }
.wb-ico { width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 7px; font-size: 13px; display: inline-block; }
.wb-ico-blue { background: rgba(37,99,235,.10); color: #2563eb; }
.wb-ico-red { background: rgba(220,38,38,.10); color: #dc2626; }
.wb-ico-amber { background: rgba(245,158,11,.12); color: #d97706; }
.wb-badge { margin-left: auto; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px; text-align: center;
  font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2563eb, #3b82f6); }
.wb-tech .card:nth-child(2) .wb-badge { background: linear-gradient(135deg, #dc2626, #f87171); }
.wb-badge:empty { display: none; }
.wb-list .wb-item { border-radius: 8px; padding: 9px 10px; transition: background .15s, transform .1s; }

/* 工作台三卡数据化增强 */
.wb-item-data, .wb-item-alert { display: flex; align-items: center; gap: 9px; }
.wb-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; box-shadow: 0 0 6px currentColor; }
.wb-dot-alert { box-shadow: 0 0 8px rgba(220,38,38,.5); }
.wb-ico-sm { font-size: 14px; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px; background: rgba(37,99,235,.08); flex: none; }
.wb-item-alert .wb-ico-sm { background: rgba(245,158,11,.10); }
.wb-item-label { flex: 1; color: #334155; }
.wb-num-lg { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.wb-num-lg.wb-warn { background: linear-gradient(180deg, #dc2626, #f87171); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wb-shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-shortcut-cell { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(160deg, #f8fafc, #eef4ff); border: 1px solid #e2ecfb; transition: all .15s; }
.wb-shortcut-cell:hover { transform: translateY(-1px); border-color: rgba(37,99,235,.35); box-shadow: 0 4px 12px rgba(37,99,235,.12); }
.wb-cell-ico { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 8px; font-size: 15px; flex: none;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(37,99,235,.06)); }
.wb-cell-label { flex: 1; font-size: 13px; font-weight: 600; color: #1e293b; }
.wb-cell-arrow { color: #93c5fd; font-size: 14px; transition: transform .15s; }
.wb-shortcut-cell:hover .wb-cell-arrow { transform: translateX(3px); }
.wb-tech .card-body-inner { display: flex; flex-direction: column; gap: 4px; }

.wb-list .wb-item:hover { background: rgba(37,99,235,.06); transform: translateX(2px); }
.wb-num { font-weight: 700; background: linear-gradient(180deg, #2563eb, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wb-warn { font-weight: 700; background: linear-gradient(180deg, #dc2626, #f87171); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 交易概况表格科技化微调 */
#view-dashboard .table thead th { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: #334155; border: none; font-size: 12px; letter-spacing: .4px; }
#view-dashboard .table tr.trade-dim-head td { background: linear-gradient(90deg, rgba(37,99,235,.08), rgba(37,99,235,.02)); color: #1e3a5f; font-weight: 700; }
#view-dashboard .table tbody tr:hover td { background: rgba(59,130,246,.04); }
#view-dashboard .card { border-radius: 14px; }
#view-dashboard .chart { background: linear-gradient(180deg, #fbfdff, #f3f7fb); border-radius: 12px; }


@media (max-width: 900px) { .tk-grid { grid-template-columns: repeat(2, 1fr); } }

/* 交易概况表格科技化微调 */
#view-dashboard .table thead th { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: #334155; border: none; font-size: 12px; letter-spacing: .4px; }
#view-dashboard .table tr.trade-dim-head td { background: linear-gradient(90deg, rgba(37,99,235,.08), rgba(37,99,235,.02)); color: #1e3a5f; font-weight: 700; }
#view-dashboard .table tbody tr:hover td { background: rgba(59,130,246,.04); }
#view-dashboard .card { border-radius: 14px; }
#view-dashboard .chart { background: linear-gradient(180deg, #fbfdff, #f3f7fb); border-radius: 12px; }

/* 待办/异常/快捷入口 科技化 */
.wb-list .wb-item { border-radius: 8px; padding: 9px 10px; transition: background .15s; }
.wb-list .wb-item:hover { background: rgba(37,99,235,.05); }
.wb-num { font-weight: 700; background: linear-gradient(180deg, #2563eb, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wb-warn { font-weight: 700; background: linear-gradient(180deg, #dc2626, #f87171); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 首页工作台 + 新板块 ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.wb-grid { margin-bottom: 18px; }
.wb-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid #f0f1f3; cursor: pointer; font-size: 14px; }
.wb-item:last-child { border-bottom: none; }
.wb-item:hover { background: #f8f9fb; }
.wb-num { color: var(--primary); font-size: 15px; }
.wb-warn { color: #b91c1c; }
.wb-empty { color: #9aa0ab; padding: 10px 4px; font-size: 13px; }
.wb-arrow { color: #c4c9d4; }
.wb-shortcut:hover span:first-child { color: var(--primary); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   订单管理 —— 高级简明版（作用域限定，不影响其他页面）
   ============================================================ */
#view-orders .order-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow); margin-bottom: 12px;
}
#view-orders .order-tabs { display: flex; gap: 4px; width: 100%; margin: 0; }
#view-orders .order-tabs .ops-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 6px; border-radius: 10px; font-size: 13.5px; white-space: nowrap;
}
#view-orders .order-tabs .ops-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 3px 10px rgba(224, 46, 36, .28);
}
#view-orders .ot-count {
  display: inline-block; min-width: 22px; height: 20px; line-height: 20px; padding: 0 7px;
  border-radius: 10px; font-size: 11px; font-weight: 700; text-align: center;
  background: #f0f1f3; color: #6b7280; transition: all .15s;
}
#view-orders .ops-tab:hover .ot-count { background: #e4e7ec; }
#view-orders .ops-tab.active .ot-count { background: rgba(255,255,255,.24); color: #fff; }

#view-orders .order-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
#view-orders .ot-left { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
#view-orders .ot-select { min-width: 150px; }
#view-orders .ot-search { position: relative; flex: 1; max-width: 360px; }
#view-orders .ot-search-ic {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #9aa0ab; font-size: 15px; pointer-events: none; line-height: 1;
}
#view-orders .ot-search-input { width: 100%; padding-left: 34px; }
#view-orders .ot-right { display: flex; gap: 8px; }

#view-orders .order-filter-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
#view-orders .of-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--border); background: #fafbfc;
}
#view-orders .of-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
#view-orders .of-badge {
  display: inline-block; min-width: 20px; height: 18px; line-height: 18px; padding: 0 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  border-radius: 9px; font-size: 11px; font-weight: 700; text-align: center;
}
#view-orders .of-toggle {
  border: none; background: transparent; color: var(--text-2); font-size: 13px;
  cursor: pointer; padding: 5px 10px; border-radius: 8px; display: inline-flex; align-items: center;
  gap: 5px; font-family: inherit; transition: all .15s;
}
#view-orders .of-toggle:hover { background: #eef0f3; color: var(--text); }
#view-orders .of-chev { display: inline-block; transition: transform .2s; }
#view-orders .order-filter-card.collapsed .of-chev { transform: rotate(-90deg); }
#view-orders .filter-grid { padding: 14px 16px; }
#view-orders .filter-grid.collapsed { display: none; }
#view-orders .filter-item label { font-size: 11.5px; color: #8a919c; letter-spacing: .02em; }
#view-orders .filter-item .input { border-radius: 10px; }

#view-orders .order-list-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
#view-orders .ol-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
#view-orders .ol-title { font-size: 15px; font-weight: 700; }
#view-orders .ol-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); min-width: 0; }
#view-orders .order-hint { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-orders .ol-total { white-space: nowrap; font-weight: 500; }
#view-orders .ol-total b { color: var(--primary); font-size: 16px; font-weight: 700; }

#view-orders .order-table th {
  background: #fafbfc; color: #8a919c; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; padding: 12px 14px; white-space: nowrap;
}
#view-orders .order-table td { padding: 12px 14px; font-size: 13px; }
#view-orders .order-table tbody tr { transition: background .12s; }
#view-orders .order-table tbody tr:hover { background: #f7f9fc; }
#view-orders .order-table tbody tr:last-child td { border-bottom: none; }
#view-orders .order-table th.num, #view-orders .order-table td.num { text-align: right; }
#view-orders .order-table td.num { font-variant-numeric: tabular-nums; }

#view-orders .oid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #334155; letter-spacing: .01em;
}
#view-orders .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
#view-orders .amt small { font-size: 11px; font-weight: 400; color: var(--text-2); }
#view-orders .amt-sub { font-size: 11px; color: #9aa0ab; margin-top: 2px; font-weight: 400; }

/* 状态圆点徽章 */
#view-orders .dot-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
#view-orders .dot-tag i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#view-orders .dot-orange { background: #fef3e7; color: #c2570a; }
#view-orders .dot-orange i { background: #f59e0b; }
#view-orders .dot-blue { background: #eef4ff; color: #1d5fd0; }
#view-orders .dot-blue i { background: #3b82f6; }
#view-orders .dot-green { background: #eafaf0; color: #12804c; }
#view-orders .dot-green i { background: #22c55e; }
#view-orders .dot-red { background: #fdeeec; color: #c22e24; }
#view-orders .dot-red i { background: #ef4444; }
#view-orders .dot-gray { background: #f0f1f3; color: #6b7280; }
#view-orders .dot-gray i { background: #9aa0ab; }

/* 订单分页条 */
#view-orders .order-pager {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2);
  flex-wrap: wrap;
}
#view-orders .op-left { display: flex; align-items: center; gap: 6px; }
#view-orders .op-left b { color: var(--text); font-size: 14px; }
#view-orders .op-size {
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text); outline: none; cursor: pointer;
}
#view-orders .op-size:focus { border-color: var(--primary); }
#view-orders .op-right { display: flex; gap: 8px; }
#view-orders .op-right .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* 订单状态徽章（图标+语义色） */
#view-orders .st-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
#view-orders .st-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
#view-orders .st-orange { background: #fef3e7; color: #c2570a; }
#view-orders .st-blue { background: #eef4ff; color: #1d5fd0; }
#view-orders .st-green { background: #eafaf0; color: #12804c; }
#view-orders .st-red { background: #fdeeec; color: #c22e24; }
#view-orders .st-gray { background: #f0f1f3; color: #6b7280; }
#view-orders .st-purple { background: #f3eefc; color: #6d28d9; }

/* 订单表格固定列宽布局（含复选框列，共 12 列；防状态徽章挤压商品信息） */
#view-orders .order-table { table-layout: fixed; min-width: 1380px; }
#view-orders #orderTable th:nth-child(1), #view-orders #orderTable td:nth-child(1) { width: 38px; }
#view-orders #orderTable th:nth-child(2), #view-orders #orderTable td:nth-child(2) { width: 138px; }
#view-orders #orderTable th:nth-child(3), #view-orders #orderTable td:nth-child(3) { width: 130px; }
#view-orders #orderTable th:nth-child(4), #view-orders #orderTable td:nth-child(4) { width: 240px; }
#view-orders #orderTable th:nth-child(5), #view-orders #orderTable td:nth-child(5) { width: 104px; }
#view-orders #orderTable th:nth-child(6), #view-orders #orderTable td:nth-child(6) { width: 44px; }
#view-orders #orderTable th:nth-child(7), #view-orders #orderTable td:nth-child(7) { width: 84px; }
#view-orders #orderTable th:nth-child(8), #view-orders #orderTable td:nth-child(8) { width: 102px; }
#view-orders #orderTable th:nth-child(9), #view-orders #orderTable td:nth-child(9) { width: 130px; }
#view-orders #orderTable th:nth-child(10), #view-orders #orderTable td:nth-child(10) { width: 80px; }
#view-orders #orderTable th:nth-child(11), #view-orders #orderTable td:nth-child(11) { width: 132px; }
#view-orders #orderTable th:nth-child(12), #view-orders #orderTable td:nth-child(12) { width: 150px; }
/* 商品信息列内容截断，不再溢出推挤相邻列 */
#view-orders #orderTable td:nth-child(4) { overflow: hidden; }
#view-orders #orderTable td:nth-child(4) b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-orders #orderTable td:nth-child(4) .mp-notes { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 收货信息列截断 */
#view-orders #orderTable td:nth-child(9) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 状态徽章微缩，确保落在固定列内 */
#view-orders .st-badge { padding: 4px 9px; font-size: 12px; }
#view-orders .st-badge svg { width: 12px; height: 12px; }
/* 异常表格固定列宽 */
#view-orders #orderAbnormalTable { table-layout: fixed; min-width: 860px; }
#view-orders #orderAbnormalTable th:nth-child(1), #view-orders #orderAbnormalTable td:nth-child(1) { width: 160px; }
#view-orders #orderAbnormalTable th:nth-child(2), #view-orders #orderAbnormalTable td:nth-child(2) { width: 110px; }
#view-orders #orderAbnormalTable th:nth-child(3), #view-orders #orderAbnormalTable td:nth-child(3) { width: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-orders #orderAbnormalTable th:nth-child(4), #view-orders #orderAbnormalTable td:nth-child(4) { width: 90px; }
#view-orders #orderAbnormalTable th:nth-child(5), #view-orders #orderAbnormalTable td:nth-child(5) { width: 120px; }
#view-orders #orderAbnormalTable th:nth-child(6), #view-orders #orderAbnormalTable td:nth-child(6) { width: 110px; }

   商品管理 —— 平台商品列表（1:1 对齐拼多多后台）
   ============================================================ */
#view-merchantProducts .goods-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow); margin-bottom: 12px;
}
#view-merchantProducts .goods-tabs { display: flex; gap: 4px; width: 100%; margin: 0; }
#view-merchantProducts .goods-tabs .ops-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 6px; border-radius: 10px; font-size: 13.5px; white-space: nowrap;
}
#view-merchantProducts .goods-tabs .ops-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 3px 10px rgba(224, 46, 36, .28);
}
#view-merchantProducts .goods-tabs .ops-tab .ot-count { background: #f0f1f3; color: #6b7280; }
#view-merchantProducts .goods-tabs .ops-tab.active .ot-count { background: rgba(255,255,255,.24); color: #fff; }
#view-merchantProducts .goods-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
#view-merchantProducts .gt-left { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
#view-merchantProducts .gt-select { min-width: 150px; }
#view-merchantProducts .gt-search { position: relative; flex: 1; max-width: 360px; }
#view-merchantProducts .gt-search-input { width: 100%; padding-left: 34px; }
#view-merchantProducts .gt-right { display: flex; gap: 8px; }
#view-merchantProducts .goods-filter-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
#view-merchantProducts .gf-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--border); background: #fafbfc;
}
#view-merchantProducts .gf-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
#view-merchantProducts .goods-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; padding: 14px 16px; }
#view-merchantProducts .goods-filter-grid.collapsed { display: none; }
#view-merchantProducts .goods-filter-grid .filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#view-merchantProducts .goods-filter-grid label { font-size: 11.5px; color: #8a919c; letter-spacing: .02em; }
#view-merchantProducts .goods-filter-grid .input { width: 100%; box-sizing: border-box; border-radius: 10px; }
#view-merchantProducts .goods-filter-grid .filter-actions { flex-direction: row; align-items: flex-end; gap: 8px; }
#view-merchantProducts .goods-filter-grid .filter-actions .btn { flex: 1; white-space: nowrap; }
#view-merchantProducts .goods-list-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
#view-merchantProducts .gl-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
#view-merchantProducts .gl-title { font-size: 15px; font-weight: 700; }
#view-merchantProducts .gl-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); min-width: 0; }
#view-merchantProducts .goods-table { table-layout: fixed; min-width: 1080px; }
#view-merchantProducts .goods-table th {
  background: #fafbfc; color: #8a919c; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; padding: 12px 14px; white-space: nowrap;
}
#view-merchantProducts .goods-table td { padding: 12px 14px; font-size: 13px; }
#view-merchantProducts .goods-table tbody tr { transition: background .12s; }
#view-merchantProducts .goods-table tbody tr:hover { background: #f7f9fc; }
#view-merchantProducts .goods-table tbody tr:last-child td { border-bottom: none; }
#view-merchantProducts .goods-table th.num, #view-merchantProducts .goods-table td.num { text-align: right; }
#view-merchantProducts .goods-table td.num { font-variant-numeric: tabular-nums; }
#view-merchantProducts .goods-table th:nth-child(1) { width: 360px; }
#view-merchantProducts .goods-table th:nth-child(2), #view-merchantProducts .goods-table td:nth-child(2) { width: 96px; }
#view-merchantProducts .goods-table th:nth-child(3), #view-merchantProducts .goods-table td:nth-child(3) { width: 96px; }
#view-merchantProducts .goods-table th:nth-child(4), #view-merchantProducts .goods-table td:nth-child(4) { width: 70px; }
#view-merchantProducts .goods-table th:nth-child(5), #view-merchantProducts .goods-table td:nth-child(5) { width: 96px; }
#view-merchantProducts .goods-table th:nth-child(6), #view-merchantProducts .goods-table td:nth-child(6) { width: 96px; }
#view-merchantProducts .goods-table th:nth-child(7) { width: 96px; }
#view-merchantProducts .goods-table th:nth-child(8) { width: 112px; }
#view-merchantProducts .goods-table th:nth-child(9), #view-merchantProducts .goods-table td:nth-child(9) { width: 96px; }
/* 商品信息单元格 */
#view-merchantProducts .g-cell { display: flex; gap: 12px; align-items: flex-start; }
#view-merchantProducts .g-thumb {
  width: 56px; height: 56px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  background: #f4f5f7; border: 1px solid var(--border);
}
#view-merchantProducts .g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#view-merchantProducts .g-thumb .g-thumb-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #c4c9d4; font-size: 20px;
}
#view-merchantProducts .g-main { min-width: 0; flex: 1; }
#view-merchantProducts .g-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; line-height: 1.4; }
#view-merchantProducts .g-sub { font-size: 11.5px; color: #9aa0ab; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-merchantProducts .g-badge-row { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
#view-merchantProducts .g-mini-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 10px; background: #f0f1f3; color: #6b7280; white-space: nowrap;
}
#view-merchantProducts .g-mini-tag.g-sku { background: #eef4ff; color: #1d5fd0; }
#view-merchantProducts .g-na { color: #c4c9d4; }
#view-merchantProducts .g-time { color: #6b7280; white-space: nowrap; font-size: 12px; }
#view-merchantProducts .g-price { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================
   店铺管理 —— 多店铺模式开关 + 商品管理弹窗（无规格版）
   ============================================================ */
.mode-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.mode-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mode-bar-label { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mode-bar-hint { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-bar-right { display: flex; align-items: center; gap: 8px; }
.ms-search { width: 180px; }
.ms-switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.ms-switch input { opacity: 0; width: 0; height: 0; }
.ms-slider {
  position: absolute; cursor: pointer; inset: 0; border-radius: 24px;
  background: #d4d8de; transition: background .18s;
}
.ms-slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.ms-switch input:checked + .ms-slider { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.ms-switch input:checked + .ms-slider::before { transform: translateX(22px); }

/* 商品新增/编辑弹窗 */
.mp-modal-overlay {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.mp-modal {
  width: 460px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22); overflow: hidden;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
}
.mp-modal-head {
  padding: 15px 18px; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.mp-modal-close { cursor: pointer; font-size: 16px; opacity: .85; padding: 2px 6px; }
.mp-modal-close:hover { opacity: 1; }
.mp-modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.mp-form-row { display: flex; flex-direction: column; gap: 5px; }
.mp-form-row label { font-size: 12px; color: #6b7280; }
.mp-form-row .input { width: 100%; box-sizing: border-box; border-radius: 10px; }
.mp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-store-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 2px; }
.mp-store-opt {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; background: #fafbfc;
  transition: all .12s;
}
.mp-store-opt:hover { border-color: var(--primary); color: var(--primary); }
.mp-store-opt input { accent-color: var(--primary); }
.mp-store-opt:has(input:checked) { border-color: var(--primary); background: #fef0ef; color: var(--primary); }
.mp-modal-foot { padding: 12px 18px 16px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* 规格明细行（规格编码/成本/运费 一一对应 + 时间段历史成本） */
.mp-spec-list { display: flex; flex-direction: column; gap: 8px; }
.mp-spec-row {
  background: #fafbfc; border: 1px solid var(--border); border-radius: 10px; padding: 8px;
}
.mp-spec-main { display: flex; flex-direction: column; gap: 8px; }
.mp-spec-fields {
  display: grid; grid-template-columns: minmax(0, 1fr) 88px 88px 52px 30px; gap: 8px; align-items: center;
}
.mp-spec-fields .input { width: 100%; box-sizing: border-box; border-radius: 8px; font-size: 13px; }
.mp-spec-del { color: #c23a30; border-color: #f3d4d1; background: #fff; cursor: pointer; font-size: 13px; }
.mp-spec-del:hover { background: #fef0ef; }
.mp-hist-toggle { color: #1d5fd0; border-color: #cfe0fb; background: #fff; cursor: pointer; font-size: 12px; }
.mp-hist-toggle:hover { background: #eef4ff; }
.mp-hist-box { border-top: 1px dashed var(--border); padding-top: 8px; }
.mp-hist-head { font-size: 11px; color: #8a909c; margin-bottom: 6px; }
.mp-hist-list { display: flex; flex-direction: column; gap: 6px; }
.mp-hist-row {
  display: grid; grid-template-columns: 1fr 1fr 76px 76px 30px; gap: 6px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px;
}
.mp-hist-row .input { width: 100%; box-sizing: border-box; border-radius: 7px; font-size: 12px; }
.mp-hist-del { color: #c23a30; border-color: #f3d4d1; background: #fff; cursor: pointer; font-size: 12px; }
.mp-hist-del:hover { background: #fef0ef; }
.mp-hist-add { margin-top: 6px; font-size: 12px; color: #1d5fd0; border-color: #cfe0fb; cursor: pointer; }



/* 规格编码列（多店铺商品直管版） */
#view-merchantProducts .g-spec-code {
  font-size: 11.5px; color: #1d5fd0; background: #eef4ff; border-radius: 6px;
  padding: 2px 8px; margin-bottom: 4px; display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view-merchantProducts .g-spec-more { font-size: 11px; color: #9aa0ab; }
#view-merchantProducts .g-upd-time {
  font-size: 11.5px; color: #8a909c; background: #f4f5f7; border-radius: 6px;
  padding: 2px 8px; display: inline-block; white-space: nowrap;
  cursor: default;
}
.mp-group-tip { font-size: 12px; color: #9aa0ab; margin-left: 4px; }
#view-merchantProducts .g-grp-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: #4b5563; background: #f7f8fa; border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px; margin-bottom: 4px;
}
#view-merchantProducts .g-grp-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gdot, #9aa0ab); display: inline-block; }
#view-merchantProducts .g-grp-tag b {
  width: 13px; height: 13px; border-radius: 4px; background: var(--gdot, #9aa0ab);
  color: #fff; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ===== 售后工作台（对齐拼多多后台售后工作台） ===== */
#view-aftersale .asw-todo {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
#view-aftersale .asw-todo-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  font-size: 13px; color: #4b5563; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
#view-aftersale .asw-todo-ico { font-style: normal; color: #e02e24; font-size: 14px; }
#view-aftersale .asw-todo-num {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: #e02e24; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
#view-aftersale .asw-quick {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
#view-aftersale .asw-qchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; font-size: 12.5px; color: #4b5563; transition: all .15s;
}
#view-aftersale .asw-qchip.has { border-color: rgba(224,46,36,.35); color: #c22e24; }
#view-aftersale .asw-qchip:hover { border-color: var(--primary); }
#view-aftersale .asw-qchip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#view-aftersale .asw-qchip.active .asw-qnum { background: rgba(255,255,255,.25); color: #fff; }
#view-aftersale .asw-qnum {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #fdeeec; color: #c22e24; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
#view-aftersale .asw-search { padding: 12px 14px; margin-bottom: 12px; }
#view-aftersale .asw-search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-aftersale .asw-kw { flex: 1 1 300px; }
#view-aftersale .asw-store { width: 160px; }
#view-aftersale .asw-adv-toggle {
  cursor: pointer; color: var(--primary); font-size: 12.5px; white-space: nowrap;
}
#view-aftersale .asw-adv {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
}
#view-aftersale .asw-field { display: inline-flex; flex-direction: column; gap: 5px; font-size: 12px; color: #6b7280; }
#view-aftersale .asw-field .input { width: 150px; }
#view-aftersale .asw-date .input { width: 138px; }
#view-aftersale .asw-tabs {
  display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 2px solid #eef0f2;
}
#view-aftersale .asw-ttab {
  padding: 9px 16px; font-size: 13.5px; color: #4b5563; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
#view-aftersale .asw-ttab:hover { color: var(--primary); }
#view-aftersale .asw-ttab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
#view-aftersale .asw-tcount { margin-left: 5px; font-size: 12px; color: #9aa1a9; }
#view-aftersale .asw-ttab.active .asw-tcount { color: var(--primary); }
#view-aftersale #aswTable { min-width: 1300px; }
#view-aftersale #aswTable td:nth-child(6) { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-aftersale #aswTable .oid { font-weight: 600; color: #1f2937; font-size: 12.5px; }
#view-aftersale #aswTable .asw-id { font-size: 11px; color: #9aa1a9; }
#view-aftersale #aswTable .amt { font-size: 14px; font-weight: 700; color: #c22e24; }
#view-aftersale #aswTable .amt small { font-size: 11px; }
#view-aftersale #aswTable .st-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
#view-aftersale .st-orange { background: #fef3e7; color: #c2570a; }
#view-aftersale .st-blue { background: #eef4ff; color: #1d5fd0; }
#view-aftersale .st-green { background: #eafaf0; color: #12804c; }
#view-aftersale .st-red { background: #fdeeec; color: #c22e24; }
#view-aftersale .st-gray { background: #f0f1f3; color: #6b7280; }
#view-aftersale .st-purple { background: #f3eefc; color: #6d28d9; }
#view-aftersale #aswPager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; }

/* ===== 交易概况 维度切换（全店群/按分组/按店铺） ===== */
.trade-dim {
  display: inline-flex; gap: 4px; padding: 3px; background: #f1f3f5; border-radius: 9px;
}
.trade-dim-chip {
  padding: 4px 12px; font-size: 12px; color: #4b5563; border-radius: 7px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.trade-dim-chip:hover { color: var(--primary); }
.trade-dim-chip.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
#pddTradeTable .trade-dim-head td {
  padding: 10px 12px 6px; font-size: 13px; background: #f8f9fb;
  border-top: 2px solid #eef0f2;
}
#pddTradeTable .trade-dim-head td:first-child { border-top-left-radius: 8px; }
#pddTradeTable .trade-dim-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
}
#pddTradeTable .trade-dim-head b { font-size: 13.5px; }
/* ===== 交易概况 时间筛选（今天/昨天/近三天/近7天/自由时间） ===== */
.trade-time {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap;
}
.trade-time-chip {
  padding: 4px 10px; font-size: 12px; color: #4b5563; border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer; transition: all .15s; white-space: nowrap; background: var(--surface);
}
.trade-time-chip:hover { border-color: var(--primary); color: var(--primary); }
.trade-time-chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; font-weight: 600; }
.trade-time-custom { display: inline-flex; align-items: center; gap: 6px; }
.trade-time-custom .trade-time-date { width: 132px; height: 26px; font-size: 12px; padding: 0 6px; }
.trade-time-sep { font-size: 12px; color: var(--text-2); white-space: nowrap; }
/* ===== 订单备注弹窗（对齐拼多多后台备注机制：颜色标记 + 300字） ===== */
.order-remark-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.order-remark-modal { width: 440px; max-width: calc(100vw - 32px); background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.22); overflow: hidden; }
.order-remark-head { padding: 14px 18px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: flex; justify-content: space-between; align-items: center; }
.order-remark-close { cursor: pointer; font-size: 16px; opacity: .85; padding: 2px 6px; }
.order-remark-close:hover { opacity: 1; }
.order-remark-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.order-remark-meta { font-size: 12.5px; color: var(--text-2); }
.order-remark-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.remark-tag { width: 34px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; color: #fff; border: 2px solid transparent; transition: all .15s; user-select: none; }
.remark-tag.rt-none { background: #eef0f3; color: #4b5563; border-color: #d5d9df; }
.remark-tag.rt-red { background: #ff4d4f; }
.remark-tag.rt-yellow { background: #faad14; }
.remark-tag.rt-green { background: #52c41a; }
.remark-tag.rt-blue { background: #1677ff; }
.remark-tag.rt-purple { background: #722ed1; }
.remark-tag.active { border-color: #1f2329; box-shadow: 0 0 0 2px #fff inset; }
.remark-tag:hover { transform: translateY(-1px); }
.order-remark-input-wrap { position: relative; }
.order-remark-input { width: 100%; min-height: 88px; resize: vertical; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; box-sizing: border-box; outline: none; }
.order-remark-input:focus { border-color: var(--primary); }
.order-remark-count { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: #9aa1a9; }
.order-remark-tip { font-size: 12px; color: #9aa1a9; }
.order-remark-foot { padding: 12px 18px 16px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); }
/* 订单行备注标记 */
.order-remark-cell { display: flex; align-items: center; gap: 5px; margin-top: 4px; max-width: 240px; }
.remark-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: #9aa1a9; }
.remark-dot.rt-red { background: #ff4d4f; }
.remark-dot.rt-yellow { background: #faad14; }
.remark-dot.rt-green { background: #52c41a; }
.remark-dot.rt-blue { background: #1677ff; }
.remark-dot.rt-purple { background: #722ed1; }
.remark-text { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.has-note { display: inline-flex; align-items: center; gap: 4px; border-color: var(--primary); color: var(--primary); }
/* ===== 发货弹窗（对齐拼多多后台「自己联系物流发货」机制） ===== */
.order-ship-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.order-ship-modal { width: 480px; max-width: calc(100vw - 32px); background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.22); overflow: hidden; }
.order-ship-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.order-ship-meta { font-size: 12.5px; color: var(--text-2); }
.order-ship-field { display: flex; align-items: center; gap: 10px; }
.order-ship-label { width: 72px; font-size: 13px; color: #4b5563; flex-shrink: 0; }
.order-ship-label::before { content: '*'; color: #ff4d4f; margin-right: 2px; }
.order-ship-input { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; box-sizing: border-box; outline: none; background: #fff; }
.order-ship-input:focus { border-color: var(--primary); }
.order-ship-tip { font-size: 12px; color: #9aa1a9; line-height: 1.6; }
.order-ship-warn { color: #d97706; }
.order-ship-time { font-size: 12.5px; color: var(--text-2); border-top: 1px dashed var(--border); padding-top: 10px; }
.ship-overdue { color: #ff4d4f; font-weight: 600; }
/* ===== 订单批量处理 ===== */
.chk-col { width: 32px; text-align: center; vertical-align: middle; }
.chk-col input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }
.order-batch-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: linear-gradient(135deg, rgba(64,111,255,.08), rgba(64,111,255,.03)); border: 1px solid rgba(64,111,255,.22); border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ob-info { font-size: 13px; color: var(--primary); font-weight: 600; margin-right: 4px; }
.ob-ship-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #fafbfc; }
.ob-row { display: flex; align-items: center; gap: 10px; }
.ob-row .ob-id { flex: 0 0 235px; font-family: Consolas, Monaco, monospace; font-size: 12px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-row .ob-no { flex: 1 1 auto; min-width: 0; }

/* ===== 交易概况 数据趋势面板 ===== */
.trade-trend-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.trade-ttab {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  font-size: 12px; color: #4b5563; background: #f1f3f5; border-radius: 999px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.trade-ttab:hover { color: var(--primary); }
.trade-ttab.active { background: var(--primary); color: #fff; font-weight: 600; }
.trade-ttab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tdot, #64748b); display: inline-block; }
.trade-ttab.active .trade-ttab-dot { background: #fff; }

/* ===== 售后分析看板 ===== */
.as-an-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1200px) { .as-an-grid { grid-template-columns: 1fr; } }
.as-an-trend { min-height: 220px; padding: 8px 0 4px; }
.as-an-trend-bars { display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.as-an-trend-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.as-an-trend-bars-in { display: flex; align-items: flex-end; gap: 3px; height: 160px; width: 100%; justify-content: center; }
.as-an-bar { position: relative; width: 16px; border-radius: 4px 4px 0 0; min-height: 4px; }
.as-an-bar i { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--text-2); }
.as-an-bar-apply { background: #8BC8EA; }
.as-an-bar-refund { background: #EA6668; }
.as-an-trend-label { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.as-an-trend-amt { font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
.as-an-reason { margin-bottom: 12px; }
.as-an-reason-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.as-an-reason-head b { color: var(--primary); }
.as-an-reason-bar { height: 10px; background: rgba(0,0,0,0.05); border-radius: 5px; overflow: hidden; }
.as-an-reason-bar div { height: 100%; background: linear-gradient(90deg, #8BC8EA, #5BA8D9); border-radius: 5px; }
.as-an-sug { padding: 12px 14px; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; margin-bottom: 10px; background: rgba(0,0,0,0.015); }
.as-an-sug b { font-size: 14px; margin-left: 6px; }
.as-an-sug .mp-notes { margin-top: 6px; }
.rank-no { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: rgba(139,200,234,0.25); color: #2f6f96; font-size: 12px; font-weight: 600; margin-right: 6px; }
.kpi-value.orange { color: #E8930C; }

/* ---- 推广平台指标卡（拼多多商品推广口径） ---- */
.pm-group { margin-bottom: 16px; }
.pm-group-title { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; padding-left: 8px; border-left: 3px solid #2563eb; }
.pm-group-title.g-cheng { border-left-color: #2563eb; }
.pm-group-title.g-jing { border-left-color: #16a34a; }
.pm-group-title.g-jiesuan { border-left-color: #f59e0b; }
.pm-group-title.g-liuliang { border-left-color: #8b5cf6; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pm-card { background: #fff; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; border-top: 3px solid #2563eb; transition: box-shadow .15s; }
.pm-card:hover { box-shadow: 0 3px 12px rgba(15,23,42,.08); }
.pm-card.c-cheng { border-top-color: #2563eb; }
.pm-card.c-jing { border-top-color: #16a34a; }
.pm-card.c-jiesuan { border-top-color: #f59e0b; }
.pm-card.c-liuliang { border-top-color: #8b5cf6; }
.pm-card.pm-ad { background: #fafbfc; border-style: dashed; border-top-style: dashed; border-top-color: #cbd5e1; }
.pm-card.pm-ad:hover { box-shadow: none; }
.pm-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.pm-today { font-size: 17px; font-weight: 600; color: #1e293b; line-height: 1.3; }
.pm-today.neg { color: #dc2626; }
.pm-today .unit { font-size: 12px; font-weight: 400; color: #94a3b8; margin-left: 2px; }
.pm-yday { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.pm-diff { font-size: 11px; margin-top: 2px; font-weight: 500; }
.pm-diff.up { color: #dc2626; }
.pm-diff.down { color: #16a34a; }
.pm-diff.flat { color: #94a3b8; }
.pm-diff.na { color: #cbd5e1; }

/* ===== 店铺管理板块 浅色系优化 ===== */
#view-stores .mode-bar { background: linear-gradient(135deg, #ffffff, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(15,23,42,.06); }
#view-stores .mode-bar-label { color: #1e293b; font-weight: 700; letter-spacing: .5px; }
#view-stores .mode-bar-hint { color: #64748b; }
#view-stores .ms-switch .ms-slider { background: #cbd5e1; }
#view-stores #storeSearch { background: #fff; border-color: #e2e8f0; color: #1e293b; }
#view-stores #storeSearch::placeholder { color: #94a3b8; }
#view-stores #addStoreBtn, #view-stores #syncAllBtn { background: #fff; border-color: #cbd5e1; color: #475569; }
#view-stores #addStoreBtn:hover, #view-stores #syncAllBtn:hover { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; }
#view-stores .group-bar { background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
#view-stores .group-chip { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
#view-stores .group-chip:hover { border-color: #60a5fa; color: #2563eb; }
#view-stores .group-chip.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(37,99,235,.25); }
#view-stores .group-add { border-color: #cbd5e1; color: #64748b; }
#view-stores .group-add:hover { color: #2563eb; border-color: #60a5fa; }
#view-stores .store-grid { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.store-card-tech { position: relative; overflow: hidden; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 16px 14px; box-shadow: 0 4px 14px rgba(15,23,42,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.store-card-tech::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #93c5fd 40%, rgba(147,197,253,.15)); }
.store-card-tech:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 10px 26px rgba(37,99,235,.12); }
.sct-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.sct-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.sct-title { flex: 1; min-width: 0; }
.sct-name { font-size: 15px; font-weight: 700; color: #1e293b; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sct-mall { font-size: 11px; color: #94a3b8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 700; letter-spacing: .3px; flex: none; }
.store-badge.real { background: linear-gradient(135deg, #059669, #10b981); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.store-badge.expire { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,.3); }
.store-badge.demo { background: #f1f5f9; color: #64748b; }
.sct-group { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sct-group-label { font-size: 12px; color: #94a3b8; flex: none; }
.sct-select { flex: 1; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; font-size: 13px; font-family: inherit; background: #fff; color: #334155; outline: none; }
.sct-select:focus { border-color: #60a5fa; }
.sct-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sm-metric { display: flex; align-items: center; gap: 9px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 8px 10px; }
.sm-ico { width: 26px; height: 26px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700; }
.sm-ico.sm-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 2px 8px rgba(59,130,246,.3); }
.sm-ico.sm-green { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.sm-ico.sm-amber { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 2px 8px rgba(245,158,11,.3); }
.sm-ico.sm-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 2px 8px rgba(139,92,246,.3); }
.sm-label { font-size: 11px; color: #94a3b8; }
.sm-value { font-size: 15px; font-weight: 700; color: #1e293b; font-variant-numeric: tabular-nums; margin-top: 1px; }
.sct-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.btn-sct { flex: 1; min-width: 0; border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 9px; padding: 7px 8px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-sct:hover { border-color: #60a5fa; color: #2563eb; background: #eff6ff; }
.btn-sct.primary { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(37,99,235,.3); }
.btn-sct.primary:hover { box-shadow: 0 5px 16px rgba(37,99,235,.42); }
.btn-sct.warn { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(245,158,11,.3); }
.btn-sct.danger { color: #dc2626; border-color: #fecaca; }
.btn-sct.danger:hover { background: #fef2f2; border-color: #ef4444; color: #dc2626; }
/* ===== 订单管理板块 浅色科技感同步优化 ===== */
#view-orders .group-bar { background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
#view-orders .group-chip { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
#view-orders .group-chip:hover { border-color: #60a5fa; color: #2563eb; }
#view-orders .group-chip.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(37,99,235,.25); }
#view-orders .group-add { border-color: #cbd5e1; color: #64748b; }
#view-orders .group-add:hover { color: #2563eb; border-color: #60a5fa; }
#view-orders .order-bar { background: linear-gradient(135deg, #ffffff, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 14px; padding: 6px; box-shadow: 0 4px 16px rgba(15,23,42,.05); margin-bottom: 12px; }
#view-orders .order-tabs .ops-tab { color: #475569; font-weight: 600; transition: all .15s; }
#view-orders .order-tabs .ops-tab:hover { background: #eff6ff; color: #1d4ed8; }
#view-orders .order-tabs .ops-tab.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; box-shadow: 0 3px 10px rgba(37,99,235,.3); }
#view-orders .ot-count { background: #f1f5f9; color: #64748b; }
#view-orders .ops-tab:hover .ot-count { background: #dbeafe; color: #1d4ed8; }
#view-orders .ops-tab.active .ot-count { background: rgba(255,255,255,.26); color: #fff; }
#view-orders .order-filter-card { background: linear-gradient(180deg, #ffffff, #fbfdff); border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 16px rgba(15,23,42,.05); margin-bottom: 12px; overflow: hidden; }
#view-orders .of-head { background: linear-gradient(90deg, #f8fafc, #ffffff); border-bottom: 1px solid #eef2f7; }
#view-orders .of-title { font-size: 13px; font-weight: 700; color: #1e293b; }
#view-orders .of-title::before { content: ''; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #2563eb, #60a5fa); margin-right: 8px; vertical-align: -2px; }
#view-orders .of-toggle:hover { background: #eff6ff; color: #1d4ed8; }
#view-orders .filter-item .input { border-color: #e2e8f0; border-radius: 10px; background: #fff; }
#view-orders .filter-item .input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
#view-orders .order-list-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 16px rgba(15,23,42,.05); overflow: hidden; }
#view-orders .ol-head { background: linear-gradient(90deg, #f8fafc, #ffffff); border-bottom: 1px solid #eef2f7; }
#view-orders .ol-title { font-size: 15px; font-weight: 700; color: #1e293b; }
#view-orders .ol-title::before { content: ''; display: inline-block; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #2563eb, #60a5fa); margin-right: 9px; vertical-align: -2px; }
#view-orders .ol-total b { background: linear-gradient(180deg, #2563eb, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#view-orders .order-table th { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: #334155; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid #dbe2ea; }
#view-orders .order-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
#view-orders .order-table tbody tr { transition: background .12s; }
#view-orders .order-table tbody tr:hover { background: #eff6ff; }
#view-orders .order-table tbody tr:last-child td { border-bottom: none; }
#view-orders .order-pager { border-top: 1px solid #eef2f7; background: linear-gradient(180deg, #fbfdff, #f8fafc); }
#view-orders .op-left b { color: #2563eb; }
#view-orders .op-size { border-color: #e2e8f0; border-radius: 8px; background: #fff; }
#view-orders .order-batch-bar { background: linear-gradient(90deg, #eff6ff, #f8fafc); border: 1px solid #dbeafe; border-radius: 10px; padding: 8px 12px; margin: 0 16px 10px; }
#view-orders .ob-info b { color: #2563eb; font-size: 14px; }
/* ===== 其余板块 浅色科技感统一增强 ===== */
/* 分组条 */
.view .group-bar { background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.view .group-chip { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
.view .group-chip:hover { border-color: #60a5fa; color: #2563eb; }
.view .group-chip.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(37,99,235,.25); }
.view .group-chip.active .group-dot { background: #fff !important; }
.view .group-add { border-color: #cbd5e1; color: #64748b; }
.view .group-add:hover { color: #2563eb; border-color: #60a5fa; }

/* 页签条 */
.view .ops-tabs { background: linear-gradient(135deg, #ffffff, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 14px; padding: 6px; box-shadow: 0 4px 16px rgba(15,23,42,.05); margin-bottom: 12px; }
.view .ops-tab { color: #475569; font-weight: 600; border-radius: 10px; transition: all .15s; }
.view .ops-tab:hover { background: #eff6ff; color: #1d4ed8; }
.view .ops-tab.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; box-shadow: 0 3px 10px rgba(37,99,235,.3); }
.view .ops-badge { background: linear-gradient(135deg, #2563eb, #3b82f6); }

/* 卡片与面板 */
.view .card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.view .card-title { color: #1e293b; }
.view .card-title::before { content: ''; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #2563eb, #60a5fa); margin-right: 8px; vertical-align: -2px; }
#view-merchantProducts .gf-title, #view-merchantProducts .gl-title { color: #1e293b; }
#view-merchantProducts .gf-title::before, #view-merchantProducts .gl-title::before { content: ''; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #2563eb, #60a5fa); margin-right: 8px; vertical-align: -2px; }

/* 工具栏 */
.view .toolbar { background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 14px; }
.view .toolbar .input { border-color: #e2e8f0; background: #fff; }

/* 输入框 / 下拉 */
.view .input { border-color: #e2e8f0; border-radius: 10px; background: #fff; color: #334155; }
.view .input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

/* 表格表头 */
.view .table thead th { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: #334155; font-weight: 700; letter-spacing: .03em; border-bottom: 1px solid #dbe2ea; }
.view .table tbody tr:hover td { background: #eff6ff; }

/* 按钮 */
.view .btn-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: transparent; box-shadow: 0 3px 10px rgba(37,99,235,.28); }
.view .btn-primary:hover { box-shadow: 0 5px 16px rgba(37,99,235,.4); }
.view .btn-outline { background: #fff; border-color: #e2e8f0; color: #475569; }
.view .btn-outline:hover { border-color: #60a5fa; color: #2563eb; background: #eff6ff; }
.view .btn-danger { background: linear-gradient(135deg, #dc2626, #ef4444); border-color: transparent; }

/* 各板块列表容器卡片 */
#view-promotion .mp-card, #view-promotion .ad-card,
#view-aftersale .as-card, #view-aftersale .after-card,
#view-finance .fin-card, #view-inventory .inv-card,
#view-operations .op-card, #view-cs .cs-card,
#view-report .rp-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 16px rgba(15,23,42,.05);
}
/* ===== 侧边栏 浅色科技感统一 ===== */
.sidebar { background: linear-gradient(180deg, #ffffff, #f4f7fb 85%, #edf2f8); border-right: 1px solid #e2e8f0; color: #1e293b; }
.brand { padding: 18px 16px 14px; border-bottom: 1px solid #eef2f7; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.brand-logo img { mix-blend-mode: normal; }
.brand-name { font-size: 16px; font-weight: 800; color: #1e293b; letter-spacing: .5px; background: linear-gradient(135deg, #1e293b, #2563eb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { font-size: 11px; color: #64748b; margin-top: 3px; letter-spacing: .2px; }
.nav { padding: 12px 10px; gap: 5px; }
.nav-item { color: #475569; border-radius: 10px; font-weight: 500; position: relative; transition: all .15s; }
.nav-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0); width: 3px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, #2563eb, #60a5fa); transition: transform .18s; }
.nav-item:hover { background: #eff6ff; color: #1d4ed8; }
.nav-item.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(37,99,235,.28); }
.nav-item.active::before { transform: translateY(-50%) scaleY(1); }
.nav-item.active:hover { color: #fff; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid #eef2f7; }
.mode-badge { background: #f1f5f9; color: #475569; font-weight: 600; }
.mode-badge.real { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857; border: 1px solid #a7f3d0; }
.mode-badge.demo { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #b45309; border: 1px solid #fde68a; }
/* ===== 全站深度 UI 精修（科技感 · 专业化 · 简洁清晰） ===== */
/* 1. KPI 指标卡科技化（运营/财务/库存/报表/复盘通用） */
.kpi-grid { gap: 14px; }
.kpi { position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 4px 16px rgba(15,23,42,.05);
  transition: transform .15s, box-shadow .15s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.09); }
.kpi::before { content: ''; position: absolute; top: -34px; right: -34px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 65%); pointer-events: none; }
.kpi::after { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3b82f6, rgba(59,130,246,.15)); pointer-events: none; }
.kpi-label { font-size: 12.5px; color: #64748b; letter-spacing: .5px; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.kpi-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 0 6px rgba(59,130,246,.5); }
.kpi-value { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: .3px;
  background: linear-gradient(180deg, #1e293b 30%, #2563eb 160%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; }
.kpi-value.red { background: linear-gradient(180deg, #1e293b 30%, #dc2626 160%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-value.green { background: linear-gradient(180deg, #1e293b 30%, #059669 160%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-value.blue { background: linear-gradient(180deg, #1e293b 30%, #2563eb 160%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-value.orange { background: linear-gradient(180deg, #1e293b 30%, #d97706 160%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-value.gray { background: linear-gradient(180deg, #334155 30%, #94a3b8 160%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-unit { font-size: 12.5px; color: #64748b; font-weight: 400; margin-left: 2px; }
.kpi-sub { font-size: 12px; color: #94a3b8; margin-top: 7px; }

/* 2. 彩色状态标签增强（客服/库存/售后/订单通用） */
.tag { padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .2px; }
.tag-green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857; border: 1px solid #a7f3d0; }
.tag-orange { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #b45309; border: 1px solid #fde68a; }
.tag-red { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #b91c1c; border: 1px solid #fecaca; }
.tag-blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-gray { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* 3. 空态优化 */
.empty { text-align: center; padding: 32px 16px; color: #94a3b8; font-size: 13px; letter-spacing: .5px; }
.card.empty::before { content: '◌'; display: block; font-size: 26px; color: #cbd5e1; margin-bottom: 8px; }

/* 4. 系统设置卡精修 */
.settings-card { max-width: 760px; background: linear-gradient(180deg, #ffffff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 4px 16px rgba(15,23,42,.05); padding: 20px 22px; margin-bottom: 16px; }
.settings-card .field { margin-bottom: 14px; }
.settings-card .field label { font-size: 12px; color: #64748b; letter-spacing: .3px; }
.settings-card .hint { color: #94a3b8; font-size: 12px; }

/* 5. 表格操作列按钮统一 */
.sku-actions { white-space: nowrap; }
.sku-actions .btn-sm { margin-right: 4px; border-radius: 8px; }
.sku-actions .btn-outline:hover { background: #eff6ff; }

/* 6. 页签角标圆润化 */
.ops-badge { display: inline-block; min-width: 20px; height: 18px; line-height: 18px; padding: 0 6px;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; text-align: center; }

/* 7. 页签面板过渡 */
.ops-panel { animation: fade .22s ease; }

/* 8. 表格数据列对齐与数字可读性 */
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table code.sku-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #f1f5f9; padding: 2px 7px; border-radius: 6px; color: #334155; }

/* ===== 多店铺模式开关 开/关对比修复 ===== */
#view-stores .ms-switch .ms-slider { background: #cbd5e1; box-shadow: inset 0 1px 2px rgba(15,23,42,.08); }
#view-stores .ms-switch input:checked + .ms-slider { background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 2px 8px rgba(37,99,235,.4), inset 0 1px 0 rgba(255,255,255,.25); }
#view-stores .ms-switch input:checked + .ms-slider::before { transform: translateX(22px); }
/* ===== 商品管理 操作列固定右侧 + 按钮增强 ===== */
#view-merchantProducts .table-wrap { overflow-x: auto; }
#view-merchantProducts .table-mp th:last-child,
#view-merchantProducts .table-mp td:last-child {
  position: sticky; right: 0; z-index: 2; white-space: nowrap;
  background: #ffffff;
  box-shadow: -6px 0 10px rgba(15,23,42,.05);
}
#view-merchantProducts .table-mp thead th:last-child { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); z-index: 3; }
#view-merchantProducts .table-mp tbody tr:hover td:last-child { background: #eff6ff; }
#view-merchantProducts .table-mp td:last-child .btn { margin-right: 6px; border-radius: 8px; font-weight: 600; }
#view-merchantProducts .table-mp td:last-child .btn-outline {
  background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; color: #1d4ed8;
}
#view-merchantProducts .table-mp td:last-child .btn-outline:hover { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(37,99,235,.3); }
#view-merchantProducts .table-mp td:last-child .btn-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; color: #b91c1c;
}
#view-merchantProducts .table-mp td:last-child .btn-danger:hover { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(239,68,68,.3); }
/* ===== 财务管理 对账筛选条 ===== */
.fin-filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fin-group-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0;
  background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid #e2e8f0; border-radius: 12px; padding: 7px 10px; }
.fin-group-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 18px; font-size: 12px; font-weight: 600; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; color: #475569; transition: all .15s; font-family: inherit; }
.fin-group-chip:hover { border-color: #60a5fa; color: #2563eb; background: #eff6ff; }
.fin-group-chip.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(37,99,235,.28); }
.fin-group-count { display: inline-block; min-width: 18px; height: 16px; line-height: 16px; padding: 0 5px; border-radius: 8px; font-size: 10.5px; font-weight: 700; background: #f1f5f9; color: #64748b; }
.fin-group-chip.active .fin-group-count { background: rgba(255,255,255,.26); color: #fff; }
.fin-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fin-store { width: 150px; }
.fin-time-chips { display: flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #ffffff, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 12px; padding: 5px 6px; }
.fin-time-chip { padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: #475569; transition: all .15s; font-family: inherit; }
.fin-time-chip:hover { background: #eff6ff; color: #1d4ed8; }
.fin-time-chip.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; box-shadow: 0 3px 10px rgba(37,99,235,.28); }
.fin-custom { display: flex; align-items: center; gap: 6px; }
.fin-custom .input { width: 132px; }
.fin-custom-sep { color: #94a3b8; font-size: 12px; }
#view-finance .card-title .hint { font-size: 11px; color: #94a3b8; font-weight: 400; margin-left: 8px; }
/* ===== 库存管理 商品缩略图 ===== */
.mp-cell { display: flex; align-items: center; gap: 10px; }
.mp-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid #e2e8f0; background: linear-gradient(135deg, #f8fafc, #eef2f7); flex: none; }
.mp-thumb-ph { background: linear-gradient(135deg, #e0e7ff, #dbeafe); }
.roi-warn { color: #d97706; font-weight: 600; }
#view-inventory .card-title .hint { font-size: 11px; color: #94a3b8; font-weight: 400; margin-left: 8px; }
/* ===== 新建推广计划 模态框（对齐拼多多后台） ===== */
.pdd-modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); z-index: 999; display: flex; align-items: center; justify-content: center; }
.pdd-modal { width: 860px; max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(15,23,42,.28); display: flex; flex-direction: column; overflow: hidden; animation: pddPop .18s ease; }
@keyframes pddPop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.pdd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; background: linear-gradient(135deg,#fff,#f8fafc); }
.pdd-modal-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.pdd-modal-close { border: none; background: transparent; font-size: 22px; color: #94a3b8; cursor: pointer; line-height: 1; padding: 2px 8px; border-radius: 8px; }
.pdd-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.pdd-modal-tabs { display: flex; gap: 4px; padding: 10px 20px 0; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.pdd-modal-tab { padding: 9px 18px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-radius: 8px 8px 0 0; font-family: inherit; position: relative; }
.pdd-modal-tab:hover { color: #2563eb; }
.pdd-modal-tab.active { color: #2563eb; background: #fff; }
.pdd-modal-tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: linear-gradient(90deg,#2563eb,#3b82f6); border-radius: 2px; }
.pdd-modal-body { padding: 14px 20px 8px; overflow-y: auto; flex: 1; }
.pdd-sel-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pdd-search { flex: 1; min-width: 200px; }
.pdd-goods-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.pdd-goods-card { border: 1px solid #e2e8f0; border-radius: 10px; transition: all .15s; cursor: pointer; }
.pdd-goods-card:hover { border-color: #93c5fd; box-shadow: 0 2px 10px rgba(37,99,235,.08); }
.pdd-goods-card.checked { border-color: #3b82f6; background: linear-gradient(135deg,#eff6ff,#f8fafc); box-shadow: 0 2px 12px rgba(37,99,235,.14); }
.pdd-goods-check { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.pdd-goods-check input[type=checkbox] { accent-color: #2563eb; width: 16px; height: 16px; flex: none; }
.pdd-goods-body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pdd-goods-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid #e2e8f0; flex: none; background: linear-gradient(135deg,#e0e7ff,#dbeafe); }
.pdd-goods-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pdd-goods-name { font-size: 13px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pdd-goods-meta { font-size: 11.5px; color: #94a3b8; }
.pdd-goods-roi { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11.5px; color: #64748b; flex: none; padding-left: 12px; border-left: 1px solid #f1f5f9; }
.pdd-goods-roi b { font-size: 16px; color: #2563eb; }
.pdd-settings { margin-top: 12px; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px 14px; background: linear-gradient(135deg,#f8fafc,#fff); }
.pdd-settings-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.pdd-setting-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #334155; flex-wrap: wrap; }
.pdd-setting-label { width: 110px; color: #475569; font-weight: 600; flex: none; }
.pdd-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #334155; cursor: pointer; }
.pdd-radio input { accent-color: #2563eb; }
.pdd-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.pdd-switch input { opacity: 0; width: 0; height: 0; }
.pdd-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 22px; transition: .2s; }
.pdd-slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pdd-switch input:checked + .pdd-slider { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.pdd-switch input:checked + .pdd-slider::before { transform: translateX(18px); }
.pdd-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #f1f5f9; background: #f8fafc; }
.pdd-foot-btns { display: flex; gap: 10px; }

/* ---------- 通知中心（M1） ---------- */
.notify-wrap { position: relative; }
.notify-bell { position: relative; padding: 5px 10px !important; }
.notify-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #e02e24; color: #fff; border-radius: 8px;
  font-size: 10px; line-height: 16px; text-align: center;
  align-items: center; justify-content: center; font-weight: 700;
  box-shadow: 0 1px 3px rgba(224,46,36,.4);
}
.notify-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 380px; max-height: 480px;
  background: #fff; border: 1px solid #e8eaed; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 100;
  display: flex; flex-direction: column; overflow: hidden;
}
.notify-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #f0f1f3; font-weight: 600; font-size: 13px;
  background: #fafbfc;
}
.notify-list { overflow-y: auto; flex: 1; max-height: 380px; }
.notify-item { padding: 10px 14px; border-bottom: 1px solid #f4f5f7; cursor: pointer; transition: background .12s; }
.notify-item:hover { background: #f8fafc; }
.notify-item.read { opacity: .55; }
.notify-item-head { display: flex; align-items: center; gap: 8px; }
.notify-item-lvl { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600; flex: none; }
.notify-item-lvl.lv-info { background: #eff6ff; color: #2563eb; }
.notify-item-lvl.lv-warn { background: #fffbeb; color: #b45309; }
.notify-item-lvl.lv-danger { background: #fef2f2; color: #dc2626; }
.notify-item-title { font-size: 13px; font-weight: 600; color: #1f2329; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notify-item-time { font-size: 11px; color: #9aa0ab; flex: none; }
.notify-item-text { font-size: 12px; color: #4b5563; margin-top: 4px; line-height: 1.5; }
.notify-item-store { font-size: 11px; color: #6b7280; margin-top: 3px; }
.notify-empty { padding: 32px; text-align: center; color: #9aa0ab; font-size: 13px; }
.notify-panel-foot { padding: 8px 14px; border-top: 1px solid #f0f1f3; font-size: 11px; color: #9aa0ab; text-align: right; background: #fafbfc; }

/* ---------- 平台操作中心（M2） ---------- */
.cap-app-status { padding: 14px 18px; }
.cap-status-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.cap-status-item { display: flex; flex-direction: column; gap: 3px; }
.cap-status-label { font-size: 11px; color: #9aa0ab; }
.cap-phase { font-size: 15px; color: #b45309; font-weight: 700; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-top: 4px; }
.cap-card {
  background: linear-gradient(135deg, #fafbfc, #fff);
  border: 1px solid #eef0f2; border-radius: 12px; padding: 12px 14px;
  transition: box-shadow .15s, border-color .15s;
}
.cap-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); border-color: #dde1e6; }
.cap-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cap-name { font-size: 13.5px; font-weight: 700; color: #1f2329; }
.cap-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 10px; font-weight: 600; flex: none; }
.cap-badge.ok { background: #ecfdf5; color: #059669; }
.cap-badge.wait { background: #fffbeb; color: #b45309; }
.cap-badge.off { background: #f3f4f6; color: #9aa0ab; }
.cap-desc { font-size: 12px; color: #6b7280; margin-top: 6px; line-height: 1.5; min-height: 34px; }
.cap-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cap-channel { font-size: 10.5px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.cap-channel.ch-api { background: #eff6ff; color: #2563eb; }
.cap-channel.ch-web { background: #ecfdf5; color: #059669; }
.cap-channel.ch-local { background: #f5f3ff; color: #7c3aed; }
.cap-api { font-size: 10.5px; color: #9aa0ab; font-family: Consolas, monospace; }
.cap-using { font-size: 10.5px; color: #059669; font-weight: 600; }

/* ---------- 数据健康度徽章（M3） ---------- */
.health-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #6b7280;
  padding: 3px 10px; border-radius: 12px; margin: 10px 0 0;
  background: #fff; border: 1px solid #e8eaed; line-height: 1.5;
}
.health-badge.ok { border-color: #bbf7d0; background: #f0fdf4; }
.health-badge.ok b { color: #059669; }
.health-badge.wait { border-color: #fde68a; background: #fffbeb; }
.health-badge.wait b { color: #b45309; }

/* ---------- 数据采集（P3） ---------- */
.collect-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.collect-kpis .kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.collect-guide { display: flex; flex-direction: column; gap: 8px; }
.collect-guide-row { font-size: 13px; color: var(--text-2); line-height: 1.7; padding: 8px 12px; background: #fafbfc; border-radius: 8px; }
.collect-guide-row b { color: var(--text); }

/* ===== P4 上线审核：登录页 / 审核模式 ===== */
.login-view{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f4f7fb 0%,#eef3f9 55%,#e8eef7 100%);}
.login-card{width:380px;max-width:92vw;background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(30,60,120,.12);padding:34px 32px 26px;text-align:center;}
.login-brand{margin-bottom:22px;}
.login-title{font-size:18px;font-weight:700;color:#1f2329;margin-top:12px;}
.login-sub{font-size:12px;color:#8a919f;margin-top:5px;}
.login-form{text-align:left;}
.login-form .field{margin-bottom:14px;}
.login-btn{width:100%;height:42px;font-size:15px;margin-top:6px;}
.login-err{color:#dc2626;font-size:12px;padding:8px 10px;background:#fef2f2;border-radius:8px;margin-bottom:10px;}
.login-foot{font-size:11px;color:#a0a6b1;margin-top:18px;}
.review-badge{background:#f59e0b !important;color:#fff !important;}
.review-banner{background:linear-gradient(90deg,#fffbeb,#fef3c7);border:1px solid #fcd34d;color:#92400e;border-radius:10px;padding:9px 14px;font-size:13px;margin-bottom:14px;}
