
/* ===== 基础样式与设计令牌 ===== */
:root {
  --brand: #0f6bff;
  --brand-600: #0a56d6;
  --brand-50: #eef4ff;
  --brand-ring: rgba(15, 107, 255, .16);
  --ink: #0e1726;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --line: #e8ecf2;
  --line-2: #f1f4f8;
  --bg: #f4f6fa;
  --card: #ffffff;
  --ok: #0fa968;
  --warn: #f59e0b;
  --danger: #e5484d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -18px rgba(16, 24, 40, .28);
  --sidebar-w: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
/* 【2026-10-29·老板报「手机企业微信版一直在跳屏幕」】
 *
 * 原来是 `html, body { height: 100%; }`，在大屏电脑上没事，在手机 WebView 里是灾难：
 *   html 被钉死 844px（= 一屏高），body 里内容 2632px → 溢出。
 *   浏览器于是自己给 html 挂上 overflow:auto，变成「html 空转、body 才是实际滚动器」。
 *
 * 实测（企微 UA，390×844，滚到页面中部）：
 *   window.scrollY             = 0     ← 永远是 0
 *   scrollingElement.scrollTop = 0     ← maxScroll 也是 0，它根本不能滚
 *   document.body.scrollTop    = 485   ← 全系统只有 body 在滚
 *
 * 为什么这就是「跳屏」的根：
 *   浏览器所有原生滚动 API 默认都作用在 scrollingElement（也就是 html）上——
 *   scrollTo / scrollIntoView / 锚点跳转 / focus() 输入框自动滚动 / 键盘弹起时
 *   「把输入框滚进可视区」……每一次调用都对着一个「不能滚」的元素执行，
 *   本该滚 body 的动作就落空或跳变，表现为页面一碰就弹、输入时闪、来回抖。
 *
 * 修法：不再钉死高度，让 html/body 回到最普通的文档流，
 *   由 body 天然承担唯一滚动（浏览器默认行为，也是 iOS/安卓 WebView 最稳的形态）。
 *   滚动容器唯一了，原生 API 和我们的 getScroll/setScroll 才能对得上。
 *
 * 【2026-10-29 二次修正·老板反馈「还是在跳」】
 *   上一版写的是 `html { overflow-x: hidden }`，这是个隐蔽的坑：
 *   CSS 规范规定，当一个轴的计算值是 hidden、另一个轴是 visible 时，
 *   那个 visible 会被强制算成 **auto**。于是 html 又被变成了滚动容器（overflow-y:auto），
 *   和 body 形成「嵌套滚动」——手指在两者之间传递滚动，表现出来就是抖、跳。
 *   换成 clip 就能避开这条联动规则：clip 不会把另一轴变成 auto，html 彻底不参与滚动。
 */
html { height: auto; min-height: 100%; overflow-x: clip; overflow-y: visible; }
body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* 手机上防止横向「晃」：橡皮筋回弹只在纵向，横向锁死 */
  overscroll-behavior-x: none;
  /* 触摸滚动惯性：iOS 上加这一句才顺，不加会有「粘手」的顿挫感 */
  -webkit-overflow-scrolling: touch;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::selection { background: var(--brand-ring); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }

/* ===== 登录（高端版：深墨蓝 + 金细线 + 衬线大字） ===== */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.46fr .54fr;
  background: #03060c;
}
.login-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 34px 58px 30px; color: #fff;
  background:
    radial-gradient(1200px 820px at 78% 26%, rgba(20,66,150,.30), transparent 62%),
    radial-gradient(900px 700px at -4% 100%, rgba(8,36,92,.44), transparent 68%),
    linear-gradient(160deg, #02040a 0%, #050a14 42%, #061020 74%, #040a14 100%);
}
/* 深层环境光，极慢漂移 */
.qq-aurora {
  position: absolute; inset: -30%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(36,110,240,.16), transparent 72%) 78% 22% / 820px 820px no-repeat,
    radial-gradient(closest-side, rgba(0,170,210,.08), transparent 72%) 20% 94% / 660px 660px no-repeat;
  animation: qqDrift 30s ease-in-out infinite alternate;
}
@keyframes qqDrift {
  from { transform: translate3d(-.8%, .8%, 0) scale(1); }
  to   { transform: translate3d(1.6%, -1.6%, 0) scale(1.05); }
}
/* 数据流细线：从上往下慢慢落，不动声色但一看就不普通 */
.qq-stream {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .28;
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0 88px,
      rgba(120,190,255,.10) 88px 89px,
      transparent 89px 176px);
  background-size: 3px 100%;
  background-repeat: repeat-x;
  animation: qqStream 22s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
}
@keyframes qqStream { to { background-position: 0 176px; } }
.login-hero .grid-deco {
  position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image:
    linear-gradient(rgba(150,200,255,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,200,255,.9) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 28% 26%, #000 0%, transparent 76%);
          mask-image: radial-gradient(circle at 28% 26%, #000 0%, transparent 76%);
}
.qq-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 42% 38%, transparent 30%, rgba(0,0,0,.58) 100%);
}
.login-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 6; }
.login-brand .logo { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--brand); }

/* ---- 主舞台 ---- */
.qq-stage {
  position: relative; z-index: 6; flex: 1; display: grid;
  grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: center;
  padding: 14px 0 4px;
}
.qq-left { max-width: 600px; }

/* 入场 */
.qq-left > * { opacity: 0; transform: translateY(16px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.8,.3,1); }
.qq-hero.in .qq-left > * { opacity: 1; transform: none; }
.qq-hero.in .qq-eyebrow   { transition-delay: .04s; }
.qq-hero.in h1            { transition-delay: .13s; }
.qq-hero.in .qq-tagline   { transition-delay: .30s; }
.qq-hero.in .qq-caps-head { transition-delay: .40s; }
.qq-hero.in .qq-caps2     { transition-delay: .46s; }

.qq-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 8.5px; letter-spacing: .34em;
  color: rgba(178,208,240,.55); font-weight: 500; margin-bottom: 22px;
}
.qq-eyebrow .dot {
  width: 4px; height: 4px; border-radius: 50%; background: #d9bc85;
  box-shadow: 0 0 12px rgba(217,188,133,1); animation: qqBlink 3.6s ease-in-out infinite;
}
@keyframes qqBlink { 0%,100% { opacity: 1; } 50% { opacity: .28; } }

/* 主标题：衬线大字 + 金属压印，这是"贵"的来源 */
.login-hero .qq-left h1 {
  font-family: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "Noto Serif SC", serif;
  font-size: 38px; line-height: 1.4; margin: 0; font-weight: 400;
  letter-spacing: .02em; color: #eef4fb;
  text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 0 40px rgba(120,170,240,.18);
}
.login-hero .qq-left h1 .ql { display: block; }
.login-hero .qq-left h1 em {
  font-style: normal; font-weight: 600;
  background: linear-gradient(102deg, #b99656 0%, #f2e2bb 30%, #fffaf0 48%, #e8d3a4 66%, #a8874a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(200,160,90,.28));
}

/* 七七定位 */
.qq-tagline { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.qq-tagline .who {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 20px; font-weight: 600; letter-spacing: .16em; color: #fff;
  text-shadow: 0 0 30px rgba(130,180,255,.5);
}
.qq-tagline .who::before { content: "「"; color: rgba(217,188,133,.5); }
.qq-tagline .who::after  { content: "」"; color: rgba(217,188,133,.5); }
.qq-tagline .what {
  font-size: 10.5px; letter-spacing: .1em; color: rgba(168,196,230,.44); font-weight: 300;
}

/* ---- 能力清单 ---- */
.qq-caps-head { display: flex; align-items: center; gap: 14px; margin-top: 22px; margin-bottom: 2px; }
.qq-caps-head .t {
  font-size: 9.5px; letter-spacing: .26em; color: rgba(217,188,133,.72);
  font-weight: 500; white-space: nowrap;
}
.qq-caps-head .ln { flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(217,188,133,.26), rgba(217,188,133,0)); }
.qq-caps-head .cnt {
  font-size: 9px; letter-spacing: .1em; color: rgba(217,188,133,.4);
  font-family: ui-monospace, Menlo, monospace;
}

/* 竖排清单：左侧金色刻度序号 + 右侧两行说明，比方格更像"逐条播报" */
.qq-caps2 { display: flex; flex-direction: column; }
.qq-cap2 {
  position: relative; display: flex; align-items: flex-start; gap: 15px;
  padding: 9px 0 9px 0;
  border-bottom: 1px solid rgba(120,170,255,.065);
}
.qq-cap2:last-child { border-bottom: 0; }
/* 左侧序号：等宽金色，未点亮时暗 */
.qq-cap2 .idx {
  flex: none; width: 26px; padding-top: 1px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .06em; color: rgba(150,180,215,.22);
  transition: color .55s ease, text-shadow .55s ease;
}
.qq-cap2.on .idx { color: rgba(217,188,133,.95); text-shadow: 0 0 12px rgba(217,188,133,.55); }
/* 序号前的一道金线，点亮时抽长 */
.qq-cap2::before {
  content: ""; position: absolute; left: -14px; top: 14px; width: 0; height: 1px;
  background: linear-gradient(90deg, rgba(217,188,133,.9), rgba(217,188,133,0));
  transition: width .55s cubic-bezier(.3,1,.4,1);
}
.qq-cap2.on::before { width: 10px; }
.qq-cap2 .body { flex: 1; min-width: 0; opacity: .34; transform: translateX(0);
  transition: opacity .55s ease; }
.qq-cap2.on .body { opacity: 1; }
.qq-cap2 .n { display: flex; align-items: baseline; gap: 9px; }
.qq-cap2 .n b {
  font-size: 14.5px; font-weight: 500; color: #f2f7fe; letter-spacing: .06em;
}
.qq-cap2.on .n b { text-shadow: 0 0 18px rgba(140,190,255,.4); }
.qq-cap2 .n i {
  font-style: normal; font-size: 8px; letter-spacing: .16em;
  color: rgba(217,188,133,.42); font-family: ui-monospace, Menlo, monospace;
}
.qq-cap2 .d {
  font-size: 10.5px; line-height: 1.55; color: rgba(176,204,238,.72);
  margin-top: 5px; font-weight: 300; letter-spacing: .02em;
}
.qq-cap2 .d2 {
  font-size: 9.5px; line-height: 1.5; color: rgba(150,180,215,.34);
  margin-top: 1px; font-weight: 300; letter-spacing: .02em;
}

/* ---- 七七球：加大、破界、带金色刻度环 ---- */
.qq-right { display: grid; place-items: center; }
.qq-orb-col { display: flex; flex-direction: column; align-items: center; }
.qq-orb {
  position: relative; width: var(--orb, 300px); height: var(--orb, 300px);
  display: grid; place-items: center; flex: none;
  opacity: 0; transform: scale(.88);
  transition: opacity 1.5s ease .2s, transform 1.5s cubic-bezier(.22,.8,.3,1) .2s;
}
.qq-hero.in .qq-orb { opacity: 1; transform: none; }
.qq-orb-halo, .qq-orb-halo2 { position: absolute; border-radius: 50%; pointer-events: none; }
.qq-orb-halo {
  inset: -20%;
  background: radial-gradient(circle, rgba(52,124,242,.24), rgba(28,86,196,.08) 46%, transparent 70%);
  animation: qqBreath 7s ease-in-out infinite;
}
.qq-orb-halo2 {
  inset: -52%;
  background: radial-gradient(circle, rgba(18,64,158,.14), transparent 60%);
}
@keyframes qqBreath {
  0%,100% { transform: scale(1); opacity: .8; }
  50%     { transform: scale(1.05); opacity: 1; }
}
.qq-orb-body {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 66% 76%, rgba(0,190,255,.24), transparent 46%),
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 50% 50%, #1d59ba, #113a85 40%, #061d43 74%, #020a1e 100%);
  box-shadow:
    0 0 0 1px rgba(160,205,255,.18),
    0 0 46px rgba(28,104,214,.32),
    0 0 130px rgba(18,74,180,.18),
    inset 0 0 76px rgba(0,84,190,.24),
    inset 0 -32px 76px rgba(0,26,80,.6);
}
/* 外圈：金色极细刻度环（用 conic 做刻度） */
.qq-orb-orbit {
  position: absolute; inset: -18px; border-radius: 50%; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(217,188,133,.34) 0deg .35deg,
      transparent .35deg 4deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 calc(50% - 1px), #000 calc(50% - 1px));
          mask-image: radial-gradient(circle, transparent 0 calc(50% - 1px), #000 calc(50% - 1px));
  animation: qqSpin 90s linear infinite;
}
.qq-orb-orbit.o2 {
  inset: -46px; background: none;
  border: 1px solid rgba(140,190,255,.07);
  animation: qqSpin 64s linear infinite reverse;
}
@keyframes qqSpin { to { transform: rotate(360deg); } }
.qq-face {
  position: relative; z-index: 3;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 42px; font-weight: 600; letter-spacing: .12em; line-height: 1;
  color: #fff; user-select: none; transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(205,232,255,.85), 0 0 56px rgba(78,158,255,.6);
}
.qq-orb-cap { margin-top: 20px; text-align: center; }
.qq-orb-cap .a { font-size: 9.5px; letter-spacing: .24em; color: rgba(160,192,228,.4); }
.qq-orb-cap .b { font-size: 12px; color: rgba(217,188,133,.82); margin-top: 9px; letter-spacing: .1em; }

/* ---- 右侧登录卡 ---- */
.login-panel {
  display: flex; align-items: center; justify-content: center; padding: 40px 38px;
  background: linear-gradient(180deg, rgba(6,12,24,.86), rgba(3,7,14,.96));
  border-left: 1px solid rgba(120,170,255,.07);
  backdrop-filter: blur(22px);
}
.login-card {
  width: 100%; max-width: 330px; padding: 32px 28px 24px; border-radius: 16px;
  background: linear-gradient(168deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid rgba(150,190,250,.11);
  box-shadow: 0 26px 72px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.login-card h2 { font-size: 21px; color: #fff; font-weight: 500; }
.login-card .hint { color: rgba(170,200,240,.38); margin: 8px 0 22px; font-size: 11.5px; letter-spacing: .06em; }
.login-card .field { margin-bottom: 15px; }
.login-card .field label { color: rgba(160,192,228,.5); font-size: 10.5px; letter-spacing: .1em; }
.login-card .input {
  height: 43px; padding: 0 14px; border-radius: 9px; font-size: 13.5px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(150,190,250,.12); color: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-card .input::placeholder { color: rgba(150,180,215,.24); }
.login-card .input:focus {
  border-color: rgba(60,145,255,.5); background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(60,145,255,.09);
}
.login-card .btn-primary {
  width: 100%; height: 45px; margin-top: 6px; border: 0; border-radius: 9px;
  font-size: 14.5px; letter-spacing: .34em; font-weight: 500;
  background: linear-gradient(102deg, #1a63e8, #2a8bff 60%, #3d9bff);
  box-shadow: 0 12px 32px rgba(22,100,240,.34), inset 0 1px 0 rgba(255,255,255,.18);
  transition: box-shadow .24s, transform .14s;
}
.login-card .btn-primary:hover { box-shadow: 0 16px 40px rgba(22,100,240,.46), inset 0 1px 0 rgba(255,255,255,.22); }
.login-card .btn-primary:active { transform: translateY(1px); }
.login-card .tiny, .login-card .muted { color: rgba(150,180,215,.28) !important; }
.login-card .tiny a, .login-card .muted a { color: rgba(160,195,240,.42) !important; }
.login-card .login-err { color: #ff8f92; font-size: 12px; }
.login-card input[type="checkbox"] { accent-color: #2a8bff; }
.login-card .login-demo { color: rgba(150,180,215,.38); }
/* 页签：金色下划线，深色风格 */
.login-card .login-tabs { display: flex; gap: 26px; background: none; padding: 0; border-radius: 0;
  border-bottom: 1px solid rgba(150,190,250,.09); margin-bottom: 21px; }
.login-card .login-tab {
  background: none; border: 0; border-radius: 0; padding: 0 0 11px; cursor: pointer; box-shadow: none;
  font-size: 13px; font-weight: 400; color: rgba(160,190,225,.42);
  transition: color .2s;
}
.login-card .login-tab.active {
  background: none; color: #fff; font-weight: 400; box-shadow: none;
  border-bottom: 1.5px solid #d9bc85;
}
/* 卡顶一道金色起点线 */
.login-card::before {
  content: ""; display: block; width: 28px; height: 1px; margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(217,188,133,.85), rgba(217,188,133,0));
}




.quick-login .t { font-size: 12px; color: var(--ink-4); margin-bottom: 10px; }
.quick-login .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px;
  font-size: 12px; color: var(--ink-2); cursor: pointer; display: flex; gap: 6px; align-items: center; transition: .15s;
}
.acct-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.acct-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ===== 布局 ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: #0c1730; color: #c9d3e4;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; color: #fff; }
.sb-brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3b8bff, #0f6bff); color: #fff; }
.sb-brand .nm { font-weight: 650; font-size: 15px; letter-spacing: .02em; }
.sb-brand .en { font-size: 10px; color: #7087ab; letter-spacing: .14em; text-transform: uppercase; }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.sb-nav::-webkit-scrollbar { width: 4px; }
.sb-nav::-webkit-scrollbar-thumb { background: #253253; border-radius: 4px; }
.sb-group { font-size: 11px; color: #5d7096; padding: 16px 10px 6px; letter-spacing: .08em; }
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: #b7c4d9; cursor: pointer; font-size: 13.5px; position: relative; transition: .15s; user-select: none;
}
.sb-item:hover { background: #15233f; color: #fff; }
.sb-item.active { background: linear-gradient(90deg, rgba(15,107,255,.28), rgba(15,107,255,.08)); color: #fff; }
.sb-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #4c94ff;
}
.sb-item .icon { width: 17px; height: 17px; opacity: .85; }
.sb-item .badge-dot {
  margin-left: auto; background: #e5484d; color: #fff; font-size: 10.5px; min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.sb-user { border-top: 1px solid #1a2844; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.sb-user .meta { min-width: 0; }
.sb-user .meta b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.sb-user .meta span { font-size: 11.5px; color: #7087ab; }
.sb-user .logout { margin-left: auto; color: #7087ab; cursor: pointer; padding: 4px; border-radius: 6px; }

/* 【2026-10-27 晚】手机上退出登录原来只有这个 12px 的图标，而且侧边栏还在屏幕外
   （left:-240px），老板想退出根本找不到。手机端把它做成带文字的按钮，一眼能看到、
   手指好点（最小 32px 高）。 */
@media (max-width: 900px) {
  .sb-user .logout {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px; border-radius: 8px; min-height: 32px;
    background: rgba(229,72,77,.14); color: #ff9a9d;
    font-size: 12.5px; font-weight: 600;
  }
  .sb-user .logout::after { content: '退出登录'; }
  .sb-user .logout .icon { width: 15px; height: 15px; }
}
.sb-user .logout:hover { background: #1a2844; color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 15;
}
.topbar .crumb { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.topbar .crumb b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
/* ===== 实时同步状态（顶栏） ===== */
.live-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: #eef7f1; color: #1f7a4d; border: 1px solid #d6ecdf; transition: all .2s;
}
.live-tag i {
  width: 6px; height: 6px; border-radius: 50%; background: #21a366; position: relative;
}
.live-tag.live i { box-shadow: 0 0 0 0 rgba(33,163,102,.55); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(33,163,102,.5); }
  70% { box-shadow: 0 0 0 7px rgba(33,163,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,163,102,0); }
}
.live-tag.polling { background: #fff8e8; color: #96650a; border-color: #f4e2b8; }
.live-tag.polling i { background: #e0a112; animation: none; }
.live-tag.off { background: #f3f4f6; color: #7a8394; border-color: #e3e6eb; }
.live-tag.off i { background: #9aa3b2; animation: none; }

.online-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border-radius: 20px; font-size: 11.5px; color: var(--ink-2);
  background: #f5f7fb; border: 1px solid var(--line); white-space: nowrap;
}
.online-tag i { width: 6px; height: 6px; border-radius: 50%; background: #21a366; }
.online-tag b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 别人刚改了数据时的轻提示：绝对定位在顶栏下方，不挤压布局 */
.sync-hint {
  position: fixed; top: 70px; left: 50%; transform: translate(-50%, -12px);
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px; font-size: 12.5px;
  background: rgba(28,36,52,.92); color: #fff; box-shadow: 0 8px 24px rgba(20,30,50,.22);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 60;
}
.sync-hint.on { opacity: 1; transform: translate(-50%, 0); }
.sync-hint i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

@media (max-width: 900px) {
  .online-tag { display: none; }
  .live-tag { padding: 0 8px; font-size: 11px; }
}

.search-box {
  width: 240px; height: 34px; border: 1px solid var(--line); background: #f7f9fc; border-radius: 9px;
  display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--ink-4); font-size: 13px; cursor: pointer;
}
.search-box:hover { border-color: #d3dbe7; background: #fff; }
.search-kbd { margin-left: auto; font-size: 10.5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: #fff; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--line-2); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 1.5px solid #fff; }
.topbar .me { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); cursor: pointer; }
.topbar .me .nm { font-size: 13px; font-weight: 600; }
.topbar .me .rl { font-size: 11px; color: var(--ink-3); }

.page { padding: 24px 26px 48px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; }
.page-head .desc { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ===== 组件 ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 14.5px; }
.card-head .more { margin-left: auto; font-size: 12.5px; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; gap: 2px; }
.card-head .more:hover { color: var(--brand); }
.card-body { padding: 16px 18px; }

.grid { display: grid; gap: 16px; }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.btn {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #cbd5e3; background: #fbfcfe; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(15,107,255,.4); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { background: #fff; border-color: #f3c9ca; color: var(--danger); }
.btn-danger:hover { background: #fef3f3; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--line-2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 40px; padding: 0 20px; font-size: 14px; }
.btn .icon { width: 15px; height: 15px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; background: #fff; color: var(--ink);
  outline: none; transition: .15s; width: 100%;
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 80px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.select { appearance: none; background-image: 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='%23667085' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

.avatar {
  border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center;
  font-weight: 600; flex: none; overflow: hidden; font-size: 12px; width: 32px; height: 32px;
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; background: var(--line-2); color: var(--ink-3); white-space: nowrap;
}
.tag.ok { background: #e7f8ef; color: #0b8a55; }
.tag.warn { background: #fef6e7; color: #b76e00; }
.tag.danger { background: #fdecec; color: #c62a2f; }
.tag.info { background: var(--brand-50); color: var(--brand-600); }
.tag.purple { background: #f3eeff; color: #6b3fd4; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 10px 14px;
  background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #fafcff; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .strong { color: var(--ink); font-weight: 550; }
.tbl .clickable { cursor: pointer; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 10px 0 12px; font-size: 13.5px; color: var(--ink-3); cursor: pointer; position: relative; border: 0; background: none;
  display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.tab .cnt { background: var(--line-2); color: var(--ink-3); border-radius: 999px; padding: 0 6px; font-size: 11px; min-width: 18px; text-align: center; }
.tab.active .cnt { background: var(--brand-50); color: var(--brand); }

.segmented { display: inline-flex; background: #f1f4f8; border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px;
  color: var(--ink-3); cursor: pointer;
}
.segmented button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

.progress { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

.empty { text-align: center; padding: 56px 20px; color: var(--ink-4); font-size: 13px; }
.empty .icon { width: 40px; height: 40px; color: #cbd5e3; margin-bottom: 10px; }

.kpi { padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--ink-3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.kpi .val small { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.kpi .delta { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.kpi .delta b { color: var(--ok); font-weight: 600; }
.kpi .delta b.down { color: var(--danger); }
.kpi .kicon { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.kpi .kicon.green { background: #e7f8ef; color: var(--ok); }
.kpi .kicon.orange { background: #fef6e7; color: #d98400; }
.kpi .kicon.purple { background: #f3eeff; color: #6b3fd4; }

/* 审批流转 */
.flow { display: flex; flex-direction: column; }
.flow-item { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.flow-item:last-child::before { display: none; }
.flow-item .node {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; border: 2px solid var(--line); color: var(--ink-4); z-index: 1;
}
.flow-item .node .icon { width: 14px; height: 14px; }
.flow-item.done .node { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow-item.current .node { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.flow-item.pending .node { border-style: dashed; }
.flow-item .body { flex: 1; padding-top: 2px; }
.flow-item .body b { font-size: 13px; font-weight: 600; }
.flow-item .body .meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.flow-item .body .remark { margin-top: 6px; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--ink-2); }
.flow-item .time { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; padding-top: 4px; }

/* 详情字段 */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.dl .item .k { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.dl .item .v { font-size: 13.5px; color: var(--ink); }
.dl .full { grid-column: 1 / -1; }

/* 切换开关 */
.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d5dce7; cursor: pointer; transition: .2s; flex: none; border: 0; padding: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

/* 弹层 */
.overlay { position: fixed; inset: 0; background: rgba(12, 23, 48, .38); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .16s ease; }
.modal { background: #fff; border-radius: 16px; width: 100%; box-shadow: var(--shadow-lg); max-height: 88vh; display: flex; flex-direction: column; animation: popIn .18s cubic-bezier(.2,.8,.3,1); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: #fcfdff; border-radius: 0 0 16px 16px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.985) } to { opacity: 1; transform: none } }

.toast-stack { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #101d33; color: #fff; padding: 9px 16px; border-radius: 9px; font-size: 13px; display: flex; gap: 8px;
  align-items: center; box-shadow: var(--shadow-lg); animation: popIn .2s ease; max-width: 520px;
}
.toast .icon { width: 15px; height: 15px; color: #5ce0a2; }
.toast.error .icon { color: #ff8a8d; }

/* 时间轴 */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-item .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c6d3e6; margin-top: 4px; flex: none; z-index: 1; }
.tl-item.brand .dot { border-color: var(--brand); background: var(--brand); }
.tl-item .txt { font-size: 13px; }
.tl-item .tm { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

/* 考勤网格 */
.att-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.att-dow { text-align: center; font-size: 11.5px; color: var(--ink-3); padding: 4px 0; }
.att-day {
  aspect-ratio: 1.35; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; padding: 6px;
  font-size: 12px; display: flex; flex-direction: column; cursor: default; position: relative;
}
.att-day .d { font-weight: 550; font-size: 12px; }
.att-day .s { font-size: 10px; margin-top: auto; }
.att-day.empty { border: 0; background: transparent; }
.att-day.normal { background: #eefaf3; border-color: #d3f2e2; }
.att-day.normal .s { color: #0b8a55; }
.att-day.late { background: #fff8e9; border-color: #fbecc7; }
.att-day.late .s { color: #b76e00; }
.att-day.leave { background: #f1f5ff; border-color: #dce6ff; }
.att-day.leave .s { color: var(--brand-600); }
.att-day.miss { background: #fdeeee; border-color: #f8d6d7; }
.att-day.miss .s { color: #c62a2f; }
.att-day.off .s { color: var(--ink-4); }
.att-day.today { outline: 2px solid var(--brand); outline-offset: 1px; }

.hbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hbar .nm { width: 64px; font-size: 12.5px; color: var(--ink-2); flex: none; }
.hbar .track { flex: 1; height: 8px; border-radius: 999px; background: #f1f4f8; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 999px; }
.hbar .num { width: 36px; text-align: right; font-size: 12px; color: var(--ink-3); flex: none; }
.hbar-grid { display: grid; }
.hbar-grid .hbar .nm { width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-grid .hbar { margin-bottom: 10px; }

/* 打卡 */
.punch-card {
  background: linear-gradient(135deg, #0b1e3f, #123f8f 60%, #0f6bff); color: #fff; border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.punch-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -100px; background: rgba(255,255,255,.07); }
.punch-time { font-size: 40px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.punch-date { color: rgba(255,255,255,.7); font-size: 12.5px; }
.punch-btn {
  margin-top: 18px; height: 40px; padding: 0 20px; border-radius: 10px; border: 0; background: #fff; color: var(--brand-600);
  font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1;
}
.punch-btn:hover { background: #f0f5ff; }
.punch-btn:disabled { background: rgba(255,255,255,.25); color: #fff; cursor: default; }
.punch-info { display: flex; gap: 24px; margin-top: 16px; position: relative; z-index: 1; }
.punch-info div { font-size: 12px; color: rgba(255,255,255,.7); }
.punch-info b { display: block; font-size: 15px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 搜索面板 */
.cmdk { width: 100%; max-width: 560px; align-self: flex-start; margin-top: 8vh; }
.cmdk .input { height: 46px; font-size: 15px; border-radius: 10px; }
.cmdk-list { margin-top: 10px; max-height: 380px; overflow-y: auto; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cmdk-item:hover, .cmdk-item.hl { background: var(--brand-50); }
.cmdk-item .type { margin-left: auto; font-size: 11px; color: var(--ink-4); }

.notice-detail h1 { font-size: 21px; line-height: 1.45; margin-bottom: 10px; }
.notice-meta { display: flex; gap: 14px; color: var(--ink-4); font-size: 12.5px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; flex-wrap: wrap; }
.notice-body { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.notice-body p { margin-bottom: 12px; }
.notice-body h4 { font-size: 15px; margin: 18px 0 8px; color: var(--ink); }
.notice-body ul { margin: 0 0 12px; padding-left: 20px; }
.notice-body li { margin-bottom: 6px; }
.notice-body .quote { border-left: 3px solid var(--brand); background: var(--brand-50); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }

/* 看板 */
.feed-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .txt { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.feed-item .txt b { color: var(--ink); font-weight: 600; }
.feed-item .tm { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover .t { color: var(--brand); }
.todo-item .t { font-size: 13.5px; font-weight: 500; transition: .15s; }
.todo-item .m { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.todo-item .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 5px; }

.muted { color: var(--ink-3); }
.tiny { font-size: 12px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.nowrap { white-space: nowrap; }
.flex1 { flex: 1; min-width: 0; }
.right { margin-left: auto; }

@media (max-width: 1180px) {
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  /* 手机端：主视觉收成顶部横幅，标题 + 七七球并排，能力卡留一格宽的竖排 */
  .login-hero { padding: 20px 20px 24px; min-height: 0; }
  .login-hero .grid-deco { opacity: .05; background-size: 34px 34px; }
  .qq-aurora { inset: -35%; opacity: .9; }
  .qq-vignette { background: radial-gradient(ellipse at 46% 42%, transparent 46%, rgba(0,0,0,.34) 100%); }
  .login-brand .logo { width: 32px; height: 32px; border-radius: 9px; }
  .login-brand > div > div:first-child { font-size: 13.5px !important; }
  .qq-stage { grid-template-columns: 1fr; gap: 0; padding: 18px 0 4px; }
  .qq-left { max-width: none; display: grid; grid-template-columns: minmax(0,1fr) auto;
    column-gap: 10px; align-items: center; }
  .qq-eyebrow { grid-column: 1; grid-row: 1; font-size: 7px; letter-spacing: .22em; margin-bottom: 12px; }
  .qq-eyebrow .dot { width: 4px; height: 4px; }
  .login-hero .qq-left h1 { grid-column: 1; grid-row: 2; font-size: 19px; line-height: 1.45; letter-spacing: .01em; }
  .qq-tagline { grid-column: 1; grid-row: 3; margin-top: 11px; gap: 8px; align-self: start; }
  .qq-tagline .who { font-size: 14px; letter-spacing: .1em; }
  .qq-tagline .what { display: none; }
  /* 球放右上角，跨标题三行；能力清单在下方独占整行 */
  .qq-right { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end; }
  .qq-orb { --orb: 78px !important; }
  .qq-orb-orbit { inset: -7px; }
  .qq-orb-orbit.o2 { inset: -15px; }
  .qq-face { font-size: 13.5px; letter-spacing: .06em; }
  .qq-orb-cap { display: none; }
  /* 能力清单：整行铺开，压小间距 */
  .qq-caps-head { grid-column: 1 / -1; margin-top: 18px; margin-bottom: 2px; }
  .qq-caps-head .t { font-size: 8.5px; letter-spacing: .18em; }
  .qq-cap2 { padding: 9px 0; gap: 11px; }
  .qq-cap2::before { left: -10px; top: 11px; }
  .qq-cap2 .idx { width: 20px; font-size: 8.5px; }
  .qq-cap2 .n b { font-size: 12.5px; letter-spacing: .04em; }
  .qq-cap2 .n i { font-size: 7.5px; }
  .qq-cap2 .d { font-size: 10px; line-height: 1.55; margin-top: 4px; }
  .qq-cap2 .d2 { display: none; }
  .qq-stream { opacity: .18; }
  .login-panel { padding: 24px 18px 40px; align-items: flex-start; }
  .login-card { padding: 26px 22px 22px; border-radius: 16px; }
  .sidebar { position: fixed; left: -240px; transition: .2s; }
  .sidebar.open { left: 0; }
  .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .search-box { display: none; }
  .page { padding: 16px; }
}
@media (max-width: 640px) {
  .g-4 { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .topbar .me .meta-txt { display: none; }
}


/* ===== 移动端底部快捷栏 ===== */
.mobile-bar { display:none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mb-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; border: 0; background: none; color: var(--ink-3); font-size: 10.5px; cursor: pointer; position: relative; pointer-events: auto; }
  .mb-item .icon { width: 20px; height: 20px; }
  .mb-item.active { color: var(--brand); }
  .mb-item .mb-dot { position: absolute; top: 2px; right: 50%; margin-right: -16px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
  .page { padding-bottom: 86px !important; }
  .sb-nav { padding-bottom: 90px; }
}

/* ===== 台账计算卡 / 表单栅格 ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .field span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.form-grid .field em { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-grid .field input, .form-grid .field select {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--ink); background: #fff; outline: 0; width: 100%;
}
.form-grid .field input:focus, .form-grid .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,107,255,.10); }

.calc-box {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #f8faff, #f4f7fd); border: 1px solid var(--line-2);
}
.calc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 5px 0; color: var(--ink-2); }
.calc-row b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.calc-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 14px; }
.calc-row.total span { font-weight: 600; color: var(--ink); }
.calc-row.total b { font-size: 18px; }

.sec-title { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 10px; }

/* 台账表格：紧凑 + 横向滚动 */
/* min-width:0 必需：table-wrap 常嵌在 grid/flex 里，默认 min-width:auto 会被
   内部 min-width:1180px 的表格撑开，导致整页出现横向滚动条 */
.table-wrap { overflow-x: auto; min-width: 0; max-width: 100%; }
.table-wrap table { min-width: 1180px; }
.table-wrap th, .table-wrap td { white-space: nowrap; }

/* ===== 【2026-10-27 晚】台账表格：表头固定 + 首列固定 + 表内滚动 =====
 * 老板原话：「要发工资和填表的人太多，每次都要拉到最底下、左右滑动，很不方便」
 * 改造前：133 个人把整页撑成一条长龙，滑到底部后表头早滚出屏幕，不知道哪列是金额；
 *         左右拖到「实发工资」时，左边姓名也看不见了，对不上是谁的钱。
 * 改造后：表头钉在表格顶部，姓名列钉在左边，超过 40 行时表格自己滚（页面不用滚）。 */
.table-wrap-scroll { max-height: var(--tbl-max, calc(100vh - 300px)); overflow: auto; }
.tbl.tbl-scroll thead th { position: sticky; top: 0; z-index: 3; }
/* 首列固定：背景必须不透明，不然横向滚动时下层内容会透上来 */
.tbl th.th-sticky, .tbl td.td-sticky {
  position: sticky; left: 0; z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--line-2);
}
.tbl.tbl-scroll th.th-sticky { z-index: 4; background: #fafbfd; }
/* 悬停整行高亮时，固定列也要跟着变色，否则那一格「不响应」看着像坏了 */
.tbl tbody tr:hover td.td-sticky { background: #fafcff; }
/* 表内滚动时右下角给一点滚动条样式，方便发现「这里还能滚」 */
.table-wrap-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap-scroll::-webkit-scrollbar-thumb { background: #cfd6e2; border-radius: 6px; }
.table-wrap-scroll::-webkit-scrollbar-thumb:hover { background: #b6c0d1; }
.table-wrap-scroll::-webkit-scrollbar-track { background: transparent; }
/* 手机端：表格高度按屏幕算，表头首列同样固定，手指左右滑动看金额列 */
@media (max-width: 900px) {
  /* 【2026-10-29·老板报「数据列表页手不动也自己上下抽」的真正根因】
   * 上面那行 `max-height: calc(100vh - 260px); overflow: auto` 在手机上挖出了
   * 第二个滚动区：外层 html 在滚，表格自己也在滚。两层嵌套时，手指在内层滚到底，
   * 滚动要不要传给外层由系统判断，这种"滚动链"在手机 WebView 上经常会错判，
   * 表现就是——手明明没动，页面自己上下来回抽。
   *
   * 更糟的是 100vh 本身：手机地址栏收起/展开、企微顶部工具栏显隐，都会让 100vh 变化，
   * 一变表格高度就重算，页面跟着跳。
   *
   * 手机上的正确形态是：表格跟着页面一起流，只有一个滚动（页面本身）。
   * 数据再多也是往下滑，比"表内套个滚动框"自然得多。
   * 表头 sticky 仍然保留（贴在页面顶部），首列固定也保留，横向滚动照常。 */
  .table-wrap-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }
  .tbl th.th-sticky, .tbl td.td-sticky { box-shadow: 2px 0 4px -2px rgba(16,24,40,.12); }
  /* 表头跟着页面滚时，要避开顶栏高度，否则会被顶栏盖住 */
  .tbl.tbl-scroll thead th { top: 0; }
}
/* 卡片与栅格子项同样要给 min-width:0，否则宽表格会把整列顶宽 */
.card { min-width: 0; }
.grid > * { min-width: 0; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* 迷你统计块 */
.stat-mini { padding: 10px 12px; border-radius: 10px; background: #f8f9fc; border: 1px solid var(--line-2); }
.stat-mini .v { font-size: 20px; font-weight: 650; margin: 2px 0; font-variant-numeric: tabular-nums; }

/* 图表切换按钮 */
.seg-btn-group { display: inline-flex; gap: 4px; padding: 3px; background: #f3f5f9; border-radius: 9px; }
.seg-btn { border: 0; background: transparent; font-size: 12.5px; color: var(--ink-2); padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,40,.10); }

/* 身份证识别 */
.id-info { margin-top: 8px; }
.id-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.id-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  padding: 5px 10px; border-radius: 8px; background: #f4f6fa; color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.id-chip.ok { background: #e9f9f1; color: var(--ok-ink); border-color: #c5eeda; }
.id-chip.warn { background: #fdf6e7; color: #9a6b00; border-color: #f0dca8; }
.id-chip.bad { background: #fdeeee; color: var(--danger); border-color: #f6d5d5; }

/* 表格导入 */
.import-drop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 26px 20px;
  text-align: center; cursor: pointer; transition: .16s; background: #fbfcfe; color: var(--ink-2);
}
.import-drop:hover, .import-drop.hover { border-color: var(--brand); background: #f3f7ff; }
.import-drop svg { width: 26px; height: 26px; color: var(--brand); }
.import-drop.loading { opacity: .6; pointer-events: none; }
.import-stat { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 10px; }
.import-stat b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.import-map { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 12px; color: var(--ink-3); align-items: center; }
.import-err { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fdeeee; color: var(--danger); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.tbl-mini th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11.5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); background: #fafbfd; position: sticky; top: 0; }
.tbl-mini td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); }

/* ===== 拍照识别身份证 ===== */
.ocr-wrap { display: flex; flex-direction: column; gap: 14px; }
.ocr-drop {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 34px 20px;
  text-align: center; background: linear-gradient(180deg, #fbfcff, #f5f8ff);
}
.ocr-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: #eaf1ff; color: var(--brand); }
.ocr-ico svg { width: 26px; height: 26px; }
.ocr-tip { font-size: 14.5px; color: var(--ink); }
.ocr-preview { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0e1420; }
.ocr-preview img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.ocr-retake { position: absolute; right: 10px; top: 10px; border: none; border-radius: 8px; padding: 6px 12px;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 12.5px; cursor: pointer; }
.ocr-retake:hover { background: #fff; }
.ocr-progress { display: flex; flex-direction: column; gap: 8px; }
.ocr-bar { height: 6px; border-radius: 99px; background: #e9edf5; overflow: hidden; }
.ocr-bar i { display: block; height: 100%; width: 2%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #6ea8ff); transition: width .3s ease; }
.ocr-result { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; background: #fcfdff; }
.ocr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.ocr-row:last-of-type { border-bottom: none; }
.ocr-row > span { width: 84px; color: var(--ink-3); flex: none; font-size: 12.5px; }
.ocr-row > b { font-weight: 600; color: var(--ink); word-break: break-all; }
.ocr-row > em { margin-left: auto; font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; flex: none; }
.ocr-row > em.ok { background: #e9f9f1; color: var(--ok-ink); }
.ocr-row > em.bad { background: #fdeeee; color: var(--danger); }
.ocr-raw { margin-top: 10px; }
.ocr-raw summary { cursor: pointer; font-size: 12px; color: var(--ink-3); }
.ocr-raw pre { margin: 8px 0 0; padding: 10px; border-radius: 8px; background: #f5f7fb; font-size: 11.5px;
  color: var(--ink-2); max-height: 140px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.ocr-fail { padding: 12px 14px; border-radius: 10px; background: #fff8e8; color: #8a5b00; font-size: 13px; line-height: 1.7; }
.overlay-stack { z-index: 1200; }

/* ===== 劳务合同待办 ===== */
.lc-todo { border-bottom: 1px solid var(--line-2); background: #fffdf7; }
.lc-todo-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 13px;
  font-weight: 600; color: #8a5b00; background: #fff8e8; }
.lc-todo-head b { color: #b45309; }
.lc-todo-head .tiny { font-weight: 400; margin-left: 4px; }
.lc-todo-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-top: 1px dashed #f2e4c8; font-size: 13px; }
.lc-todo-item:hover { background: #fffbf0; }
.lc-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; flex: none; }
.lc-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.lc-main b { font-weight: 600; }

/* ===== 登录页双通道 ===== */
.login-tabs { display: flex; gap: 4px; background: #f2f4f8; border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.login-tab {
  flex: 1; border: 0; background: transparent; font-size: 13px; font-weight: 500;
  color: var(--ink-2); padding: 8px 0; border-radius: 8px; cursor: pointer; transition: all .16s;
}
.login-tab:hover { color: var(--ink); }
.login-tab.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16,24,40,.10); }
.login-demo {
  margin-top: 8px; padding: 8px 11px; border-radius: 8px; font-size: 12px; line-height: 1.6;
  background: #eff8ff; color: #0b5cbf; border: 1px solid #cfe4ff;
}
.login-demo b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .08em; }

/* ===== 个人中心 ===== */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pf-wrap { display: flex; flex-direction: column; }
.pf-hero { position: relative; overflow: hidden; padding: 0; }
.pf-hero-bg {
  position: absolute; inset: 0 0 auto; height: 96px;
  background: linear-gradient(120deg, #0f6bff 0%, #3b8bff 48%, #7fb4ff 100%);
  opacity: .96;
}
.pf-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 30%, rgba(255,255,255,.22) 0 1px, transparent 1px);
  background-size: 14px 14px; opacity: .55;
}
.pf-hero-main { position: relative; display: flex; align-items: flex-end; gap: 16px; padding: 44px 22px 18px; flex-wrap: wrap; }
.pf-hero-main .pf-sub { color: rgba(255,255,255,.78); }
.pf-hero-main .pf-sub b { color: #fff; }
.pf-avatar {
  position: relative; width: 76px; height: 76px; border-radius: 20px; flex: none;
  background: #eaf2ff; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(16,24,40,.14);
  display: grid; place-items: center; cursor: pointer; overflow: hidden;
  font-size: 22px; font-weight: 650; color: var(--brand); letter-spacing: .04em;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-mask {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(16,24,40,.55); color: #fff; opacity: 0; transition: opacity .18s;
  font-style: normal;
}
.pf-avatar:hover .pf-avatar-mask { opacity: 1; }
.pf-avatar-mask .icon { width: 20px; height: 20px; }
.pf-hero-info { flex: 1; min-width: 220px; }
.pf-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-name-row h3 { font-size: 19px; font-weight: 650; margin: 0; letter-spacing: .01em; }
.pf-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 4px; vertical-align: 1px; }
.pf-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.pf-sub b { color: var(--ink-2); font-weight: 600; font-family: ui-monospace, monospace; }
.pf-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.82); }
.pf-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pf-meta .icon { width: 13px; height: 13px; opacity: .8; }
.pf-meta b { color: #fff; font-weight: 550; }
.pf-hero-actions { flex: none; padding-bottom: 2px; }

.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pf-dl { display: flex; flex-direction: column; }
.pf-dl-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px;
}
.pf-dl-row:last-child { border-bottom: 0; }
.pf-dl-row > span { color: var(--ink-3); font-size: 12.5px; flex: none; }
.pf-dl-row > b { color: var(--ink); font-weight: 500; text-align: right; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pf-empty { color: var(--ink-3); font-weight: 400; }
.pf-tip {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding: 9px 11px;
  border-radius: 8px; background: #f7f9fc; color: var(--ink-3); font-size: 11.5px; line-height: 1.65;
}
.pf-tip .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; }

/* 登录记录时间线 */
.pf-timeline { list-style: none; margin: 0; padding: 0; }
.pf-timeline li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.pf-timeline li:last-child { border-bottom: 0; }
.pf-timeline i { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--brand); }
.pf-timeline i.bad { background: var(--danger); }
.pf-timeline i.ok { background: #0b8a55; }
.pf-timeline .t1 { font-size: 12.8px; color: var(--ink); }
.pf-timeline .t2 { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.pf-timeline time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); flex: none; white-space: nowrap; }


/* 密码强度条 */
.pf-pwd-bar { height: 4px; border-radius: 3px; background: #eef1f6; margin-top: 8px; overflow: hidden; }
.pf-pwd-bar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .22s, background .22s; background: #e5e7eb; }

/* 设备列表 */
.pf-devices { display: flex; flex-direction: column; gap: 10px; }
.pf-device {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 11px; background: #fff;
}
.pf-device .di {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.pf-device .dc { flex: 1; min-width: 0; }
.pf-device .dn { font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.pf-device .dm { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }

  .pf-hero-main { padding: 40px 16px 16px; }
  .pf-hero-actions { width: 100%; }
  .pf-hero-actions .btn { width: 100%; }
}

/* ===== 抖七七 · 全息科技悬浮球 + 面板 ===== */
.ai-bubble {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  padding: 0; overflow: visible;
  background: radial-gradient(circle at 32% 26%, #4a9dff 0%, #1e6fe8 38%, #0b3ea8 72%, #061f5c 100%);
  color: #fff; display: grid; place-items: center;
  box-shadow:
    0 0 0 1px rgba(120, 190, 255, .5),
    0 0 18px rgba(47, 123, 245, .55),
    0 0 42px rgba(47, 123, 245, .3),
    0 10px 26px rgba(8, 40, 110, .38);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, opacity .18s ease;
  isolation: isolate;
}
/* 全息球外层光晕脉冲 */
.ai-bubble::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(64, 156, 255, .4), transparent 68%);
  animation: dj-pulse 2.8s ease-in-out infinite;
}
/* 顶部高光弧 */
.ai-bubble::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.06) 34%, transparent 52%);
}
@keyframes dj-pulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.14); opacity: .3; }
}

/* 球体内部核心 */
.dj-core {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 68% 78%, rgba(0, 229, 255, .28) 0%, transparent 42%),
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.22) 0%, transparent 36%);
}
/* 轨道环：三圈不同倾角，各自旋转（亮青色，压住深蓝底） */
.dj-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1.5px solid transparent;
}
.dj-ring-1 {
  inset: 6px;
  border-top-color: #7fdcff; border-bottom-color: rgba(127, 220, 255, .35);
  filter: drop-shadow(0 0 3px rgba(127, 220, 255, .8));
  animation: dj-spin 5.5s linear infinite;
}
.dj-ring-2 {
  inset: 12px;
  border-left-color: rgba(127, 220, 255, .8); border-right-color: rgba(127, 220, 255, .25);
  filter: drop-shadow(0 0 3px rgba(127, 220, 255, .6));
  animation: dj-spin 8s linear infinite reverse;
}
.dj-ring-3 {
  inset: 18px;
  border-top-color: rgba(210, 245, 255, .9);
  filter: drop-shadow(0 0 2px rgba(210, 245, 255, .9));
  animation: dj-spin 3.4s linear infinite;
}
@keyframes dj-spin { to { transform: rotate(360deg); } }

/* 扫描光带：模拟全息投影的刷新线 */
.dj-sweep {
  position: absolute; left: -20%; width: 140%; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(150, 220, 255, .42), transparent);
  filter: blur(2px);
  animation: dj-scan 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dj-scan {
  0% { top: -26%; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 球心里的「七七」 */
.dj-face {
  position: relative; z-index: 2;
  font-size: 17px; font-weight: 800; letter-spacing: -1px; line-height: 1;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff; user-select: none; transform: translateY(-.5px);
  text-shadow: 0 0 10px rgba(190, 232, 255, 1), 0 0 22px rgba(90, 170, 255, .9), 0 1px 2px rgba(3, 20, 60, .8);
}

/* 玻璃反光点 */
.dj-glare {
  position: absolute; top: 12%; left: 22%; width: 30%; height: 22%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.72), transparent 70%);
  filter: blur(1.5px);
}

.ai-bubble:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 0 0 1px rgba(150, 210, 255, .7),
    0 0 24px rgba(47, 123, 245, .75),
    0 0 58px rgba(47, 123, 245, .42),
    0 14px 32px rgba(8, 40, 110, .45);
}
.ai-bubble:active { transform: translateY(-1px) scale(.99); }
.ai-bubble.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

.ai-panel {
  position: fixed; right: 26px; bottom: 26px; z-index: 91;
  width: 388px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 60px);
  background: #fff; border-radius: 16px; border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(16, 24, 40, .18), 0 4px 12px rgba(16, 24, 40, .08);
  display: none; flex-direction: column; overflow: hidden;
  transform: translateY(10px) scale(.98); opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.ai-panel.on { display: flex; transform: none; opacity: 1; }

.ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fafaff, #fff); flex: none;
}
.ai-hd-l { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, #1554d0, #2f7bf5); color: #fff;
  display: grid; place-items: center;
}
/* 面板头部的抖七七头像：一颗小全息球 */
.ai-avatar-xd {
  font-size: 10.5px; font-weight: 800; user-select: none; letter-spacing: -.5px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 32% 26%, #4a9dff, #1e6fe8 45%, #0b3ea8 100%);
  box-shadow: 0 0 10px rgba(47, 123, 245, .45), inset 0 0 6px rgba(190, 232, 255, .35);
  text-shadow: 0 0 6px rgba(190, 232, 255, .8);
}
/* 「智能 AI」标签 */
.ai-badge-ai {
  display: inline-block; vertical-align: 1px; margin-left: 5px;
  padding: 1px 5px; border-radius: 5px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .2px;
  color: #1554d0; background: #e8f1ff; border: 1px solid #cfe1ff;
  text-shadow: none;
}
.ai-hd-l b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ai-hd-l i { display: block; font-size: 11px; color: var(--ink-3); font-style: normal; margin-top: 2px; }
.ai-hd-r { display: flex; gap: 4px; }
.ai-mini {
  border: none; background: transparent; color: var(--ink-3); cursor: pointer;
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
}
.ai-mini:hover { background: var(--bg-2, #f2f4f7); color: var(--ink-1); }

.ai-body { flex: 1; overflow-y: auto; padding: 14px; background: #fcfcfd; }
.ai-welcome { padding: 8px 4px; }
.ai-wel-t { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ai-wel-s { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.ai-wel-lead { font-size: 12.5px; color: var(--ink-2, #444); line-height: 1.7; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2, #e7eaf0); }
.ai-wel-lead b { color: #e11d48; font-variant-numeric: tabular-nums; }

/* 【2026-10-30】抖七七每日主动播报：打开面板先报今天该干的活，每行可点直达 */
.ai-brief { margin-top: 14px; border: 1px solid var(--line-2, #e7eaf0); border-radius: 12px; overflow: hidden; background: #fff; }
.ai-brief-t { font-size: 12px; font-weight: 700; color: var(--brand, #2563eb); padding: 9px 12px 6px; letter-spacing: 1px; }
.ai-brief-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; border: 0; border-top: 1px dashed var(--line-2, #e7eaf0);
  background: transparent; padding: 9px 12px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2, #444); text-align: left;
}
.ai-brief-row:hover { background: #f5f8ff; }
.ai-brief-row b { flex: none; color: var(--brand, #2563eb); font-variant-numeric: tabular-nums; }
.ai-brief-row span { min-width: 0; }
/* 主动洞察：按严重度着色（阻断红 / 提醒橙） */
.ai-brief-row.lv-block { background: #fff5f5; }
.ai-brief-row.lv-block:hover { background: #ffecec; }
.ai-brief-row.lv-block b { color: #e11d48; }
.ai-brief-row.lv-warn { background: #fffaf0; }
.ai-brief-row.lv-warn:hover { background: #fff3e0; }
.ai-brief-row.lv-warn b { color: #d97706; }
.ai-brief-more { justify-content: center; color: var(--brand, #2563eb); font-weight: 600; }
.ai-brief-more span { min-width: 0; text-align: center; }
.ai-brief-more b { display: none; }

.ai-msg { display: flex; margin-bottom: 12px; }
.ai-msg.me { justify-content: flex-end; }
.ai-bub {
  max-width: 86%; padding: 9px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.68; word-break: break-word;
}
.ai-msg.me .ai-bub {
  background: linear-gradient(145deg, #4f46e5, #6366f1); color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg.ai .ai-bub {
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-1);
  border-bottom-left-radius: 4px;
}
.ai-bub b { font-weight: 600; }
.ai-bub code {
  background: rgba(79, 70, 229, .08); color: #4f46e5;
  padding: 1px 5px; border-radius: 4px; font-size: 12px;
}
.ai-li { display: block; padding-left: 2px; }

.ai-thinking { display: flex; gap: 4px; align-items: center; height: 18px; }
.ai-thinking i {
  width: 6px; height: 6px; border-radius: 50%; background: #c4c7d0;
  animation: aiDot 1.2s infinite ease-in-out;
}
.ai-thinking i:nth-child(2) { animation-delay: .16s; }
.ai-thinking i:nth-child(3) { animation-delay: .32s; }
@keyframes aiDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-sugg {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; flex: none;
}
.ai-chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 11.5px; padding: 6px 10px; border-radius: 20px; cursor: pointer;
  transition: all .15s ease; text-align: left; line-height: 1.35;
}
.ai-chip:hover { border-color: #6366f1; color: #4f46e5; background: #f8f8ff; }

.ai-input {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--line-2); flex: none; background: #fff;
}
.ai-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 10px; font-size: 13px; line-height: 1.5; font-family: inherit;
  max-height: 120px; outline: none; background: #fff;
}
.ai-input textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }
.ai-input button {
  width: 34px; height: 34px; flex: none; border-radius: 9px; border: none;
  background: linear-gradient(145deg, #4f46e5, #6366f1); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.ai-input button:hover { filter: brightness(1.06); }
.ai-foot {
  font-size: 10.5px; color: var(--ink-4, #98a2b3); text-align: center;
  padding: 0 0 8px; background: #fff; flex: none;
}

@media (max-width: 900px) {
  .ai-bubble { right: 16px; bottom: 82px; width: 54px; height: 54px; }
  .dj-face { font-size: 13.5px; }
  .dj-ring-1 { inset: 6px; }
  .dj-ring-2 { inset: 11px; }
  .dj-ring-3 { inset: 16px; }
  .ai-panel {
    right: 8px; left: 8px; bottom: 8px; width: auto;
    height: calc(100vh - 24px); max-height: none; border-radius: 14px;
  }
}

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .ai-bubble::before, .dj-ring, .dj-sweep { animation: none; }
}

/* ===== 数据中心 ===== */
.dc-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.dc-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; transition: all .15s ease;
}
.dc-tab svg { width: 14px; height: 14px; opacity: .65; }
.dc-tab:hover { border-color: #b9c0ff; color: var(--brand); background: #fafaff; }
.dc-tab.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 3px 10px rgba(15, 107, 255, .22);
}
.dc-tab.on svg { opacity: 1; }
.dc-tab i {
  font-style: normal; font-size: 10.5px; padding: 1px 5px; border-radius: 8px;
  background: rgba(0, 0, 0, .06); color: inherit; margin-left: 1px;
}
.dc-tab.on i { background: rgba(255, 255, 255, .26); }

.dc-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.dc-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
  border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px;
  background: #fff; height: 34px;
}
.dc-search svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.dc-search input {
  border: none; outline: none; flex: 1; font-size: 13px; background: transparent;
  font-family: inherit; height: 100%;
}
.dc-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 107, 255, .09); }
.dc-count { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dc-count b { color: var(--ink-1); font-weight: 600; }

.dc-wrap { max-height: calc(100vh - 300px); overflow: auto; }
.dc-tbl { font-size: 12.5px; }
.dc-tbl thead th {
  position: sticky; top: 0; z-index: 2; background: #f7f8fa;
  white-space: nowrap; cursor: pointer; user-select: none;
}
.dc-tbl thead th:hover { background: #eef0f4; color: var(--brand); }
.dc-tbl thead th.on { color: var(--brand); background: #eef3ff; }
.dc-ar { font-size: 10px; margin-left: 3px; opacity: .8; }
.dc-tbl tbody td { white-space: nowrap; }
.dc-mute { color: var(--ink-4, #98a2b3); }
.dc-tag {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-size: 11.5px; line-height: 1.6; white-space: nowrap;
}
.dc-tag.ok { background: #e7f7ef; color: #0a7c4a; }
.dc-tag.warn { background: #fff4e5; color: #b25b00; }
.dc-tag.bad { background: #fdecec; color: #c0272d; }

@media (max-width: 900px) {
  .dc-tabs { gap: 5px; }
  .dc-tab { padding: 6px 10px; font-size: 12px; }
  .dc-wrap { max-height: none; }
}
.dc-empty {
  padding: 42px 20px; text-align: center; font-size: 13px; color: var(--ink-3);
  border-top: 1px solid var(--line-2);
}

/* ===== 数据中心 · 经营分析区块 ===== */
.dc-sec-title {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-1);
}
.dc-sec-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.dc-sec-title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.dc-note { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin-top: 10px; }
.dc-note b { color: var(--ink-1); font-weight: 600; }
.dc-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dc-flow-c { background: var(--bg-2, #f7f9fc); border-radius: 10px; padding: 10px 12px; }
.dc-flow-v { font-size: 20px; font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; line-height: 1.2; }
.dc-flow-v span { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.dc-flow-l { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 1200px) {
  .dc-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 可点击 KPI 卡片：悬停浮起反馈 */
.kpi[data-go], .kpi[data-go] * { cursor: pointer; }
.kpi[data-go] { transition: transform .15s, box-shadow .15s; }
.kpi[data-go]:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,107,255,.12); }

/* ===== 手机端紧凑模式（≤640px） ===== */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .main, .page { overflow-x: hidden; }
  body { font-size: 13.5px; }
  .page { padding: 12px 12px 96px !important; }
  .page-head { margin-bottom: 14px; gap: 10px; }
  .page-head h2 { font-size: 18px; }
  .page-head .desc { font-size: 12px; }
  .page-head .actions { width: 100%; margin-left: 0; }
  .page-head .actions .btn { flex: 1; height: 38px; }

  /* 卡片收紧 */
  .card-head { padding: 12px 14px; }
  .card-body { padding: 12px 14px; }
  .card-head h3 { font-size: 13.5px; }

  /* KPI 数字收小 */
  .kpi { padding: 14px; gap: 6px; }
  .kpi .val { font-size: 22px; }
  .kpi .kicon { width: 28px; height: 28px; right: 12px; top: 12px; }

  /* 表格：去掉强制 1180px 宽，按内容自然展开 + 紧凑字号
     手机上保留最小内容宽度让表格左右滑动，而不是把 14 列硬压进 390px 屏
     （压扁会让数字挤成竖排、点不准按钮——这是「不流畅」的主因） */
  .table-wrap table { min-width: 640px !important; }
  /* 列少的小表（wrapClass=fit）：一屏放下，不横滑（2026-11-01 二手单利润表手机截断） */
  .table-wrap.fit table { min-width: 0 !important; }
  .table-wrap.fit th, .table-wrap.fit td { white-space: normal; }
  .tbl { font-size: 12.5px; }
  .tbl th { padding: 8px 10px; font-size: 11.5px; }
  .tbl td { padding: 9px 10px; }
  .tbl td .btn { height: 30px; padding: 0 10px; font-size: 12px; }

  /* 手机表格：首列（姓名）吸附在左侧，左右滑动时始终看得到是谁 */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .tbl th:first-child, .tbl td:first-child {
    position: sticky; left: 0; z-index: 2;
    background: var(--card, #fff);
    box-shadow: 2px 0 4px rgba(17, 24, 39, .05);
  }
  .tbl thead th:first-child { z-index: 3; background: #fafbfd; }
  .tbl tbody tr:hover td:first-child { background: #fafcff; }

  /* 弹窗：贴边 + 更高可用高度 */
  .overlay { padding: 10px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; height: 42px; font-size: 14.5px; }

  /* 标签页可横滑 */
  .tabs { gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; padding: 9px 0 11px; }

  /* 触控目标加大 */
  .input, .select { height: 40px; font-size: 15px; }
  .form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .form-grid .field input, .form-grid .field select { height: 40px; font-size: 15px; }
  .btn { height: 38px; }
  .btn-sm { height: 32px; }
  .segmented button { height: 32px; }

  /* 底部快捷栏遮挡 */
  .mobile-bar .mb-item { font-size: 10px; }

  /* 顶栏：隐藏实时同步胶囊和用户名，标题只留一行省略 */
  .topbar { height: 54px; padding: 0 12px; gap: 10px; }
  .topbar .live-tag { display: none; }
  .topbar .me { display: none; }
  .topbar .crumb { flex: 1; min-width: 0; overflow: hidden; gap: 6px; }
  .topbar .crumb > * { white-space: nowrap; flex: none; }
  .topbar .crumb b { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
  .topbar .iconbtn, .topbar button:not(.mb-item) { flex: none; }

  /* 页面标题区按钮：允许换行铺满 */
  .page-head .actions { flex-wrap: wrap; gap: 8px; }
  .page-head .actions .btn { flex: 1 1 44%; height: 38px; padding: 0 10px; }

  /* 卡片顶部筛选行：搜索框占满一行，下拉各占半行，批量按钮区换行 */
  .card .row select.select { flex: 1 1 44% !important; width: auto !important; min-width: 0; }
  .card .row .input { flex: 1 1 100% !important; width: auto !important; }
  .card .row .row.right { width: 100% !important; margin-left: 0 !important; flex-wrap: wrap; gap: 6px !important; }
  .card .row .row.right .btn { flex: 1 1 30%; }
  .card .row .tiny { white-space: nowrap; }

  /* 头像/详情 */
  .dl { gap: 10px 14px; }
  .toast { max-width: calc(100vw - 32px); font-size: 12.5px; }
}

/* ===== 【2026-10-27 晚】金额加锁样式（查工资/代理费需三方会签） =====
 * 老板原话：「需要财务、前台、总经办同意才能查到，不能什么时候都可以查」
 * 这里只负责「看着不别扭」：锁着的时候给一块讲得清的说明，而不是一堆问号。 */
.lv-lock {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: #94a3b8; font-weight: 500;
  background: #f1f5f9; border-radius: 5px; padding: 2px 7px;
  white-space: nowrap;
}
.lv-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 44px 24px; margin: 0 auto; max-width: 460px; text-align: center;
}
.lv-ico { font-size: 30px; line-height: 1; opacity: .55; }
.lv-t { font-size: 15px; font-weight: 700; color: var(--ink-1, #0f172a); }
.lv-d { font-size: 12.5px; line-height: 1.85; color: var(--ink-3, #64748b); max-width: 380px; }
.lv-r { color: #b42318; }
@media (max-width: 900px) {
  .lv-box { padding: 32px 16px; }
  .lv-d { font-size: 12px; }
}

/* ===== 全链路闭环（2026-10-30）=====
 * 七段体检台：每一环显示「通了多少 / 卡了多少」，卡住的列出缺什么、给去补的入口。
 * 设计口径：只读体检，不写数据；判断调用系统真正的计算函数，保证体页面一致。 */
.chain-wrap { display: flex; flex-direction: column; gap: 12px; }
.chain-hero {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-radius: 10px; font-size: 14px; line-height: 1.7;
}
.chain-hero.ok { background: rgba(16,163,74,.09); color: #15803d; border: 1px solid rgba(16,163,74,.22); }
.chain-hero.bad { background: rgba(217,45,32,.07); color: #b42318; border: 1px solid rgba(217,45,32,.2); }
.chain-hero b { font-weight: 800; }
.chain-next {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 16px; border-radius: 10px; font-size: 13.5px;
  background: rgba(15,107,255,.06); border: 1px solid rgba(15,107,255,.16);
}
.chain-step {
  border: 1px solid var(--line, #e5e7eb); border-radius: 11px;
  padding: 13px 15px; background: #fff;
}
.chain-step.chain-bad { border-color: rgba(217,45,32,.28); background: rgba(217,45,32,.018); }
.chain-step.chain-warn { border-color: rgba(245,158,11,.32); background: rgba(245,158,11,.022); }
.chain-step.chain-ok { border-color: rgba(16,163,74,.24); }
.chain-step-head { display: flex; align-items: center; gap: 11px; }
.chain-step-no {
  flex: none; width: 25px; height: 25px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; color: #fff; background: var(--brand, #0f6bff);
}
.chain-step-title { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chain-step-title b { font-size: 14.5px; font-weight: 700; color: var(--ink-1, #0f172a); }
.chain-step-stat { flex: none; display: flex; align-items: center; gap: 4px; font-size: 13px; }
.chain-ok { font-weight: 800; color: #15803d; }
.chain-total { color: var(--ink-3, #64748b); }
.chain-sep { color: #cbd5e1; }
.chain-badge { margin-left: 5px; font-size: 11px; padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.chain-badge.bad { background: rgba(217,45,32,.1); color: #b42318; }
.chain-badge.ok { background: rgba(16,163,74,.11); color: #15803d; }
.chain-bar { height: 4px; border-radius: 3px; background: #eef1f5; margin: 10px 0 2px; overflow: hidden; }
.chain-bar i { display: block; height: 100%; border-radius: 3px; background: #16a34a; }
.chain-bad .chain-bar i { background: #d92d20; }
.chain-warn .chain-bar i { background: #f59e0b; }
.chain-extra { margin-top: 8px; font-size: 12.5px; color: var(--ink-2, #475569); }
.chain-gap {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px dashed var(--line, #e5e7eb);
}
.chain-gap-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chain-gap-who { font-size: 13px; font-weight: 600; color: var(--ink-1, #0f172a); }
.chain-gap-why { font-size: 12px; color: var(--ink-3, #64748b); line-height: 1.6; }
.chain-more { font-size: 12px; color: var(--ink-3, #64748b); padding: 7px 0 0; }
.chain-batch { margin-top: 9px; }
.chain-foot { padding: 4px 2px; line-height: 1.8; }

/* ===== 手机版人性化（2026-10-30 凌晨 老板提「手机版和电脑版要人性化、好用」）=====
 * 痛点清单（手机 390px 实测截图）：
 *   ① KPI 卡片竖排占满首屏 → 查任何东西都要先划一屏（根因：900px 断点把网格全压成 1 列）
 *   ② 右下角 AI 悬浮球压在列表内容上，且贴着底部导航
 *   ③ 表格在手机上只能横向拖，看一行数据来回滚
 *   ④ 全链路闭环页的「6/9 · 3项卡住」统计在窄屏挤错位
 *   ⑤ 顶栏面包屑被截断（「抖聘人才 > 合…」），浪费顶部黄金位置
 * 电脑端信息密度本来可以，只做小修。以下全部只动样式，不碰数据和逻辑。 */

/* ① KPI 卡片手机 2 列化：首屏就能看到 4 张卡 + 列表开头 */
@media (max-width: 900px) {
  /* g-2 多用于表单字段竖排，保持 1 列；KPI 常用的 g-3/g-4/g-5 改 2 列 */
  .g-3, .g-4, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px 14px; gap: 6px; }
  .kpi .val { font-size: 20px; }
  .kpi .lbl { font-size: 11.5px; }
  .kpi .delta { font-size: 11px; }
  .kpi .kicon { width: 27px; height: 27px; right: 10px; top: 10px; border-radius: 8px; }
  .kpi .kicon .icon { width: 15px; height: 15px; }
}
@media (max-width: 640px) {
  /* 覆盖旧规则「640 以下 g-4 变 1 列」——那正是竖排占满首屏的元凶之一 */
  .g-3, .g-4, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ② 悬浮球：手机上收小、贴右、抬高避开底部导航（56px） */
@media (max-width: 900px) {
  .ai-bubble { width: 40px; height: 40px; right: 10px; bottom: calc(62px + 8px); box-shadow: 0 0 0 1px rgba(120,190,255,.5), 0 2px 10px rgba(47,123,245,.4); }
  .ai-bubble .d7x { font-size: 13px !important; }
}

/* ③ 表格粘性首列：手机横拖时第一列（姓名/企业名）钉住不跑 */
@media (max-width: 900px) {
  .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl th:first-child, .tbl td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: #fff;
    box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .12);
  }
  .tbl thead th:first-child { z-index: 3; background: #f8fafc; }
  .tbl tr:nth-child(even) td:first-child { background: #fafbfc; }
  /* 手机上字号和内边距收紧，一屏多看两列 */
  .tbl td, .tbl th { padding: 9px 10px; font-size: 12.5px; }
}

/* ④ 闭环页统计在窄屏不挤错位：数字组不许换行，标题允许收缩 */
@media (max-width: 900px) {
  .chain-step-stat { flex: none; white-space: nowrap; }
  .chain-step-head { flex-wrap: wrap; }
  .chain-step-title { flex: 1 1 100%; }
  /* 顶部红条/绿条是 flex 容器，正文变成匿名 item 被按字断行（「282 处卡住」碎成四行）。
     改回块级流：图标随文字内联，文字整段排 */
  .chain-hero { display: block; line-height: 1.75; }
  .chain-hero .icon { display: inline-block; vertical-align: -4px; margin-right: 6px; }
  .chain-hero b { white-space: nowrap; }
}

/* ⑤ 顶栏面包屑：手机上只显示当前页名，公司名和箭头藏掉（防截断） */
@media (max-width: 640px) {
  .topbar .crumb span, .topbar .crumb > .icon:first-child, .topbar .crumb .icon { display: none; }
  .topbar .crumb b { font-size: 14px; }
}

