/* ============ 组件：统计卡片 / 面板 / 表格 / 分页 / 弹窗 / 提示 ============ */

/* ---- 统计卡片（白底 + 橙系渐变图标点缀） ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card {
  background: #fff; border-radius: 10px; padding: 16px 20px;
  display: flex; align-items: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(39, 45, 54, .04);
}
.statis-icons {
  width: 45px; height: 45px; border-radius: 12px; margin-right: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.card:nth-child(1) .statis-icons {
  background: linear-gradient(to bottom right, #fe5204, #fc8a03);
  box-shadow: 0 5px 10px rgba(254, 82, 4, .25);
}
.card:nth-child(2) .statis-icons {
  background: linear-gradient(to bottom right, #fc8a03, #fab942);
  box-shadow: 0 5px 10px rgba(252, 138, 3, .25);
}
.card:nth-child(3) .statis-icons {
  background: linear-gradient(to bottom right, #fab942, #ffe08a);
  box-shadow: 0 5px 10px rgba(250, 185, 66, .3);
}
.card:nth-child(4) .statis-icons {
  background: linear-gradient(to bottom right, #fe5204, #c83204);
  box-shadow: 0 5px 10px rgba(254, 82, 4, .3);
}
.card-label { color: var(--text-faint); font-size: 14px; }
.card-num { font-size: 20px; color: var(--text); font-weight: 700; display: block; margin-bottom: 3px; }

/* ---- 面板 ---- */
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(39, 45, 54, .04);
}
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head .panel-title { margin-bottom: 0; }
.hint { color: var(--text-faint); font-size: 13px; margin-bottom: 14px; line-height: 1.6; }

/* ---- 线路 ---- */
.channels { display: flex; gap: 10px; flex-wrap: wrap; }
.channel {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: #f7f8fa; color: var(--text-dim); border: 1px solid var(--border-strong);
}
.channel.cur {
  background: #fff4e8; border-color: #fc8a03;
  color: var(--gold); font-weight: 600;
}
.channel.off { opacity: .5; }

/* ---- 表格 ---- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td {
  text-align: left; padding: 10px 12px; font-size: 13px;
  border-bottom: 1px solid #f0f2f5;
}
.tbl th { color: var(--text-faint); font-weight: 600; background: #fafbfc; }
.tbl tbody tr:hover td { background: var(--bg-hover); }
.tbl td { color: var(--text-dim); }
.tbl .empty { text-align: center; color: #9aa5b1; padding: 26px; }
.tbl audio { height: 30px; width: 190px; }
.ops { display: flex; gap: 8px; white-space: nowrap; }

/* ---- 分页 ---- */
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 14px; color: var(--text-faint); font-size: 13px; }

/* ---- 弹窗 ---- */
.modal {
  position: fixed; inset: 0; background: rgba(39, 45, 54, .4);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal-card {
  width: 420px; max-height: 72vh; overflow-y: auto;
  background: #fff; border-radius: 12px;
  padding: 22px; box-shadow: 0 18px 50px rgba(39, 45, 54, .2);
}
.modal-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---- 标签选择 ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
  background: #f7f8fa; border: 1px solid var(--border-strong); color: var(--text-dim); user-select: none;
}
.tag-item:has(input:checked) {
  background: #fff4e8; border-color: #fc8a03;
  color: var(--gold); font-weight: 600;
}
.tag-item input { display: none; }

/* ---- 提示消息 ---- */
.msg { margin-top: 14px; padding: 10px 14px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.msg.ok { background: #e9f9f0; color: #15803d; border: 1px solid #bfe8d0; }
.msg.fail { background: #fef0ef; color: #dc2626; border: 1px solid #f8cfcc; }

/* ---- 错误提示（登录） ---- */
.err { color: var(--red); text-align: center; font-size: 13px; line-height: 1.5; }
