:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-header: #0b1120;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-sec: #475569;
  --text-muted: #64748b;
  --brand: #ff2c55;
  --brand-hover: #e61e47;
  --brand-soft: #fff1f3;
  --video-col: #2563eb;
  --live-col: #f97316;
  --card-col: #10b981;
  --other-col: #94a3b8;
  --up-col: #059669;
  --up-bg: #ecfdf5;
  --warn-col: #d97706;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, 0.22);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Text", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 13px;
}

/* 登录页 */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 18% 20%, #1e293b 0%, #0b1120 62%, #070b14 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff2c55 0%, #ff6536 100%);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.login-brand h1 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.login-brand p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.field-group {
  margin-bottom: 15px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 6px;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-group input:focus,
.field-group textarea:focus,
.search-input:focus,
.compact-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 44, 85, 0.12);
}

.pwd-wrap {
  display: flex;
  gap: 6px;
}

.ghost-mini-btn {
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-sec);
  white-space: nowrap;
}

.form-error {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12px;
  margin-bottom: 12px;
}

.login-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 按钮 */
.primary-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.primary-btn:hover {
  background: var(--brand-hover);
}

.secondary-btn {
  background: #fff;
  color: var(--text-sec);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-weight: 500;
  cursor: pointer;
}

.secondary-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.compact-btn {
  padding: 6px 12px;
  font-size: 12.5px;
}

.full-w {
  width: 100%;
}

/* 顶部深色导航栏（FastMoss Pro 风格） */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  min-height: 52px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.market-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 99px;
  color: #cbd5e1;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.nav-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 15px 11px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-tab:hover {
  color: #ffffff;
}

.nav-tab.active {
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.tab-hot, .tab-up {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

.tab-hot {
  background: rgba(255, 44, 85, 0.22);
  color: #ff6b88;
}

.tab-up {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-strip {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.kpi-strip strong {
  color: #e2e8f0;
  font-weight: 600;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-badge {
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}

.top-action-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
}

.top-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.danger-hover:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* 主体容器 */
.workspace-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px 16px 36px;
}

/* 筛选面板 */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-filter-row {
  justify-content: space-between;
}

.mode-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-page);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
}

.mode-btn.active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.cat-cascade-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 280px;
}

.compact-select {
  padding: 6px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
  font-size: 12.5px;
  max-width: 220px;
  outline: none;
}

.compact-select:disabled {
  background: var(--bg-subtle);
  color: #94a3b8;
}

.search-box-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 320px;
  flex: 1;
  max-width: 450px;
}

.search-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
}

.preset-row {
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-pill {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-sec);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-pill:hover,
.preset-pill.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-sec);
  cursor: pointer;
  margin-left: 4px;
}

.range-row {
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  justify-content: space-between;
}

.range-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-sec);
}

.range-item span {
  font-weight: 500;
  color: var(--text-muted);
}

.range-item input {
  width: 66px;
  padding: 5px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.range-item i {
  font-style: normal;
  color: #94a3b8;
}

.sort-export-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* 结果统计栏 */
.result-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.result-summary-text {
  font-size: 12.5px;
  color: var(--text-sec);
  font-variant-numeric: tabular-nums;
}

.legend-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.dot-video { background: var(--video-col); }
.dot-live { background: var(--live-col); }
.dot-card { background: var(--card-col); }
.dot-other { background: var(--other-col); }

/* 表格 */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.fm-table thead th {
  background: #f8fafc;
  color: var(--text-sec);
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.fm-table thead th small {
  font-weight: 400;
  font-size: 10.5px;
  color: var(--text-muted);
}

.fm-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}

.fm-table tbody tr:hover {
  background: #f8fafc;
}

.fm-table td {
  padding: 9px 10px;
  vertical-align: middle;
}

.col-rank { width: 46px; text-align: center; }
.col-product { min-width: 310px; max-width: 390px; }
.col-price { width: 110px; }
.col-orders { width: 125px; }
.col-gmv { width: 120px; }
.col-channel { width: 255px; }
.col-trend { width: 128px; }
.col-comp { width: 145px; }
.col-actions { width: 138px; }

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  background: #f1f5f9;
}

.rank-top1 { background: #fef3c7; color: #b45309; }
.rank-top2 { background: #e2e8f0; color: #334155; }
.rank-top3 { background: #ffedd5; color: #9a3412; }

/* 商品单元格 */
.prod-cell {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.prod-thumb {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f8fafc;
  flex-shrink: 0;
  cursor: zoom-in;
}

.prod-info {
  min-width: 0;
  flex: 1;
}

.prod-title-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 4px;
}

.prod-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 12.8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.prod-title:hover {
  color: var(--brand);
}

.badge-new {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.prod-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.cat-crumb {
  color: #475569;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-id-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.copy-id-btn:hover {
  color: var(--brand);
  text-decoration: underline;
}

.shop-tag {
  color: #64748b;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 价格与单量 */
.price-val {
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
}

.orders-main {
  font-weight: 800;
  font-size: 14.5px;
  color: #0f172a;
}

.orders-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.delta-up {
  display: inline-block;
  background: var(--up-bg);
  color: var(--up-col);
  font-weight: 700;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

.delta-flat {
  font-size: 11px;
  color: #94a3b8;
}

.gmv-main {
  font-weight: 700;
  color: #1e293b;
  font-size: 13px;
}

/* 零盲猜渠道占比条 */
.ch-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ch-bar {
  height: 9px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}

.ch-seg-video { background: var(--video-col); }
.ch-seg-live { background: var(--live-col); }
.ch-seg-card { background: var(--card-col); }
.ch-seg-other {
  background: repeating-linear-gradient(
    45deg,
    #94a3b8,
    #94a3b8 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
}

.ch-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  line-height: 1.25;
}

.ch-tag-v { color: var(--video-col); font-weight: 600; }
.ch-tag-l { color: #ea580c; font-weight: 600; }
.ch-tag-c { color: #059669; font-weight: 600; }
.ch-tag-o { color: #64748b; }

.ch-unranked-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  border: 1px dashed #cbd5e1;
}

.ch-src-badge {
  font-size: 10px;
  color: #64748b;
}

/* 竞争与操作列 */
.comp-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-sec);
}

.sim-low {
  color: #059669;
  font-weight: 700;
}

.action-col-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-btn {
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-sec);
  cursor: pointer;
  text-align: center;
}

.mini-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.mini-btn.picked {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
  font-weight: 600;
}

.mini-btn.primary-outline {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.mini-btn.primary-outline:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.mini-icon-row {
  display: flex;
  gap: 4px;
}

.mini-icon-row .mini-btn {
  flex: 1;
  padding: 3px 5px;
  font-size: 11px;
}

/* 分页栏 */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  font-variant-numeric: tabular-nums;
}

.page-btns {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* 二级工作区头部 */
.subview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.subview-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
}

.muted-text {
  color: var(--text-muted);
  font-size: 12px;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.st-active, .st-approved { background: #dcfce7; color: #166534; }
.st-disabled, .st-dropped { background: #f1f5f9; color: #64748b; }
.st-researching { background: #dbeafe; color: #1e40af; }
.st-candidate { background: #fef3c7; color: #92400e; }

/* 侧滑详情抽屉 */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
}

.product-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(820px, 96vw);
  background: #fff;
  z-index: 70;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #fff;
}

.drawer-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.icon-close-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  padding: 2px 6px;
}

.icon-close-btn:hover {
  opacity: 1;
}

.drawer-body {
  padding: 18px 20px 36px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-hero {
  display: grid;
  grid-template-columns: 112px 1fr 124px;
  gap: 14px;
  align-items: start;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.drawer-hero-img {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.drawer-qr-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
}

.drawer-qr-box img {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 4px;
}

.drawer-qr-box span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.drawer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.d-kpi-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.d-kpi-card .k-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.d-kpi-card .k-val {
  font-size: 17px;
  font-weight: 800;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.drawer-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.drawer-section h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.video-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  gap: 9px;
  background: var(--bg-subtle);
}

.video-cover {
  width: 54px;
  height: 72px;
  border-radius: 5px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.video-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-title {
  font-size: 12px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  font-size: 15px;
  font-weight: 700;
}

.modal-form {
  padding: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.qr-modal-card {
  max-width: 320px;
}

.qr-modal-body {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-svg-img {
  width: 200px;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* 悬浮大图 */
.img-hover-preview {
  position: fixed;
  z-index: 100;
  width: 230px;
  height: 230px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 4px;
  pointer-events: none;
}

.img-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.toast-box {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  z-index: 120;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1100px) {
  .kpi-strip { display: none; }
  .drawer-hero { grid-template-columns: 90px 1fr; }
  .drawer-qr-box { display: none; }
  .drawer-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
