/* =====================================================================
   SIF 反查流量词 · 页面复刻样式
   视觉基线取自原站计算样式：
   品牌渐变色 linear-gradient(257.75deg,#009f52,#00cd8a)
   表头底色 #f8f8fa / 边框 #ebeef5 / 正文 #181818 13px
   ===================================================================== */

:root {
  --green: #00cd8a;
  --green-d: #009f52;
  --green-mid: #00b578;
  --grad: linear-gradient(257.75deg, #009f52 -10.39%, #00cd8a 98.23%);
  --green-bg: #e8f9f2;
  --green-bg2: #f2fdf8;
  --green-bd: #b7ebd6;
  --text: #181818;
  --text2: #5e5e5e;
  --text3: #909399;
  --text4: #b8bec4;
  --bd: #ebeef5;
  --bd2: #e4e9ec;
  --bg: #f7f8fa;
  --red: #ff4d4f;
  --red-bg: #fdecec;
  --blue: #2f7bff;
  --shadow: 0 1px 3px rgba(20, 40, 60, .04);
  --shadow-pop: 0 6px 24px rgba(20, 40, 60, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h3, h4 { margin: 0; font-weight: 600; }

/* ------------------------------ 顶部导航 ------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  height: 60px;
}
.tb-inner {
  width: 1400px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tb-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 7px; }
.local-badge {
  font-size: 10px;
  line-height: 15px;
  padding: 0 5px;
  border-radius: 3px;
  color: var(--green-d);
  background: var(--green-bg);
  border: 1px solid var(--green-bd);
  white-space: nowrap;
}
.menu { display: flex; align-items: center; gap: 20px; }
.menu a {
  font-size: 13px;
  color: #303133;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
.menu a:hover { color: var(--green-d); }
.menu a.active { color: var(--green-d); font-weight: 600; border-bottom-color: var(--green); }

.tb-right { display: flex; align-items: center; gap: 12px; }
.chip {
  font-size: 12px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1px solid var(--green-bd);
  background: var(--green-bg);
  color: var(--green-d);
  white-space: nowrap;
}
.chip.warn { border-color: #ffd4d4; background: var(--red-bg); color: var(--red); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}

/* ------------------------------ 页面容器 ------------------------------ */

.wrap { width: 1400px; margin: 0 auto; padding: 26px 0 40px; }

/* ------------------------------ 搜索条 ------------------------------ */

.searchbar { position: relative; margin-bottom: 18px; }
.sb-pill {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1.5px solid #7fdcb6;
  border-radius: 26px;
  background: #fff;
  padding: 0 6px 0 18px;
  box-shadow: 0 2px 10px rgba(0, 205, 138, .07);
}
.sb-pill:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 205, 138, .1); }
.sb-sel {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 6px;
  background: none; border: 0;
  font-size: 14px; color: #303133;
}
.sb-sel:hover .sb-txt { color: var(--green-d); }
.sb-txt { white-space: nowrap; }
.flag {
  min-width: 24px; height: 16px; padding: 0 3px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; background: #eef1f4;
  font-size: 10px; font-weight: 700; color: #4b5560; letter-spacing: .3px;
}
.sb-div { width: 1px; height: 20px; background: var(--bd); margin: 0 8px; }
.sb-input {
  flex: 1; min-width: 0; height: 44px;
  border: 0; outline: none; background: transparent;
  font-size: 15px; color: var(--text); letter-spacing: .4px;
}
.sb-input::placeholder { color: var(--text4); font-size: 14px; letter-spacing: 0; }
.sb-clear {
  width: 26px; height: 26px; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.sb-clear:hover { background: #f2f4f6; }
.sb-go {
  height: 38px; padding: 0 18px; margin-left: 6px;
  border: 0; border-radius: 19px; background: var(--grad);
  color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 205, 138, .3);
}
.sb-go:hover { filter: brightness(1.04); }
.sb-go:active { transform: translateY(.5px); }
.sb-go[disabled] { opacity: .6; cursor: default; }

.dropdown {
  position: absolute; top: 56px; z-index: 40;
  background: #fff; border: 1px solid var(--bd);
  border-radius: 8px; box-shadow: var(--shadow-pop);
  padding: 6px; max-height: 340px; overflow: auto;
}
#siteMenu { left: 18px; width: 220px; }
#periodMenu { left: 190px; width: 200px; }
.dropdown button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 32px; padding: 0 10px;
  border: 0; border-radius: 5px; background: none;
  font-size: 13px; color: #303133; text-align: left;
}
.dropdown button:hover { background: var(--green-bg2); color: var(--green-d); }
.dropdown button.on { color: var(--green-d); font-weight: 600; background: var(--green-bg); }
.dropdown .dd-group { font-size: 11px; color: var(--text3); padding: 8px 10px 4px; }

/* ------------------------------ 商品卡 ------------------------------ */

.pcard {
  display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid var(--bd); border-radius: 10px;
  background: #fff; padding: 14px 18px;
  box-shadow: var(--shadow);
  min-height: 104px;
}
.pcard-skel { color: var(--text4); font-size: 13px; display: flex; align-items: center; height: 76px; }
.pc-img {
  width: 76px; height: 76px; flex: none;
  border-radius: 6px; object-fit: contain; background: #fbfbfc;
  border: 1px solid #f0f2f4;
}
.pc-main { width: 310px; flex: none; min-width: 0; }
.pc-asin-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.pc-asin { font-size: 14px; font-weight: 700; color: #303133; }
.pc-ic {
  width: 18px; height: 18px; border: 0; background: none; color: var(--text4);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 3px;
}
.pc-ic:hover { background: #f2f4f6; color: var(--text2); }
.pc-title {
  font-size: 12.5px; line-height: 16px; color: var(--text2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 5px; min-height: 32px;
}
.pc-price-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); margin-bottom: 3px; }
.pc-price { font-size: 15px; font-weight: 700; color: var(--text); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--text3); }

.pc-stats {
  display: flex; align-items: stretch; flex: 1;
  border-left: 1px solid #f2f4f6; padding-left: 10px; gap: 0;
}
.pc-cell {
  flex: 1; min-width: 0; padding: 0 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.pc-cell:first-child { flex: 1.75; }
.pc-cell.c-cnt { flex: 1.15; }
.pc-cell.c-camp { flex: 1.28; }
.pc-cell + .pc-cell { border-left: 1px dashed #eff1f3; }
.pc-lbl { font-size: 12px; color: var(--text3); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.pc-lbl .tag-new {
  font-size: 10px; line-height: 14px; padding: 0 4px; border-radius: 3px;
  color: var(--green-d); background: var(--green-bg); border: 1px solid var(--green-bd);
}
.pc-val { font-size: 18px; font-weight: 700; color: var(--text); line-height: 22px; display: flex; align-items: baseline; gap: 4px; }
.pc-val small { font-size: 11px; font-weight: 400; color: var(--text3); }
.pc-val.green { color: var(--green-d); }
.pc-val.blue { color: var(--blue); }
.pc-delta { font-size: 12px; line-height: 15px; }
.pc-delta.ph { display: block; line-height: 15px; font-size: 12px; }
.pc-delta.up { color: var(--green-mid); }
.pc-delta.down { color: var(--red); }
.pc-sub { font-size: 11.5px; color: var(--text3); line-height: 15px; }
.pc-bsr { font-size: 12px; color: var(--blue); line-height: 16px; white-space: nowrap; }

/* ------------------------------ Tab 栏 ------------------------------ */

.tabs { display: flex; align-items: center; gap: 8px; margin: 22px 0 14px; }
.tab {
  height: 34px; padding: 0 15px;
  border: 1px solid var(--bd); border-radius: 6px;
  background: var(--bg); color: var(--text2);
  font-size: 13px; white-space: nowrap;
  transition: all .15s;
}
.tab:hover:not(.active):not(.locked) { color: var(--green-d); border-color: var(--green-bd); }
.tab.active {
  background: #fff; color: var(--green-d); font-weight: 600;
  border-color: var(--green); box-shadow: 0 1px 6px rgba(0, 205, 138, .14);
}
.tab.locked { color: var(--text4); cursor: not-allowed; }
.tab-hint { margin-left: auto; font-size: 12px; color: var(--text3); white-space: nowrap; }
.tab-hint:hover { color: var(--green-d); }

/* ------------------------------ 变体横条 ------------------------------ */

.vstrip {
  position: relative;
  border: 1px solid var(--bd); border-radius: 10px; background: #fff;
  padding: 12px 34px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.vtrack {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 2px;
}
.vtrack::-webkit-scrollbar { display: none; }
.vnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 24px; height: 46px; border: 0; background: none;
  color: var(--text3); font-size: 20px; line-height: 1;
}
.vnav:disabled { opacity: .25; cursor: default; }
.vnav-prev { left: 4px; }
.vnav-next { right: 4px; }
.vnav:hover:not(:disabled) { color: var(--green-d); }

.vcard {
  flex: none; width: 272px;
  border: 1px solid var(--bd); border-radius: 8px; overflow: hidden;
  background: #fff;
}
.vcard.parent { width: 176px; background: var(--bg); border-style: dashed; }
.vcard.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(0, 205, 138, .12); }
.vcard-head {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  background: var(--bg); font-size: 12px; color: var(--text2);
  border-bottom: 1px solid var(--bd);
}
.vcard.active .vcard-head { background: var(--green-bg); border-bottom-color: var(--green-bd); }
.vcard-head .ord { color: var(--text3); }
.vcard-head .as { color: var(--text); font-weight: 600; letter-spacing: .2px; }
.vcard-body { padding: 10px; display: flex; gap: 10px; align-items: flex-start; }
.vcard.parent .vcard-body { flex-direction: column; gap: 6px; padding: 10px; }
.vcard-img {
  width: 60px; height: 60px; flex: none; border-radius: 4px;
  object-fit: contain; background: #fbfbfc; border: 1px solid #f2f4f6;
}
.vcard-img.ph { display: block; background: #f2f4f6; }
.vcard-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.vrow .price { color: var(--text); font-size: 13px; }
.vrow { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text3); white-space: nowrap; line-height: 16px; }
.vrow b { color: var(--text); font-size: 12.5px; font-weight: 600; }
.vrow b.green { color: var(--green-d); }
.vrow .pill { flex: none; }
.pill {
  display: inline-block; font-size: 10.5px; line-height: 15px;
  padding: 0 4px; border-radius: 3px; font-weight: 500;
}
.pill.down { color: var(--red); background: var(--red-bg); }
.pill.up { color: var(--green-d); background: var(--green-bg); }
.pill.flat { color: var(--text3); background: #f2f4f6; }

/* ------------------------------ 通用面板 ------------------------------ */

.panel {
  border: 1px solid var(--bd); border-radius: 10px; background: #fff;
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; gap: 12px;
}
.panel-head h3 { font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 5px; }
.hint-i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--text4); color: var(--text4);
  font-size: 9px; font-style: normal; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
}
.head-tools { display: flex; align-items: center; gap: 10px; }
.collapse-btn {
  border: 0; background: none; color: var(--text3); font-size: 12px;
  display: inline-flex; align-items: center; gap: 3px;
}
.collapse-btn:hover { color: var(--green-d); }
.collapse-btn i { font-style: normal; font-size: 10px; }
.panel.folded .panel-body, .panel.folded .ov-wrap, .panel.folded .ov-note { display: none; }
.mini-sel {
  height: 28px; padding: 0 9px; font-size: 12px; color: var(--text2);
  border: 1px solid var(--bd); border-radius: 5px; background: #fff;
}
.mini-sel:hover { border-color: var(--green-bd); color: var(--green-d); }

/* ------------------------------ 圆环图 ------------------------------ */

.pie-body { padding: 0 18px 18px; display: flex; align-items: center; gap: 26px; }
.pie-legend { display: flex; flex-direction: column; gap: 12px; }
.pie-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2); }
.pie-item i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.pie-item b { color: var(--text); font-size: 15px; margin-left: 2px; }
.pie-item .chg { font-size: 11.5px; }
.pie-item .chg.down { color: var(--red); }
.pie-item .chg.up { color: var(--green-mid); }

/* ------------------------------ 趋势图 ------------------------------ */

#trendBody { padding: 4px 18px 18px; }
.trend-legend { font-size: 11.5px; color: var(--text3); display: inline-flex; align-items: center; gap: 5px; }
.trend-legend .dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.trend-legend .dot.nf { background: var(--green); }
.trend-legend .dot.ad { background: #ffab54; margin-left: 8px; }
.trend-svg { display: block; width: 100%; }
.trend-tip {
  position: fixed; z-index: 90; pointer-events: none;
  background: rgba(24, 24, 24, .92); color: #fff; border-radius: 6px;
  padding: 7px 10px; font-size: 11.5px; line-height: 17px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

/* ------------------------------ 流量词概览 ------------------------------ */

.ov-wrap { padding: 0 18px; overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ov-table th, .ov-table td { border: 1px solid #f0f2f5; text-align: center; padding: 0; height: 44px; }
.ov-table thead th {
  background: var(--bg); color: var(--text2); font-weight: 500; font-size: 12px; height: 40px;
}
.ov-table thead th.first { text-align: left; padding-left: 14px; width: 156px; }
.ov-table tbody td.first { text-align: left; padding-left: 14px; color: var(--text2); }
.ov-table td .num {
  display: inline-block; min-width: 34px; color: var(--blue);
  cursor: pointer; font-size: 13px;
}
.ov-table td .num:hover { text-decoration: underline; }
.ov-table td .num.zero { color: var(--text3); cursor: default; }
.ov-table td .num.zero:hover { text-decoration: none; }
.ov-table td .hist { display: block; font-size: 10.5px; color: var(--text4); margin-top: 1px; }
.ov-table td .chg-line { display: block; font-size: 11.5px; line-height: 15px; }
.ov-table td .chg-line.in { color: var(--green-mid); }
.ov-table td .chg-line.out { color: var(--red); }
.ov-note {
  margin: 10px 18px 16px; padding-left: 12px;
  border-left: 2px solid var(--green);
  font-size: 12px; color: var(--text3); line-height: 18px;
}
.ov-note b { color: var(--green-d); font-weight: 600; }

/* ------------------------------ 主表工具栏 ------------------------------ */

.kw-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f2f4f6;
}
.kt-left, .kt-right { display: flex; align-items: center; gap: 8px; }
.kt-title { font-size: 13.5px; font-weight: 600; }
.kt-sep { width: 1px; height: 16px; background: var(--bd); margin: 0 3px; }
.icon-btn {
  width: 24px; height: 24px; border: 1px solid var(--bd); border-radius: 4px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--green); }
.mini-btn {
  height: 28px; padding: 0 10px; font-size: 12px; color: var(--text2);
  border: 1px solid var(--bd); border-radius: 5px; background: #fff;
}
.mini-btn:hover:not(.disabled) { border-color: var(--green-bd); color: var(--green-d); }
.mini-btn.disabled { color: var(--text4); cursor: not-allowed; background: #fcfcfd; }
.kt-label { font-size: 12px; color: var(--text3); }
.mini-select {
  height: 28px; padding: 0 6px; font-size: 12px; color: var(--text2);
  border: 1px solid var(--bd); border-radius: 5px; background: #fff; outline: none;
}
.kw-search {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 9px; width: 190px;
  border: 1px solid var(--bd); border-radius: 5px; background: #fff;
}
.kw-search:focus-within { border-color: var(--green); }
.kw-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  font-size: 12px; color: var(--text);
}
.kw-search input::placeholder { color: var(--text4); }

/* ------------------------------ 主表 ------------------------------ */

.table-wrap { position: relative; overflow-x: auto; }
.kw-table { border-collapse: separate; border-spacing: 0; width: 2100px; font-size: 13px; }
.kw-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--bg); color: var(--text2);
  font-weight: 500; font-size: 12px; line-height: 15px;
  padding: 8px 6px; text-align: center; vertical-align: middle;
  border-bottom: 1px solid var(--bd); white-space: nowrap;
}
.kw-table thead th.sortable { cursor: pointer; }
.kw-table thead th.sortable:hover { color: var(--green-d); }
.kw-table thead th .sort-caret { font-size: 9px; color: var(--green); margin-left: 2px; }
.kw-table thead th .subhead {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 4px; padding: 0 5px; height: 19px;
  border: 1px solid var(--bd); border-radius: 4px;
  font-size: 11px; color: var(--text3); background: #fff; font-weight: 400;
}
.kw-table tbody td {
  border-bottom: 1px solid #f2f4f6;
  padding: 12px 6px; text-align: center; vertical-align: middle;
  color: var(--text);
}
.kw-table tbody tr:hover td { background: #fafcfb; }
.kw-table tbody tr:hover td.sticky { background: #f4faf7; }

/* 冻结左列 */
.kw-table th.sticky, .kw-table td.sticky { position: sticky; z-index: 2; background: #fff; }
.kw-table thead th.sticky { z-index: 4; background: var(--bg); }
.kw-table .col-idx { left: 0; }
.kw-table .col-kw { left: 56px; text-align: left; padding-left: 10px; }
.kw-table .col-kw::after {
  content: ""; position: absolute; right: -1px; top: 0; bottom: 0;
  width: 1px; background: var(--bd);
}
.kw-table thead th.col-kw::after { box-shadow: 6px 0 8px -6px rgba(0, 0, 0, .12); }

.cell-idx { color: var(--text3); font-size: 12px; }
.kw-name { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-word; line-height: 16px; }
.kw-cn { font-size: 11.5px; color: var(--text3); margin-top: 3px; line-height: 15px; word-break: break-word; }
.kw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.kw-tags span {
  font-size: 10.5px; line-height: 15px; padding: 0 4px;
  border: 1px solid var(--bd2); border-radius: 2px;
  color: var(--text2); background: #fff;
}
.kw-tags span.core { border-color: var(--green-bd); color: var(--green-d); background: var(--green-bg2); }

.big { font-size: 13px; font-weight: 600; line-height: 17px; }
.big.red { color: var(--red); }
.big.green { color: var(--green-d); }
.sub-num { font-size: 11.5px; color: var(--text3); line-height: 15px; margin-top: 2px; }

.dist-nums { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.dist-nums .l { color: var(--text); font-weight: 600; }
.dist-nums .r { color: var(--text3); }
.dist-bar {
  height: 5px; border-radius: 3px; background: #eef1f3; overflow: hidden;
  display: flex; width: 96px; margin: 0 auto;
}
.dist-bar i { display: block; height: 100%; background: var(--green); }
.dist-bar i.ad { background: #ffab54; }

/* 曝光位置矩阵 */
.exp-matrix { display: inline-flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.exp-row { display: flex; align-items: center; gap: 4px; }
.exp-key { font-size: 10px; color: var(--text4); width: 15px; text-align: right; }
.exp-tag {
  font-size: 10px; line-height: 16px; padding: 0 4px;
  border: 1px solid var(--bd2); border-radius: 2px; color: var(--text4); background: #fff;
}
.exp-tag.on { border-color: var(--green-bd); color: var(--green-d); background: var(--green-bg2); font-weight: 500; }

.rank-main { font-size: 14px; font-weight: 700; color: var(--green-d); line-height: 17px; }
.rank-main.na { color: var(--text4); font-weight: 400; font-size: 13px; }
.rank-badge {
  display: inline-block; margin-top: 3px;
  font-size: 10.5px; line-height: 16px; padding: 0 4px;
  border: 1px solid var(--green-bd); border-radius: 2px;
  color: var(--green-d); background: var(--green-bg2);
}
.rank-date { font-size: 10.5px; color: var(--text3); margin-top: 3px; line-height: 14px; }
.rank-empty-box {
  width: 74px; height: 22px; margin: 5px auto 0;
  border: 1px dashed var(--bd2); border-radius: 3px; background: #fcfdff;
}
.spark { display: block; margin: 0 auto; }
.spark-nums { font-size: 10.5px; color: var(--text3); margin-top: 2px; }

.cpc-list { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-end; width: 76px; }
.cpc-row { display: flex; width: 100%; justify-content: space-between; font-size: 11.5px; color: var(--text2); }
.cpc-row b { font-weight: 600; color: var(--text); }
.cpc-row.dim b { color: var(--text4); font-weight: 400; }

.top10-stack { display: inline-flex; align-items: center; }
.top10-stack img, .top10-stack .ph {
  width: 22px; height: 22px; border-radius: 3px; object-fit: contain;
  border: 1px solid #fff; background: #f7f8fa; margin-left: -7px;
  box-shadow: 0 0 0 1px #eceff2;
}
.top10-stack img:first-child, .top10-stack .ph:first-child { margin-left: 0; }

.op-links { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; }
.op-link { font-size: 11.5px; color: var(--blue); background: none; border: 0; padding: 0; }
.op-link:hover { text-decoration: underline; }
.op-link.on { color: var(--green-d); }

.table-empty {
  padding: 60px 0; text-align: center; color: var(--text3); font-size: 13px;
}

/* ------------------------------ 分页 ------------------------------ */

.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 18px 20px; font-size: 12.5px; color: var(--text2);
}
.pager button {
  min-width: 28px; height: 28px; padding: 0 8px;
  border: 1px solid var(--bd); border-radius: 4px; background: #fff;
  color: var(--text2); font-size: 12.5px;
}
.pager button:hover:not(:disabled):not(.on) { border-color: var(--green); color: var(--green-d); }
.pager button.on { border-color: var(--green); color: var(--green); font-weight: 600; background: var(--green-bg2); }
.pager button:disabled { color: var(--text4); cursor: default; }
.pager .jump { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; }
.pager .jump input {
  width: 42px; height: 28px; text-align: center;
  border: 1px solid var(--bd); border-radius: 4px; outline: none;
  font-size: 12.5px; color: var(--text);
}
.pager .jump input:focus { border-color: var(--green); }
.pager .total { color: var(--text3); margin-right: 6px; }

/* ------------------------------ 页脚 ------------------------------ */

.foot-block {
  border: 1px solid var(--bd); border-radius: 10px; background: #fbfcfd;
  padding: 18px 22px; margin-bottom: 14px;
}
.foot-block h4 { font-size: 13.5px; margin-bottom: 10px; }
.foot-block ol { margin: 0; padding-left: 18px; color: var(--text2); font-size: 12.5px; line-height: 24px; }
.foot-block em { color: var(--green-d); font-style: normal; }
.foot-block code {
  background: #f2f4f6; border-radius: 3px; padding: 1px 4px; font-size: 11.5px; color: #c7254e;
}
.page-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px; font-size: 11.5px; color: var(--text4);
}

/* ------------------------------ 提示 ------------------------------ */

.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%);
  z-index: 200; max-width: 620px;
  background: #fff; border: 1px solid var(--bd); border-left: 3px solid var(--red);
  border-radius: 8px; box-shadow: var(--shadow-pop);
  padding: 11px 16px; font-size: 12.5px; color: var(--text2); line-height: 18px;
}
.toast.ok { border-left-color: var(--green); }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(0, 205, 138, .25); border-top-color: var(--green);
  display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px;
  margin-right: 6px;
}
