/* ============================================================
   醉三旬企业协同平台 · 网页端样式（v3 控制台设计）
   布局：顶部导航栏 + 左侧菜单栏 + 中间内容区；登录后首页 = BI 数据看板
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #C0202E;
  --primary-dark: #9E1A26;
  --primary-light: #FDECEE;
  --gold: #D9A441;
  --green: #5B8C5A;
  --nav-bg: #1F2229;
  --nav-bg-2: #272B35;
  --nav-text: #C9CDD6;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --text: #1F2329;
  --text-2: #8A909C;
  --text-3: #B3B8C2;
  --border: #E7E9EE;
  --border-2: #EFF1F5;
  --shadow: 0 1px 2px rgba(31, 35, 41, .04), 0 6px 20px rgba(31, 35, 41, .07);
  --radius: 12px;
}
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }

/* ================= 应用框架 ================= */
.frame { display: flex; flex-direction: column; height: 100vh; }
.frame-body { flex: 1; display: flex; min-height: 0; }

/* ---- 顶部导航栏 ---- */
.topnav {
  height: 56px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  position: relative; z-index: 60;
}
.tn-left { display: flex; align-items: center; gap: 8px; }
.tn-burger {
  width: 34px; height: 34px; border: none; background: transparent; border-radius: 8px;
  font-size: 15px; color: var(--text-2); cursor: pointer; transition: .15s;
}
.tn-burger:hover { background: var(--bg); color: var(--text); }
.tn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.tn-logo {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, #C0202E, #8E1B27); color: #fff;
  font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(192, 32, 46, .32);
}
.tn-brand-text { font-size: 16px; font-weight: 800; letter-spacing: 1px; line-height: 1.15; white-space: nowrap; }
.tn-brand-text em { display: block; font-style: normal; font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: 2px; }
.tn-center { display: flex; gap: 4px; }
.tn-link {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2);
  text-decoration: none; transition: .15s; white-space: nowrap;
}
.tn-link:hover { color: var(--text); background: var(--bg); }
.tn-link.on { color: var(--primary); background: var(--primary-light); font-weight: 600; }
/* 跨站点入口（前台→管理后台 / 后台→员工前台） */
.tn-link.tn-out { color: var(--primary); }
.tn-link.tn-out:hover { background: var(--primary-light); }
.tn-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tn-icon-btn {
  position: relative; width: 36px; height: 36px; border: none; background: transparent;
  border-radius: 9px; font-size: 15px; cursor: pointer; color: var(--text-2); transition: .15s;
}
.tn-icon-btn:hover { background: var(--bg); color: var(--text); }
.tn-dot {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--primary); color: #fff; font-size: 9px; font-weight: 700; line-height: 16px;
  border-radius: 8px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.tn-user { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); padding: 4px 8px 4px 4px; border-radius: 10px; transition: .15s; }
.tn-user:hover { background: var(--bg); }
.tn-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(150deg, #C0202E, #8E1B27); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tn-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.tn-user-meta b { font-size: 13px; }
.tn-user-meta i { font-style: normal; font-size: 10px; color: var(--text-3); }

/* ---- 左侧菜单栏 ---- */
.sidenav {
  width: 216px; flex-shrink: 0; background: var(--nav-bg); color: var(--nav-text);
  display: flex; flex-direction: column; padding: 14px 10px 28px;
  overflow-y: auto; overflow-x: hidden; transition: width .18s ease;
}
.sn-brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .07); margin-bottom: 14px; white-space: nowrap;
}
.sn-brand-text { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 1px; line-height: 1.15; }
.sn-brand-text em { display: block; font-style: normal; font-size: 9px; font-weight: 400; color: rgba(255, 255, 255, .38); letter-spacing: 2px; }
/* 一次性展开 / 折叠全部二级菜单（v2.30） */
.sn-all {
  margin-left: auto; width: 24px; height: 24px; flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; background: transparent;
  color: rgba(255, 255, 255, .7); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: .15s;
}
.sn-all:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .34); }
.sn-group { margin-bottom: 16px; }
.sn-group-title { font-size: 11px; color: rgba(255, 255, 255, .32); padding: 0 10px 7px; letter-spacing: 1px; }
.sn-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  color: var(--nav-text); text-decoration: none; font-size: 14px; margin-bottom: 2px;
  transition: .15s; white-space: nowrap; position: relative;
}
.sn-item:hover { background: var(--nav-bg-2); color: #fff; }
.sn-item.on {
  background: linear-gradient(120deg, #C0202E, #A01623); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(192, 32, 46, .35);
}
.sn-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.sn-text { flex: 1; overflow: hidden; }
.sn-badge {
  min-width: 18px; height: 18px; padding: 0 5px; background: #E0707A; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 18px; border-radius: 9px; text-align: center;
}
/* ---- 两级菜单：一级菜单 + 折叠二级菜单 ---- */
.sn-scroll { flex: 1; }
.sn-arrow {
  font-size: 10px; line-height: 1; color: rgba(255, 255, 255, .42); padding: 4px 2px;
  transition: transform .18s ease, color .15s; flex-shrink: 0;
}
.sn-arrow:hover { color: #fff; }
.sn-arrow.open { transform: rotate(90deg); color: rgba(255, 255, 255, .8); }
/* 一级菜单：其下二级菜单命中当前路由时的父级态 */
.sn-item.active { background: var(--nav-bg-2); color: #fff; }
.sn-sub { display: none; margin: 2px 0 8px; }
.sn-sub.open { display: block; animation: sn-sub-in .16s ease; }
@keyframes sn-sub-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.sn-sub-item {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 30px; border-radius: 8px; font-size: 13px;
  color: rgba(255, 255, 255, .6); text-decoration: none; margin-bottom: 1px; white-space: nowrap;
}
.sn-sub-item:hover { background: var(--nav-bg-2); color: #fff; }
.sn-sub-item.on { color: #fff; background: rgba(192, 32, 46, .26); font-weight: 600; }
.sn-sub-item.on::before {
  content: ''; position: absolute; left: 19px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 2px; background: #C0202E;
}
.sn-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .26); flex-shrink: 0; }
.sn-sub-item.on .sn-dot { background: #E0707A; }

.sidenav.collapsed { width: 64px; }
.sidenav.collapsed .sn-text,
.sidenav.collapsed .sn-group-title,
.sidenav.collapsed .sn-badge,
.sidenav.collapsed .sn-brand-text { display: none; }
.sidenav.collapsed .sn-brand,
.sidenav.collapsed .sn-item { justify-content: center; }
/* 收起为图标模式时，二级菜单与展开箭头一并隐藏 */
.sidenav.collapsed .sn-sub,
.sidenav.collapsed .sn-arrow,
.sidenav.collapsed .sn-all { display: none !important; }

/* ---- 中间内容区 ---- */
.content { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 28px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.page-head p { font-size: 13px; color: var(--text-2); margin-top: 5px; }

/* ================= 登录页（全屏，无框架） ================= */
.login-root { display: none; min-height: 100vh; }
.login-shell { display: flex; min-height: 100vh; background: #fff; }
.login-aside {
  width: 400px; flex-shrink: 0; color: #fff; padding: 52px 44px 36px;
  background: linear-gradient(158deg, #8E1B27 0%, #C0202E 52%, #97161F 100%);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.login-aside::after {
  content: ''; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.la-logo {
  width: 62px; height: 62px; border-radius: 16px; font-size: 30px; font-weight: 800;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
}
.la-name { font-size: 30px; font-weight: 800; letter-spacing: 5px; margin-top: 22px; }
.la-sub { font-size: 12px; letter-spacing: 4px; opacity: .72; margin-top: 6px; }
.la-list { list-style: none; margin-top: 46px; display: grid; gap: 20px; position: relative; z-index: 1; }
.la-list li { display: flex; gap: 13px; align-items: flex-start; }
.la-list li > span { font-size: 20px; line-height: 1.2; }
.la-list b { display: block; font-size: 15px; font-weight: 700; }
.la-list i { font-style: normal; font-size: 12px; opacity: .72; }
.la-foot { margin-top: auto; font-size: 11px; letter-spacing: 1px; opacity: .5; position: relative; z-index: 1; }
.login-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; }
.login-wrap > * { width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; }
.brand { text-align: center; margin-bottom: 30px; }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.brand-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; letter-spacing: 2px; }
.tabs { display: flex; background: #EFF0F3; border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.tab {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 14px;
  color: var(--text-2); cursor: pointer; transition: all .15s;
}
.tab.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .07); }
.login-tip { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 22px; line-height: 1.8; }

/* ================= BI 数据看板 ================= */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 20px 15px; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.kpi-card.t-gold::before { background: var(--gold); }
.kpi-card.t-green::before { background: var(--green); }
a.kpi-link { display: block; text-decoration: none; color: inherit; }
.kpi-card.has-eye { padding-right: 46px; }
.kpi-eye {
  position: absolute; right: 10px; top: 12px; z-index: 3;
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 5px; border-radius: 8px;
  transition: background .15s;
}
.kpi-eye:hover { background: rgba(0, 0, 0, .07); }
.sal-amt { font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 13px; color: var(--text-2); }
.kpi-value { font-size: 29px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.kpi-unit { font-size: 13px; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 7px; }
.kpi-arrow { position: absolute; right: 13px; top: 14px; font-size: 20px; color: var(--text-3); }

.bi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.bi-row .panel { margin-top: 0; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-top: 0; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.panel-sub { font-size: 11px; color: var(--text-3); font-weight: 400; }
.bi-note { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }

.chart { width: 100%; height: auto; display: block; }
.chart .cgrid { stroke: var(--border-2); stroke-width: 1; }
.chart .axis { fill: var(--text-2); font-size: 11px; }
.chart .axis.strong { fill: var(--text); font-weight: 700; font-size: 12px; }
.donut-num { font-size: 30px; font-weight: 800; fill: var(--text); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-legend.col { flex-direction: column; gap: 9px; }
.chart-empty { text-align: center; color: var(--text-3); padding: 52px 0; font-size: 13px; }

.rank-list { display: grid; gap: 16px; }
.rank-row { display: flex; gap: 12px; align-items: center; }
.rank-no {
  width: 22px; height: 22px; border-radius: 6px; background: var(--border-2); color: var(--text-2);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rank-no.r1 { background: var(--primary); color: #fff; }
.rank-no.r2 { background: var(--gold); color: #fff; }
.rank-no.r3 { background: #B85C5C; color: #fff; }
.rank-main { flex: 1; min-width: 0; }
.rank-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rank-amt { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.rank-bar { height: 6px; background: var(--border-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #E0707A); border-radius: 3px; }
.rank-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.mini-bar { height: 6px; background: var(--border-2); border-radius: 3px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-link {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: inherit; transition: .15s; background: #fff;
}
.quick-link:hover { border-color: #E3C8CB; background: #FDF9F9; }
.ql-icon { font-size: 21px; }
.ql-text { flex: 1; min-width: 0; }
.ql-text b { display: block; font-size: 14px; }
.ql-text i { font-style: normal; font-size: 11px; color: var(--text-3); }
.ql-arrow { color: var(--text-3); font-size: 18px; }

.ps-mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ps-mini {
  background: #FDFBFB; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 18px; text-decoration: none; color: inherit; transition: .15s;
}
.ps-mini:hover { border-color: #E3C8CB; box-shadow: var(--shadow); transform: translateY(-2px); }
.ps-mini-month { font-size: 14px; font-weight: 700; }
.ps-mini-amt { font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ps-mini-status { margin-top: 8px; font-size: 12px; }
.ps-mini-status.ok { color: var(--green); }
.ps-mini-status.todo { color: #AD4E00; }

.goal-block { text-align: center; padding: 8px 0 2px; }
.goal-num { font-size: 36px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.goal-bar { height: 10px; background: var(--border-2); border-radius: 5px; overflow: hidden; margin: 14px 0 10px; }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #E0707A); border-radius: 5px; }
.goal-meta { font-size: 12px; color: var(--text-2); }

.todo-list { margin-top: -4px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--border-2); text-decoration: none; color: inherit; }
.todo-item:last-child { border-bottom: none; }
.todo-item b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.todo-item:hover b { color: var(--primary); }
.todo-item i { font-style: normal; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.todo-tag { flex-shrink: 0; font-size: 11px; padding: 1px 8px; border-radius: 4px; }
.todo-tag.t-task { color: var(--primary); background: var(--primary-light); }
.todo-tag.t-approval { color: #8A5A00; background: #FBF3E2; }

/* ================= 通用组件 ================= */
.page { max-width: 1180px; margin: 0 auto; }
.topbar { display: none; } /* 页面标题由「顶部导航 + 内容页头」统一承担 */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 4px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 18px; text-align: center;
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
  border: 1px solid var(--border); text-decoration: none; color: inherit; display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #E3C8CB; }
.card.disabled { opacity: .55; cursor: not-allowed; }
.card.disabled:hover { transform: none; box-shadow: none; }
.card-icon { font-size: 36px; }
.card-name { font-size: 15px; font-weight: 700; margin-top: 12px; }
.card-state { font-size: 12px; color: var(--text-2); margin-top: 5px; }

.field {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; margin-bottom: 12px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192, 32, 46, .08); }
.row { display: flex; gap: 10px; align-items: center; }
.row .field { flex: 1; }
select.field { appearance: auto; }
textarea.field { resize: vertical; }

.btn-primary {
  width: 100%; padding: 12px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  background: linear-gradient(120deg, #C0202E, #A01623); color: #fff; cursor: pointer;
  transition: filter .15s, box-shadow .15s; box-shadow: 0 3px 10px rgba(192, 32, 46, .25);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { background: #E5B9BE; box-shadow: none; cursor: not-allowed; }
.btn-plain {
  padding: 11px 16px; border: 1px solid var(--primary); border-radius: 10px; font-size: 13px;
  background: #fff; color: var(--primary); cursor: pointer; white-space: nowrap; transition: .15s;
}
.btn-plain:hover { background: var(--primary-light); }
.btn-plain:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger {
  width: 100%; padding: 12px; border: 1px solid var(--primary); border-radius: 10px; font-size: 15px;
  background: #fff; color: var(--primary); cursor: pointer; transition: .15s;
}
.btn-danger:hover { background: var(--primary-light); }

/* 占位页 */
.placeholder { text-align: center; padding: 80px 24px; }
.ph-icon { font-size: 56px; }
.ph-title { font-size: 22px; font-weight: 700; margin: 16px 0 10px; }
.ph-desc { font-size: 14px; color: var(--text-2); line-height: 1.9; max-width: 520px; margin: 0 auto; }
.ph-actions { margin-top: 28px; }

/* 我的 / 通知 */
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-2); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--text-2); }
.notice { padding: 12px 0; border-bottom: 1px solid var(--border-2); cursor: pointer; }
.notice:last-child { border-bottom: none; }
.notice-title { font-size: 14px; }
.notice.unread .notice-title { font-weight: 700; }
.notice.unread .notice-title::before { content: '●'; color: var(--primary); font-size: 9px; margin-right: 6px; vertical-align: 2px; }
.notice-body { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.notice-time { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.badge { font-size: 11px; color: #fff; background: var(--primary); border-radius: 10px; padding: 1px 8px; margin-left: 6px; font-weight: 400; }
.alert { background: #FFF7E8; border: 1px solid #FFD591; color: #AD4E00; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* 状态 */
.loading { text-align: center; color: var(--text-2); padding: 48px 0; font-size: 14px; }
.empty { text-align: center; color: var(--text-2); padding: 40px 0; font-size: 14px; }
.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -10px);
  background: rgba(31, 35, 41, .88); color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 14px; opacity: 0; transition: all .25s ease; z-index: 2000; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(192, 32, 46, .92); }

/* ================= 工资条模块 ================= */
.notice-bar { background: #FFF7E8; border: 1px solid #FFD591; color: #AD4E00; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.amount-eye {
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 4px 6px; border-radius: 8px; flex: none;
  transition: background .15s;
}
.amount-eye:hover { background: rgba(0, 0, 0, .07); }
/* 设置类表单：字段分组（label + 输入 + 说明） */
.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field-note { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
/* 产品选择器（新建订单）：搜索框 + 多行下拉 */
.prod-picker { display: flex; flex-direction: column; gap: 6px; }
.prod-picker select[size] { min-height: 132px; padding: 4px; }
.prod-picker select[size] option { padding: 6px 8px; border-radius: 6px; line-height: 1.5; }
.prod-picker select[size] option:checked { background: var(--primary-weak, #F5E9E2); color: var(--primary); font-weight: 600; }
/* 自定义字段（v2.25）：表单块与详情行 */
.ff-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 2px 0 6px; width: 100%; }
.ff-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.ff-fields label.full { grid-column: 1 / -1; }
.ff-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-top: 1px dashed var(--border); font-size: 13px; }
.ff-row .k { color: var(--text-3); }
/* 订单卡片：不计入业绩标记 */
.ps-card .tag.off { background: #F2F3F5; color: var(--text-3); }
.ps-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ps-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ps-head { display: flex; justify-content: space-between; align-items: center; }
.ps-month { font-size: 16px; font-weight: 700; }
.tag { font-size: 12px; border-radius: 12px; padding: 2px 10px; }
.tag.todo { color: var(--primary); background: var(--primary-light); }
.tag.done { color: var(--green); background: #EAF2EA; }
.tag.info { color: #1F6FB2; background: #E8F2FA; }
.tag.off { color: #8A8F99; background: #EFF1F4; }
.tag.tag-blue { color: #fff; background: var(--primary); }
.btn-mini-danger { border-color: #C0202E; color: #C0202E; }
.btn-mini-danger:hover { background: #FBE9EA; }

/* ---- 角色管理（系统设置） ---- */
.rbac-card { border: 1px solid var(--border, #ECECEC); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.rbac-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rbac-card-head b { font-size: 15px; }
.rbac-card-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.rbac-card-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.form-row { margin: 12px 0; }
.form-row > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--text-2); margin: 4px 0 10px; }
.chk-wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.perm-tree { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.perm-group { border: 1px solid var(--border, #ECECEC); border-radius: 8px; padding: 10px; }
.perm-group-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.perm-group .chk { display: flex; margin: 4px 0; }
.member-list { max-height: 320px; overflow: auto; }
.member-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--border, #F0F0F0); cursor: pointer; }
.member-row .mem-name { font-size: 14px; }
.member-row .mem-path { font-size: 12px; color: var(--text-2); margin-left: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modal-foot { margin-top: 14px; text-align: right; }
.modal-x { cursor: pointer; font-size: 22px; line-height: 1; color: var(--text-2); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.ps-amount { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.ps-label { font-size: 12px; color: var(--text-2); }
.ps-value { font-size: 26px; font-weight: 800; color: var(--primary); }
.ps-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border-2); padding-top: 10px; }
.ps-fb { color: #AD4E00; }

/* 电商模块：商品卡片 */
.g-card { cursor: pointer; }
.g-ops { display: flex; gap: 8px; margin-top: 12px; }
.g-ops .btn-mini { flex: 1; }
.g-ops .btn-mini[disabled] { opacity: .5; cursor: not-allowed; }
textarea.field { min-height: 62px; resize: vertical; font-family: inherit; line-height: 1.5; }

/* 水印层（详情页）：固定全屏斜纹，不可选中、不拦截交互 */
.watermark { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; display: flex; flex-wrap: wrap; align-content: space-around; }
.wm-tile { width: 33%; text-align: center; font-size: 12px; color: rgba(192, 32, 46, .07); transform: rotate(-32deg); user-select: none; white-space: nowrap; letter-spacing: 2px; }
.no-select { user-select: none; -webkit-user-select: none; }

.ps-detail { position: relative; z-index: 1; }
.ps-d-head { position: relative; padding: 4px 40px 16px 0; border-bottom: 1px solid var(--border-2); margin-bottom: 16px; }
.ps-d-head .amount-eye { position: absolute; right: 0; top: 2px; }
.ps-d-month { font-size: 20px; font-weight: 800; }
.ps-d-meta { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.ps-group { margin-bottom: 16px; }
.ps-group-name { font-size: 15px; font-weight: 700; padding-left: 8px; border-left: 3px solid var(--primary); margin-bottom: 8px; }
.ps-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-2); font-size: 14px; }
.ps-row:last-child { border-bottom: none; }
.ps-row .minus { color: var(--green); }
.ps-summary { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px; }
.s-row { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; }
.s-row.net { font-size: 19px; font-weight: 800; color: var(--primary); }
.ps-status { text-align: center; font-size: 13px; color: var(--green); background: #EAF2EA; border-radius: 8px; padding: 10px; margin: 16px 0 8px; }
.ps-status.todo { color: #AD4E00; background: #FFF7E8; }
.ps-viewtip { text-align: center; font-size: 12px; color: var(--text-2); margin-bottom: 16px; }
.ps-actions { display: flex; gap: 12px; }
.ps-actions .btn-primary { flex: 2; }
.ps-actions .btn-plain { flex: 1; }
.ps-fb-item { border-top: 1px solid var(--border-2); padding-top: 10px; margin-top: 10px; font-size: 13px; }
.ps-fb-q { color: var(--text); }
.ps-fb-a { color: var(--text-2); margin-top: 4px; }
.ps-fb-a.pending { color: #AD4E00; }
.tip { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 14px; }

/* ================= 管理后台 ================= */
.admin-main { max-width: 1180px; margin: 0 auto; }
.adm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.adm-head h2 { font-size: 19px; font-weight: 800; }
.adm-head .row { flex-wrap: nowrap; }
.month.field { width: 170px; margin-bottom: 0; }
.adm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-warn { background: #FFF7E8; }
.row-warn:hover { background: #FFEFD4; }
.adm-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.list-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 12px; }
.list-actions .btn-plain { padding: 8px 14px; font-size: 13px; }
.tip-inline { font-size: 12px; color: var(--text-2); font-weight: 400; margin-left: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 12px; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.stat-label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border-2); text-align: left; white-space: nowrap; }
.tbl th { color: var(--text-2); font-weight: 600; background: #FAFBFC; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #FDFAFA; }
.tbl td.cell-content { white-space: normal; max-width: 280px; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.k { width: 96px; color: var(--text-2); white-space: nowrap; }
.btn-mini { padding: 4px 10px; font-size: 12px; border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 6px; cursor: pointer; transition: .15s; }
.btn-mini:hover { background: var(--primary-light); }
.btn-mini.danger { border-color: #C0202E; color: #C0202E; }
.btn-mini.danger:hover { background: var(--primary-light); }

.tpl-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; cursor: pointer; background: #fff; transition: .15s; }
.tpl-item:hover { border-color: #E3C8CB; }
.tpl-item.on { border-color: var(--primary); background: #FDF7F7; }
.tpl-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.tpl-group { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #fff; }
.tpl-group .row { flex-wrap: wrap; }
.tpl-group .field { margin-bottom: 10px; }
.tpl-group .field.key { max-width: 130px; }
.tpl-status { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.cell { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.tc { text-align: center; }
.err-list { margin: 10px 0 0 18px; font-size: 13px; color: var(--primary); line-height: 1.9; }
.fb-item { margin-top: 14px; }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-time { font-size: 12px; color: var(--text-3); margin-left: auto; }
.fb-content { font-size: 14px; margin: 10px 0; line-height: 1.7; }
.fb-reply { font-size: 13px; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 10px 12px; }

/* ================= 办公协作模块 ================= */
.mini-pin { font-size: 11px; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 2px; }
.mini-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 8px; vertical-align: 3px; }
.mini-urgent { font-size: 11px; color: #fff; background: var(--primary); border-radius: 4px; padding: 1px 6px; margin-right: 8px; }
.mini-type { font-size: 11px; color: var(--primary); background: var(--primary-light); border-radius: 4px; padding: 1px 6px; margin-right: 8px; font-weight: 400; }
.an-summary { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.an-detail { position: relative; z-index: 1; }
.an-title { font-size: 22px; font-weight: 800; line-height: 1.4; }
.an-meta { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.an-content { font-size: 15px; line-height: 1.9; color: #333; margin-top: 18px; white-space: pre-wrap; }
.task-item { margin-top: 14px; }
.reject-row { margin-top: 10px; }
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin: 6px 16px 6px 0; cursor: pointer; white-space: nowrap; }
.ck input { accent-color: var(--primary); }
.scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.scope-head { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }

/* ================= 销售管理模块 ================= */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.field.search { width: 260px; margin-bottom: 0; }
.ps-amount-inline { font-weight: 700; color: var(--primary); }
.row.ops { margin-top: 12px; gap: 8px; }
.row.ops .btn-plain { margin-bottom: 0; }
.muted { color: var(--text-2); font-size: 13px; font-weight: 400; }
.mo-scope { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mo-tree { margin-top: 14px; border: 1px solid var(--border, #e6e8eb); border-radius: 10px; overflow: hidden; }
.mo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border, #e6e8eb); background: #fff; }
.mo-row:last-child { border-bottom: none; }
.mo-row.sub { padding-left: 38px; background: #fafbfc; }
.mo-row .mo-title { font-weight: 500; }
.mo-row .mo-title code { color: var(--text-2); font-size: 12px; font-weight: 400; }
.mo-row .mo-acts { display: flex; gap: 8px; }
.mo-row .mo-acts .btn[disabled] { opacity: .45; cursor: not-allowed; }
.form-grid { display: grid; gap: 14px; max-width: 560px; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
/* 多列表单：字段多的弹窗用双列排布，整屏可见；按钮行/提示块自动跨列 */
.form-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols2 > .row, .form-grid.cols2 > .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid.cols2 { grid-template-columns: 1fr; } }

/* 业绩柱状图（销售页内嵌） */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 10px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--primary), #E0707A); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-cap { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.bar-val { font-size: 11px; color: var(--text-2); margin-top: 2px; white-space: nowrap; }

/* ================= 业绩日历（月视图） ================= */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 6px; }
.cal-head span { text-align: center; font-size: 12px; color: var(--text-2); font-weight: 600; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-cell {
  min-height: 96px; border: 1px solid var(--border, #e6e8eb); border-radius: 8px;
  padding: 6px 7px; background: #fafbfc; display: flex; flex-direction: column; gap: 3px;
}
.cal-cell.has { background: #fff; border-color: #E8B4B8; }
.cal-cell.fixed { box-shadow: inset 0 0 0 1px #C9A227; }
.cal-cell.empty { background: transparent; border-color: transparent; box-shadow: none; }
.cal-d { font-size: 12px; font-weight: 700; color: var(--text-2); }
.cal-cell.has .cal-d { color: var(--primary); }
.cal-t { font-size: 11px; color: var(--text-2); }
.cal-f { font-size: 12px; font-weight: 700; color: var(--primary); word-break: break-all; }
.cal-u { font-size: 11px; color: var(--text-2); word-break: break-all; }

/* 销售话术卡片 */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sc-card {
  border: 1px solid var(--border, #e6e8eb); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.sc-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.sc-cover { height: 110px; background: #f5f2ef; overflow: hidden; }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cover-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #8C2F39, #C9A227); }
.sc-cover-t { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: 2px; }
.sc-body { padding: 10px 12px 12px; }
.sc-tags { margin-bottom: 6px; min-height: 18px; }
.sc-tags .tag { margin-right: 4px; }
.sc-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; line-height: 1.4; }
.sc-sum { font-size: 12px; color: var(--text-2); line-height: 1.6; min-height: 38px; }

/* 工具箱：图标墙 + 文档列表 */
.tb-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.tb-cell {
  border: 1px solid var(--border, #e6e8eb); border-radius: 12px; background: #fff;
  padding: 16px 8px 12px; text-align: center; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.tb-cell:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.tb-icon { font-size: 30px; line-height: 1.2; height: 36px; display: flex; align-items: center; justify-content: center; }
.tb-icon-img { max-width: 32px; max-height: 32px; border-radius: 6px; object-fit: cover; }
.tb-cell-title { font-size: 13px; color: var(--text-1); margin-top: 10px; line-height: 1.4; word-break: break-all; }
.tb-docs { display: grid; gap: 10px; }
.tb-doc {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border, #e6e8eb); border-radius: 10px; background: #fff; padding: 12px 14px;
}
.tb-doc-icon { font-size: 22px; }
.tb-doc-main { flex: 1; min-width: 0; }
.tb-doc-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.tb-doc-url { font-size: 12px; color: var(--text-2); word-break: break-all; line-height: 1.6; }
.tb-doc-ops { display: flex; gap: 6px; flex-shrink: 0; }

/* 私域管理：KPI 条 / 营销列表 / 工作日志 / 每日任务 */
.dm-kpi { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.dm-scope { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.dm-scope b { color: var(--text-1); }
.dm-kpi-item { display: flex; flex-direction: column; gap: 2px; }
.dm-kpi-item b { font-size: 20px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.dm-kpi-item span { font-size: 12px; color: var(--text-2); }
.dm-list { display: grid; gap: 10px; }
.dm-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border, #e6e8eb); border-radius: 10px; background: #fff; padding: 12px 14px; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.dm-item:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.dm-cover { width: 96px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f2ef; }
.dm-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-main { flex: 1; min-width: 0; }
.dm-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; }
.dm-sum { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.dm-meta { margin-top: 7px; display: flex; gap: 14px; font-size: 12px; }
.dm-detail-cover { height: 180px; border-radius: 10px 10px 0 0; overflow: hidden; background: #f5f2ef; }
.dm-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-detail { padding: 16px 18px 20px; }
.dm-detail-title { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.dm-detail-meta { display: flex; gap: 14px; font-size: 12px; margin-bottom: 14px; }
.dm-detail-body { font-size: 14px; color: var(--text-1); line-height: 1.85; }
.dm-detail-body p { margin-bottom: 10px; }
.dm-log { border: 1px solid var(--border, #e6e8eb); border-radius: 10px; background: #fff; padding: 12px 14px; margin-top: 10px; }
.dm-log-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dm-log-body { font-size: 13px; color: var(--text-1); line-height: 1.8; }
.dm-log-body p { margin-bottom: 6px; }
.dm-tasks { display: grid; gap: 8px; }
.dm-task {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border, #e6e8eb); border-radius: 10px; background: #fff; padding: 10px 14px;
}
.dm-task.done { opacity: .68; }
.dm-task.done .dm-task-title { text-decoration: line-through; }
.dm-task-main { flex: 1; min-width: 0; }
.dm-task-title { font-size: 14px; color: var(--text-1); }
.dm-task-note { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.dm-task-ops { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sc-foot { display: flex; justify-content: space-between; font-size: 11px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border, #e6e8eb); }
.sc-detail-cover { width: 100%; max-height: 220px; overflow: hidden; border-radius: 10px 10px 0 0; background: #f5f2ef; }
.sc-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-detail { padding: 16px 18px 20px; }
.sc-detail-title { font-size: 18px; font-weight: 700; color: var(--text-1); margin: 8px 0; line-height: 1.4; }
.sc-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; margin-bottom: 14px; }
.sc-detail-body p { font-size: 14px; line-height: 1.9; color: var(--text-1); margin: 0 0 12px; }
@media (max-width: 900px) {
  .cal-cell { min-height: 76px; padding: 4px 5px; }
  .cal-t, .cal-u { font-size: 10px; }
  .cal-f { font-size: 11px; }
}

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(31, 35, 41, .45); z-index: 100;
  display: flex; padding: 20px; overflow-y: auto;
}
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; margin: auto; padding: 22px; box-shadow: 0 16px 48px rgba(0, 0, 0, .22); }
.modal-wide { max-width: 760px; }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal-body { margin-top: 8px; }
/* 工资金额查看身份验证（身份证后 4 位） */
.idv-tip { font-size: 13px; line-height: 1.8; color: var(--text-2); margin-bottom: 12px; }
.idv-tip strong { color: var(--text-1); }
.idv-err { min-height: 18px; margin-top: 8px; font-size: 12px; color: var(--wine, #C0202E); }
.modal-foot .btn-plain { margin-right: 8px; }

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .bi-row { grid-template-columns: 1fr; }
  .login-aside { width: 320px; padding: 40px 30px 28px; }
}
@media (max-width: 900px) {
  .sidenav {
    position: fixed; top: 56px; bottom: 0; left: 0; z-index: 55;
    transform: translateX(-105%); transition: transform .2s ease;
    box-shadow: 10px 0 28px rgba(0, 0, 0, .2);
  }
  .sidenav.open { transform: none; }
  .sidenav.collapsed { width: 216px; }
  .sidenav.collapsed .sn-text,
  .sidenav.collapsed .sn-group-title,
  .sidenav.collapsed .sn-badge,
  .sidenav.collapsed .sn-brand-text { display: block; }
  .sidenav.collapsed .sn-brand,
  .sidenav.collapsed .sn-item { justify-content: flex-start; }
  .tn-center { display: none; }
  .tn-user-meta { display: none; }
  .tn-brand-text { display: none; }
  .content { padding: 16px 14px 44px; }
  .login-shell { flex-direction: column; }
  .login-aside { width: 100%; padding: 26px 24px; }
  .la-list { display: none; }
  .la-foot { display: none; }
  .la-name { font-size: 24px; margin-top: 14px; }
}
@media (max-width: 640px) {
  .kpi-row { grid-template-columns: 1fr; }
  .ps-mini-row { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .adm-cols { grid-template-columns: 1fr; }
  .scope-cols { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .wm-tile { width: 50%; }
}
