/* ==========================================================================
   PC 运营中心 · 样式
   与 H5 同一套设计语言：暖米底 / 白卡 / 橙主色 + 紫辅色
   ========================================================================== */

:root {
  --bg: #f6f2ec;
  --panel: #ffffff;
  --line: #ebe1d5;
  --line-2: #f4ece3;
  --ink: #241c16;
  --ink-2: #5b4f46;
  --ink-3: #8c7f74;
  --ink-4: #b3a89d;
  --orange: #f0531b;
  --orange-deep: #d93f0b;
  --orange-soft: #fff1e8;
  --purple: #6b4be8;
  --purple-soft: #f1edff;
  --green: #12a970;
  --green-soft: #e7f8f0;
  --blue: #2e7cf6;
  --blue-soft: #eaf2ff;
  --red: #e23e3e;
  --red-soft: #fdeeee;
  --yellow: #b7791f;
  --yellow-soft: #fff7e6;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 10px 28px rgba(60, 40, 20, 0.05);
  --side-w: 236px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ddd1c4; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.hide { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }

/* ============================== 登录 ============================== */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-brand {
  position: relative;
  overflow: hidden;
  padding: 56px 60px;
  color: #fff;
  background: linear-gradient(150deg, #ff7a3d 0%, #f0531b 42%, #c93a0c 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand::after {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; bottom: -240px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.24), rgba(255,255,255,0) 65%);
}
.login-brand::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  left: -120px; top: -140px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: .2px; position: relative; z-index: 1; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
}
.brand-title { position: relative; z-index: 1; margin: 40px 0 0; font-size: 34px; line-height: 1.32; font-weight: 800; letter-spacing: -.5px; }
.brand-sub { position: relative; z-index: 1; margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.78); max-width: 420px; line-height: 1.9; }
.brand-points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.brand-point {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 14px 16px;
}
.brand-point b { display: block; font-size: 19px; font-weight: 800; }
.brand-point span { font-size: 11.5px; color: rgba(255,255,255,.75); }
.brand-foot { position: relative; z-index: 1; font-size: 11.5px; color: rgba(255,255,255,.62); }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box { width: 100%; max-width: 372px; }
.login-title { font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.login-tip { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; }
.login-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.field-label { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #f7a381; box-shadow: 0 0 0 3px rgba(240,83,27,.1); }
.input::placeholder { color: var(--ink-4); }
.login-btn {
  height: 44px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #ff7236, #ea4510);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(240,83,27,.24);
  transition: transform .12s, box-shadow .16s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(240,83,27,.3); }
.login-btn:active { transform: translateY(0); }
.login-error { color: var(--red); font-size: 12px; min-height: 18px; }
.demo-list { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.demo-list-title { font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }
.demo-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent;
}
.demo-row:hover { background: #fff; border-color: var(--line); }
.demo-role { font-weight: 700; font-size: 12.5px; }
.demo-acc { color: var(--ink-3); font-size: 11.5px; }

/* ============================== 框架 ============================== */

.layout { display: flex; min-height: 100vh; }

.side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.side-logo { height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line-2); }
.side-logo .brand-mark { background: linear-gradient(135deg, #ff8a52, #ef4c12); border: none; color: #fff; }
.side-logo b { font-size: 14.5px; font-weight: 800; letter-spacing: .2px; }
.side-logo span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .3px; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-group { margin-top: 12px; }
.nav-group:first-child { margin-top: 0; }
.nav-group-title { font-size: 10.5px; color: var(--ink-4); letter-spacing: .6px; padding: 8px 10px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  cursor: pointer; position: relative;
  transition: background .14s, color .14s;
}
.nav-item:hover { background: #faf6f1; color: var(--ink); }
.nav-item.on { background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; }
.nav-item.on::before {
  content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px;
  background: var(--orange); border-radius: 0 3px 3px 0;
}
.nav-item svg { flex: 0 0 auto; opacity: .8; }
.nav-item.on svg { opacity: 1; }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
.side-foot { padding: 12px; border-top: 1px solid var(--line-2); }
.side-user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: #fbf7f2; }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, #ffd9c4, #ffb489);
  color: #a33a0d; display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.avatar.purple { background: linear-gradient(135deg, #ddd3ff, #b9a6ff); color: #4a2fb0; }
.avatar.green { background: linear-gradient(135deg, #cdf0e1, #a5e2c8); color: #0b7a51; }
.side-user b { font-size: 12.5px; display: block; }
.side-user span { font-size: 10.5px; color: var(--ink-3); }

.main { flex: 1; margin-left: var(--side-w); min-width: 0; }

.topbar {
  height: 64px;
  padding: 0 24px;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 12.5px; }
.crumb b { color: var(--ink); font-weight: 700; font-size: 14px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill {
  height: 30px; padding: 0 11px; border-radius: 15px;
  background: #fbf7f2; border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2); cursor: pointer;
}
.pill:hover { background: #fff; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { background: #fbf7f2; }
.icon-btn .dot-red { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.page { padding: 20px 24px 48px; max-width: 1560px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-title { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.page-desc { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

/* ============================== 卡片 ============================== */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
}
.card-title { font-size: 14px; font-weight: 800; letter-spacing: -.1px; display: flex; align-items: center; gap: 7px; }
.card-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.card-body { padding: 16px 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.kpi-k { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi-v { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-v small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.kpi-foot { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi-ico {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
}
.tint-orange { background: var(--orange-soft); color: var(--orange-deep); }
.tint-purple { background: var(--purple-soft); color: var(--purple); }
.tint-green { background: var(--green-soft); color: var(--green); }
.tint-blue { background: var(--blue-soft); color: var(--blue); }
.tint-red { background: var(--red-soft); color: var(--red); }
.tint-yellow { background: var(--yellow-soft); color: var(--yellow); }

.trend-up { color: var(--green); font-weight: 700; }
.trend-down { color: var(--red); font-weight: 700; }

/* ============================== 按钮 ============================== */

.btn {
  height: 34px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: background .14s, border-color .14s, color .14s, transform .1s;
}
.btn:hover { background: #fbf7f2; border-color: #e2d6c8; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #ff7236, #ea4510);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px rgba(240,83,27,.2);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff7f47, #f04f1b); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #f7f1ea; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; }
.btn-danger { color: var(--red); border-color: #f3d4d4; background: #fff; }
.btn-danger:hover { background: var(--red-soft); border-color: #eab8b8; }
.btn-ok { color: var(--green); border-color: #c9ecdd; background: #fff; }
.btn-ok:hover { background: var(--green-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; }

/* ============================== 标签 ============================== */

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.tag-orange { background: var(--orange-soft); color: var(--orange-deep); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.tag-green { background: var(--green-soft); color: #0b7a51; }
.tag-blue { background: var(--blue-soft); color: #1b5fcc; }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-yellow { background: var(--yellow-soft); color: var(--yellow); }
.tag-gray { background: #f3efe9; color: var(--ink-3); }
.tag-line { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ============================== 表格 ============================== */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; font-weight: 600; color: var(--ink-3);
  background: #fbf8f4; font-size: 11.5px; letter-spacing: .2px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fdfaf6; }
.table .strong { color: var(--ink); font-weight: 700; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table .ops { text-align: right; white-space: nowrap; }
.table .ops .btn + .btn { margin-left: 6px; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.empty b { display: block; color: var(--ink-2); font-size: 13.5px; margin-bottom: 4px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.toolbar .input, .toolbar .select { height: 34px; width: auto; min-width: 132px; border-radius: 9px; }
.toolbar .grow { flex: 1; }
.search-box { position: relative; }
.search-box .input { padding-left: 32px; min-width: 230px; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-4); }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: var(--ink-3); font-size: 12px; }
.pager .pages { display: flex; gap: 6px; }
.page-btn {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12px;
}
.page-btn.on { background: var(--orange-soft); border-color: #ffd0bb; color: var(--orange-deep); font-weight: 700; }
.page-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ============================== 表单/弹层 ============================== */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
.field .input, .field .select { height: 38px; }
.help { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.req::after { content: '*'; color: var(--red); margin-left: 3px; }

.mask {
  position: fixed; inset: 0; background: rgba(36, 26, 18, .38);
  backdrop-filter: blur(2px); z-index: 60;
  display: flex; align-items: center; justify-content: center;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 520px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px);
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(40, 24, 12, .22);
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop .18s cubic-bezier(.2,.9,.3,1);
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-hd { padding: 18px 20px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 16px; font-weight: 800; }
.modal-sub { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.modal-bd { padding: 4px 20px 8px; overflow-y: auto; }
.modal-ft { padding: 14px 20px 18px; display: flex; justify-content: flex-end; gap: 9px; }
.close-x { width: 28px; height: 28px; border-radius: 8px; border: none; background: #f7f1ea; color: var(--ink-3); font-size: 15px; display: grid; place-items: center; }
.close-x:hover { background: #f0e7dc; color: var(--ink); }

.drawer-mask {
  position: fixed; inset: 0; background: rgba(36, 26, 18, .3); z-index: 55;
  animation: fade .16s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 92vw;
  background: #fff; z-index: 56; box-shadow: -18px 0 48px rgba(40,24,12,.16);
  display: flex; flex-direction: column;
  animation: slide .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-hd { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 22px 28px; }
.drawer-ft { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 9px; background: #fdfaf7; }

.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #241c16; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 12.5px; box-shadow: 0 10px 26px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 8px;
  animation: toastIn .2s ease;
}
.toast.ok { background: #0f7a55; }
.toast.warn { background: #a8480f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============================== 导入 ============================== */

.dropzone {
  border: 1.5px dashed #e3d5c5; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fffdfb, #fdf8f2);
  padding: 34px 24px; text-align: center;
  transition: border-color .16s, background .16s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: #f7a381; background: #fff8f3; }
.dropzone .dz-ico {
  width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 12px;
  background: var(--orange-soft); color: var(--orange-deep);
  display: grid; place-items: center;
}
.dropzone h4 { margin: 0; font-size: 15px; font-weight: 800; }
.dropzone p { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; }
.dz-meta { margin-top: 14px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.import-steps { display: flex; align-items: center; gap: 8px; }
.step {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-3);
}
.step i {
  width: 20px; height: 20px; border-radius: 50%; font-style: normal;
  background: #f3ece4; color: var(--ink-3); display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.step.on { color: var(--ink); font-weight: 700; }
.step.on i { background: var(--orange); color: #fff; }
.step.done i { background: var(--green-soft); color: var(--green); }
.step-line { width: 26px; height: 1px; background: var(--line); }

.sum-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sum-cell { background: #fbf8f4; border-radius: 12px; padding: 12px 14px; }
.sum-k { font-size: 11.5px; color: var(--ink-3); }
.sum-v { font-size: 18px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.sum-v.ok { color: var(--green); }
.sum-v.bad { color: var(--red); }

/* ============================== 图表 ============================== */

.chart-wrap { padding: 8px 6px 0; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--ink-3); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 88px; align-items: center; gap: 12px; padding: 8px 0; }
.bar-name { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 5px; background: #f4ece3; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ffa06b, #f0531b); }
.bar-val { text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================== 详情 ============================== */

.detail-hero {
  background: linear-gradient(135deg, #fff6ef, #ffeadb);
  border: 1px solid #ffe0cd; border-radius: var(--r-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
}
.detail-hero .avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }
.detail-name { font-size: 17px; font-weight: 800; }
.detail-sub { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -17px; top: 4px; width: 7px; height: 7px;
  border-radius: 50%; background: #fff; border: 2px solid #e6d8c8;
}
.tl-item.on::before { border-color: var(--orange); background: var(--orange); }
.tl-t { font-size: 12.5px; font-weight: 700; }
.tl-s { font-size: 11.5px; color: var(--ink-3); }
.tl-time { font-size: 11px; color: var(--ink-4); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); padding: 0 18px; }
.tab {
  padding: 12px 12px 11px; font-size: 12.5px; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--orange-deep); border-bottom-color: var(--orange); }
.tab .cnt { background: #f3ece4; color: var(--ink-3); border-radius: 8px; padding: 0 6px; font-size: 10.5px; height: 16px; display: inline-grid; place-items: center; }
.tab.on .cnt { background: var(--orange-soft); color: var(--orange-deep); }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fffaf2; border: 1px solid #f7e7c8; color: #8a5a12;
  border-radius: 11px; padding: 11px 14px; font-size: 12px; line-height: 1.7;
}
.notice.purple { background: var(--purple-soft); border-color: #ded4ff; color: #4c33b8; }
.notice.blue { background: var(--blue-soft); border-color: #d5e5ff; color: #1b5fcc; }

.split-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 13px; background: #f7f1ea; color: var(--ink-2); font-size: 11.5px;
}
.chip.on { background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; }
.chip:hover { background: #f2e9df; }
.chip.on:hover { background: var(--orange-soft); }

.role-card {
  height: 100%;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: #fff; transition: border-color .16s, box-shadow .16s;
}
.role-card.on { border-color: #ffc9ac; box-shadow: 0 8px 22px rgba(240,83,27,.1); }
.perm-table td { padding: 9px 12px; }
.perm-check { width: 16px; height: 16px; accent-color: var(--orange); }

.stat-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-mini .cell { background: #fbf8f4; border-radius: 11px; padding: 11px 12px; }
.stat-mini .k { font-size: 11px; color: var(--ink-3); }
.stat-mini .v { font-size: 16px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .split-2 { grid-template-columns: 1fr; }
  .split-3 { grid-template-columns: 1fr; }
  .sum-grid { grid-template-columns: repeat(3, 1fr); }
}
