/* ============================================================
   后台面板（运营入口）—— 只做补充，颜色/圆角取 styles.css 变量
   类名统一 adm- 前缀
   ============================================================ */

.adm-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.adm-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  cursor: pointer;
  transition: .14s;
}
.adm-tab:hover { color: var(--fg); }
.adm-tab.on {
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.adm-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.adm-hint b { color: var(--fg); }

.adm-drop {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: .16s;
}
.adm-drop:hover, .adm-drop.over { border-color: var(--fg); background: var(--surface); }
.adm-drop.busy { cursor: default; border-style: solid; }
.adm-drop .adm-drop-ico { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.adm-drop .adm-drop-t { font-size: 13.5px; font-weight: 500; }
.adm-drop .adm-drop-s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.adm-link { color: var(--fg); text-decoration: underline; }

.adm-spin {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  border: 2.5px solid var(--border);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: adm-rot .8s linear infinite;
}
@keyframes adm-rot { to { transform: rotate(360deg); } }

.adm-err {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--err-bg);
  color: var(--err);
  font-size: 12.5px;
}

.adm-result {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.adm-res-head {
  padding: 9px 12px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}
.adm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.adm-cell {
  background: var(--card);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}
.adm-cell .k { color: var(--muted); }
.adm-cell .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.adm-unmatched {
  padding: 9px 12px;
  font-size: 11.5px;
  color: var(--warn);
  background: var(--warn-bg);
  line-height: 2;
}
.adm-actions { padding: 11px 12px; display: flex; justify-content: flex-end; gap: 8px; }

.adm-preview {
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.adm-preview img { max-width: 100%; max-height: 200px; display: block; }

.adm-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 12px;
  cursor: pointer;
}
.adm-check input { width: 14px; height: 14px; accent-color: var(--fg); }

/* ---------------- 分组卡（文案模板 / 音频二维码共用） ---------------- */
.adm-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 11px 12px 12px;
  margin-bottom: 10px;
}
.adm-group-h {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.adm-group-h b { font-size: 12.5px; font-weight: 600; }
.adm-group-h .adm-sub { font-size: 11px; color: var(--muted); }
.adm-group-h .spacer { flex: 1; }
.adm-group .field:last-child { margin-bottom: 0; }
.adm-group .adm-check { margin: 2px 0 0; }

.adm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-row2 .field { margin-bottom: 10px; }

.adm-loading {
  padding: 28px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.adm-empty {
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.adm-err-act { margin-top: 8px; }

/* 养号祝福语 chips */
.adm-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 9px;
}
.adm-words-empty { font-size: 11.5px; color: var(--muted); }
.adm-word { padding-right: 4px; gap: 3px; height: 24px; color: var(--fg); }
.adm-word-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  border-radius: 50%;
}
.adm-word-x:hover { color: var(--err); }

.adm-word-add { display: flex; gap: 8px; align-items: center; }
.adm-word-add .input { height: 32px; }
.adm-word-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.adm-save {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding-top: 4px;
}

/* ---------------- 音频二维码 ---------------- */
.adm-name { height: 28px; font-size: 12px; width: 152px; }

.adm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.adm-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: .15s;
}
.adm-card:hover { border-color: var(--muted); }
.adm-card.on { border-color: var(--fg); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--fg); }
.adm-card-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
}
.adm-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-card-meta {
  padding: 5px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.adm-card-name {
  font-size: 11px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-card-meta .chip { height: 16px; font-size: 10px; padding: 0 6px; }
.adm-card-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-card-x:hover { background: var(--err); }

.adm-qr-thumb {
  width: 84px;
  height: 84px;
  margin-top: 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
}
.adm-qr-thumb.has { border-style: solid; border-color: var(--muted); background: #fff; }
.adm-qr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.adm-slider {
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.adm-slider label { font-size: 11.5px; color: var(--muted); }
.adm-slider input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: var(--fg);
  cursor: pointer;
}
.adm-slider-v {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.adm-pos { margin-top: 11px; }
.adm-pos-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface);
}
.adm-pos-bg { display: block; max-width: 100%; max-height: 240px; }
.adm-pos-nobase {
  width: 180px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.adm-pos-box {
  position: absolute;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--fg);
  background: rgba(127, 127, 127, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--fg);
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}
.adm-pos-box.has { border-style: solid; border-color: var(--ok); background: transparent; }
.adm-pos-box img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.adm-pos-tip { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.adm-compose-out {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.adm-compose-img {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.adm-compose-img img { max-width: 100%; max-height: 300px; display: block; border-radius: var(--radius-xs); }

.adm-more { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 6px; }
.adm-more summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
  list-style: none;
}
.adm-more summary::-webkit-details-marker { display: none; }
.adm-more summary::before { content: "▸ "; }
.adm-more[open] summary::before { content: "▾ "; }
.adm-more summary:hover { color: var(--fg); }
.adm-more-body { padding-top: 4px; }

/* 前台订单页的提示条 */
.orders-tip-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.orders-tip-body b { color: var(--fg); }

/* 用户管理表格 */
.adm-users{max-height:56vh;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-sm)}
.adm-users .table{font-size:12.5px}
.adm-users .table th{position:sticky;top:0;z-index:1;background:var(--surface-2)}
.adm-rowacts{display:flex;gap:4px;justify-content:flex-end}
.adm-rowacts .btn{white-space:nowrap}
