/* ============================================================
   r324 代理商中心（代理商中心左侧功能树）
   全部样式自包含，不依赖 app.css 的局部泄漏
   ============================================================ */
.ag-root {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  background: linear-gradient(180deg, #0a1418 0%, #0d1a1f 100%);  /* r330：与首页 body 同款色调 */
  color: var(--text, #e8f1ee);
  font-family: inherit;
  animation: agFade .18s ease;
}
.ag-root[hidden] { display: none; }
@keyframes agFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 左侧栏（r325：线性图标 + 可折叠手风琴，对齐参考稿） ---------- */
.ag-sider {
  width: 236px;
  flex: 0 0 236px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #0c2a1f 0%, #061912 100%);  /* r330：与首页侧栏 sidebar-v2 同款绿色调 */
  border-right: 1px solid rgba(126, 232, 155, .15);
  transition: width .2s ease, flex-basis .2s ease;
}
.ag-sider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(126, 232, 155, .12), transparent 55%);
  pointer-events: none;
}
.ag-sider.collapsed { width: 64px; flex-basis: 64px; }

.ag-brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(126, 232, 155, .12);
  flex: 0 0 auto;
}
.ag-brand-ic {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 10px rgba(126, 232, 155, .3);
}
.ag-brand-txt { overflow: hidden; white-space: nowrap; }
.ag-brand-txt b { display: block; font-size: 13.5px; letter-spacing: .3px; }
.ag-brand-txt span { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.ag-sider.collapsed .ag-brand-txt { display: none; }

.ag-nav { flex: 1; overflow-y: auto; padding: 10px 8px 4px; }
.ag-nav::-webkit-scrollbar { width: 6px; }
.ag-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

.ag-grp + .ag-grp { margin-top: 10px; }
.ag-grp-head {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  cursor: pointer; user-select: none;
  font-size: 14px; color: #dce7e2; font-weight: 500;
  transition: background .15s, color .15s;
}
.ag-grp-head:hover { background: rgba(255,255,255,.05); color: #fff; }
.ag-grp-head .ag-g-ic {
  width: 22px; flex: 0 0 22px; display: grid; place-items: center;
  color: #c3d2cc;
}
.ag-grp-head .ag-g-txt { flex: 1; overflow: hidden; white-space: nowrap; }
.ag-grp-head .ag-arw { display: grid; place-items: center; color: #8fa39c; transition: transform .2s; }
.ag-grp.collapsed .ag-arw { transform: rotate(-90deg); }
.ag-sider.collapsed .ag-grp-head .ag-g-txt,
.ag-sider.collapsed .ag-grp-head .ag-arw { display: none; }

.ag-subs { overflow: hidden; }
.ag-grp.collapsed .ag-subs { display: none; }
.ag-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 46px; margin: 1px 0;
  border-radius: 8px; cursor: pointer;
  font-size: 13px; color: #93a7a0;
  transition: background .15s, color .15s;
}
.ag-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ag-item.active {
  background: rgba(0, 212, 181, .12);
  color: #2ee0a8; font-weight: 600;
}
.ag-sider.collapsed .ag-item { padding-left: 10px; justify-content: center; }
.ag-sider.collapsed .ag-item .ag-i-txt { display: none; }
.ag-item .ag-i-badge {
  margin-left: auto; min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 8px; background: #e5484d; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}

.ag-sider-foot { flex: 0 0 auto; padding: 8px; border-top: 1px solid rgba(126,232,155,.12); }
.ag-tut {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  font-size: 12px; color: var(--text-3);
}
.ag-tut:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ag-sider.collapsed .ag-tut span { display: none; }

/* ---------- 右侧主体 ---------- */
.ag-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ag-top {
  height: 60px; flex: 0 0 60px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(126, 232, 155, .10);
  background: rgba(126, 232, 155, .03);
}
.ag-collapse {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  color: var(--text-2); display: grid; place-items: center; font-size: 13px;
}
.ag-collapse:hover { background: rgba(255,255,255,.06); color: var(--text); }
.ag-crumb { font-size: 12px; color: var(--text-3); overflow: hidden; white-space: nowrap; }
.ag-crumb b { color: var(--text); font-weight: 600; }
.ag-top-sp { flex: 1; }
.ag-top-btn {
  height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  color: var(--text-2); font-size: 12px; display: inline-flex; align-items: center; gap: 5px;
}
.ag-top-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.ag-top-btn.close:hover { border-color: rgba(229,72,77,.5); color: #ff6b5e; }

.ag-body { flex: 1; overflow-y: auto; padding: 20px; }
.ag-body::-webkit-scrollbar { width: 8px; }
.ag-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.ag-page { max-width: 1280px; margin: 0 auto; }
.ag-page-head { margin-bottom: 16px; }
.ag-page-title { font-size: 19px; font-weight: 700; margin: 0 0 5px; }
.ag-page-desc { font-size: 12.5px; color: var(--text-3); margin: 0; }

/* KPI 卡 */
.ag-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ag-kpi {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden;
}
.ag-kpi::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kc, #00d4b5);
}
.ag-kpi-lab { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.ag-kpi-num { font-size: 24px; font-weight: 700; margin-top: 8px; letter-spacing: .5px; }
.ag-kpi-sub { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.ag-kpi-sub .up { color: #ff6b5e; }
.ag-kpi-sub .down { color: #2ee0a8; }

/* 卡片 / 面板 */
.ag-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.ag-card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.ag-card-head b { font-size: 14px; }
.ag-card-head .ag-card-sp { flex: 1; }

/* 工具栏 */
.ag-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ag-bar .ag-sp { flex: 1; }
.ag-inp, .ag-sel {
  height: 32px; padding: 0 10px; border-radius: 8px;
  background: #0f1d23; border: 1px solid rgba(255,255,255,.1);
  color: var(--text); font-size: 12.5px; outline: none;
}
.ag-inp::placeholder { color: var(--text-4); }
.ag-inp:focus, .ag-sel:focus { border-color: rgba(0,212,181,.5); }
.ag-btn {
  height: 32px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); background: transparent;
  color: var(--text-2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s;
  white-space: nowrap; flex: 0 0 auto;
}
.ag-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.ag-btn.primary {
  background: linear-gradient(135deg, #00d4b5, #2ecc71);
  border-color: transparent; color: #06241f; font-weight: 600;
}
.ag-btn.primary:hover { filter: brightness(1.08); }
.ag-btn.sm { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.ag-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.ag-btn.danger { border-color: rgba(229,72,77,.4); color: #ff6b5e; }
.ag-btn.danger:hover { background: rgba(229,72,77,.12); }

/* 表格 */
.ag-tbl-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ag-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ag-tbl th {
  text-align: left; padding: 10px 14px; font-weight: 600;
  color: var(--text-3); background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.ag-tbl td {
  padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-2); vertical-align: middle;
}
.ag-tbl tbody tr:hover td { background: rgba(255,255,255,.025); }
.ag-tbl tbody tr:last-child td { border-bottom: none; }
.ag-tbl .num { font-variant-numeric: tabular-nums; }
.ag-tbl .strong { color: var(--text); font-weight: 600; }

/* 标签 */
.ag-tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; line-height: 17px; white-space: nowrap;
}
.ag-tag.ok { background: rgba(46,224,168,.14); color: #2ee0a8; }
.ag-tag.warn { background: rgba(245,158,11,.16); color: #f5a524; }
.ag-tag.err { background: rgba(229,72,77,.16); color: #ff6b5e; }
.ag-tag.info { background: rgba(59,130,246,.16); color: #6ba6ff; }
.ag-tag.gray { background: rgba(255,255,255,.08); color: var(--text-3); }

/* 分页 */
.ag-pager { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.ag-pager .ag-sp { flex: 1; }
.ag-pg {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: transparent; color: var(--text-2); font-size: 12px;
}
.ag-pg:hover:not(:disabled) { background: rgba(255,255,255,.06); color: var(--text); }
.ag-pg.active { background: rgba(0,212,181,.15); border-color: rgba(0,212,181,.4); color: #2ee0a8; font-weight: 600; }
.ag-pg:disabled { opacity: .35; cursor: not-allowed; }

/* 空态 */
.ag-empty { padding: 56px 20px; text-align: center; }
.ag-empty-ic { font-size: 40px; opacity: .45; margin-bottom: 12px; }
.ag-empty p { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.ag-empty span { font-size: 12.5px; color: var(--text-4); }

/* 表单栅格 */
.ag-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ag-field label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.ag-field .ag-inp, .ag-field .ag-sel { width: 100%; box-sizing: border-box; }
.ag-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 列表卡片（站点信息 / 交流群 / 协议等） */
.ag-list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 11px; margin-bottom: 9px; background: rgba(255,255,255,.02);
}
.ag-list-row .ag-lr-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: rgba(255,255,255,.05); flex: 0 0 34px; }
.ag-list-row .ag-lr-txt { flex: 1; min-width: 0; }
.ag-list-row .ag-lr-txt b { display: block; font-size: 13px; color: var(--text); }
.ag-list-row .ag-lr-txt span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 开关 */
.ag-switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; cursor: pointer; }
.ag-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ag-switch i {
  position: absolute; inset: 0; border-radius: 11px;
  background: rgba(255,255,255,.14); transition: background .2s;
}
.ag-switch i::before {
  content: ''; position: absolute; width: 17px; height: 17px; left: 2.5px; top: 2.5px;
  border-radius: 50%; background: #8fa3a0; transition: transform .2s, background .2s;
}
.ag-switch input:checked + i { background: rgba(0,212,181,.35); }
.ag-switch input:checked + i::before { transform: translateX(18px); background: #00d4b5; }

/* 进度条 */
.ag-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; min-width: 80px; }
.ag-prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #00d4b5, #2ecc71); }

/* 图表（r325 仪表盘走势已改 SVG 折线，柱状样式保留给潜在复用） */

/* ---------- r325 仪表盘（对齐参考稿） ---------- */
.ag-page-head { display: flex; align-items: flex-start; gap: 12px; }
.ag-page-head > div { flex: 1; min-width: 0; }

.ag-kpis2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ag-kpis5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ag-kpi2 {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px 12px; position: relative; overflow: hidden;
  min-width: 0;
}
.ag-kpi2::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kc, #00d4b5);
}
.ag-kpi2-top { display: flex; align-items: center; gap: 8px; }
.ag-kpi2-chip {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px;
  background: color-mix(in srgb, var(--cc, #00d4b5) 16%, transparent);
}
.ag-kpi2-lab { font-size: 12.5px; color: var(--text-2); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ag-kpi2-info { font-size: 12px; color: var(--text-4); cursor: help; }
.ag-kpi2-num {
  font-size: 25px; font-weight: 800; margin-top: 8px; letter-spacing: .3px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ag-kpi2-unit { font-size: 14px; font-weight: 700; margin-left: 1px; letter-spacing: -1px; }
.ag-kpi2-sub { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.ag-kpi2-foot {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 11.5px; color: var(--text-3);
}
.ag-fp { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ag-fp i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ag-fp b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

.ag-btn.blue {
  background: #3b82f6; border-color: transparent; color: #fff; font-weight: 600;
}
.ag-btn.blue:hover { filter: brightness(1.1); background: #3b82f6; color: #fff; }

/* 时间档位条 */
.ag-chipbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px;
}
.ag-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.ag-chip {
  height: 30px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  color: var(--text-2); font-size: 12.5px; transition: all .15s; white-space: nowrap;
}
.ag-chip:hover { background: rgba(255,255,255,.06); color: var(--text); }
.ag-chip.active { background: #3b82f6; border-color: #3b82f6; color: #fff; font-weight: 600; }
.ag-chipbar-r { display: flex; align-items: center; gap: 10px; }
.ag-switched { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* 走势图 */
.ag-legend { display: flex; justify-content: center; gap: 22px; margin: 2px 0 6px; }
.ag-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.ag-lg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* 底部两栏 */
.ag-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-grid2 .ag-card { margin-bottom: 0; }
.ag-emptybox { padding: 44px 16px 36px; text-align: center; color: #93a7a0; }
.ag-emptybox .ag-eb-ic { display: inline-grid; place-items: center; opacity: .5; margin-bottom: 10px; }
.ag-emptybox p { margin: 0 0 5px; font-size: 13.5px; color: var(--text-2); }
.ag-emptybox span { font-size: 12px; color: var(--text-4); }

/* 直接 vs 间接 */
.ag-vs { display: grid; gap: 16px; padding: 4px 2px 2px; }
.ag-vs-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-2); }
.ag-vs-head b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.ag-vs-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.06); margin: 8px 0 6px; }
.ag-vs-bar .d { background: #3b82f6; height: 100%; }
.ag-vs-bar .n { background: #a78bfa; height: 100%; }
.ag-vs-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-3); }
.ag-warnchip {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 8px;
  background: rgba(245, 158, 11, .12); color: #f5a524; font-size: 12px;
}

@media (max-width: 1200px) {
  .ag-kpis2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-kpis5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-grid2 { grid-template-columns: 1fr; }
}

/* ---------- r326 同步状态条 + 表单弹层 ---------- */
.ag-sync {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 20px 0; padding: 7px 12px; border-radius: 10px;
  font-size: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); color: var(--text-2);
}
.ag-sync[hidden] { display: none; }
.ag-sync .ag-sp { flex: 1; }
.ag-sync .ag-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.ag-sync.ok .ag-dot { background: #2ee0a8; box-shadow: 0 0 0 3px rgba(46,224,168,.18); }
.ag-sync.warn .ag-dot { background: #f5a524; box-shadow: 0 0 0 3px rgba(245,165,36,.18); }
.ag-sync.warn { border-color: rgba(245,165,36,.28); }

.ag-modal-wrap {
  position: fixed; inset: 0; z-index: 3200;
  background: rgba(3, 8, 10, .68);
  display: grid; place-items: center;
  animation: agFade .15s ease;
}
.ag-modal {
  width: 420px; max-width: calc(100vw - 32px);
  background: var(--bg-pop, #101c21); border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 14px; padding: 16px;
  --accent: #00d4b5; --accent-rgb: 0, 212, 181;   /* 浮层挂 body：scoped 变量需重定义 */
}
.ag-modal-hd { display: flex; align-items: center; margin-bottom: 12px; }
.ag-modal-hd b { font-size: 14.5px; flex: 1; }
.ag-modal-hd .ag-x { cursor: pointer; color: var(--text-3); padding: 0 4px; }
.ag-modal-hd .ag-x:hover { color: var(--text); }
.ag-modal-bd { display: grid; gap: 12px; }
.ag-modal .ag-field span { font-size: 12px; color: var(--text-3); display: block; margin-bottom: 5px; }
.ag-modal .ag-field .ag-inp { width: 100%; box-sizing: border-box; background: #0f1d23; }
.ag-modal-tip { font-size: 13px; color: var(--text-2); padding: 6px 0; }
/* ★ r481 表单里的勾选行：协议签署弹窗的「我已阅读并同意全部条款」。
   整块可点（label 包 input），勾选框与多行文案顶部对齐，文案用正文色而不是字段名色。 */
.ag-modal .ag-field-check {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  padding: 11px 13px; margin: 2px 0 4px;
  border-radius: 10px; border: 1px solid rgba(127, 127, 127, .14);
  background: rgba(127, 127, 127, .07);
}
.ag-modal .ag-field-check input[type=checkbox] {
  flex: none; width: 15px; height: 15px; margin: 2px 0 0; cursor: pointer;
  accent-color: #2ee0a8;
}
.ag-modal .ag-field-check span { font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.ag-modal-ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---- r448 表情条：公告标题 / 正文的常用表情点选 ---- */
.ag-emoji-bar {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 6px; padding: 6px 8px;
  background: rgba(127, 127, 127, .07);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.ag-emoji-bar::before {
  content: '表情'; font-size: 10.5px; color: var(--text-3);
  align-self: center; margin-right: 2px; letter-spacing: 1px;
}
.ag-emoji {
  width: 26px; height: 26px; min-height: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer;
  background: transparent; border: 0; border-radius: 7px; padding: 0;
  transition: background .15s, transform .12s;
}
.ag-emoji:hover { background: rgba(46, 224, 168, .16); transform: translateY(-1px); }
.ag-emoji:active { transform: scale(.9); }

/* ---- r442 卡密明文弹层（生成后必须看得见、拿得到） ---- */
.ag-modal.ag-modal-lg { width: 560px; }
.ag-cv-link {
  cursor: pointer;
  text-decoration: underline dotted rgba(0, 212, 181, .65);
  text-underline-offset: 3px;
}
.ag-cv-link:hover { color: #00d4b5; }
.ag-cv-meta {
  font-size: 12.5px; color: var(--text-2);
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.ag-cv-meta b { color: var(--text); font-weight: 600; }
.ag-cv-meta b.ag-cv-ok { color: #2ee0a8; }
.ag-cv-sep { color: var(--text-4, rgba(255, 255, 255, .28)); }
.ag-cv-chips { margin: 0; }
.ag-cv-ta {
  width: 100%; box-sizing: border-box; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.8; letter-spacing: .2px;
  background: #0f1d23; color: var(--text);
  border: 1px solid var(--border, rgba(255, 255, 255, .12)); border-radius: 10px;
  padding: 10px 12px; white-space: pre; overflow: auto;
}
.ag-cv-tip { font-size: 11.5px; line-height: 1.75; color: var(--text-3); }
/* 卡密明细表：批次/时间/操作列不折行（否则两个按钮竖排把行高撑爆） */
.ag-tbl td.ag-nw, .ag-tbl th.ag-nw { white-space: nowrap; }
.ag-tbl td.ag-ops { white-space: nowrap; }
.ag-tbl td.ag-ops .ag-btn + .ag-btn { margin-left: 6px; }
/* r448 公告「内容」列：长正文必须省略号截断。
   不加这段，窄屏下表会把这一列挤到 1 个字宽，正文按字竖排、整行被撑成一条竖条。 */
.ag-tbl td.ag-gg-c { max-width: 240px; white-space: nowrap; }
.ag-tbl td.ag-gg-c > span { display: inline-block; max-width: 212px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.ag-tbl-wrap:has(td.ag-gg-c) { overflow-x: auto; }
.ag-tbl-wrap:has(td.ag-gg-c) .ag-tbl { min-width: 780px; }
/* 加了 nowrap 后列更宽：给卡密明细表单独放开横向滚动，避免 .ag-tbl-wrap 的 overflow:hidden 把「操作」列裁掉 */
.ag-tbl-wrap:has(td.ag-ops) { overflow-x: auto; }
/* 该表列多（8 列），收窄左右内边距让整行能在 1160 宽下一行放下，不触发滚动条 */
.ag-tbl-wrap:has(td.ag-ops) th, .ag-tbl-wrap:has(td.ag-ops) td { padding-left: 10px; padding-right: 10px; }

@media (max-width: 900px) {
  .ag-sider { width: 64px; flex-basis: 64px; }
  .ag-sider:not(.collapsed) .ag-brand-txt,
  .ag-sider:not(.collapsed) .ag-grp-head .ag-g-txt,
  .ag-sider:not(.collapsed) .ag-grp-head .ag-arw,
  .ag-sider:not(.collapsed) .ag-item .ag-i-txt,
  .ag-sider:not(.collapsed) .ag-tut span { display: none; }
  .ag-sider:not(.collapsed) .ag-item { padding-left: 10px; justify-content: center; }
}

/* ---- r328 财务页（参考稿）新增组件 ---- */
.ag-cnt-badge {
  font-size: 11.5px; color: var(--text-3);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 20px; padding: 2px 10px; white-space: nowrap;
}
.ag-pager2 { display: flex; align-items: center; gap: 8px; padding: 12px 4px 2px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.ag-pager2 .ag-pg-total { white-space: nowrap; }
.ag-pager2 .ag-pg { min-width: 30px; height: 30px; padding: 0 8px; }
.ag-pg-jump { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ag-pg-jump .ag-inp { height: 30px; }
.ag-kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .ag-kpis3 { grid-template-columns: 1fr; } }
.ag-grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 1100px) { .ag-grid5 { grid-template-columns: repeat(2, 1fr); } }
.ag-kpi-mini {
  background: var(--bg-card, #101c21); border: 1.5px solid var(--border, rgba(255,255,255,.1));
  border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, transform .12s;
}
.ag-kpi-mini:hover { border-color: rgba(0, 212, 181, .55); }
.ag-kpi-mini.active { border-color: var(--accent, #00d4b5); box-shadow: 0 0 0 1px var(--accent, #00d4b5) inset; }
.ag-kpi-mini-lab { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.ag-kpi-mini-num { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-kpi-mini-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.ag-warnbar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245, 165, 36, .08); border: 1px solid rgba(245, 165, 36, .35);
  border-left: 3px solid #f5a524; border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px;
}
.ag-warnbar b { color: #f5a524; }
.ag-emptybox .ag-btn { pointer-events: auto; }

/* ================= r449 提现账号：真实绑定闭环 ================= */
/* 顶部余额条 */
.ag-wd-top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(0, 212, 181, .12), rgba(77, 123, 254, .08));
  border: 1px solid rgba(0, 212, 181, .22);
}
.ag-wd-top-l { flex: 1; min-width: 200px; }
.ag-wd-top-lab { font-size: 12px; color: var(--text-3); }
.ag-wd-top-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.ag-wd-top-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ag-wd-top-r .ag-btn { height: 36px; padding: 0 20px; font-size: 13.5px; }

/* 两张账号卡 */
.ag-po-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ag-po-card { margin: 0; }
.ag-po-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.ag-po-ic {
  width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 auto;
}
.ag-po-ic.lg { width: 48px; height: 48px; font-size: 20px; }
.ag-po-tit b { font-size: 14.5px; }
.ag-po-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.ag-po-empty { display: flex; align-items: center; gap: 12px; background: rgba(127, 127, 127, .07); border-radius: 10px; padding: 14px; }
.ag-po-empty b { font-size: 13px; }
.ag-po-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 7px 0; border-top: 1px dashed rgba(127, 127, 127, .18); }
.ag-po-row span { color: var(--text-3); flex: 0 0 auto; }
.ag-po-row b { text-align: right; word-break: break-all; }
.ag-po-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ag-po-acts .ag-btn { min-height: 0; }
.ag-wx-av { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2ee0a8, #12aab5); color: #fff; font-weight: 700; flex: 0 0 auto; }

/* 说明块 */
.ag-tipbox {
  background: rgba(77, 123, 254, .07); border: 1px dashed rgba(77, 123, 254, .32);
  border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 2; color: var(--text-2);
  margin-top: 12px; word-break: break-word;
}
.ag-tipbox b { color: var(--text); }

/* 验证码 / 密码 步骤 */
.ag-vf-hint { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.ag-vf-hint b { color: #4d7bfe; }
.ag-vf-row { display: flex; gap: 8px; align-items: center; }
.ag-vf-row .ag-inp { flex: 1; }
.ag-vf-row .ag-btn { flex: 0 0 auto; min-height: 0; height: 34px; }
.ag-vf-code { letter-spacing: 6px; font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.ag-vf-target { font-size: 12px; color: var(--text-3); background: rgba(127, 127, 127, .08); border-radius: 8px; padding: 9px 12px; word-break: break-all; }
.ag-vf-target b { color: var(--text); }

/* 微信扫码弹窗 */
.ag-qr-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 16px 16px 12px; margin: 0 auto; width: 100%; box-sizing: border-box;
}
.ag-qr-canvas { line-height: 0; max-width: 100%; }
.ag-qr-canvas canvas { display: block; border-radius: 4px; max-width: 100%; height: auto; }
.ag-qr-brand { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #12161d; }
.ag-qr-brand-ic { font-size: 14px; }
.ag-qr-box.loading { opacity: .45; }
.ag-qr-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-2); text-align: center; padding: 2px 0; }
.ag-qr-status.ok { color: #2ee0a8; font-weight: 700; }
.ag-qr-status.err { color: #ff6b5e; }
.ag-qr-dot { width: 8px; height: 8px; border-radius: 50%; background: #f5a524; flex: 0 0 auto; animation: ag-qr-pulse 1.1s infinite ease-in-out; }
.ag-qr-dot.on { background: #2ee0a8; }
@keyframes ag-qr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ag-qr-steps { font-size: 11.5px; color: var(--text-3); line-height: 2; }
/* r482：扫码签署弹窗的「本次走哪条签署通道」说明（e签宝 / 平台内签署） */
.ag-qr-prov { font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.9; }
.ag-qr-prov b { color: var(--text-2); font-weight: 700; }
.ag-qr-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-qr-acts .ag-btn { min-height: 0; }

/* 提现弹窗 */
.ag-wd-bal {
  display: flex; justify-content: space-between; align-items: baseline;
  background: rgba(0, 212, 181, .09); border: 1px solid rgba(0, 212, 181, .2);
  border-radius: 10px; padding: 12px 14px;
}
.ag-wd-bal span { font-size: 12px; color: var(--text-3); }
.ag-wd-bal b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ag-wd-lab { font-size: 12px; color: var(--text-3); }
.ag-wd-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ag-wd-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0;
  border: 1.5px solid var(--border, rgba(255, 255, 255, .12)); border-radius: 10px; padding: 10px 12px;
  transition: border-color .12s, background .12s;
}
.ag-wd-opt.on { border-color: var(--oc, #4d7bfe); background: rgba(77, 123, 254, .07); }
.ag-wd-opt-ic { width: 32px; height: 32px; border-radius: 9px; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.ag-wd-opt > div { flex: 1 1 auto; min-width: 0; }
.ag-wd-opt b { font-size: 13px; }
.ag-wd-opt-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-wd-rd { margin-left: 6px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border, rgba(255, 255, 255, .25)); flex: 0 0 auto; }
.ag-wd-opt.on .ag-wd-rd { border: 4px solid var(--oc, #4d7bfe); }
/* 警告条里的整句必须是一个 flex 项，否则 <b> 会被当成独立项、句子被拆得七零八落 */
.ag-warnbar > span { flex: 1 1 auto; min-width: 0; }

/* ---- r450 身份与权益卡（站点信息页顶部） ---- */
.ag-id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.ag-id-grid > div { min-width: 0; }

/* 手机端：两列改单列、顶部余额条竖排、二维码自适应 */
@media (max-width: 900px) {
  .ag-po-grid { grid-template-columns: 1fr; }
  .ag-id-grid { grid-template-columns: 1fr; }
  .ag-wd-top { flex-direction: column; align-items: stretch; }
  .ag-wd-top-r { align-items: flex-start; }
  .ag-wd-top-r .ag-btn { width: 100%; }
  .ag-wd-top-num { font-size: 26px; }
}
@media (max-width: 420px) {
  .ag-qr-box { padding: 12px 12px 10px; }
  .ag-qr-canvas canvas { max-width: 100%; height: auto !important; }
  .ag-wd-opts { grid-template-columns: 1fr; }
}

/* ============================================================
   r452 代理商中心顶栏：控件尺寸归位 + 左上角 logo 可点回主页
   ── ① mobile.css ④ 区 @media(max-width:700px){ button{ min-height:44px } }
      会把顶栏这几个「本来就定死 30px 高」的方钮/药丸钮一律撑到 44px ——
      在 60px 高的 .ag-top 里显得又高又挤，而且 flex 收缩还把 .ag-collapse
      从 30 宽压成 24 宽。这里按 r436 的既有套路显式锁尺寸。
   ── ② 「返回主站」已按要求挪到顶栏最左边（见 app.html），给它一个 .home 标记类。
   ============================================================ */
.ag-collapse { flex: 0 0 auto; min-height: 0; max-height: 30px; }
.ag-top-btn  { flex: 0 0 auto; min-height: 0; max-height: 30px; }

/* 左上角 logo：外面包一层 30×30 的真按钮（点击回主站首页）。
   视觉仍是 30×30 的圆头像，触控热区用透明伪元素补到 ~44 ——
   不能用 padding 撑大，否则 64px 宽的折叠侧栏会被顶破。 */
.ag-brand-logo {
  position: relative; flex: 0 0 auto;
  width: 30px; height: 30px; padding: 0;
  min-height: 0; max-height: 30px;   /* 同 ①：取消 mobile.css 的 44px 触控高度 */
  display: grid; place-items: center;
  border: none; background: transparent; border-radius: 50%; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ag-brand-logo::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.ag-brand-logo .ag-brand-ic { pointer-events: none; }
.ag-brand-logo:hover { background: rgba(126, 232, 155, .14); }
.ag-brand-logo:hover .ag-brand-ic { box-shadow: 0 0 14px rgba(126, 232, 155, .55); }
.ag-brand-logo:active { transform: scale(.92); }

/* ============================================================
   r453 代理商中心 · 手机版重做
   ── 起因：代理商中心是「桌面侧栏 + 宽表格 + 多列 grid」的结构，
      直接缩到 390 宽会出三类问题（r453 实测 24 页全量扫描）：
        ① 侧栏恒占 64px，主体只剩 318px，一眼望去全是图标、看不出是什么功能；
        ② 8 个页面横向溢出（充值档次 825/318、渠道激励 648、个人资料 536、
           站点信息 476、仪表盘 395、推送通知 349…），右侧内容直接被裁掉；
        ③ 表格最宽 780px（卡密 792 / 公告 780 / 客户列表 570），
           在 318 的容器里右侧 4~5 列永远看不见。
   ── 对策（三条）：
        A 侧栏改抽屉（默认收起、主体满宽）；
        B 顶栏下面加「常用 + 分组/页面」横滑 chips 导航条，重要功能前置；
        C 内容自适应：多列 grid 一律降列、宽表格自动转卡片流。
   ============================================================ */

/* 桌面端：这两个元素不存在（手机导航条 / 抽屉遮罩） */
.ag-mnav { display: none; }
.ag-mask { display: none; }

/* 顶栏按钮内的图标 / 文案（r453 新增结构，桌面端两者都显示） */
.ag-top-btn .ag-tb-ic { display: inline-flex; align-items: center; }
.ag-collapse .ag-tb-ic { display: inline-flex; align-items: center; }

@media (max-width: 700px) {
  /* ---------- A 侧栏 → 抽屉 ---------- */
  .ag-root { overflow: hidden; }
  .ag-sider {
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 40;
    width: 264px !important; flex-basis: 264px !important;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 44px rgba(0, 0, 0, .55);
  }
  .ag-sider.open { transform: none; }
  /* 抽屉里是「全部功能」，必须显示文字（覆盖 @media 900 的折叠规则） */
  .ag-sider .ag-brand-txt,
  .ag-sider .ag-grp-head .ag-g-txt,
  .ag-sider .ag-grp-head .ag-arw,
  .ag-sider .ag-item .ag-i-txt,
  .ag-sider .ag-tut span { display: block !important; }
  .ag-sider .ag-item { padding-left: 46px !important; justify-content: flex-start !important; }
  .ag-sider .ag-brand-txt span { display: block !important; }
  .ag-mask {
    display: block; position: absolute; inset: 0; z-index: 35;
    background: rgba(0, 0, 0, .5);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .ag-root.sider-open .ag-mask { opacity: 1; pointer-events: auto; }

  /* ---------- 顶栏精简：只留图标，给面包屑腾宽度 ---------- */
  .ag-top { height: 52px; flex-basis: 52px; padding: 0 10px; gap: 8px; }
  .ag-top-btn { width: 32px; padding: 0; justify-content: center; font-size: 14px; }
  .ag-top-btn .ag-tb-txt { display: none; }
  .ag-collapse { width: 32px; font-size: 15px; }
  .ag-top-sp { display: none; }
  .ag-crumb { flex: 1; min-width: 0; font-size: 11.5px; text-align: center; }

  /* ---------- B 手机功能导航条 ---------- */
  .ag-mnav {
    display: block; flex: 0 0 auto;
    border-bottom: 1px solid rgba(126, 232, 155, .10);
    background: rgba(126, 232, 155, .03);
  }
  .ag-mnav-row + .ag-mnav-row { border-top: 1px dashed rgba(255, 255, 255, .06); }
  .ag-mnav-chips {
    display: flex; gap: 6px; padding: 8px 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .ag-mnav-chips::-webkit-scrollbar { display: none; }
  .ag-mchip {
    flex: 0 0 auto; padding: 6px 12px; border-radius: 16px;
    font-size: 12px; line-height: 16px; cursor: pointer; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .10); color: var(--text-3);
    -webkit-tap-highlight-color: transparent;
  }
  .ag-mchip.active {
    background: rgba(0, 212, 181, .14); border-color: rgba(0, 212, 181, .45);
    color: #2ee0a8; font-weight: 600;
  }
  .ag-mchip.more { color: var(--text-2); border-style: dashed; }

  /* ---------- C1 多列 grid 一律降列（覆盖行内 style 的 repeat(5,1fr) 等） ---------- */
  .ag-body { padding: 12px; }
  .ag-page-head { margin-bottom: 12px; }
  .ag-page-title { font-size: 17px; }
  .ag-page-desc { font-size: 12px; }
  .ag-body [style*="grid-template-columns"],
  .ag-body .ag-grid5,
  .ag-body .ag-kpis3,
  .ag-body .ag-po-grid { grid-template-columns: minmax(0, 1fr) !important; }
  /* 白名单：小尺寸统计块（KPI mini）保留 2 列，由 JS 打 .ag-g2 标记 */
  .ag-body .ag-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* ★ 反向覆盖 mobile.css：它后加载，早期为别的页面写的
     「.ag-grid2 → 2 列 / .ag-kpis5 → 3 列」会盖掉本文件的 1200px 断点，
     结果是仪表盘 4 张卡挤成两列（.ag-vs-row 溢出到 424）、
     5 张 KPI 卡挤成三列（「客户总充值」被压到 22px 只剩省略号）。 */
  .ag-body .ag-grid2 { grid-template-columns: minmax(0, 1fr) !important; }
  .ag-body .ag-kpis5,
  .ag-body .ag-kpis2,
  .ag-body .ag-kpis3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ag-kpi2-top { gap: 6px; }
  .ag-kpi2 { padding: 12px; border-radius: 12px; }
  .ag-card { padding: 13px; border-radius: 12px; }
  /* 卡片头 / chip 组在窄屏必须换行：渠道激励「利润测算器」的 1万/6万/20万/100万
     四个 chip 不换行会一路顶到 x=420，把整页撑出横向滚动 */
  .ag-body .ag-card-head { flex-wrap: wrap; row-gap: 8px; }
  /* 关键：.ag-chips 原本是 flex:1;min-width:0，在窄 card-head 里会被压成 0 宽，
     里面的 chip 就一路顶出容器。给它 100% basis 强制独占一行。 */
  .ag-body .ag-chips { flex: 1 1 100%; flex-wrap: wrap; row-gap: 6px; }
  .ag-body .ag-chipbar { flex-wrap: wrap; row-gap: 8px; }
  .ag-body .ag-chipbar-r { flex-wrap: wrap; row-gap: 8px; }
  .ag-bar { gap: 6px; }
  .ag-bar .ag-inp, .ag-bar .ag-sel { max-width: 100%; }

  /* ---------- C2 宽表格 → 卡片流 ---------- */
  .ag-tbl-wrap-card { border: none; background: none; overflow: visible; }
  .ag-tbl-card { display: block; width: 100% !important; min-width: 0 !important; }
  .ag-tbl-card thead { display: none; }
  .ag-tbl-card tbody { display: block; }
  .ag-tbl-card tbody tr {
    display: block; margin-bottom: 10px; padding: 10px 12px;
    background: var(--bg-card, #101c21);
    border: 1px solid var(--border, rgba(255, 255, 255, .1));
    border-radius: 12px;
  }
  .ag-tbl-card tbody td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 5px 0; border-bottom: none;
    font-size: 12.5px; text-align: right; word-break: break-all;
  }
  .ag-tbl-card tbody td::before {
    content: attr(data-l); flex: 0 0 auto;
    font-size: 11.5px; color: var(--text-3); text-align: left;
  }
  .ag-tbl-card tbody td:first-child { font-weight: 600; color: var(--text); }
  .ag-tbl-card tbody td.ag-ops { flex-wrap: wrap; justify-content: flex-end; }
  .ag-tbl-card tbody td.ag-nw { white-space: normal; }
  .ag-tbl-card tbody td.ag-gg-c { max-width: none; white-space: normal; }
  .ag-tbl-card tbody td.ag-gg-c > span { max-width: none; }
}

/* ============================================================
   r455 代理商中心：彩色 emoji →「简易版」线性图标 + 手机导航条分层配色
   ── ① emoji 换图标
      页面里原先散落 70 多种系统 emoji（💰🏆⭐🛒📊📈…）当图标用。
      它们在 macOS / 安卓 / Windows 上渲染风格完全不可控，且是彩色拟物，
      与全站「深色 + 细线条」的图标语言冲突（r443 修垃圾桶时踩过同一个坑）。
      现在统一由 agent-center.js 的 agIconize() 在渲染出口换成线性 SVG，
      包一层 <span class="zg-ic">（沿用主站 r421 的既有类名）。
   ── ② 手机导航条分层配色
      第一行是「分组」（外层），第二行是「页面」（内层）。
      原来两行同一个样式，看不出「客户管理」（分组）与「转化分析」（页面）
      的层级关系。现在分组走蓝紫色系、页面走青绿系，一眼可分。
   ============================================================ */

/* ---------- ① 线性图标 ---------- */
.ag-root .zg-ic {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;                /* 在 .ag-warnbar / .ag-btn 这类 flex 容器里不被压扁 */
  margin-right: 5px; vertical-align: -2px; opacity: .92;
}
/* 尺寸用 em：图标自动跟随所在文字的字号，各处不必逐一定制 */
.ag-root .zg-ic svg { display: block; width: 1.06em; height: 1.06em; }

/* 独立的图标块（KPI 卡右上的 26×26 小方块 / 转化分析卡的前置图标）：
   不给外边距、不降透明，颜色跟着卡片的主题色走；方块里给到 15px 更聚焦。 */
.ag-root .ag-kpi2-chip .zg-ic,
.ag-root .ag-kpi-lab .zg-ic,
.ag-root .ag-i-badge .zg-ic,
.ag-root .ag-empty-ic .zg-ic { margin-right: 0; opacity: 1; }
.ag-root .ag-kpi2-chip .zg-ic { color: var(--cc, #00d4b5); }
.ag-root .ag-kpi-lab .zg-ic { color: var(--kc, #00d4b5); }
.ag-root .ag-kpi2-chip .zg-ic svg,
.ag-root .ag-kpi-lab .zg-ic svg { width: 15px; height: 15px; }
/* 空态：图标比文字大一圈、压暗，别抢标题 */
.ag-root .ag-empty-ic .zg-ic svg { width: 1.5em; height: 1.5em; }
.ag-root .ag-empty-ic .zg-ic { opacity: .5; }
/* 警示条：图标顶格居左 */
.ag-root .ag-warnbar > .zg-ic,
.ag-root .ag-warnchip > .zg-ic,
.ag-root .ag-tipbox > .zg-ic { margin-right: 0; }
/* 弹层右上角的关闭 ✕（主站图标表里有 ✕，所以也会被换成 SVG）：补 0 外边距，
   否则 5px 的右外边距会把关闭按钮顶得偏左。 */
.ag-root .ag-x .zg-ic { margin-right: 0; }

/* ---------- ② 手机导航条：外层分组 vs 内层页面 ---------- */
@media (max-width: 700px) {
  /* 分组（外层）：蓝紫、更小一档、淡底 —— 表达「我是容器/分类」 */
  .ag-mchip.grp {
    font-size: 11.5px; padding: 5px 11px;
    color: #93a7cc; border-color: rgba(126, 166, 255, .20);
    background: rgba(126, 166, 255, .05);
  }
  .ag-mchip.grp.active {
    background: rgba(93, 124, 255, .20); border-color: rgba(126, 166, 255, .62);
    color: #b3c8ff; font-weight: 600;
  }
  /* 页面（内层）：保持青绿实感，层级更「实」 */
  .ag-mchip:not(.grp):not(.more) { border-color: rgba(255, 255, 255, .13); }
  .ag-mchip:not(.grp):not(.more).active {
    background: rgba(0, 212, 181, .16); border-color: rgba(0, 212, 181, .55);
    color: #2ee0a8; font-weight: 600;
  }
}
