/* ===== 销售分析后台 - 管理皮肤 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --side-bg: #1E2A38;
  --side-bg2: #16202B;
  --brand: #C8102E;
  --ink: #16324F;
  --blue: #3E7CB1;
  --gold: #B98A2F;
  --text: #1F2933;
  --sub: #8A94A6;
  --line: #E4E8EF;
  --bg: #EEF1F6;
  --card: #FFFFFF;
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
a { color: var(--blue); }

/* ===== 布局 ===== */
.layout { min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px;
  background: linear-gradient(180deg, var(--side-bg), var(--side-bg2));
  color: #AEBAC9; display: flex; flex-direction: column; z-index: 20;
}
.side-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo-badge {
  width: 36px; height: 36px; flex: none;
  background: var(--brand); color: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.logo-text { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .05em; }
.side-nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin-bottom: 4px;
  color: #AEBAC9; text-decoration: none; font-size: 14px;
  border-radius: 8px; border-left: 3px solid transparent;
}
.side-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-nav a.on { background: rgba(200,16,46,.16); color: #fff; border-left-color: var(--brand); font-weight: 600; }
.side-nav .ic { width: 20px; text-align: center; font-size: 15px; font-style: normal; opacity: .92; }
.nav-group {
  padding: 16px 12px 6px; font-size: 11px; letter-spacing: .12em;
  color: #66748A; font-weight: 600; user-select: none;
}
.nav-group:first-child { padding-top: 4px; }

/* ===== 后台管理页面通用 ===== */
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; max-width: 1100px; }
.admin-grid .card { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w100 { width: 100%; box-sizing: border-box; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; vertical-align: middle; }
.tag-me {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px;
  background: rgba(200,16,46,.1); color: var(--brand); font-size: 11px; font-weight: 600;
}
.role-tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600;
}
.role-admin { background: rgba(200,16,46,.1); color: var(--brand); }
.role-user { background: rgba(62,124,177,.12); color: var(--blue); }
.email-cell { font-size: 12.5px; color: #16283C; }
.email-none { font-size: 12.5px; color: #B0B9C6; }
.my-email-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(62,124,177,.12);
  color: var(--blue); font-size: 12px; font-weight: 600;
}

/* ===== 同事数据分析卡片 ===== */
.peer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}
.peer-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  background: #FBFCFE; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, #16324F, #2A5077); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.pc-info { flex: 1; min-width: 0; }
.pc-name { font-size: 14.5px; font-weight: 700; color: #16283C; display: flex; align-items: center; gap: 8px; }
.pc-meta { font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.pc-amt { text-align: right; }
.pc-amt-num { font-size: 17px; font-weight: 700; color: var(--brand); }
.pc-amt-lab { font-size: 11px; color: var(--sub); margin-top: 2px; }
.pc-amt-lab b { color: #16283C; }
.pc-share-bar {
  height: 8px; background: #EDF0F5; border-radius: 4px; overflow: hidden;
  margin: 12px 0 4px;
}
.pc-share-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #E8556F); }
.pc-section { margin-top: 10px; }
.pc-sec-title { font-size: 11.5px; font-weight: 700; color: #66748A; letter-spacing: .06em; margin-bottom: 6px; }
.pc-cat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 12px; color: #3A4756;
}
.pc-cat i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pc-cat b { color: #16283C; }
.pc-empty { font-size: 12px; color: #B0B9C6; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-mini { width: 100%; border-collapse: collapse; }
.pc-mini td { padding: 4px 0; font-size: 12.5px; border-bottom: 1px dashed #EDF0F5; }
.pc-mini td:first-child { color: #3A4756; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.pc-mini td:nth-child(2) { text-align: right; color: var(--brand); font-weight: 600; width: 46px; }
.pc-mini td:last-child { text-align: right; color: var(--sub); width: 64px; }
.pc-mini tr:last-child td { border-bottom: none; }
.pc-tabs { display: flex; gap: 6px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.pc-tab {
  padding: 6px 12px; font-size: 12.5px; color: var(--sub); cursor: pointer;
  border-bottom: 2px solid transparent; user-select: none;
}
.pc-tab:hover { color: #16283C; }
.pc-tab.on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.pc-full { width: 100%; border-collapse: collapse; margin-top: 4px; }
.pc-full hid { display: none; }
.pc-full.hid { display: none; }
.pc-full th {
  text-align: left; font-size: 11px; color: var(--sub); font-weight: 600;
  padding: 6px 0 4px; border-bottom: 1px solid var(--line);
}
.pc-full th.n { text-align: right; }
.pc-full td { padding: 5px 0; font-size: 12.5px; border-bottom: 1px dashed #EDF0F5; color: #3A4756; }
.pc-full td.n { text-align: right; }
.pc-full td.n.num { color: #16283C; }
.pc-full td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.pc-full tfoot td {
  border-bottom: none; border-top: 1px solid var(--line);
  font-weight: 700; color: #16283C; background: #F7F9FC;
}
.pc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* ---------- 大类 × 同事 TOP 榜样式 ---------- */
.champ-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.champ-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: #FBFCFE; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.champ-cat { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 14px; color: #16283C; }
.champ-cat .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.champ-total { margin-left: auto; font-size: 11.5px; color: var(--sub); }
.champ-tbl { width: 100%; border-collapse: collapse; }
.champ-tbl th {
  text-align: left; font-size: 11px; color: #66748A; padding: 4px 6px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.champ-tbl th.n, .champ-tbl td.n { text-align: right; }
.champ-tbl td { padding: 5px 6px; font-size: 12.5px; color: #3A4756; border-bottom: 1px dashed #EDF0F5; }
.champ-tbl tr:last-child td { border-bottom: none; }
.champ-tbl td:first-child { width: 26px; color: var(--sub); }
.champ-tbl tr.champ-top td { background: rgba(200,16,46,.05); }
.champ-tbl tr.champ-top td:nth-child(2) { font-weight: 700; color: var(--brand); }
@media (max-width: 860px) {
  .peer-grid { grid-template-columns: 1fr; }
  .pc-two { grid-template-columns: 1fr; }
  .champ-grid { grid-template-columns: 1fr; }
}
.log-act { font-weight: 600; color: #16283C; white-space: nowrap; }
.log-detail { color: #4B5563; word-break: break-all; }
.kv td:first-child { color: var(--sub); width: 45%; }
.pwd-state { font-weight: 400; color: #16a34a; font-size: 12px; }
.muted-tip { font-size: 12.5px; color: var(--sub); line-height: 1.7; margin: 0 0 12px; }
hr.soft { border: none; border-top: 1px dashed var(--line); margin: 16px 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.pager a { color: var(--blue); text-decoration: none; font-size: 13px; }
.pager a:hover { text-decoration: underline; }
.pager-info { font-size: 12.5px; color: var(--sub); }
.side-foot {
  padding: 12px 16px; font-size: 11px; color: #66748A;
  border-top: 1px solid rgba(255,255,255,.06); line-height: 1.7;
}
.main { margin-left: 220px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 10;
}
.tb-title { font-size: 16px; font-weight: 700; color: #16283C; }
.tb-user { font-size: 13px; color: #5A6572; }
.content { flex: 1; padding: 18px 22px 30px; }

/* ===== 页头与筛选 ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 20px; font-weight: 800; color: #16283C; }
.page-head .ph-sub { font-size: 12px; color: var(--sub); }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar .f-label { font-size: 13px; color: var(--sub); }

/* ===== 卡片 ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-h h2 { font-size: 15px; font-weight: 700; color: #16283C; }
.card-h .sub { font-size: 12px; color: var(--sub); }
.grid-main { display: grid; grid-template-columns: 1.05fr 1.55fr; gap: 16px; }
.grid-main .card { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 .card { margin-bottom: 0; }
.stack { margin-bottom: 16px; }

/* ===== 提示 ===== */
.alert { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.alert.ok { background: #EDF9F1; border-color: #BFE7CC; color: #1E7B4C; }
.alert.err { background: #FDEEEF; border-color: #F3C2C8; color: var(--brand); }
.alert.info { background: #EDF3FB; border-color: #C6D9F0; color: #2B5FA3; }

/* ===== 按钮/表单 ===== */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 7px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; font-family: inherit; line-height: 1.4;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #A90D26; }
.btn-dark { background: #16283C; color: #fff; }
.btn-dark:hover { background: #22374E; }
.btn-ghost { background: #fff; border-color: #D8DEE7; color: #3A4756; }
.btn-ghost:hover { border-color: #9AA6B5; }
.btn-danger { background: #fff; border-color: #F0B4BC; color: var(--brand); }
.btn-danger:hover { background: #FDEEEF; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { display: block; width: 100%; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #4B5563; margin-bottom: 5px; font-weight: 600; }
.form-control {
  border: 1px solid #D8DEE7; background: #fff; border-radius: 7px;
  padding: 7px 10px; font-size: 13px; color: var(--text); font-family: inherit;
}
.form-control:focus { outline: none; border-color: #7FA3D9; box-shadow: 0 0 0 3px rgba(62,124,177,.15); }
input[type="text"].form-control, input[type="file"].form-control, select.form-control { min-width: 140px; }
label.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }

/* ===== KPI ===== */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.kpi .k-label { font-size: 12px; color: var(--sub); }
.kpi .k-val { font-size: 24px; font-weight: 800; color: #16283C; margin-top: 2px; line-height: 1.25; }
.kpi .k-val small { font-size: 12px; font-weight: 500; color: var(--sub); }
.kpi .k-note { font-size: 11px; color: #98A2B3; margin-top: 3px; }
.kpi.hot { border-top: 3px solid var(--brand); }

/* ===== 洞察带 ===== */
.insight-band {
  background: #EAF1F8; border: 1px solid #D3E1EF; border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin-bottom: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 24px;
}
.insight { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.insight .tag {
  flex: none; background: #16283C; color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; letter-spacing: .06em; margin-top: 1px;
}
.insight b { color: var(--brand); }

/* ===== 环形图 ===== */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; width: 190px; height: 190px; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.donut-center .dc-num { font-size: 22px; font-weight: 800; color: #16283C; }
.donut-center .dc-lab { font-size: 11px; color: var(--sub); margin-top: 2px; }
.legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 8px; }
.legend .lg-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.legend .dot { width: 12px; height: 12px; border-radius: 3px; }
.legend .lg-pct { font-weight: 700; }
.legend .lg-amt { color: var(--sub); font-size: 12px; }

/* ===== 条形 ===== */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 80px 52px 56px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .b-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .b-track { background: #EDF0F5; height: 14px; border-radius: 3px; overflow: hidden; }
.bar-row .b-fill { display: block; height: 100%; background: #2E4057; border-radius: 3px; }
.bar-row:nth-child(1) .b-fill { background: var(--brand); }
.bar-row:nth-child(2) .b-fill { background: var(--blue); }
.bar-row:nth-child(3) .b-fill { background: #5B8DB8; }
.bar-row .b-amt { text-align: right; font-weight: 700; }
.bar-row .b-qty { text-align: right; color: var(--sub); font-size: 12px; }
.bar-row .b-pct { text-align: right; color: var(--brand); font-size: 12px; font-weight: 600; }
.bar-row .peak { color: var(--brand); }
.bar-row.show-sex { grid-template-columns: 120px 1fr 74px 74px 74px 42px 62px 44px; gap: 6px; }
.bar-row .b-sex { text-align: right; font-size: 11px; color: var(--sub); line-height: 1.3; }
.bar-row .b-sex small { color: var(--sub); opacity: .7; }
.bar-row.rank-header { font-size: 11px; color: var(--sub); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.bar-row .b-sex.male, .bar-row .b-sex.male .num { color: #16324F; font-weight: 600; }
.bar-row .b-sex.female, .bar-row .b-sex.female .num { color: var(--brand); font-weight: 600; }
.bar-row .b-sex.unisex, .bar-row .b-sex.unisex .num { color: #6B7280; font-weight: 600; }
.bar-row .b-sex.male-h { color: #16324F; font-weight: 700; text-align: right; }
.bar-row .b-sex.female-h { color: var(--brand); font-weight: 700; text-align: right; }
.bar-row .b-sex.unisex-h { color: #6B7280; font-weight: 700; text-align: right; }
.bars.rank .bar-row { grid-template-columns: 220px 90px 60px 60px; }
.bars.rank .bar-row.show-sex { grid-template-columns: 180px 85px 85px 85px 55px 80px 55px; gap: 8px; }

/* ===== 销售排行 · 按大类分组 ===== */
.rank-cat-block {
  border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE;
  padding: 14px 16px 16px; margin-bottom: 18px;
}
.rank-cat-block:last-child { margin-bottom: 0; }
.rank-cat-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: #F2F5F9; border-left: 4px solid #16324F;
  padding: 8px 12px; border-radius: 6px; margin-bottom: 12px;
}
.rank-cat-head .rc-name { font-size: 15px; font-weight: 700; color: #16324F; }
.rank-cat-head .rc-meta { font-size: 12px; color: var(--sub); }
.rank-dim { margin-top: 14px; }
.rank-dim:first-of-type { margin-top: 0; }
.rank-dim-title {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: #C8102E;
  background: rgba(200,16,46,.07); border: 1px solid rgba(200,16,46,.18);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}

/* ===== 每日柱状 ===== */
.daily-bars { display: flex; align-items: flex-end; gap: 12px; min-height: 190px; padding-top: 8px; }
.db { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.db .db-val { font-size: 13px; font-weight: 700; color: #16283C; line-height: 1.3; text-align: center; }
.db .db-val .db-qty { font-size: 11px; font-weight: 400; color: var(--sub); }
.db .db-bar { width: 100%; max-width: 88px; background: var(--blue); border-radius: 3px 3px 0 0; }
.db:nth-child(2) .db-bar { background: var(--brand); }
.db .db-lab { font-size: 13px; font-weight: 600; }
.db .db-sub { font-size: 11px; color: var(--sub); }
.daily-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 16px; }

/* ===== 表格 ===== */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-size: 12px; color: var(--sub); font-weight: 600;
  padding: 8px 10px; border-bottom: 1px solid var(--line); background: #F8FAFC; white-space: nowrap;
}
table.tbl td { padding: 8px 10px; border-bottom: 1px solid #F0F2F6; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl .n, table.tbl th.n { text-align: right; }
table.tbl tbody tr:hover td { background: #F7F9FC; }
.hl { color: var(--brand); font-weight: 700; }
.table-scroll { overflow-x: auto; }
table.detail-tbl { min-width: 900px; }
table.detail-tbl td { white-space: nowrap; font-size: 12.5px; }
table.detail-tbl tr:nth-child(even) td { background: #FAFBFD; }
.bar-cell { width: 90px; }
.bar-cell .t { background: #EDF0F5; height: 12px; border-radius: 3px; overflow: hidden; }
.bar-cell .t i { display: block; height: 100%; background: var(--blue); }
.c-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; color: #fff; }
.c-服装 { background: #16324F; }
.c-鞋类 { background: var(--brand); }
.c-配件 { background: var(--gold); }

/* ===== Tab ===== */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  display: inline-block; border: 1px solid #D8DEE7; background: #fff; color: #5A6572;
  font-size: 13px; padding: 5px 14px; border-radius: 6px; text-decoration: none;
}
.tab:hover { border-color: #16283C; color: #16283C; }
.tab.on { background: #16283C; border-color: #16283C; color: #fff; font-weight: 600; }

/* ===== 标签 ===== */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist .titem {
  border: 1px solid var(--line); background: #F8FAFC; border-radius: 6px;
  padding: 6px 10px; font-size: 13px; display: flex; gap: 10px; align-items: baseline;
}
.taglist .titem b { color: #16283C; font-size: 15px; }
.taglist .titem span { color: var(--sub); font-size: 12px; }

/* ===== 分页 ===== */
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 13px; }
.pager a, .pager span { padding: 5px 11px; border: 1px solid #D8DEE7; border-radius: 6px; color: #3A4756; text-decoration: none; background: #fff; }
.pager a:hover { border-color: #16283C; }
.pager .cur { background: #16283C; color: #fff; border-color: #16283C; font-weight: 600; }
.pager .dis { color: #B6BEC9; pointer-events: none; }
.pager .info { border: none; background: none; color: var(--sub); }

/* ===== 上传组件 ===== */
.upload-zone {
  border: 2px dashed #C9D3E0; border-radius: 10px; background: #F8FAFC;
  padding: 34px 20px; text-align: center;
}
.upload-zone .uz-icon { font-size: 34px; }
.upload-zone h3 { font-size: 16px; color: #16283C; margin: 8px 0 4px; }
.upload-zone p { font-size: 12px; color: var(--sub); }
.upload-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ===== 登录页 ===== */
body.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 480px at 12% 8%, rgba(62,124,177,.35) 0%, transparent 60%),
    radial-gradient(800px 460px at 92% 92%, rgba(200,16,46,.28) 0%, transparent 55%),
    linear-gradient(135deg, #22303F 0%, #141D27 100%);
  padding: 20px;
}
body.login-page::before, body.login-page::after {
  content: ""; position: fixed; border-radius: 50%;
  filter: blur(70px); opacity: .3; pointer-events: none;
}
body.login-page::before { width: 440px; height: 440px; background: #C8102E; top: -140px; right: -90px; }
body.login-page::after  { width: 400px; height: 400px; background: #3E7CB1; bottom: -130px; left: -90px; }
.login-box {
  width: 420px; max-width: 100%; background: #fff; border-radius: 16px;
  padding: 38px 36px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.45);
  border-top: 4px solid var(--brand);
  position: relative; z-index: 1;
}
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.login-badge {
  width: 52px; height: 52px; flex: none; background: linear-gradient(135deg, #D31534, #A90D26);
  color: #fff; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; box-shadow: 0 6px 14px rgba(200,16,46,.35);
}
.login-logo h1 { font-size: 19px; color: #16283C; letter-spacing: .02em; }
.login-logo p { font-size: 12px; color: var(--sub); margin-top: 2px; }
.login-err {
  background: #FDEEEF; border: 1px solid #F3C2C8; color: var(--brand);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px;
}
.login-box .form-row { margin-bottom: 18px; }
.login-box .form-row label {
  display: block; font-size: 13px; font-weight: 600; color: #3A4756; margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap .input-ic {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: #9AA6B5; pointer-events: none; font-style: normal;
}
.login-input {
  width: 100%; border: 1.5px solid #D8DEE7; background: #F8FAFC; border-radius: 10px;
  padding: 11px 14px 11px 40px; font-size: 14px; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input::placeholder { color: #B0B9C6; }
.login-input:focus {
  outline: none; background: #fff; border-color: #E07087;
  box-shadow: 0 0 0 4px rgba(200,16,46,.1);
}
.login-btn {
  width: 100%; padding: 12px; font-size: 15px; border: none; border-radius: 10px;
  letter-spacing: .35em; text-indent: .35em; cursor: pointer; margin-top: 4px;
  background: linear-gradient(135deg, #D31534, #A90D26); color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(200,16,46,.35);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(200,16,46,.42); filter: brightness(1.05); }
.login-btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(200,16,46,.35); }
.login-tip {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed #E4E8EF;
  font-size: 12px; color: var(--sub); text-align: center;
}
.login-tip a { color: var(--blue); text-decoration: none; font-weight: 600; }
.login-tip a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .login-box { padding: 30px 22px 20px; }
}

/* ===== 修改密码页 ===== */
.pwd-grid {
  display: grid; grid-template-columns: minmax(340px, 460px) 1fr;
  gap: 16px; align-items: start; max-width: 960px;
}
.pwd-card { padding: 22px 24px 24px; }
.pwd-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.pwd-head .pwd-ic {
  width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: linear-gradient(135deg, #D31534, #A90D26); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-style: normal;
  box-shadow: 0 6px 14px rgba(200,16,46,.3);
}
.pwd-head h2 { font-size: 16px; color: #16283C; }
.pwd-head p { font-size: 12px; color: var(--sub); margin-top: 2px; }
.pwd-card .form-row { margin-bottom: 16px; }
.pwd-card .form-row label {
  display: block; font-size: 13px; font-weight: 600; color: #3A4756; margin-bottom: 7px;
}
.pwd-card .login-btn { letter-spacing: .2em; text-indent: .2em; margin-top: 6px; }
.pwd-side { display: flex; flex-direction: column; gap: 16px; }
.pwd-tip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.pwd-tip h3 { font-size: 13px; color: #16283C; margin-bottom: 10px; }
.pwd-tip ul { list-style: none; }
.pwd-tip li {
  font-size: 13px; color: #4B5563; padding: 5px 0 5px 20px; position: relative;
}
.pwd-tip li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.pwd-tip .pwd-user { font-size: 15px; font-weight: 700; color: #16283C; margin-bottom: 6px; }
.pwd-tip .pwd-note { font-size: 12px; color: var(--sub); line-height: 1.6; }
@media (max-width: 860px) {
  .pwd-grid { grid-template-columns: 1fr; }
}

/* ===== 空状态 ===== */
.empty-box { text-align: center; padding: 60px 20px; }
.empty-box .e-num { font-size: 40px; font-weight: 800; color: #C9CDD6; }
.empty-box h3 { font-size: 17px; color: #16283C; margin: 10px 0 6px; }
.empty-box p { font-size: 13px; color: var(--sub); margin-bottom: 18px; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .sidebar { position: static; width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .side-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .side-nav a { border-left: none; padding: 8px 10px; }
  .nav-group { width: 100%; padding: 8px 10px 2px; }
  .side-foot { display: none; }
  .main { margin-left: 0; }
  .admin-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .grid-main, .grid-2 { grid-template-columns: 1fr; }
  .grid-main .card, .grid-2 .card { margin-bottom: 16px; }
  .bar-row { grid-template-columns: 100px 1fr 64px 44px 48px; gap: 6px; font-size: 12px; }
  .bar-row.show-sex { grid-template-columns: 80px 1fr 60px 60px 60px 36px 50px 38px; gap: 3px; }
  .bars.rank .bar-row { grid-template-columns: 130px 64px 48px 48px; }
  .bars.rank .bar-row.show-sex { grid-template-columns: 90px 60px 60px 60px 40px 56px 40px; }
  .content { padding: 14px; }
}
