/* ============================================================
   绩效展示/管理系统  —  共享样式
   ============================================================ */

:root {
  --bg: #f3f4f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e2e5ef;
  --text: #182036;
  --text-2: #525a72;
  --muted: #8e95aa;
  --primary: #4f46e5;
  --primary-600: #3730a3;
  --primary-50: #eef2ff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(22,28,58,.05), 0 12px 32px rgba(22,28,58,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 通用 ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 14px; font-weight: 600; transition: .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.input {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; outline: none; background: #fff; color: var(--text); min-width: 0;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { max-width: 280px; flex: 1; }
.toolbar-right { margin-left: auto; display: flex; gap: 10px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.nav-links { margin-left: auto; display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; font-size: 14px;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active { background: var(--primary-50); color: var(--primary); }

/* ---------- 页面头部 ---------- */
.page-title { margin-bottom: 18px; }
.page-title h1 { font-size: 24px; margin: 0 0 4px; }
.page-title p { color: var(--muted); margin: 0; }
.page-title p.subtitle { font-size: 12px; color: #94a3b8; margin: 2px 0 6px; letter-spacing: .3px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }
.perf-table { border-collapse: collapse; font-size: 13px; background: #fff; table-layout: fixed; width: 100%; }
.perf-table th, .perf-table td { padding: 9px 8px; border: 1px solid var(--border); white-space: nowrap; text-align: center; line-height: 1.35; }
.perf-table th { background: #f4f6fb; color: var(--text-2); font-weight: 700; position: relative; }
.perf-table th.group { color: #fff; font-size: 14px; border-bottom: none; }
.perf-table td.bold, .perf-table th.bold { font-weight: 800; }
.perf-table th.fixed, .perf-table td.fixed { position: sticky; left: 0; background: #fff; z-index: 2; text-align: center; font-weight: 700; }
.perf-table th.fixed { background: #eef1f8; z-index: 3; }
.perf-table thead th.fixed { background: #eef1f8; }
.perf-table tbody tr:hover td { background: #f6f8fd; }
.perf-table tbody tr:hover td.fixed { background: #eef1f8; }
.perf-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.perf-table th.num { text-align: center; }
/* 总绩效列高亮 */
.perf-table th.total-col, .perf-table td.total-col { background: #f0f3ff; }
.perf-table tbody tr:hover td.total-col { background: #e6ebff; }
.perf-table tfoot td { background: #eef1f8; font-weight: 800; color: var(--primary-600); }
.perf-table tfoot td.fixed { background: #eef1f8; }

/* ---- 分组配色（转介绍 / 扩·拉·召 / 研学） ---- */
.perf-table th.group.group-ref { background: #4f46e5; }
.perf-table th.group.group-elz { background: #059669; }
.perf-table th.group.group-res { background: #d97706; }
.perf-table td.g-ref { background: #f4f5ff; }
.perf-table td.g-elz { background: #ecfdf5; }
.perf-table td.g-res { background: #fffbeb; }
.perf-table tbody tr:hover td.g-ref { background: #e9ebff; }
.perf-table tbody tr:hover td.g-elz { background: #dffaee; }
.perf-table tbody tr:hover td.g-res { background: #fdf3da; }
/* 组间加粗彩色分割线 */
.perf-table th.grp-start, .perf-table td.grp-start { border-left-width: 3px; }
.perf-table th.grp-start.g-ref, .perf-table td.grp-start.g-ref { border-left-color: #4f46e5; }
.perf-table th.grp-start.g-elz, .perf-table td.grp-start.g-elz { border-left-color: #059669; }
.perf-table th.grp-start.g-res, .perf-table td.grp-start.g-res { border-left-color: #d97706; }
/* 板块下的子表头（第二行）带上对应浅色，强化分色 */
.perf-table thead tr:last-child th.g-ref { background: #e0e7ff; color: #3730a3; }
.perf-table thead tr:last-child th.g-elz { background: #d1fae5; color: #047857; }
.perf-table thead tr:last-child th.g-res { background: #fef3c7; color: #b45309; }

.sortable { cursor: pointer; user-select: none; }
.sortable::after { content: "↕"; color: var(--muted); margin-left: 5px; font-size: 11px; }
.sortable.asc::after { content: "↑"; color: var(--primary); }
.sortable.desc::after { content: "↓"; color: var(--primary); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--border); background: #fff; border-radius: 8px; color: var(--text-2); }
.pager button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .info { color: var(--muted); font-size: 13px; margin-right: auto; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  background: url("assets/login-bg.jpg") center center / cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}
/* 左侧品牌区轻遮罩：让背景图的标题/三角更醒目，右侧保持通透便于毛玻璃穿透 */
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.login-card {
  position: absolute;
  left: 75%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.5);
  padding: 40px 36px; width: calc(100% - 40px); max-width: 380px;
  z-index: 1;
}
@media (max-width: 900px) {
  /* 小屏：登录卡恢复水平居中，避免被推出视口 */
  .login-card { left: 50%; }
}
.login-card h2 { margin: 0 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 24px; }
.login-card .field { margin-bottom: 16px; }
.login-card label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.login-card .hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }

/* ---------- 后端表格 ---------- */
.admin-table { table-layout: auto; width: 100%; }
.admin-table th, .admin-table td { padding: 9px 10px; font-size: 13px; }
.admin-table td .actions { display: flex; gap: 6px; justify-content: center; }

/* ---------- 弹窗 ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,20,36,.45); z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 700px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--muted); }
.modal-body { padding: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid .field { display: flex; flex-direction: column; gap: 5px; }
.form-grid label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.form-grid input, .form-grid select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); outline: none; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #11172a; color: #fff; padding: 12px 24px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #15803d; }
.toast.err { background: #b91c1c; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar .input { max-width: none; width: 100%; }
}
@media (max-width: 640px) {
  .page { padding: 14px; }
  .topbar-inner { padding: 12px 14px; }
  .brand span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .perf-table th, .perf-table td { padding: 9px 10px; font-size: 12px; }
}

/* ---------- 标签与规则说明 ---------- */
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary-600); font-size: 12px; font-weight: 600;
}
.rules {
  margin-top: 18px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text-2); font-size: 13px;
}
.rules h3 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.rules ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.rules li { margin-bottom: 4px; }
.rules strong { color: var(--text); }

/* ---------- 标签页切换 ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab {
  background: none; border: none; padding: 10px 18px; cursor: pointer;
  font-size: 14px; color: var(--muted); font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary-600); border-bottom-color: var(--primary-500); }

/* ---------- 前端：按主管组分组的子表样式 ---------- */
.group-title td { padding: 0 !important; background: transparent !important; border: none !important; }
.group-title-bar {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 8px; padding: 10px 14px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-left: 4px solid var(--primary-500);
  border-radius: 6px;
}
.group-title-name { font-size: 15px; font-weight: 700; color: var(--primary-700); }
.group-title-count { font-size: 12px; color: var(--muted); background: rgba(99,102,241,.08); padding: 2px 10px; border-radius: 999px; }
.group-title-perf { font-size: 13px; color: var(--text-2); font-weight: 600; margin-left: auto; }
.sub-head th { background: #f8fafc !important; color: var(--muted) !important; font-size: 11px !important; font-weight: 500 !important; padding: 6px 8px !important; }
.subtotal-row td { background: #fefce8 !important; font-weight: 700 !important; color: #713f12 !important; border-top: 1px dashed #fbbf24 !important; }
.subtotal-cell { background: #fefce8 !important; }
.no-data-row td { color: #94a3b8 !important; font-style: italic; }
.no-data-cell { color: #cbd5e1 !important; background: #f8fafc !important; }
.muted-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 10px; color: #94a3b8; background: #f1f5f9; border-radius: 4px; font-style: normal; }

/* ---------- 后台：组织架构看板 ---------- */
.org-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.org-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; box-shadow: var(--shadow); transition: all .15s;
}
.org-card.drag-target { box-shadow: 0 0 0 2px var(--primary-500); }
.org-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.org-sup { font-size: 15px; font-weight: 700; color: var(--primary-700); display: flex; align-items: center; gap: 6px; }
.org-sup-tag { font-size: 10px; padding: 1px 6px; background: var(--primary-500); color: #fff; border-radius: 4px; font-weight: 500; }
.org-card-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.org-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.org-meta-inline { font-size: 12px; color: var(--muted); }
.org-members { list-style: none; margin: 0; padding: 0; min-height: 40px; }
.org-member {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 6px; font-size: 13px; cursor: grab; transition: background .15s;
  border: 1px solid transparent;
}
.org-member:hover { background: #f8fafc; }
.org-member.dragging { opacity: .4; }
.org-member.has-data { color: var(--text); }
.org-member.no-data { color: #94a3b8; }
.org-member-name { flex: 1; }
.org-member-status { font-size: 10px; color: var(--muted); padding: 1px 6px; background: #f1f5f9; border-radius: 4px; }
.org-member-rm {
  width: 20px; height: 20px; border: none; background: transparent; color: #94a3b8;
  cursor: pointer; border-radius: 4px; font-size: 14px; line-height: 1; padding: 0;
}
.org-member-rm:hover { background: #fee2e2; color: #dc2626; }
.org-members.dragover { background: #eef2ff; border-radius: 6px; }
.org-empty { list-style: none; padding: 14px; text-align: center; color: var(--muted); font-size: 12px; font-style: italic; }
.org-card-ungrouped { background: #f8fafc; border-style: dashed; }
.empty-tip { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

/* ---------- 视图切换（全员 / 按主管组） ---------- */
.view-switch {
  display: inline-flex; background: #f1f5f9;
  border-radius: 8px; padding: 2px; gap: 2px;
}
.view-btn {
  padding: 6px 14px; border: none; background: transparent;
  cursor: pointer; font-size: 13px; color: var(--muted);
  border-radius: 6px; transition: all .15s; font-family: inherit;
  font-weight: 500;
}
.view-btn:hover { color: var(--text); }
.view-btn.active {
  background: #fff; color: var(--primary-600);
  box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600;
}

/* ---------- TOP 徽章（全量按总绩效排名 TOP1-10） ---------- */
.name-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.top-badge {
  display: inline-block; font-size: 10px; font-weight: 800; line-height: 1;
  padding: 2px 5px; border-radius: 4px; color: #fff; letter-spacing: .3px;
  background: #94a3b8;
}
.top-badge.top-1 { background: linear-gradient(135deg,#f59e0b,#d97706); }
.top-badge.top-2 { background: linear-gradient(135deg,#e2e8f0,#94a3b8); color:#334155; }
.top-badge.top-3 { background: linear-gradient(135deg,#d97706,#b45309); }
.top-badge.top-4, .top-badge.top-5, .top-badge.top-6, .top-badge.top-7, .top-badge.top-8, .top-badge.top-9, .top-badge.top-10 { background: linear-gradient(135deg,#6366f1,#4f46e5); }

/* 转介绍小组/大组第一 奖励徽章（非票券形式，渐变胶囊更醒目） */
.ref-ticket {
  display: inline-block;
  margin: 2px 3px 0 0;
  padding: 1px 9px 2px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .3px;
  color: #fff;
  border-radius: 11px;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.ref-ticket + .ref-ticket { margin-left: 4px; }
/* 大组第一（最高荣誉）：橙红渐变 */
.ref-ticket.ref-grand { background: linear-gradient(135deg,#ff8a1e,#e53935); }
/* 小组第一：蓝渐变 */
.ref-ticket.ref-group { background: linear-gradient(135deg,#3aa0f0,#1f6fd6); }
/* 金额徽章（转介绍总绩效数字下方）：更大更醒目 */
.ref-ticket.ref-amount {
  font-size: 12px;
  font-weight: 900;
  padding: 2px 11px 3px;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.30);
}
/* 转介绍总绩效数字下方的奖励块（垂直堆叠、居中） */
.ref-reward { margin-top: 5px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ref-reward .ref-ticket { margin: 0; }
/* 总绩效单元格内不折行 */
.nowrap { white-space: nowrap; }
/* 英雄榜票券容器 */
.hero-tickets { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 2px; }
.hero-tickets .ref-ticket { margin: 0; }

/* ---------- 英雄榜 ---------- */
.heroes-board { display: none; }
.heroes-actions { text-align: right; margin-bottom: 14px; }
.btn-primary {
  background: linear-gradient(135deg,#6366f1,#4f46e5); color:#fff; border:none;
  padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: inherit; box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.btn-primary:hover { filter: brightness(1.06); }
.hero-section {
  background:#fff; border:1px solid var(--border); border-radius:12px;
  padding:16px 20px; margin-bottom:16px; box-shadow: var(--shadow);
}
.hero-section h3 { margin:0 0 12px; font-size:16px; color:var(--primary-700); }
.hero-row { display:flex; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px dashed var(--border); }
.hero-row:last-child { border-bottom:none; }
.hero-rank {
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; background:#eef2ff; color:var(--primary-600);
}
.hero-rank.r1 { background:linear-gradient(135deg,#f59e0b,#d97706); color:#fff; }
.hero-rank.r2 { background:linear-gradient(135deg,#e2e8f0,#94a3b8); color:#334155; }
.hero-rank.r3 { background:linear-gradient(135deg,#d97706,#b45309); color:#fff; }
.hero-name { flex:1; font-weight:600; display:flex; align-items:center; gap:6px; }
.hero-name .sub-inline { font-size:12px; color:var(--muted); font-weight:400; }
.hero-val { font-weight:700; font-variant-numeric:tabular-nums; color:var(--text); }
.hero-unit { font-size:11px; color:var(--muted); margin-left:4px; font-weight:400; }

/* ---------- 英雄榜：顶部汇总条 ---------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
.hero-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-600));
}
.hero-stat.s-gold::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.hero-stat.s-green::before { background: linear-gradient(180deg, #10b981, #059669); }
.hero-stat.s-red::before   { background: linear-gradient(180deg, #ef4444, #dc2626); }
.hero-stat-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hero-stat-val { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-stat-unit { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.hero-stat-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ---------- 英雄榜：单行扩展（grid 三列：身份 / 明细 / 数字） ---------- */
.hero-row {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 16px; align-items: center;
  padding: 12px 8px;
  border-bottom: 1px dashed var(--border);
  border-radius: 8px;
  transition: background .15s;
}
.hero-row:last-child { border-bottom: none; }
.hero-row:hover { background: #f8fafc; }
.hero-row.podium-1 { background: linear-gradient(90deg, rgba(245,158,11,.08), transparent 60%); border-left: 3px solid #f59e0b; padding-left: 10px; }
.hero-row.podium-2 { background: linear-gradient(90deg, rgba(148,163,184,.12), transparent 60%); border-left: 3px solid #94a3b8; padding-left: 10px; }
.hero-row.podium-3 { background: linear-gradient(90deg, rgba(217,119,6,.10), transparent 60%); border-left: 3px solid #d97706; padding-left: 10px; }
.hero-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-name-block { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-name-text { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-meta { font-size: 11px; color: var(--muted); line-height: 1.5; }
.hero-meta b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-meta-sep { color: #cbd5e1; margin: 0 6px; }
.hero-bar {
  height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden;
}
.hero-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  transition: width .3s ease;
}
.hero-row.podium-1 .hero-bar-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.hero-row.podium-2 .hero-bar-fill { background: linear-gradient(90deg, #cbd5e1, #64748b); }
.hero-row.podium-3 .hero-bar-fill { background: linear-gradient(90deg, #d97706, #92400e); }
.hero-row.s-boss .hero-bar-fill { background: linear-gradient(90deg, #34d399, #059669); }
.hero-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hero-val { font-weight: 800; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-unit { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ---------- 转介绍额外激励金：提点率标签（3% 红 -> 11% 绿） ---------- */
.rate-tag {
  display: inline-block; margin-left: 4px; padding: 0 5px;
  font-size: 9px; font-weight: 700; line-height: 1.3;
  color: #fff; border-radius: 3px; letter-spacing: .1px;
  vertical-align: middle; white-space: nowrap;
}
.perf-table td.bold .rate-tag { font-weight: 700; }
