/* ============================================================
   PC 管理端布局
   结构：深色侧栏（可折叠 / 分组导航） + 亮色顶栏 + 栅格内容区
   ============================================================ */
body { overflow: hidden; }

.app { display: flex; height: 100vh; background: var(--bg); }

/* ==================== 侧边栏 ==================== */
.side {
  width: 232px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(178deg, #16213c 0%, #101a30 62%, #0d1526 100%);
  color: #cbd5e1; transition: width .22s cubic-bezier(.4, 0, .2, 1);
  position: relative; z-index: 30;
}
.side::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 12% 0%, rgba(59, 130, 246, .16), transparent 60%); }

.side .brand {
  height: 64px; flex: none; display: flex; align-items: center; gap: 11px;
  padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); position: relative; z-index: 1;
}
.side .brand .lg {
  width: 34px; height: 34px; border-radius: 10px; flex: none; padding: 3px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3); overflow: hidden;
}
.side .brand .lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side .brand .bt { flex: 1; min-width: 0; }
.side .brand b { font-size: 14.5px; color: #f1f5f9; font-weight: 600; display: block; letter-spacing: .2px; }
.side .brand span { display: block; font-size: 10.5px; color: #64748b; font-weight: 400; margin-top: 2px; letter-spacing: .6px; }
.side .brand .tog { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; flex: none; transition: .15s; font-size: 13px; }
.side .brand .tog:hover { background: rgba(255, 255, 255, .08); color: #e2e8f0; }

.nav { flex: 1; padding: 12px 10px 8px; overflow: auto; position: relative; z-index: 1; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }
.nav-group { margin-bottom: 14px; }
.nav-group .gt {
  font-size: 10.5px; color: #50607d; letter-spacing: 1.2px; font-weight: 600;
  padding: 0 10px 7px; text-transform: uppercase; white-space: nowrap;
}
.nav a {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px;
  border-radius: 9px; color: #94a3b8; font-size: 13.5px; margin-bottom: 3px;
  cursor: pointer; user-select: none; position: relative; transition: all .16s; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #e2e8f0; }
.nav a.on { background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(37, 99, 235, .55)); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(37, 99, 235, .3); }
.nav a.on::before { content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #60a5fa; }
.nav a .ic { opacity: .9; flex: none; }
.nav a .cnt { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 600; }

.side .foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .07); position: relative; z-index: 1; flex: none; }
.userbox { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.userbox .av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.userbox .uinfo { flex: 1; min-width: 0; }
.userbox .n { font-size: 13px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox .r { font-size: 11px; color: #64748b; margin-top: 1px; }
.userbox .out { font-size: 11.5px; color: #64748b; cursor: pointer; padding: 3px 7px; border-radius: 6px; flex: none; transition: .15s; }
.userbox .out:hover { color: #fca5a5; background: rgba(239, 68, 68, .14); }

/* 折叠态 */
.app.mini .side { width: 68px; }
.app.mini .side .brand .bt, .app.mini .nav-group .gt, .app.mini .nav a span, .app.mini .userbox .uinfo, .app.mini .userbox .out { display: none; }
.app.mini .side .brand { justify-content: center; padding: 0; }
.app.mini .nav a { justify-content: center; padding: 0; }
.app.mini .nav a.on::before { left: -10px; }
.app.mini .userbox { justify-content: center; }

/* ==================== 主区 ==================== */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 64px; flex: none; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 22px; gap: 14px; z-index: 20;
}
.topbar .crumb { font-size: 11.5px; color: var(--txt3); letter-spacing: .3px; margin-bottom: 2px; }
.topbar h2 { font-size: 17px; margin: 0; font-weight: 600; letter-spacing: -.2px; line-height: 1.2; }

.projsel {
  height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  min-width: 156px; appearance: none; font-size: 13px; color: var(--txt); font-weight: 500; cursor: pointer; transition: .15s;
}
.projsel:hover { border-color: #bfd3f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }

.bell { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--txt2); transition: .15s; flex: none; }
.bell:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-l); }
.bell .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--err); border: 2px solid #fff; }

.me { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 24px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .15s; flex: none; }
.me:hover { border-color: #bfd3f7; box-shadow: var(--shadow); }
.me .av { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.me .nm { font-size: 12.5px; font-weight: 600; }

.content { flex: 1; overflow: auto; padding: 22px 24px 32px; }
.content::-webkit-scrollbar { width: 10px; }

/* ==================== 页面头 / 工具条 ==================== */
.page-hd { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-hd h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.page-hd .sub { font-size: 12.5px; color: var(--txt3); padding-bottom: 2px; }
.page-hd .spacer { flex: 1; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
  background: #fff; padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.toolbar .ipt { height: 36px; width: auto; }
.toolbar select.ipt { min-width: 116px; }
.toolbar .spacer { flex: 1; }
.search { position: relative; }
.search .ipt { padding-left: 34px; width: 210px; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--txt3); width: 15px; height: 15px; }

/* ==================== 统计卡片 ==================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1500px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat {
  background: #fff; border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; border: 1px solid var(--line-2);
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), box-shadow .18s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* 兼容旧结构：左侧竖色条 → 顶部渐变描边 */
.stat .bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; width: auto !important; }
.stat .lb { font-size: 12.5px; color: var(--txt2); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.stat .v { font-size: 26px; font-weight: 700; margin: 9px 0 5px; letter-spacing: -.8px; line-height: 1.1; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--txt3); margin-left: 3px; letter-spacing: 0; }
.stat .d { font-size: 12px; color: var(--txt3); display: flex; gap: 12px; flex-wrap: wrap; }
.stat .d b { color: var(--txt2); font-weight: 600; }
.stat .ico { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff !important; opacity: 1; box-shadow: 0 3px 9px rgba(15, 23, 42, .16); }
.stat .ico svg { width: 20px; height: 20px; }
/* 彩色浅底变体（呼应移动端多彩风格） */
.stat.tint-blue   { background: linear-gradient(160deg, rgba(59, 130, 246, .09), #fff 58%); }
.stat.tint-green  { background: linear-gradient(160deg, rgba(16, 185, 129, .09), #fff 58%); }
.stat.tint-red    { background: linear-gradient(160deg, rgba(239, 68, 68, .08), #fff 58%); }
.stat.tint-amber  { background: linear-gradient(160deg, rgba(245, 158, 11, .10), #fff 58%); }
.stat.tint-violet { background: linear-gradient(160deg, rgba(139, 92, 246, .09), #fff 58%); }
.stat.tint-cyan   { background: linear-gradient(160deg, rgba(8, 145, 178, .09), #fff 58%); }

/* ==================== 面板 ==================== */
.panels { display: grid; gap: 16px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line-2); }
.panel h4 { margin: 0 0 16px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; letter-spacing: -.2px; }
.panel h4 .more { font-size: 12px; color: var(--brand); cursor: pointer; font-weight: 500; padding: 3px 8px; border-radius: 6px; transition: .15s; }
.panel h4 .more:hover { background: var(--brand-l); }
.panel h4 .hd-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel h4 .hd-l b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-ft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
/* 图片渲染：data-img-* 节点取到图后加上 .has-img，背景图铺满 */
.av.has-img, .dt-hd .av.has-img, [data-img-kind].has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pcover { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px;
  background: linear-gradient(135deg, #eaf1fe, #d9e6fd);
  background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.pcover .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #8aa2cd; font-size: 12px; }
.pcover .ph .ic { width: 22px; height: 22px; opacity: .8; }
.pcover.has-img .ph { display: none; }
.pcover .ops { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.pcover .ops .btn { background: rgba(255, 255, 255, .93); border-color: rgba(255, 255, 255, .65); box-shadow: 0 1px 4px rgba(15, 23, 42, .14); }
.pcover .ops .btn:hover { background: #fff; }
.pcover-arch { position: absolute; left: 10px; top: 10px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }

/* ==================== 项目卡片（v2.18.4：左图 + 右侧指标 + 三宫格 + 底栏） ==================== */
.pcard-list { display: flex; flex-direction: column; gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.pcard[data-archived="1"] { opacity: .76; }
.pcard-top { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 24px; }
.pinfo { display: flex; flex-direction: column; min-width: 0; padding: 2px 2px 2px 0; }
.pinfo-hd { padding-bottom: 11px; border-bottom: 1px solid var(--line-2); }
.pinfo-hd h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--txt); letter-spacing: .2px; }
.pinfo-meta { padding-top: 11px; display: flex; flex-direction: column; gap: 6px; }
.pinfo-addr { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--txt2); }
.pinfo-addr .ic { color: var(--txt3); flex: none; }
.pinfo-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo-born { font-size: 11.5px; color: var(--txt3); }
.pinfo-stats { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 18px; }
.pstat { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.pic .ic { display: block; }
.pic-b { background: #eff4ff; color: #2563eb; }
.pic-g { background: #e9f9f1; color: #059669; }
.pic-o { background: #fff4e8; color: #ea8a12; }
.pic-p { background: #f3efff; color: #7c5cf6; }
.pstat-lb { font-size: 13px; color: var(--txt2); }
.pstat-v { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pstat-v .pv { font-size: 16px; font-weight: 600; color: var(--txt); white-space: nowrap; }
.pstat-v .pv small { font-size: 11.5px; font-weight: 400; color: var(--txt3); margin-left: 3px; }
.pstat-v .psub { font-size: 11.5px; color: var(--txt3); white-space: nowrap; }
.pstat-v .muted { font-size: 13px; font-weight: 400; }
.pmini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pmini-cell { background: #f8fafd; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.pmini-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pmini-hd .pic { width: 24px; height: 24px; border-radius: 7px; }
.pmini-hd b { font-size: 12.5px; font-weight: 500; color: var(--txt2); }
.pmini-v { font-size: 13px; color: var(--txt); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard-ft { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.pcard-ft .spacer { flex: 1; }
.ptab { background: none; border: 0; font-family: inherit; font-size: 13px; color: var(--txt2);
  padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: .15s; }
.ptab:hover { background: var(--brand-l); color: var(--brand); }
.ptab.danger:hover { background: #fef2f2; color: #dc2626; }
.ptab-hint { font-size: 11.5px; color: var(--txt3); padding-right: 6px; }
.plink { background: none; border: 0; font-family: inherit; font-size: 13px; color: var(--brand);
  padding: 7px 8px; border-radius: 8px; cursor: pointer; transition: .15s; }
.plink:hover { background: var(--brand-l); }
@media (max-width: 1240px) {
  .pcard-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pinfo-stats { margin-top: 14px; padding-top: 0; }
  .pmini { grid-template-columns: minmax(0, 1fr); }
}
.av-hit { cursor: pointer; position: relative; }
.av-hit:hover { filter: brightness(1.06); box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
.note-bar { display: flex; gap: 8px; align-items: flex-start; background: #f8fafe; border: 1px solid #e3ebfa; color: var(--txt2);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12.5px; line-height: 1.75; margin-bottom: 16px; }
.note-bar .ic { color: var(--brand); flex: none; margin-top: 3px; }
.g2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }

/* ==================== 柱状图 ==================== */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 196px; padding-top: 12px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; align-items: flex-end; gap: 6px; height: 148px; width: 100%; justify-content: center; }
.chart .b { width: 17px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #3b82f6, #2563eb); position: relative; min-height: 2px; transition: height .5s cubic-bezier(.4, 0, .2, 1); }
.chart .b.g { background: linear-gradient(180deg, #cbd5e1, #b9c4d3); }
.chart .col:hover .b { filter: brightness(1.08); }
.chart .lb { font-size: 11.5px; color: var(--txt3); }
.chart .vv { font-size: 11px; color: var(--txt2); font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--txt2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* ==================== 排行条 ==================== */
.rank { display: flex; flex-direction: column; gap: 13px; }
.rank .row { display: grid; grid-template-columns: 104px 1fr 62px; align-items: center; gap: 12px; font-size: 13px; }
.rank .row > span:first-child { color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==================== 列表 / 提醒 ==================== */
.list-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.list-item:last-child { border: none; }
.list-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .amt { font-weight: 600; }

.rm-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.rm-item:last-child { border-bottom: none; }
.rm-item .tp { font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; font-weight: 500; }
.rm-item .tt { font-size: 13px; font-weight: 500; }
.rm-item .dd { font-size: 12px; color: var(--txt3); margin-top: 4px; }

/* ==================== 详情抽屉 ==================== */
.dt-hd { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.dt-hd .av { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-l); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.dt-hd h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.3px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs .tb { padding: 9px 15px; font-size: 13px; cursor: pointer; color: var(--txt2); border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; transition: .15s; font-weight: 500; }
.tabs .tb:hover { color: var(--brand); background: #f8fafc; }
.tabs .tb.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 2px; background: linear-gradient(180deg, var(--brand-l), var(--line)); border-radius: 2px; }
.timeline .it { position: relative; padding-bottom: 17px; }
.timeline .it::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.timeline .it .h { font-size: 13px; }
.timeline .it .h b { font-weight: 600; }
.timeline .it .m { font-size: 12px; color: var(--txt3); margin-top: 4px; }

/* ==================== 登录页 ==================== */
.login-wrap { height: 100vh; display: flex; align-items: stretch; background: var(--bg); }
.login-side {
  flex: 1; background: linear-gradient(150deg, #16213c 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff; padding: 54px 58px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.login-side::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .07); top: -120px; right: -130px; }
.login-side::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(96, 165, 250, .13); bottom: -110px; left: -80px; }
.login-side .lg { width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 700; margin-bottom: 26px; position: relative; z-index: 1; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); }
.login-side .brand-plate { position: relative; z-index: 1; background: #fff; border-radius: 14px; padding: 10px 16px; display: inline-block; align-self: flex-start; margin-bottom: 28px; box-shadow: 0 14px 34px rgba(2, 8, 30, .34); }
.login-side .brand-plate img { height: 54px; display: block; }
.login-side h1 { margin: 0 0 14px; font-size: 32px; font-weight: 700; letter-spacing: -1px; position: relative; z-index: 1; line-height: 1.25; }
.login-side .desc { font-size: 14.5px; opacity: .82; line-height: 1.9; max-width: 460px; position: relative; z-index: 1; }
.login-side .kpis { display: flex; gap: 34px; margin-top: 40px; position: relative; z-index: 1; }
.login-side .kpi .v { font-size: 27px; font-weight: 700; letter-spacing: -.5px; }
.login-side .kpi .l { font-size: 12px; opacity: .7; margin-top: 4px; }
.login-side .feats { margin-top: 36px; display: flex; flex-direction: column; gap: 11px; position: relative; z-index: 1; }
.login-side .feat { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .88; }
.login-side .feat i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; flex: none; }
.login-side .cp { margin-top: 34px; position: relative; z-index: 1; font-size: 12px; opacity: .6; line-height: 1.9; letter-spacing: .3px; }
.login-side .cp span { opacity: .85; letter-spacing: 1px; }

.login-box { width: 520px; flex: none; background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 46px; box-shadow: -12px 0 40px rgba(15, 23, 42, .07); overflow: auto; }
.lb-hd { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; }
.lb-hd .lb-logo { width: 46px; height: 46px; object-fit: contain; flex: none; }
.login-box h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.5px; }
.login-box .d { color: var(--txt2); font-size: 13px; margin: 0; line-height: 1.7; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.lf { display: block; }
.lf > span { display: block; font-size: 12.5px; color: var(--txt2); margin-bottom: 7px; font-weight: 500; }
.lf-ipt { position: relative; display: flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; transition: .16s; padding: 0 13px; gap: 9px; }
.lf-ipt:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.lf-ipt > i { color: var(--txt3); display: flex; flex: none; }
.lf-ipt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; height: 100%; color: var(--txt); font-family: inherit; }
.lf-ipt .eye { font-size: 12px; color: var(--brand); cursor: pointer; user-select: none; font-weight: 500; flex: none; }
.lf-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; min-height: 18px; }
.lf-row .ck { display: flex; align-items: center; gap: 7px; color: var(--txt2); cursor: pointer; }
.lf-row .err { color: #dc2626; }
.lg-btn { width: 100%; height: 46px; font-size: 15px; border-radius: 11px; gap: 8px; }
.demo-hint { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dh-hd { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; cursor: pointer; background: #f8fafc; font-size: 12.5px; font-weight: 500; color: var(--txt2); }
.dh-hd b { font-weight: 400; color: var(--txt3); font-size: 12px; }
.dh-bd { max-height: 208px; overflow: auto; }
.dh-item { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; padding: 9px 14px; font-size: 12.5px; border-top: 1px solid var(--line-2); cursor: pointer; transition: .14s; }
.dh-item:hover { background: #f0f7ff; }
.dh-item .ac { font-weight: 600; color: var(--txt); }
.dh-item .pw { color: var(--txt3); font-family: ui-monospace, Consolas, monospace; }
.dh-item .rl { color: var(--brand); font-size: 11.5px; background: var(--brand-l); padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.dh-item .nm { color: var(--txt3); font-size: 11.5px; white-space: nowrap; }
.login-note { margin-top: 18px; font-size: 11.5px; color: var(--txt3); line-height: 1.8; padding-top: 14px; border-top: 1px dashed var(--line); }
@media (max-width: 1080px) { .login-side { display: none; } .login-box { width: 100%; max-width: 560px; margin: 0 auto; } }

/* ==================== 操作手册 ==================== */
.manual { padding: 26px 30px; }
.manual h4 { margin: 22px 0 10px; font-size: 15px; color: var(--brand); font-weight: 600; }
.manual h4:first-child { margin-top: 0; }
.manual p, .manual li { font-size: 13.5px; line-height: 2; color: var(--txt2); }
.manual ol, .manual ul { padding-left: 24px; margin: 8px 0; }
.manual li { margin-bottom: 5px; }
.manual code { background: #f1f5f9; padding: 2px 7px; border-radius: 5px; font-size: 12px; color: var(--brand-d); }

/* ==================== 版本迭代记录 ==================== */
.verbar { margin-top: 10px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); cursor: pointer; transition: .15s; font-size: 11.5px; color: #94a3b8; }
.verbar:hover { background: rgba(255, 255, 255, .09); color: #e2e8f0; }
.verbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); flex: none; }
.verbar .bd { margin-left: auto; color: #64748b; font-size: 10.5px; }
.app.mini .verbar { justify-content: center; }
.app.mini .verbar span:not(.dot) { display: none; }

.ver-card { display: flex; align-items: center; gap: 26px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%); color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.ver-card::after { content: ''; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.ver-card .vc-l { display: flex; align-items: center; gap: 16px; flex: none; }
.ver-card .lg { width: 54px; height: 54px; border-radius: 15px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 700; }
.ver-card .pnm { font-size: 13px; opacity: .8; letter-spacing: .5px; }
.ver-card .ver { font-size: 30px; font-weight: 700; letter-spacing: -1px; margin-top: 4px; }
.ver-card .ver small { font-size: 13px; font-weight: 500; opacity: .75; margin-left: 10px; letter-spacing: 0; }
.ver-card .vc-r { margin-left: auto; display: grid; grid-template-columns: repeat(4, auto); gap: 26px; position: relative; z-index: 1; }
.ver-card .vi span { display: block; font-size: 11px; opacity: .68; letter-spacing: .5px; }
.ver-card .vi b { display: block; font-size: 14.5px; font-weight: 600; margin-top: 5px; }

.rel-tl { position: relative; padding-left: 4px; }
.rel-tl::before { content: ''; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, #dbe3ef, #eef2f7); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 20px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-l); }
.tl-item.latest .tl-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(37, 99, 235, .18); }
.tl-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-hd .vno { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 7px; letter-spacing: -.2px; }
.tl-hd b { font-size: 14px; font-weight: 600; }
.tl-hd .tpx { font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: #f1f5f9; color: var(--txt3); }
.tl-hd .tpx.cur { background: #ecfdf5; color: #059669; }
.tl-hd .spacer { flex: 1; }
.tl-hd .tm { font-size: 12px; color: var(--txt3); font-variant-numeric: tabular-nums; }
.tl-hd .del { font-size: 12px; color: var(--txt3); cursor: pointer; padding: 2px 7px; border-radius: 6px; }
.tl-hd .del:hover { color: #ef4444; background: #fef2f2; }
.tl-list { margin: 9px 0 0; padding-left: 18px; }
.tl-list li { font-size: 13px; line-height: 1.95; color: var(--txt2); }
.tl-ft { margin-top: 8px; font-size: 11.5px; color: var(--txt3); }
@media (max-width: 1180px) {
  .ver-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ver-card .vc-r { margin-left: 0; grid-template-columns: repeat(2, auto); gap: 16px 34px; }
}

/* ============================================================
   新增模块：服务预约 / 公司财务 / 地产销售 / 报表推送 /
             房源销控图 / 附件中心 / 员工销项表
   ============================================================ */

/* 排行条：加宽名称列与数值列，容纳「公司留存（40%）」这类长标签 */
.rank .row { grid-template-columns: 132px 1fr 92px; }
.rank .row .tr { font-variant-numeric: tabular-nums; color: var(--txt); font-weight: 500; }

/* ---------- 房源销控图 ---------- */
.bc-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #eef2f7; gap: 1px; }
.bc-bar i { display: block; height: 100%; }

.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); gap: 10px; }
.su-cell {
  border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 11px; cursor: pointer;
  background: #fff; transition: transform .16s cubic-bezier(.4, 0, .2, 1), box-shadow .16s, border-color .16s;
}
.su-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.su-cell .cd { font-size: 13px; font-weight: 700; letter-spacing: -.2px; color: var(--txt); }
/* 销控图双口径角标：售 / 租（全部房源模式下区分销售与租赁房源） */
.su-cell .su-badge { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.su-cell .cs { font-size: 12px; font-weight: 600; margin-top: 3px; }
.su-cell .ca { font-size: 11.5px; color: var(--txt2); margin-top: 5px; font-variant-numeric: tabular-nums; }
.su-cell .cn { font-size: 11px; color: var(--txt3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }

/* ---------- 报表推送：指标卡 ---------- */
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.mt-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 13px 14px;
  box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s;
}
.mt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mt-card .mt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mt-card .mt-h b { font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.mt-card .mt-h .u { font-size: 11px; color: var(--txt3); }
.mt-card .mt-v { font-size: 22px; font-weight: 700; letter-spacing: -.6px; margin: 7px 0 4px; font-variant-numeric: tabular-nums; }
.mt-card .mt-d { font-size: 11.5px; color: var(--txt3); }
.mt-card .mt-tip { font-size: 11px; color: var(--txt3); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); }

.rp-list { max-height: 560px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.rp-list::-webkit-scrollbar { width: 6px; }
.rp-list::-webkit-scrollbar-thumb { background: #dbe3ef; border-radius: 6px; }
.rp-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff; transition: .15s;
}
.rp-item:hover { border-color: #bfd3f7; background: #f8fbff; }
.rp-item.on { border-color: var(--brand); background: #f4f8ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.rp-item .rp-l { flex: 1; min-width: 0; }
.rp-item .rp-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-item .rp-m { font-size: 11.5px; color: var(--txt3); margin-top: 3px; }
.rp-item .rp-r { flex: none; }

/* ---------- 附件中心 ---------- */
.ft-ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; letter-spacing: .3px;
}


/* ---------- 房源图片页签 ---------- */
.img-group { margin-bottom: 20px; }
.img-group:last-child { margin-bottom: 0; }
.img-gh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.img-gh b { font-size: 13px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px; }
.img-cell {
  position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #f8fafc; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.img-cell:hover { box-shadow: 0 6px 18px rgba(15,23,42,.12); transform: translateY(-1px); }
.img-cell img { width: 100%; height: 102px; object-fit: cover; display: block; background: #e2e8f0; }
.img-doc {
  height: 102px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #e2e8f0;
}
.img-doc span { font-size: 17px; font-weight: 800; letter-spacing: 1.5px; }
.img-doc i { font-size: 10.5px; font-style: normal; color: #94a3b8; padding: 0 8px; text-align: center; line-height: 1.4; }
.img-meta {
  font-size: 11.5px; padding: 6px 8px; color: var(--txt2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); background: #fff;
}
.img-del {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,23,42,.6); color: #fff; font-style: normal; font-size: 13px; line-height: 20px;
  text-align: center; opacity: 0; transition: opacity .15s, background .15s;
}
.img-cell:hover .img-del { opacity: 1; }
.img-del:hover { background: #ef4444; }
.img-empty {
  font-size: 12.5px; color: var(--txt3); border: 1px dashed var(--line);
  border-radius: 10px; padding: 18px; text-align: center; background: #fbfdff;
}

/* ---------- 合同附件三分类（主合同 / 补充文件 / 补充协议） ---------- */
.att-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.att-group-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.att-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.att-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.att-name { flex: 1; min-width: 0; }
.att-name b { font-size: 13px; word-break: break-all; }
.att-ops { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- 收费管理 v2.9.0：明细双列键值 / 凭证区 ---------- */
.kv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 1100px) { .kv-2col { grid-template-columns: 1fr; } }
.timeline .it .h { font-size: 13px; }
.timeline .it .m { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.kv-2col > .kv + .kv { padding-left: 26px; border-left: 1px dashed var(--line); }

/* ---------- 佣金结算 v2.10.0：三类金额构成条 ---------- */
.cbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line-2); }
.cbar > i { display: block; height: 100%; min-width: 0; transition: width .35s ease; }
.cbar > i + i { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .65); }
