/* 功能看板 — jk- 前缀，隔离 Temu 页面样式 */

/* 挂载壳 — 具体数值由 function-board.js 内联样式控制 */
.jk-fb-shell {
  box-sizing: border-box;
  clear: both;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

#jk-function-board-root {
  display: block;
  margin: 0;
  padding: 0;
  font-family: MiSans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
  line-height: normal;
  color: #303133;
  overflow-x: hidden;
  overflow-y: hidden;
  contain: layout style;
  isolation: isolate;
  background: transparent;
}

/* ── 顶部 Logo 栏 ── */
#jk-function-board-root .jk-logo-bar {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

#jk-function-board-root .jk-logo-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

#jk-function-board-root .jk-logo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#jk-function-board-root .jk-brand-text {
  font-size: 22px;
  font-weight: 700;
  color: #3491fa;
  line-height: 1;
}

#jk-function-board-root .jk-logo-text,
#jk-function-board-root .jk-logo-text-vip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #606266;
}

#jk-function-board-root .jk-logo-time-icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

#jk-function-board-root .jk-countdown-btn-goBuy,
#jk-function-board-root .jk-countdown-btn-goBuy-vip {
  margin-left: 8px;
  padding: 2px 10px;
  border: none;
  border-radius: 4px;
  background: #3491fa;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

#jk-function-board-root .jk-countdown-btn-goBuy-vip {
  background: #ff8000;
}

#jk-function-board-root .jk-logo-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

#jk-function-board-root .jk-data-header .jk-logo-text,
#jk-function-board-root .jk-data-header .jk-logo-text-vip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #606266;
}

#jk-function-board-root .jk-user-center-wrap {
  display: flex;
}

#jk-function-board-root .jk-user-icon {
  height: 14px;
  margin-right: 2px;
}

#jk-function-board-root .jk-feedback-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

#jk-function-board-root .jk-board-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 2px;
  flex-shrink: 0;
  color: #000;
}

#jk-function-board-root *,
#jk-function-board-root *::before,
#jk-function-board-root *::after {
  box-sizing: border-box;
}

/* ── 数据区头部 ── */
#jk-function-board-root .jk-product-data {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: hidden;
}

#jk-function-board-root .jk-data-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}

#jk-function-board-root .jk-version-wrap {
  display: flex;
  align-items: center;
}

#jk-function-board-root .jk-user-center-btn,
#jk-function-board-root .jk-feedback-btn,
#jk-function-board-root .jk-board-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 90px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  padding: 0;
  line-height: 22px;
}

#jk-function-board-root .jk-user-center-btn:hover,
#jk-function-board-root .jk-feedback-btn:hover,
#jk-function-board-root .jk-board-menu-btn:hover {
  background: #f5f7fa;
}

#jk-function-board-root .jk-update-time {
  font-size: 13px;
  color: #606266;
}

#jk-function-board-root .jk-check-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #303133;
}

#jk-function-board-root .jk-check-shop-btn img {
  height: 16px;
}

#jk-function-board-root .jk-price-sync-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 999px;
  width: 128px;
  height: 28px;
  padding: 0 8px;
}

#jk-function-board-root .jk-price-sync-label {
  font-weight: 600;
  font-size: 14px;
}

#jk-function-board-root .jk-price-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

#jk-function-board-root .jk-price-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

#jk-function-board-root .jk-price-switch-slider {
  position: absolute;
  inset: 0;
  background: #dcdfe6;
  border-radius: 20px;
  transition: 0.2s;
}

#jk-function-board-root .jk-price-switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

#jk-function-board-root .jk-price-switch-input:checked + .jk-price-switch-slider {
  background: #3491fa;
}

#jk-function-board-root .jk-price-switch-input:checked + .jk-price-switch-slider::before {
  transform: translateX(16px);
}

#jk-function-board-root .jk-sync-btn,
#jk-function-board-root .jk-display-data-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  color: #606266;
}

#jk-function-board-root .jk-sync-icon {
  width: 18px;
  height: 18px;
  transform: rotate(100deg);
}

#jk-function-board-root .jk-display-data-btn img {
  width: 18px;
  height: 18px;
}

#jk-function-board-root .jk-sync-btn:hover,
#jk-function-board-root .jk-display-data-btn:hover {
  background: #f5f7fa;
}

#jk-function-board-root .jk-data-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

#jk-function-board-root .jk-data-hint-red {
  color: #f53f3f;
}

#jk-function-board-root .jk-update-ver-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  background: #fff;
  color: #3491fa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

#jk-function-board-root .jk-update-ver-btn:hover {
  background: #f5f7fa;
  border-color: #c9cdd4;
}

#jk-function-board-root .jk-update-ver-btn .jk-icon-download {
  color: #3491fa;
}

/* ── 主看板：横向可滚动，纵向固定 ── */
#jk-function-board-root .jk-plug-main {
  overflow-x: hidden;
  overflow-y: hidden;
}

#jk-function-board-root .jk-plug-home {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  height: auto;
  gap: 0;
}

#jk-function-board-root .jk-home-item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-top: 0;
}

#jk-function-board-root .jk-home-item-left {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: max-content;
  position: relative;
}

#jk-function-board-root .jk-home-item-panel {
  flex-direction: column;
  padding: 10px 12px 10px;
  min-width: 0;
}

#jk-function-board-root .jk-home-item-quality {
  width: 360px;
  min-width: 360px;
}

#jk-function-board-root .jk-home-item-new {
  width: 300px;
  min-width: 300px;
  margin-right: 10px;
}

#jk-function-board-root .jk-division {
  width: 1px;
  background: #e4e7ed;
  flex-shrink: 0;
  margin: 0 10px;
  align-self: stretch;
}

#jk-function-board-root .jk-division-inner {
  margin: 28px 8px 0;
  align-self: stretch;
}

/* ── 统一看板面板 ── */
#jk-function-board-root .jk-board-panel {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
}

#jk-function-board-root .jk-board-panel--billing {
  width: 108px;
}

#jk-function-board-root .jk-board-panel--sales {
  width: 580px;
}

#jk-function-board-root .jk-board-panel--stock {
  width: 300px;
  position: relative;
}

#jk-function-board-root .jk-board-panel--stock .jk-tag-refresh-sale {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 9998;
}

#jk-function-board-root .jk-board-panel--stock .jk-board-head {
  padding-right: 30px;
}

#jk-function-board-root .jk-board-head {
  height: 22px;
  margin-bottom: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

#jk-function-board-root .jk-board-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
  padding-left: 8px;
  border-left: 3px solid #3491fa;
  line-height: 22px;
  white-space: nowrap;
}

#jk-function-board-root .jk-board-title--orange {
  border-color: #fa8c16;
}

#jk-function-board-root .jk-board-title--blue {
  border-color: #3491fa;
}

#jk-function-board-root .jk-board-title--teal {
  border-color: #13c2c2;
}

#jk-function-board-root .jk-board-title--gold {
  border-color: #faad14;
}

#jk-function-board-root .jk-board-body {
  flex: 1;
  height: 124px;
  min-height: 124px;
}

#jk-function-board-root .jk-board-body--split {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#jk-function-board-root .jk-link-col {
  width: 124px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#jk-function-board-root .jk-link-row {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 6px;
  font-size: 11px;
  color: #4e5969;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#jk-function-board-root .jk-link-row:hover {
  border-color: #c9cdd4;
  color: #3491fa;
}

#jk-function-board-root .jk-stat-grid {
  display: grid;
  gap: 6px;
  height: 100%;
  flex: 1;
  min-width: 0;
}

#jk-function-board-root .jk-stat-grid--3x2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

#jk-function-board-root .jk-stat-grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

#jk-function-board-root .jk-stat-grid--quality {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

#jk-function-board-root .jk-stat-cell {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 0;
}

#jk-function-board-root .jk-stat-cell--wide {
  grid-column: 1 / -1;
}

#jk-function-board-root .jk-stat-label-row {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

#jk-function-board-root .jk-stat-label {
  font-size: 11px;
  color: #86909c;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#jk-function-board-root .jk-stat-label .jk-quality-under,
#jk-function-board-root .jk-stat-label .jk-comment-under {
  color: #4e5969;
  font-weight: 600;
}

#jk-function-board-root .jk-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

#jk-function-board-root .jk-stat-tile--featured {
  height: 100%;
  background: #fff;
  border: 1px solid #ffe7ba;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s;
}

#jk-function-board-root .jk-stat-tile--featured:hover {
  border-color: #ffc069;
}

#jk-function-board-root .jk-hot-tag {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  font-weight: 600;
  background: #ff8000;
  color: #fff;
  padding: 1px 5px;
  border-radius: 0 6px 0 6px;
  line-height: 14px;
}

#jk-function-board-root .jk-stat-cell .jk-icon-btn {
  color: #c0c4cc;
  flex-shrink: 0;
}

#jk-function-board-root .jk-stat-cell .jk-icon-btn:hover {
  color: #3491fa;
}

/* ── 刷新角标 ── */
#jk-function-board-root .jk-tag-refresh {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 9998;
}

#jk-function-board-root .jk-refresh-btn,
#jk-function-board-root .jk-refresh-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9ecff;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  color: #3491fa;
}

#jk-function-board-root .jk-refresh-btn {
  width: 24px;
  height: 24px;
}

#jk-function-board-root .jk-refresh-btn-sm {
  width: 22px;
  height: 22px;
}

/* ── Tooltip ── */
#jk-function-board-root .jk-tooltip-wrap {
  position: relative;
}

#jk-function-board-root .jk-tooltip-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 10px 12px;
  width: 280px;
  z-index: 9999;
  font-size: 12px;
}

/* 鼠标从按钮移向面板时的透明桥接区，避免 hover 断开 */
#jk-function-board-root .jk-tooltip-wrap.jk-tooltip-open::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -180px;
  right: -12px;
  height: 14px;
  z-index: 9998;
}

#jk-function-board-root .jk-tooltip-quality,
#jk-function-board-root .jk-board-panel--stock .jk-tooltip-panel {
  right: 0;
  left: auto;
}

#jk-function-board-root .jk-tooltip-open .jk-tooltip-panel {
  display: block;
}

#jk-function-board-root.jk-tooltip-active,
.jk-fb-shell.jk-tooltip-active {
  overflow: visible !important;
  contain: none;
}

#jk-function-board-root.jk-tooltip-active .jk-product-data,
#jk-function-board-root.jk-tooltip-active .jk-plug-main,
#jk-function-board-root.jk-tooltip-active .jk-plug-home,
#jk-function-board-root.jk-tooltip-active .jk-home-item,
#jk-function-board-root.jk-tooltip-active .jk-home-item-left,
#jk-function-board-root.jk-tooltip-active .jk-board-panel,
#jk-function-board-root.jk-tooltip-active .jk-board-panel--stock {
  overflow: visible !important;
}

/* 向下展开时预留空间，避免底部被裁切 */
#jk-function-board-root.jk-tooltip-active .jk-plug-main {
  padding-bottom: 150px;
  margin-bottom: -150px;
}

#jk-function-board-root .jk-tooltip-simple {
  display: none;
  position: absolute;
  top: 100%;
  left: -60px;
  white-space: nowrap;
  background: #303133;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

#jk-function-board-root .jk-tooltip-open .jk-tooltip-simple {
  display: block;
}

#jk-function-board-root .jk-refresh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

#jk-function-board-root .jk-ref-title {
  font-weight: 600;
  color: #303133;
}

#jk-function-board-root .jk-ref-status {
  color: #67c23a;
}

#jk-function-board-root .jk-ref-time {
  color: #909399;
  padding-left: 10px;
  margin-top: 2px;
}

#jk-function-board-root .jk-status-split {
  height: 1px;
  background: #ebeef5;
}

#jk-function-board-root .jk-sync-all-btn {
  display: block;
  width: calc(100% - 10px);
  margin: 8px 0 0 10px;
  background: #ecf5ff;
  color: #3491fa;
  border: 1px solid #d9ecff;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ── 卡片区块 ── */
#jk-function-board-root .jk-section-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

#jk-function-board-root .jk-section-wide {
  min-width: 620px;
}

#jk-function-board-root .jk-section-stock {
  min-width: 320px;
}

#jk-function-board-root .jk-section-billing {
  min-width: 120px;
}

#jk-function-board-root .jk-sales-grid {
  flex: 1;
  min-width: 440px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#jk-function-board-root .jk-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#jk-function-board-root .jk-action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 144px;
}

#jk-function-board-root .jk-action-card:hover {
  border-color: #dce3ee;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

#jk-function-board-root .jk-action-card--hot {
  border-color: #ffd591;
  background: linear-gradient(135deg, #fff 0%, #fff7e6 100%);
}

#jk-function-board-root .jk-action-card--sm {
  min-height: 68px;
  padding: 10px;
  flex: 1;
}

#jk-function-board-root .jk-action-hint {
  font-size: 11px;
  color: #c0c4cc;
  line-height: 1.3;
  margin-top: 2px;
}

#jk-function-board-root .jk-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 6px;
}

#jk-function-board-root .jk-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

#jk-function-board-root .jk-section-badge--gold {
  background: linear-gradient(135deg, #fff4d6 0%, #ffe0a3 100%);
  color: #d48806;
}

#jk-function-board-root .jk-section-badge--blue {
  background: linear-gradient(135deg, #e8f3ff 0%, #c9e0ff 100%);
  color: #1677ff;
}

#jk-function-board-root .jk-section-badge--orange {
  background: linear-gradient(135deg, #fff4e6 0%, #ffd8bf 100%);
  color: #d46b08;
}

#jk-function-board-root .jk-section-badge--teal {
  background: linear-gradient(135deg, #e6fffb 0%, #b5f5ec 100%);
  color: #08979c;
}

#jk-function-board-root .jk-home-card {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  position: relative;
  border: 1px solid #ebeef5;
}

#jk-function-board-root .jk-home-card-hot {
  min-width: 104px;
  height: 144px;
  border-color: #ff8000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#jk-function-board-root .jk-tag-hot {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff8000;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 0 8px 0 8px;
}

#jk-function-board-root .jk-home-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

#jk-function-board-root .jk-sales-row {
  display: flex;
  gap: 8px;
}

#jk-function-board-root .jk-home-card-side {
  min-width: 148px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#jk-function-board-root .jk-home-card-side .jk-home-card-list {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#jk-function-board-root .jk-home-card-main {
  flex: 1;
  min-width: 432px;
}

#jk-function-board-root .jk-home-card-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#jk-function-board-root .jk-fb-icon {
  display: inline-block;
  flex-shrink: 0;
  color: #909399;
  vertical-align: middle;
}

#jk-function-board-root .jk-module-title {
  font-size: 13px;
  color: #606266;
  margin-bottom: 0;
}

#jk-function-board-root .jk-module-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  width: 100%;
}

#jk-function-board-root .jk-module-count {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  line-height: 24px;
  text-align: center;
  width: 100%;
}

#jk-function-board-root .jk-region-nums {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #606266;
  line-height: 24px;
}

#jk-function-board-root .jk-region-nums .jk-module-count {
  margin-left: 4px;
}

#jk-function-board-root .jk-quality-body,
#jk-function-board-root .jk-new-body {
  background: transparent;
  border-radius: 8px;
  padding: 0;
  flex: 1;
}

#jk-function-board-root .jk-quality-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

#jk-function-board-root .jk-quality-row + .jk-quality-row {
  margin-top: 8px;
}

#jk-function-board-root .jk-metrics-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

#jk-function-board-root .jk-metrics-row + .jk-metrics-row {
  margin-top: 8px;
}

/* ── 指标卡片 ── */
#jk-function-board-root .jk-metric-card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#jk-function-board-root .jk-metric-card:hover {
  border-color: #dce3ee;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

#jk-function-board-root .jk-metric-card--compact {
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 10px;
  gap: 6px;
}

#jk-function-board-root .jk-metric-card--compact .jk-metric-content {
  width: 100%;
}

#jk-function-board-root .jk-metric-card--compact .jk-metric-value {
  font-size: 17px;
}

#jk-function-board-root .jk-metric-icon-wrap--sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

#jk-function-board-root .jk-metric-icon-wrap--sm svg {
  width: 16px;
  height: 16px;
}

#jk-function-board-root .jk-metric-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

#jk-function-board-root .jk-metric-icon-wrap--amber {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
  color: #d46b08;
}

#jk-function-board-root .jk-metric-icon-wrap--orange {
  background: linear-gradient(135deg, #fff4e6 0%, #ffd8bf 100%);
  color: #d46b08;
}

#jk-function-board-root .jk-metric-icon-wrap--red {
  background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
  color: #cf1322;
}

#jk-function-board-root .jk-metric-icon-wrap--blue {
  background: linear-gradient(135deg, #e6f4ff 0%, #bae0ff 100%);
  color: #0958d9;
}

#jk-function-board-root .jk-metric-icon-wrap--purple {
  background: linear-gradient(135deg, #f9f0ff 0%, #efdbff 100%);
  color: #722ed1;
}

#jk-function-board-root .jk-metric-icon-wrap--orange {
  background: linear-gradient(135deg, #fff7e6 0%, #ffd591 100%);
  color: #d46b08;
}

#jk-function-board-root .jk-metric-icon-wrap--green {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
  color: #389e0d;
}

#jk-function-board-root .jk-metric-icon-wrap--cyan {
  background: linear-gradient(135deg, #e6fffb 0%, #b5f5ec 100%);
  color: #08979c;
}

#jk-function-board-root .jk-metric-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#jk-function-board-root .jk-metric-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

#jk-function-board-root .jk-metric-label {
  font-size: 12px;
  color: #86909c;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#jk-function-board-root .jk-metric-label .jk-quality-under,
#jk-function-board-root .jk-metric-label .jk-comment-under {
  color: #4e5969;
  font-weight: 600;
}

#jk-function-board-root .jk-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

#jk-function-board-root .jk-metric-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2f3f5;
  color: #86909c;
  flex-shrink: 0;
  margin-left: auto;
}

#jk-function-board-root .jk-metric-card .jk-icon-btn {
  color: #c0c4cc;
  margin-left: 2px;
  flex-shrink: 0;
}

#jk-function-board-root .jk-metric-card .jk-icon-btn:hover {
  color: #3491fa;
}

#jk-function-board-root .jk-metric-card--wide {
  flex: 1 1 100%;
}

#jk-function-board-root .jk-home-item-quality {
  overflow: visible;
}

#jk-function-board-root .jk-home-item-panel .jk-board-panel {
  flex: 1;
  min-width: 0;
}

#jk-function-board-root.jk-popconfirm-active {
  overflow: visible;
  contain: none;
}

#jk-function-board-root.jk-popconfirm-active .jk-product-data,
#jk-function-board-root.jk-popconfirm-active .jk-plug-main,
#jk-function-board-root.jk-popconfirm-active .jk-plug-home {
  overflow: visible;
}

#jk-function-board-root.jk-popconfirm-active .jk-home-item-quality {
  z-index: 10000;
  position: relative;
}

#jk-function-board-root .jk-popconfirm-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#jk-function-board-root .jk-popconfirm-wrap.jk-popconfirm-open {
  z-index: 10002;
}

#jk-function-board-root .jk-popconfirm-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10003;
  min-width: 240px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

#jk-function-board-root .jk-popconfirm-panel--up {
  top: auto;
  bottom: calc(100% + 8px);
}

#jk-function-board-root .jk-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

#jk-function-board-root .jk-popconfirm-title {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 8px;
}

#jk-function-board-root .jk-quality-threshold-select {
  width: 100%;
  height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 14px;
  color: #303133;
  box-sizing: border-box;
}

#jk-function-board-root .jk-popconfirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

#jk-function-board-root .jk-popconfirm-btn {
  min-width: 72px;
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

#jk-function-board-root .jk-popconfirm-primary {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}

/* ── 加载遮罩 ── */
#jk-function-board-root .jk-mask-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#jk-function-board-root .jk-mask-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#jk-function-board-root .jk-mask-text {
  color: #fff;
  font-size: 12px;
  margin-bottom: 14px;
}

#jk-function-board-root .jk-loading-spin {
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: jk-fb-spin 0.8s linear infinite;
}

@keyframes jk-fb-spin {
  to { transform: rotate(360deg); }
}

#jk-function-board-root .jk-delivery-breakdown {
  margin-top: 8px;
  padding: 8px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  font-size: 11px;
  color: #606266;
  overflow: hidden;
}

#jk-function-board-root .jk-delivery-breakdown-head {
  margin-bottom: 6px;
  line-height: 1.5;
}

#jk-function-board-root .jk-delivery-breakdown-head b {
  color: #d48806;
}

#jk-function-board-root .jk-delivery-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

#jk-function-board-root .jk-delivery-breakdown-table th,
#jk-function-board-root .jk-delivery-breakdown-table td {
  border: 1px solid #eee;
  padding: 4px 6px;
  text-align: left;
  white-space: nowrap;
}

#jk-function-board-root .jk-delivery-breakdown-table td:first-child {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
