/*
 * LinsGeek ERP —— TikTok「商品体检」页面样式（配合 70-tk-listing.js）
 * 按钮、标签、输入框、弹窗、提示用 69-tk-promotion.css 里的 lg-tkp- 通用样式；这里只有本页的版面（lg-tkl- 前缀）。
 * 回滚：删除 70-tk-listing.css + 70-tk-listing.js。
 */
#lg-tkl {
  --k-brand: #0d7b6d; --k-ink: #0f1a18; --k-muted: #6b7a77; --k-line: rgba(15, 35, 30, .08);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--k-ink); padding: 4px 0 24px; max-width: 1280px; min-width: 0;
}
#lg-tkl *, #lg-tkl *::before, #lg-tkl *::after { box-sizing: border-box; }
#lg-tkl svg { width: 16px; height: 16px; flex: 0 0 auto; }
#lg-tkl .lg-tkl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
#lg-tkl .lg-tkl-title h1 { margin: 0; font-size: 24px; font-weight: 700; }
#lg-tkl .lg-tkl-title p { margin: 4px 0 0; color: var(--k-muted); font-size: 13.5px; max-width: 760px; line-height: 1.5; }
#lg-tkl .lg-tkl-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#lg-tkl .lg-tkl-panel { background: #fff; border: 1px solid var(--k-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -32px rgba(13,123,109,.45); overflow: hidden; }
#lg-tkl .lg-tkl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 16px; border-bottom: 1px solid var(--k-line); }
#lg-tkl .lg-tkl-bar .lg-tkp-field.kw { margin: 8px 0; }
#lg-tkl .lg-tkl-tabs { display: flex; gap: 6px; align-self: stretch; }
#lg-tkl .lg-tkl-tab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 54px; font-size: 14.5px; color: #4b5a57; border-bottom: 2px solid transparent; white-space: nowrap; font-family: inherit; }
#lg-tkl .lg-tkl-tab b { font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #eef2f1; display: inline-flex; align-items: center; justify-content: center; }
#lg-tkl .lg-tkl-tab.hot b { background: #fdecec; color: #d64545; }
#lg-tkl .lg-tkl-tab.on { color: #0d7b6d; font-weight: 700; border-bottom-color: #0d7b6d; }
#lg-tkl .lg-tkl-tab.on b { background: #0d7b6d; color: #fff; }
#lg-tkl .lg-tkl-tab.on.hot b { background: #d64545; color: #fff; }
#lg-tkl .lg-tkl-tab:focus-visible, #lg-tkl .lg-tkl-chip:focus-visible { outline: 2px solid #13b8a6; outline-offset: 2px; }
#lg-tkl .lg-tkl-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 4px; }
#lg-tkl .lg-tkl-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #4b5a57; background: #f1f4f3; font-family: inherit; white-space: nowrap; }
#lg-tkl .lg-tkl-chip:hover { background: #e7f2f0; }
#lg-tkl .lg-tkl-chip i { font-style: normal; font-size: 12px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
#lg-tkl .lg-tkl-chip.on { background: #0d7b6d; color: #fff; }
#lg-tkl .lg-tkl-pending { margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px; background: #f7faf9; color: var(--k-muted); font-size: 13px; line-height: 1.5; }
#lg-tkl .lg-tkl-pending[hidden] { display: none; }

/* ---------- 商品卡片 ---------- */
#lg-tkl .lg-tkl-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; min-height: 280px; transition: opacity .15s; }
#lg-tkl .lg-tkl-list.dim { opacity: .55; pointer-events: none; }
#lg-tkl .lg-tkl-card { border: 1px solid #e3eae8; border-radius: 16px; background: #fff; overflow: hidden; }
#lg-tkl .lg-tkl-card.busy { opacity: .65; }
#lg-tkl .lg-tkl-card > header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f7faf9; flex-wrap: wrap; }
#lg-tkl .lg-tkl-prod { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
#lg-tkl .lg-tkl-prod b { font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
#lg-tkl .lg-tkl-prod b.none { color: #9aa7a4; font-weight: 500; }
#lg-tkl .lg-tkl-prod span { font-size: 12.5px; color: var(--k-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#lg-tkl .lg-tkl-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#lg-tkl .lg-tkp-pill.bad { background: #fdecec; color: #c23636; }
#lg-tkl .lg-tkp-pill svg { width: 12px; height: 12px; }
#lg-tkl .lg-tkl-err { margin: 0; padding: 8px 16px; background: #fff8e6; color: #6b4e00; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#lg-tkl .lg-tkl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--k-line); }
#lg-tkl .lg-tkl-field { padding: 12px 16px; border-bottom: 1px solid var(--k-line); min-width: 0; }
#lg-tkl .lg-tkl-field:nth-child(odd) { border-right: 1px solid var(--k-line); }
#lg-tkl .lg-tkl-field:only-child { grid-column: 1 / -1; border-right: 0; }
#lg-tkl .lg-tkl-field h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: #0d7b6d; }
#lg-tkl .lg-tkl-issues { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
#lg-tkl .lg-tkl-issues li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
#lg-tkl .lg-tkl-issues svg { color: #c2850c; margin-top: 3px; }
#lg-tkl .lg-tkl-card > footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 16px; }
#lg-tkl .lg-tkl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 16px 14px; font-size: 13px; color: var(--k-muted); }
#lg-tkl .lg-tkl-foot:empty { display: none; }

/* 建议（页面里和弹窗里都用） */
.lg-tkl-sub { margin-top: 10px; min-width: 0; }
.lg-tkl-sub > small { display: block; margin-bottom: 6px; font-size: 12px; color: #6b7a77; }
.lg-tkl-words { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-tkl-word { all: unset; cursor: pointer; padding: 3px 10px; border-radius: 999px; background: #ecebfb; color: #4a43b5; font-size: 12.5px; font-weight: 600; font-family: inherit; }
.lg-tkl-word:hover { background: #dedcf7; }
.lg-tkl-word:focus-visible, .lg-tkl-copy:focus-visible { outline: 2px solid #13b8a6; outline-offset: 2px; }
.lg-tkl-text { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f7faf9; border: 1px solid rgba(15,35,30,.06); }
.lg-tkl-text + .lg-tkl-text { margin-top: 6px; }
.lg-tkl-text p { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; color: #0f1a18; }
.lg-tkl-copy { all: unset; cursor: pointer; flex: 0 0 auto; padding: 3px 10px; border-radius: 8px; background: #e7f2f0; color: #0d7b6d; font-size: 12.5px; font-weight: 600; font-family: inherit; white-space: nowrap; }
.lg-tkl-copy:hover { background: #d7ebe7; }
.lg-tkl-imgs { display: flex; gap: 10px; flex-wrap: wrap; }
.lg-tkl-imgs a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #6b7a77; font-size: 12px; }
.lg-tkl-imgs img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(15,35,30,.08); background: #f1f4f3; display: block; }
.lg-tkl-modal .lg-tkp-sum { flex-wrap: nowrap; }
.lg-tkl-modal .lg-tkp-sum > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* ---------- 菜单（「产品」模块里） ---------- */
aside [data-lg-tkl-item] a, .el-popper [data-lg-tkl-head] a { cursor: pointer; }
aside [data-lg-tkl-item] div.lg-tkl-active { background: #E8F8F6 !important; color: #0d7b6d; }
body.lg-tkl-on aside li:not([data-lg-tkl-item]) .\!bg-\[\#E8F8F6\] { background: transparent !important; }

@media (max-width: 1023px) {
  #lg-tkl .lg-tkl-fields { grid-template-columns: minmax(0, 1fr); }
  #lg-tkl .lg-tkl-field:nth-child(odd) { border-right: 0; }
  #lg-tkl .lg-tkl-pills { justify-content: flex-start; }
}
@media (max-width: 767px) {
  #lg-tkl { padding: 0 0 12px; }
  #lg-tkl .lg-tkl-title h1 { font-size: 20px; }
  #lg-tkl .lg-tkl-head-actions { width: 100%; }
  #lg-tkl .lg-tkl-head-actions .lg-tkp-field.shop { flex: 1; width: auto; }
  #lg-tkl .lg-tkl-panel { border-radius: 16px; }
  #lg-tkl .lg-tkl-bar { padding: 0 12px; }
  #lg-tkl .lg-tkl-bar .lg-tkp-field.kw { width: 100%; margin: 0 0 10px; }
  #lg-tkl .lg-tkl-chips { padding: 10px 12px 2px; }
  #lg-tkl .lg-tkl-list { padding: 10px 12px 12px; }
  #lg-tkl .lg-tkl-card > footer .lg-tkp-btn { flex: 1; }
}
