/* ============================================================
   工资查询系统 - 全站样式（响应式，移动/桌面同一套页面）
   ============================================================ */
/* 禁止华为等浏览器自动放大字号（font boosting），保证各浏览器显示一致 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; max-width: 100vw; overflow-x: hidden; line-height: 1.6; }
/* 根治华为/安卓 Chromium 内核的 TextAutosizer 字体放大：有 max-height 约束的块不会被放大 */
* { max-height: 999999px; }
:root {
  --c-primary: #1d6fa5;
  --c-primary-d: #16568053;
  --c-primary-dark: #165680;
  --c-accent: #e8842c;
  --c-bg: #f0f4f8;
  --c-card: #ffffff;
  --c-text: #243447;
  --c-text-2: #5b6b7c;
  --c-line: #dde5ee;
  --c-danger: #d64545;
  --c-ok: #2e9e5b;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(30, 50, 80, .08);
  --shadow-lg: 0 8px 30px rgba(30, 50, 80, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.topnav { background: linear-gradient(120deg, #17527c, #1d6fa5 60%, #2a86c0); color: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 0 20px; min-height: 58px; flex-wrap: wrap; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: .5px; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.navlinks { display: flex; gap: 4px; flex-wrap: wrap; }
.navlinks a { color: #dcecf8; padding: 8px 14px; border-radius: 8px; font-size: 14.5px; }
.navlinks a:hover, .navlinks a.active { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.navlinks a.danger { color: #ffd9d9; }
.navburger { display: none; font-size: 22px; cursor: pointer; padding: 6px 10px; }
.navtoggle { display: none; }

/* ---------- 布局 ---------- */
.container { max-width: 1080px; width: 100%; margin: 0 auto; padding: 26px 18px 40px; flex: 1; }
.footer { text-align: center; color: var(--c-text-2); font-size: 13px; padding: 18px; }

/* ---------- 卡片/表单 ---------- */
.card { background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.card h2 { font-size: 18px; margin-bottom: 14px; color: var(--c-primary-dark); }
.card h3 { font-size: 15.5px; margin-bottom: 10px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--c-text-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px;
  font-size: 15px; background: #fbfcfe; transition: border .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); background: #fff; }
.field-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.field-inline .field { flex: 1; min-width: 160px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { max-width: 120px; }
.captcha-row img { height: 42px; border-radius: 6px; cursor: pointer; border: 1px solid var(--c-line); }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; border: none; cursor: pointer; font-size: 15px; padding: 10px 22px;
  border-radius: 8px; background: var(--c-primary); color: #fff; transition: filter .15s; text-decoration: none !important; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.accent { background: var(--c-accent); }
.btn.ghost { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn.danger { background: var(--c-danger); }
.btn.sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn.tiny { padding: 2px 9px; font-size: 12.5px; border-radius: 6px; }

/* ---------- 提示条 ---------- */
.flash { max-width: 1080px; margin: 12px auto 0; padding: 11px 18px; border-radius: 8px; font-size: 14px; }
.container .flash { margin: 0 0 16px; }
.flash-success { background: #e6f7ed; color: #1c7a43; border: 1px solid #b9e6cb; }
.flash-error { background: #fdeaea; color: #a33; border: 1px solid #f3c1c1; }
.flash-info { background: #e8f1fb; color: #1d5d94; border: 1px solid #c3dcf3; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-line); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { background: #f2f7fc; color: var(--c-text-2); font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fbfe; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.neg { color: var(--c-danger); font-weight: 600; }
.table td.pos { color: #1c7a43; }

/* ---------- 月份卡片 ---------- */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.month-card { background: linear-gradient(165deg, var(--cc-bg, #fff), #fff 55%); border: 1px solid var(--c-line);
  border-top: 4px solid var(--cc, var(--c-primary)); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; transition: all .15s; position: relative; overflow: hidden; }
.month-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cc, var(--c-primary)); text-decoration: none; }
.month-card .y { font-size: 13px; color: var(--c-text-2); }
.month-card .m { font-size: 34px; font-weight: 800; color: var(--cc, var(--c-primary)); line-height: 1.15; }
.month-card .t { font-size: 12.5px; color: var(--c-text-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-card .badge { position: absolute; top: 8px; right: 8px; background: var(--c-accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }

/* 校区彩色徽章：每个校区固定一种颜色，一眼区分 */
.campus-tag { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0;
  white-space: nowrap; max-width: 100%; }
.cc-0 { --cc: #3f51b5; --cc-bg: #edf0fb; } /* 靛蓝 */
.cc-1 { --cc: #00897b; --cc-bg: #e7f5f3; } /* 青绿 */
.cc-2 { --cc: #2ba245; --cc-bg: #eef8f0; } /* 绿 */
.cc-3 { --cc: #1e88d2; --cc-bg: #ecf5fc; } /* 蓝 */
.cc-4 { --cc: #8e5cd9; --cc-bg: #f4effc; } /* 紫 */
.cc-5 { --cc: #00a2ae; --cc-bg: #e8f7f8; } /* 青 */
.campus-tag.cc-0 { background: linear-gradient(135deg, #3f51b5, #303f9f); }
.campus-tag.cc-1 { background: linear-gradient(135deg, #00897b, #00695f); }
.campus-tag.cc-2 { background: linear-gradient(135deg, #2ba245, #219a38); }
.campus-tag.cc-3 { background: linear-gradient(135deg, #1e88d2, #1668a8); }
.campus-tag.cc-4 { background: linear-gradient(135deg, #8e5cd9, #7444bd); }
.campus-tag.cc-5 { background: linear-gradient(135deg, #00a2ae, #008692); }

/* ---------- 登录页 ---------- */
/* ===== 登录页：一张大卡片 = 顶部标题条 + 上部（登录表单 | 校区动态）双栏 + 底部通栏公告，移动端单列 ===== */
.login-box { width: min(775px, 96vw); margin: 3vh auto 0; background: var(--c-card); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.box-title { background: #17527c; color: #fff; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: 1px; padding: 13px 16px; }
.box-grid { display: grid; grid-template-columns: 248px 1fr; gap: 26px; padding: 26px 26px 8px; align-items: start; }
.login-card { min-width: 0; }
.box-side { min-width: 0; padding-top: 4px; }
.box-gonggao { padding: 10px 26px 26px; }
.box-gonggao .side-title { margin-bottom: 10px; }
.side-title { font-size: 16px; font-weight: 700; color: #17527c; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.gonggao { background: #fffbea; border: 1px solid #f3e2b3; border-radius: 8px; padding: 14px 18px; font-size: 14.5px; line-height: 1.7; max-height: 40vh; overflow-y: auto; }
.gonggao p { margin: 6px 0; width: auto !important; max-width: 100%; }
.captcha-row { gap: 8px; }
.captcha-row input { width: 92px !important; }
.captcha-row img { width: 128px; height: auto; }
/* 各校区工资上传动态：三列居中等高小卡片（6 校区 = 整齐 2 行） */
.cs-list { display: flex; flex-direction: column; gap: 8px; }
.cs-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; background: #eef8ee; border: 1px solid #cbe8cd; border-left-width: 5px; border-radius: 10px; padding: 9px 13px; }
.cs-line .cs-name { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.cs-line .cs-ok { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cs-line .cs-ok i { font-style: normal; }
.cs-line .cs-ok em { font-style: normal; }
.cs-line .cs-ok b { font-size: 19px; font-weight: 800; margin: 0 1px; }
.cs-line.none .cs-none { font-size: 14px; font-weight: 700; color: #b06a00; }
/* 各校区专属配色：底色 / 左边条 / 校区名 / 状态与年月 */
.cs-line.c0 { background: #eaf4fd; border-color: #a9d0f0; } .cs-line.c0 .cs-name { color: #14538c; } .cs-line.c0 .cs-ok, .cs-line.c0 .cs-ok b { color: #0e6ea8; }
.cs-line.c1 { background: #eef8ee; border-color: #b5dfb8; } .cs-line.c1 .cs-name { color: #1d5e2f; } .cs-line.c1 .cs-ok, .cs-line.c1 .cs-ok b { color: #0a7a3d; }
.cs-line.c2 { background: #eef0fb; border-color: #c3caed; } .cs-line.c2 .cs-name { color: #3f51b5; } .cs-line.c2 .cs-ok, .cs-line.c2 .cs-ok b { color: #35459c; }
.cs-line.c3 { background: #f3effc; border-color: #cdbcf0; } .cs-line.c3 .cs-name { color: #4a338c; } .cs-line.c3 .cs-ok, .cs-line.c3 .cs-ok b { color: #6d4fc4; }
.cs-line.c4 { background: #e9f7f6; border-color: #a8ded9; } .cs-line.c4 .cs-name { color: #0e5e56; } .cs-line.c4 .cs-ok, .cs-line.c4 .cs-ok b { color: #0a8f7f; }
.cs-line.c5 { background: #ecf0f5; border-color: #bccfe3; } .cs-line.c5 .cs-name { color: #4a657f; } .cs-line.c5 .cs-ok, .cs-line.c5 .cs-ok b { color: #3a5a78; }
/* 未上传行覆盖为橙色系文字 */
.cs-line.none .cs-ok { display: none; }
.cs-gonggao { background: #fffbea; border: 1px solid #f3e2b3; border-radius: 8px; padding: 10px 14px; font-size: 14px; line-height: 1.7; overflow-y: auto; max-height: 200px; text-align: left; }
@media (max-width: 900px) {
  /* 登录页手机端：去掉顶部空隙，整体上移 */
  .container:has(> .login-box) { padding-top: 6px; }
  .login-box { margin-top: 0; width: 94vw; }
  .box-title { font-size: 16px; padding: 10px 14px; }
  .box-grid { grid-template-columns: 1fr; gap: 14px; padding: 16px 14px 2px; }
  .login-card .field { margin-bottom: 13px; }
  .login-card .field input { padding: 9px 11px; }
  .box-gonggao { padding: 2px 14px 16px; }
  .box-gonggao .side-title { margin-bottom: 8px; }
  .gonggao { padding: 10px 13px; font-size: 14px; }
  /* 校区动态：两列紧凑小卡片，压缩页面长度；"已更新至"紧跟校名 */
  .box-side .side-title { margin-bottom: 8px; font-size: 15px; }
  .cs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cs-line { display: block; padding: 8px 9px; border-left-width: 4px; border-radius: 9px; line-height: 1.45; }
  .cs-line .cs-name { display: inline; font-size: 12px; }
  .cs-line .cs-ok { display: inline; white-space: normal; }
  .cs-line .cs-ok i { display: inline-block; font-size: 9.5px; font-weight: 500; opacity: .8; margin-left: 2px; white-space: nowrap; vertical-align: baseline; }
  .cs-line .cs-ok i .lf { display: none; }
  /* 日期+✓ 独占一行且永不拆开：16.5px 加上无空格年月，任何手机屏都放得下 */
  .cs-line .cs-date { display: block; white-space: nowrap; margin-top: 1px; }
  .cs-line .cs-ok b { display: inline; font-size: 16.5px; margin: 0; }
  .cs-line .cs-ok em { font-size: 13px; font-weight: 800; margin-left: 4px; }
  /* 公告：中文按词组换行，不再出现「网址②」被拆到两行；超长内容仍有 anywhere 保底 */
  .gonggao, .cs-gonggao { word-break: keep-all; overflow-wrap: anywhere; }
  .cs-line.none .cs-none { display: inline-block; font-size: 12.5px; font-weight: 700; margin-left: 2px; }
  .cs-gonggao { grid-column: 1 / -1; }
}

/* 工资条页顶部标题卡：上下滚动时定住在站点导航下方，「月份 + 返回」始终可见 */
.slip-topbar { position: sticky; top: 58px; z-index: 40; box-shadow: 0 4px 16px rgba(30, 64, 110, .12); }

@media (max-width: 720px) {
  .slip-topbar { top: 58px; }
}

.slip-topbar h2 { font-size: 18px; }

/* 吸顶卡第二行：姓名 / 单位（#3300FF 加粗） */
.slip-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 7px; font-size: 14px; font-weight: 700; color: #3300FF; }

/* ---------- 须知页 ---------- */
.notice-body { font-size: 15px; }
.notice-body p { margin: 8px 0; }
.notice-body ol, .notice-body ul { margin: 8px 0 8px 22px; }
.notice-count { text-align: center; margin-top: 18px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; align-items: center; font-size: 13.5px; }
.pagination a, .pagination span.cur, .pagination span.total { padding: 5px 11px; border-radius: 6px; background: #fff; border: 1px solid var(--c-line); }
.pagination span.cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination span.total { border: none; color: var(--c-text-2); }
.pagination a:hover { border-color: var(--c-primary); text-decoration: none; }

/* ---------- 后台 ---------- */
.admin-body { display: block; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 210px; background: #1b2a3d; color: #c8d6e5; display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
.side-brand { padding: 18px 18px 14px; font-size: 16.5px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidenav { flex: 1; padding: 10px 0; overflow-y: auto; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #b9c9da; font-size: 14.5px; }
.sidenav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidenav a.cur { background: var(--c-primary); color: #fff; }
.sidenav a i { font-style: normal; width: 20px; text-align: center; }
.side-user { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.side-user a { color: #9db8d2; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 14px; background: #fff; padding: 0 22px; min-height: 54px; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 40; }
.admin-topbar .pagetitle { font-size: 17px; font-weight: 700; color: var(--c-primary-dark); margin-right: auto; }
.admin-content { padding: 22px; }
.burger { display: none; font-size: 20px; cursor: pointer; }
.sbtoggle { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--c-primary); }
.stat-card .lbl { font-size: 13px; color: var(--c-text-2); }
.stat-card.accent .num { color: var(--c-accent); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=text], .toolbar select { padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 14px; background: #fff; }

/* 列编辑器 */
.colrow { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.colrow input { flex: 1; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 8px; }
.colrow .idx { color: var(--c-text-2); font-size: 13px; width: 34px; text-align: right; }
.colrow .del { border: none; background: #fdeaea; color: var(--c-danger); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }

.tag { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: 12.5px; }
.tag-blue { background: #e8f1fb; color: #1d5d94; }
.tag-green { background: #e6f7ed; color: #1c7a43; }
.tag-gray { background: #eef1f5; color: #667; }
.tag-orange { background: #fdf0e3; color: #b26214; }
.tag-red { background: #fdeaea; color: #a33; }

/* ---------- 操作日志表格 ---------- */
.log-table td { padding: 11px 16px; }
.log-table tbody tr:nth-child(even) td { background: #fafcfe; }
.log-table tbody tr:hover td { background: #f1f7fd; }
.log-table .log-time { white-space: nowrap; color: var(--c-text-2); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.log-table .log-admin { white-space: nowrap; }
.log-table .log-camp { max-width: 300px; }
.log-table .log-detail { color: var(--c-text); line-height: 1.55; }
.log-table .log-ip { white-space: nowrap; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.log-cam { display: inline-block; background: #eef4fa; color: #38618c; border: 1px solid #dbe7f2;
  border-radius: 6px; padding: 2px 9px; margin: 2px 4px 2px 0; font-size: 12.5px; white-space: nowrap; }
.log-table thead th { font-size: 13.5px; letter-spacing: .5px; }

.code-box { background: #1b2a3d; color: #d8e6f3; padding: 14px 18px; border-radius: 8px; font-family: Consolas, monospace; font-size: 13px; overflow-x: auto; white-space: pre; }

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .navburger { display: block; order: 3; }
  .navlinks { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .navtoggle:checked ~ .navlinks { display: flex; }
  .brand { font-size: 15.5px; flex: 1; min-width: 0; }

  .burger { display: block; }
  .sidebar { position: fixed; left: -240px; transition: left .2s; z-index: 60; }
  .sbtoggle:checked ~ .admin-layout .sidebar { left: 0; box-shadow: var(--shadow-lg); }
  .admin-content { padding: 14px; }
  .card { padding: 16px; }

  /* 工资明细：表格转卡片 */
  .mobile-cards { display: block; }
  .mobile-cards .table-wrap { display: none; }
  .salary-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
  .salary-card .row { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid #f0f4f8; }
  .salary-card .row:last-child { border-bottom: none; }
  .salary-card .row .k { color: var(--c-text-2); font-size: 13.5px; }
  .salary-card .row .v { font-variant-numeric: tabular-nums; text-align: right; }
  .salary-card .row .v.neg { color: var(--c-danger); font-weight: 600; }
  .salary-card .row.head { background: #f2f7fc; font-weight: 700; justify-content: center; color: var(--c-primary-dark); }
}
@media (min-width: 769px) {
  .mobile-cards { display: none; }
}

/* ============================ 富文本编辑器 ============================ */
.rt-editor{border:1px solid var(--c-border,#d8e2ec);border-radius:8px;background:#fff;overflow:hidden}
.rt-bar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;background:#f2f6fa;border-bottom:1px solid var(--c-border,#d8e2ec)}
.rt-group{display:inline-flex;gap:2px;padding:0 6px;border-right:1px solid #dde6ee}
.rt-group:last-child{border-right:none}
.rt-btn{border:1px solid transparent;background:transparent;border-radius:5px;padding:4px 8px;font-size:14px;cursor:pointer;color:#243b53;line-height:1.2}
.rt-btn:hover{background:#e3edf5;border-color:#cfe0ee}
.rt-sel{border:1px solid #cfdce8;border-radius:5px;padding:3px 4px;font-size:13px;max-width:130px;background:#fff}
.rt-colormenu{position:relative;display:inline-block}
.rt-colors{display:none;position:absolute;z-index:30;top:110%;left:0;background:#fff;border:1px solid #d8e2ec;border-radius:8px;box-shadow:0 6px 18px rgba(20,50,80,.15);padding:8px;grid-template-columns:repeat(6,22px);gap:6px}
.rt-colormenu.open .rt-colors{display:grid}
.rt-colors span{width:20px;height:20px;border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,.15)}
.rt-colors span:hover{transform:scale(1.15);border-color:#333}
.rt-area{padding:14px 18px;overflow-y:auto;line-height:1.7;font-size:15px;color:#1f2d3d;outline:none;word-break:break-all}
.rt-area:focus{background:#fcfdff}
.rt-area p{margin:0 0 .6em}
.rt-area table{border-collapse:collapse}
.rt-area td,.rt-area th{border:1px solid #9ab;padding:4px 8px;min-width:40px}
.rt-src{width:100%;border:0;padding:14px 18px;font-family:Consolas,monospace;font-size:13px;color:#33526b;background:#f8fafc;outline:none;resize:vertical}

/* ============================ 竖式工资条 ============================ */
.slip{border:1px solid #dce6ef;border-radius:10px;overflow:clip;max-width:560px;margin:0 auto}
.slip-row{display:flex;justify-content:space-between;align-items:center;padding:9px 22px;border-bottom:1px solid #eef3f8}
.slip-row.alt{background:#f7fafc}
.slip-row .k{color:#3c5a74;font-size:14.5px}
.slip-row .v{font-weight:600;font-size:14.5px;color:#1f6fb2;font-variant-numeric:tabular-nums}
.slip-row .v.neg{color:#d43b3b}
.slip-foot{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#f0f6fb;padding:12px 22px;font-size:14.5px;color:#24466a}
.slip-foot b{font-size:16px}
.slip-foot .neg{color:#d43b3b}

/* ============================ 动态密码实时对照 ============================ */
.otp-live{display:flex;align-items:center;gap:12px;background:#f2f9f2;border:1px solid #cfe8d8;border-radius:9px;padding:9px 14px;font-size:13px;color:#2c5e3f;margin:10px 0;flex-wrap:wrap}
.otp-live .ol-label{color:#4a6b7d}
.otp-live .ol-code{font-size:22px;letter-spacing:7px;color:#1d5e2f;font-variant-numeric:tabular-nums}
.otp-live .ol-remain{font-size:12px;color:#7f9aa8}

/* ============================ 密码强度实时提示 ============================ */
.flash-warn { background: #fff8e5; color: #8a6100; border: 1px solid #f2dfa8; }
.pwd-rules { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.pwd-rules span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px;
  background: #f4f6f9; color: #8b9aa8; border: 1px solid #e3e9f0; transition: all .15s; }
.pwd-rules span.ok { background: #e9f7ef; color: #1c7a43; border-color: #b9e6cb; }
.pwd-rules span.no { background: #fdeaea; color: #a33; border-color: #f3c1c1; }
.pwd-done-ico { width: 62px; height: 62px; margin: 4px auto 0; border-radius: 50%;
  background: #e9f7ef; color: #1c7a43; font-size: 34px; line-height: 62px; font-weight: 700; }
