/* ============================================================
   布局样式 —— 登录页 / 侧边栏 / 顶栏 / 主内容区（UI优化版）
   ============================================================ */

/* ==================== 登录页（视觉升级） ==================== */
.auth-page {
  min-height: 100vh; display: flex; align-items: stretch;
  background: linear-gradient(135deg, #0b2a4a 0%, #114a82 50%, #1a6fb5 100%);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.22), transparent 68%);
  top: -220px; right: -160px;
  animation: float 6s ease-in-out infinite;
}
.auth-page::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,142,230,.25), transparent 68%);
  bottom: -180px; left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}
/* 装饰网格背景 */
.auth-page > .grid-deco {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 40%, #000 40%, transparent 80%);
}

.auth-left {
  flex: 1.15; display: flex; flex-direction: column; justify-content: center;
  padding: 60px 90px; color: #fff; position: relative; z-index: 2;
}
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 56px; }
.auth-brand .logo {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  box-shadow: 0 10px 30px rgba(245,166,35,.45);
  animation: float 4s ease-in-out infinite;
}
.auth-brand .name { font-size: 23px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.auth-brand .name span { display: block; font-size: 11px; font-weight: 400; opacity: .65; letter-spacing: 2.5px; margin-top: 3px; }

.auth-title { font-size: 40px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.auth-title .hl {
  background: linear-gradient(135deg, #f5a623, #ffd591);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-desc { font-size: 15px; line-height: 1.95; opacity: .85; max-width: 480px; margin-bottom: 48px; }

.auth-features { display: flex; gap: 48px; flex-wrap: wrap; }
.auth-feat-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  padding: 20px 24px; border-radius: var(--radius-md);
  min-width: 140px;
  transition: all .25s;
}
.auth-feat-item:hover {
  background: rgba(255,255,255,.10);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.auth-feat-item .num {
  font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, #f5a623, #ffd591);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.auth-feat-item .lbl { font-size: 13px; opacity: .78; margin-top: 6px; }

.auth-right {
  flex: .85; display: flex; align-items: center; justify-content: center; padding: 40px;
  position: relative; z-index: 2;
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.08);
  position: relative;
  animation: scaleIn .5s cubic-bezier(.4,0,.2,1) both;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.auth-card h2 {
  font-size: 24px; color: var(--text-strong); margin-bottom: 6px; font-weight: 700;
}
.auth-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }

.auth-tabs {
  display: flex; background: var(--bg-soft); border-radius: 10px; padding: 5px;
  margin-bottom: 28px; border: 1px solid var(--border-color);
}
.auth-tab {
  flex: 1; padding: 10px 8px; text-align: center; font-size: 14px;
  color: var(--text-muted); border-radius: 7px; cursor: pointer;
  transition: all .22s; font-weight: 500;
}
.auth-tab.active {
  background: #fff; color: var(--brand-primary-2);
  box-shadow: 0 2px 8px rgba(11,42,74,.08);
  font-weight: 600;
}

.auth-quick { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border-color); }
.auth-quick .tip { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.quick-accounts { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-account {
  padding: 6px 14px; border-radius: 18px; background: var(--bg-soft);
  font-size: 12px; color: var(--text-base); cursor: pointer;
  border: 1px solid var(--border-color); transition: all .2s;
  font-weight: 500;
}
.quick-account:hover {
  background: var(--grad-primary); color: #fff; border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,74,130,.25);
}
.quick-account .qa-name { font-size: 10px; opacity: .6; margin-left: 4px; }
.quick-account .role-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px; flex: none;
}
.quick-account:hover .role-dot { box-shadow: 0 0 0 3px rgba(255,255,255,.25) !important; }
.quick-loading { font-size: 11px; color: var(--text-faint); padding: 4px 8px; }

/* ---------- 局域网 / 连接状态卡片（左侧深色区上的浅色玻璃卡） ---------- */
.auth-lan-box {
  margin-top: 28px; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.auth-lan-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; color: #fff; margin-bottom: 8px;
}
.auth-lan-head.is-online { color: #6ee7b7; }
.auth-lan-head.is-offline { color: #fcd34d; }
.auth-net-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: #94a3b8;
}
.auth-net-dot.is-checking { background: #94a3b8; animation: pulse 1.4s ease-in-out infinite; }
.auth-net-dot.is-online { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.8); animation: pulse 2s ease-in-out infinite; }
.auth-net-dot.is-offline { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.7); }
.auth-lan-urls { font-size: 12px; color: rgba(255,255,255,.82); line-height: 1.9; display: none; }
.auth-lan-line .ico { margin-right: 2px; }
.auth-lan-line code {
  padding: 2px 7px; border-radius: 5px; font-size: 11.5px;
  font-family: Consolas, Monaco, monospace; word-break: break-all;
}
.auth-lan-line code.lc-local { background: rgba(99,102,241,.28); color: #e0e7ff; }
.auth-lan-line code.lc-lan { background: rgba(16,185,129,.28); color: #d1fae5; }
.auth-copy-btn {
  font-size: 11px; padding: 2px 10px; margin-left: 6px;
  height: auto; line-height: 1.5; border-radius: 5px;
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff;
}
.auth-copy-btn:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.6); color: #fff; }
.auth-lan-tip { margin-top: 6px; color: rgba(255,255,255,.62); font-size: 11.5px; line-height: 1.7; }

/* ---------- 密码显隐切换 ---------- */
.input-affix .form-control.has-toggle { padding-right: 44px; }
.input-affix.no-icon .form-control { padding-left: 14px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s; padding: 0;
}
.pwd-toggle:hover { color: var(--brand-primary-2); background: var(--bg-soft); }
.pwd-toggle:active { transform: translateY(-50%) scale(.92); }

/* ---------- Caps Lock 提示 ---------- */
.caps-tip {
  display: none; align-items: center; gap: 6px;
  margin-top: 7px; font-size: 12px; color: #b45309;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px;
  padding: 6px 10px;
}
.caps-tip .caps-ico { font-weight: 700; }

/* ---------- 记住账号 / 安全提示 ---------- */
.auth-options {
  display: flex; align-items: center; justify-content: space-between;
  margin: -4px 0 16px; font-size: 12.5px;
}
.remember-chk {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-base); cursor: pointer; user-select: none;
}
.remember-chk input { width: 14px; height: 14px; accent-color: var(--brand-primary-2); cursor: pointer; }
.remember-chk:hover { color: var(--brand-primary-2); }
.auth-sec-tip { color: var(--text-faint); font-size: 11.5px; }

/* ---------- 登录错误条 ---------- */
.auth-error {
  display: none; align-items: center; gap: 8px;
  margin-top: 14px; padding: 9px 12px; border-radius: var(--radius-sm);
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 12.5px; line-height: 1.5;
}
.auth-error-ico {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-danger-2); color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: -2px;
}
.form-control.has-error {
  border-color: var(--brand-danger-2) !important;
  box-shadow: 0 0 0 4px rgba(255,77,79,.10) !important;
}

/* ---------- 登录按钮 loading ---------- */
.btn-spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 7px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: -2px;
}
.btn.is-loading { opacity: .82; cursor: not-allowed; }
.btn.is-loading:active { transform: none; }

/* ---------- 登录失败抖动 ---------- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.auth-card.shake { animation: shake .42s ease; }

/* ==================== 应用主体布局 ==================== */
.app-shell { display: flex; min-height: 100vh; }

/* 侧边栏（升级：渐变背景、悬停动效、活动态） */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  color: #c7d4e6;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  box-shadow: 4px 0 24px rgba(11,42,74,.12);
}
.sidebar::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.08), transparent);
}
.sidebar-brand {
  height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.sidebar-brand::after {
  content: ''; position: absolute; bottom: 0; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.sidebar-brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(245,166,35,.4);
}
/* 图片LOGO适配：白底衬垫 · 等比缩放不裁切 */
.sidebar-brand img.logo {
  background: #fff; object-fit: contain; padding: 2px; box-sizing: border-box;
}
.sidebar-brand .name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25; }
.sidebar-brand .name span { display: block; font-size: 10.5px; font-weight: 400; opacity: .55; letter-spacing: 1.2px; margin-top: 2px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.nav-group-title {
  font-size: 11px; color: rgba(199,212,230,.45);
  padding: 18px 14px 8px; letter-spacing: 1.5px; font-weight: 600;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.nav-group-title:hover { opacity: .85; }
.nav-group-title .nav-caret {
  font-size: 10px; opacity: .6; transition: transform .15s;
}
.nav-group-title.is-collapsed { opacity: .7; }
/* 普通分组仅增加分组间距 */
.nav-group-title.nav-group--gap { margin-top: 8px; }
/* 专栏分组：醒目色块，颜色由 CSS 变量统一驱动（原 inline style 抽离） */
.nav-group-title.nav-group--section {
  margin-top: 12px; padding: 8px 14px 2px;
  font-size: 12px; font-weight: 700; letter-spacing: normal; text-transform: none;
  border-left: 3px solid var(--nav-accent);
  border-radius: 0 6px 0 0;
  color: var(--nav-text);
  background: var(--nav-bg, transparent);
}
.nav-group-title--dispatch   { --nav-accent:#e74c3c; --nav-text:#c0392b; --nav-bg:linear-gradient(90deg,#fff5f5 0%,#e3f2fd 100%); }
.nav-group-title--injurydisp { --nav-accent:#ef4444; --nav-text:#b91c1c; --nav-bg:linear-gradient(90deg,#fef2f2 0%,#fff7ed 100%); }
.nav-group-title--mkt        { --nav-accent:#10b981; --nav-text:#00b894; --nav-bg:linear-gradient(90deg,#ecfdf5 0%,#fff7ed 100%); }
.nav-group-title--judge      { --nav-accent:#8e44ad; --nav-text:#5e35b1; --nav-bg:linear-gradient(90deg,#f3f0ff 0%,transparent 100%); }
.nav-group-title--lawcase    { --nav-accent:#d4a017; --nav-text:#1e3a5f; --nav-bg:linear-gradient(90deg,#eef4ff 0%,#fff8e1 100%); }
.nav-group-title--crm        { --nav-accent:#06b6d4; --nav-text:#0e7490; --nav-bg:linear-gradient(90deg,#ecfeff 0%,#e0f2fe 100%); }
.nav-group-title--fleet      { --nav-accent:#f97316; --nav-text:#c2410c; --nav-bg:linear-gradient(90deg,#fff7ed 0%,#fef2f2 100%); }
.nav-group-title--cs         { --nav-accent:#ec4899; --nav-text:#be185d; --nav-bg:linear-gradient(90deg,#fdf2f8 0%,#faf5ff 100%); }
.nav-group-title--lg         { --nav-accent:#10b981; --nav-text:#047857; --nav-bg:linear-gradient(90deg,#ecfdf5 0%,#f0fdfa 100%); }
.nav-group-title--worker     { --nav-accent:#d97706; --nav-text:#b45309; --nav-bg:linear-gradient(90deg,#fffbeb 0%,#fef3c7 100%); }
.nav-group-title--ins        { --nav-accent:#6366f1; --nav-text:#4338ca; --nav-bg:linear-gradient(90deg,#eef2ff 0%,#f5f3ff 100%); }
.nav-group-title--st         { --nav-accent:#f59e0b; --nav-text:#b45309; --nav-bg:linear-gradient(90deg,#fffbeb 0%,#fef3c7 100%); }
.nav-group-title--fm         { --nav-accent:#f43f5e; --nav-text:#be123c; --nav-bg:linear-gradient(90deg,#fff1f2 0%,#ffe4e6 100%); }
.nav-group-title--dc         { --nav-accent:#64748b; --nav-text:#334155; --nav-bg:linear-gradient(90deg,#f8fafc 0%,#f1f5f9 100%); }
.nav-group-title--sf         { --nav-accent:#16a34a; --nav-text:#15803d; --nav-bg:linear-gradient(90deg,#f0fdf4 0%,#dcfce7 100%); }
.nav-group-title--al         { --nav-accent:#ea580c; --nav-text:#c2410c; --nav-bg:linear-gradient(90deg,#fff7ed 0%,#ffedd5 100%); }
.nav-group-title--edu        { --nav-accent:#2563eb; --nav-text:#1d4ed8; --nav-bg:linear-gradient(90deg,#eff6ff 0%,#dbeafe 100%); }
.nav-group-title--saf        { --nav-accent:#dc2626; --nav-text:#b91c1c; --nav-bg:linear-gradient(90deg,#fef2f2 0%,#ecfdf5 100%); }
/* ===== v20261010 十大顶级模块：金色模块头（可折叠）+ 子分组小标（静态） ===== */
.nav-module-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 6px 2px; padding: 9px 12px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(212,175,55,.30), rgba(212,175,55,.08));
  border: 1px solid rgba(212,175,55,.40);
  color: #f3d98b; font-size: 13.5px; font-weight: 800; letter-spacing: .5px;
  cursor: pointer; user-select: none;
}
.nav-module-title:first-child { margin-top: 0; }
.nav-module-title .nav-caret { font-size: 10px; opacity: .75; transition: transform .15s; }
.nav-module-title:hover { filter: brightness(1.1); }
.nav-module-title.is-collapsed { opacity: .8; }
.nav-module-title.is-collapsed .nav-caret { transform: rotate(-90deg); }
.nav-subtitle {
  font-size: 10.5px; color: rgba(199,212,230,.52);
  padding: 10px 14px 2px; letter-spacing: 1.2px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; color: rgba(199,212,230,.82); cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  margin-bottom: 3px; position: relative;
  border: 1px solid transparent;
}
.nav-item .ic { font-size: 17px; width: 20px; text-align: center; transition: transform .2s; }
.nav-item:hover {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.06);
}
.nav-item:hover .ic { transform: scale(1.1); }
.nav-item.active {
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px;
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-accent-2));
  border-radius: 3px;
}
.nav-item.active .ic { transform: scale(1.08); }
/* ===== 全员置顶快捷入口：录入人伤案件 ===== */
.nav-quick-add {
  margin: 4px 12px 10px !important;
  padding: 11px 14px !important;
  background: linear-gradient(135deg, #ff7a45, #f5a623) !important;
  color: #fff !important; font-weight: 700;
  border: 1px solid rgba(255,255,255,.25) !important;
  box-shadow: 0 6px 16px rgba(245,166,35,.42);
}
.nav-quick-add:hover {
  background: linear-gradient(135deg, #ff8f5e, #ffb347) !important;
  color: #fff !important; transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(245,166,35,.55);
}
.nav-quick-add .ic { font-size: 17px; }
/* 第二个快捷入口「新建法律咨询」：蓝紫渐变，与人伤橙橙按钮成组 */
.nav-quick-consult {
  margin-top: -4px !important;
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  box-shadow: 0 6px 16px rgba(37,99,235,.42);
}
.nav-quick-consult:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  box-shadow: 0 9px 22px rgba(37,99,235,.55);
}
.nav-quick-hot {
  margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255,255,255,.26); color: #fff;
  padding: 2px 7px; border-radius: 9px;
}
.nav-item .badge {
  margin-left: auto;
  background: linear-gradient(135deg, #f5a623, #ff7a45);
  color: #fff; font-size: 10.5px;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245,166,35,.4);
}

.sidebar-foot {
  padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; position: relative;
}
.sidebar-foot::before {
  content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}
.sync-status { display: flex; align-items: center; gap: 10px; color: rgba(138,160,189,.92); padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.sync-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-success);
  box-shadow: 0 0 0 3px rgba(31,175,122,.22), 0 0 10px var(--brand-success);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform: scale(1);} 50%{opacity:.55; transform: scale(1.2);} }

/* 主区 */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

/* 顶栏（升级：更清爽、阴影） */
.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; padding: 0 28px; gap: 18px;
  position: sticky; top: 0; z-index: 50;
}
.topbar .crumb { font-size: 16px; color: var(--text-strong); font-weight: 600; display: flex; align-items: center; gap: 0; }
.topbar .crumb .sep { color: var(--text-faint); margin: 0 10px; font-weight: 400; font-size: 14px; }
.topbar .crumb .sub { color: var(--text-muted); font-weight: 400; font-size: 13.5px; }
.topbar-search { margin-left: 24px; flex: 0 1 320px; }
.topbar-search .form-control {
  height: 36px;
  background: var(--bg-soft);
  border-color: transparent;
  font-size: 13px;
}
.topbar-search .form-control:focus {
  background: #fff;
  border-color: var(--brand-primary-2);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.tb-icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; position: relative;
  cursor: pointer; transition: all .2s;
}
.tb-icon-btn:hover {
  background: var(--bg-soft);
  color: var(--brand-primary-2);
  transform: translateY(-1px);
}
.tb-icon-btn:active { transform: scale(.95); }
.tb-icon-btn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #e15555, #ff4d4f);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(225,85,85,.5);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 26px;
  cursor: pointer; transition: all .2s;
  margin-left: 6px;
}
.user-chip:hover {
  background: var(--bg-soft);
  box-shadow: 0 2px 8px rgba(11,42,74,.06);
}
.user-chip .ava {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(11,42,74,.15);
}
.user-chip .info .nm { font-size: 13.5px; color: var(--text-strong); font-weight: 600; line-height: 1.25; }
.user-chip .info .rl { font-size: 11px; color: var(--text-muted); line-height: 1.25; margin-top: 2px; }
.user-chip .chip-caret { color: var(--text-muted); font-size: 12px; margin-left: 2px; transition: transform .2s; }
.user-chip.open .chip-caret { transform: rotate(180deg); }

/* ==================== 右上角账号下拉菜单 ==================== */
.user-menu-mask { position: fixed; inset: 0; z-index: 900; background: transparent; }
.user-menu {
  position: fixed; z-index: 901;
  min-width: 236px; background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(11,42,74,.07);
  box-shadow: 0 14px 40px rgba(11,42,74,.18), 0 2px 8px rgba(11,42,74,.07);
  padding: 8px;
  animation: userMenuPop .16s ease-out;
  transform-origin: top right;
}
@keyframes userMenuPop {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.user-menu .um-head {
  display: flex; gap: 11px; align-items: center;
  padding: 10px 10px 12px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 6px;
}
.user-menu .um-ava {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(11,42,74,.18);
}
.user-menu .um-name { font-size: 14.5px; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.user-menu .um-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.user-menu .um-user { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.user-menu .um-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; color: var(--text-strong);
  cursor: pointer; transition: background .15s, color .15s;
  user-select: none;
}
.user-menu .um-item .um-ic { font-size: 15px; width: 18px; text-align: center; }
.user-menu .um-item:hover { background: var(--bg-soft); }
.user-menu .um-item.um-danger { color: #e15555; }
.user-menu .um-item.um-danger:hover { background: #fef0f0; }

/* ==================== 修改密码弹窗 ==================== */
.cp-form { padding: 4px 2px 2px; }
.cp-form .cp-row { margin-bottom: 15px; }
.cp-form .cp-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-strong); margin-bottom: 7px;
}
.cp-form .form-control { width: 100%; }
.cp-form .cp-tip {
  margin-top: 2px; padding: 8px 12px;
  background: #fef0f0; color: #e15555;
  border: 1px solid #fde2e2; border-radius: 8px;
  font-size: 12.5px; line-height: 1.5;
}
.cp-form .cp-note {
  margin-top: 6px; font-size: 12px; color: var(--text-muted);
  line-height: 1.6; background: var(--bg-soft);
  border-radius: 8px; padding: 9px 12px;
}

.content { flex: 1; padding: 26px 28px; min-width: 0; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.page-head::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 64px; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}
.page-head h2 {
  font-size: 22px; color: var(--text-strong); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.page-head h2 .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 4px 12px rgba(17,74,130,.3);
}
.page-head .desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ==================== 统计卡片（视觉大升级：渐变、装饰、悬浮） ==================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative; overflow: hidden;
  transition: all .28s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.stat-card:active {
  transform: translateY(-1px) scale(.98);
  transition: transform .1s;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card.accent::before { background: var(--grad-accent); }
.stat-card.success::before { background: var(--grad-success); }
.stat-card.danger::before { background: var(--grad-danger); }
.stat-card.purple::before { background: var(--grad-purple); }

.stat-card .ic-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
  position: relative; z-index: 1;
  background: linear-gradient(135deg, #e8f1ff, #d6e4ff);
  color: #2b7ad9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.stat-card.accent .ic-wrap { background: linear-gradient(135deg, #fff3e0, #ffe8c8); color: #e68a00; }
.stat-card.success .ic-wrap { background: linear-gradient(135deg, #e6f7ef, #d5f5e5); color: #1a9e6e; }
.stat-card.danger .ic-wrap { background: linear-gradient(135deg, #fdeaea, #fbd6d6); color: #d64545; }
.stat-card.purple .ic-wrap { background: linear-gradient(135deg, #f1eafa, #e9dcfa); color: #8e5fc7; }

.stat-card .val {
  font-size: 32px; font-weight: 800; color: var(--text-strong);
  line-height: 1; letter-spacing: -.5px;
  position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}
.stat-card .lbl { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 500; }
.stat-card .trend {
  font-size: 12px; margin-top: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 16px;
  font-weight: 600;
}
.stat-card .trend.up {
  background: linear-gradient(135deg, #e6f7ef, #d5f5e5);
  color: #1a9e6e;
}
.stat-card .trend.down {
  background: linear-gradient(135deg, #fdeaea, #fbd6d6);
  color: #d64545;
}
.stat-card .deco {
  position: absolute; right: -8px; bottom: -14px;
  font-size: 90px; opacity: .045;
  font-weight: 900; line-height: 1;
  color: var(--brand-primary-2);
  pointer-events: none;
}
.stat-card.accent .deco { color: var(--brand-accent); }
.stat-card.success .deco { color: var(--brand-success); }
.stat-card.danger .deco { color: var(--brand-danger); }
.stat-card.purple .deco { color: var(--brand-purple); }

/* 迷你统计条 */
.stat-card .mini-bar {
  height: 6px; background: var(--bg-soft);
  border-radius: 6px; overflow: hidden;
  margin-top: 14px;
}
.stat-card .mini-bar > div {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 6px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.stat-card.accent .mini-bar > div { background: var(--grad-accent); }
.stat-card.success .mini-bar > div { background: var(--grad-success); }
.stat-card.danger .mini-bar > div { background: var(--grad-danger); }
.stat-card.purple .mini-bar > div { background: var(--grad-purple); }

/* ==================== 时间线（升级） ==================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--border-color), var(--border-strong), var(--border-color));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -32px; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
  box-shadow: 0 0 0 3px #fff;
}
.tl-dot.done {
  border-color: var(--brand-success);
  background: var(--grad-success);
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(31,175,122,.3);
}
.tl-dot.active {
  border-color: var(--brand-primary-2);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(17,74,130,.15), 0 4px 10px rgba(17,74,130,.3);
  animation: pulse 2s infinite;
}
.tl-dot.reject {
  border-color: var(--brand-danger);
  background: var(--grad-danger);
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(225,85,85,.3);
}
.tl-content .tl-title {
  font-size: 14px; color: var(--text-strong); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.tl-content .tl-meta {
  font-size: 12px; color: var(--text-muted); margin-top: 5px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tl-content .tl-note {
  font-size: 13px; color: var(--text-base);
  margin-top: 8px;
  background: linear-gradient(135deg, #f7f9fc, #f0f4fa);
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  line-height: 1.65;
}

/* ==================== 聊天/通信 ==================== */
.chat-panel { display: flex; flex-direction: column; height: 100%; }
.chat-list { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 12px; max-width: 78%; }
.chat-msg.self { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .ava {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11,42,74,.15);
}
.chat-msg .bubble {
  background: linear-gradient(135deg, #f7f9fc, #f0f4fa);
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.7; color: var(--text-strong);
  border: 1px solid var(--border-color);
  position: relative;
}
.chat-msg:not(.self) .bubble { border-top-left-radius: 4px; }
.chat-msg.self .bubble {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(17,74,130,.28);
}
.chat-msg .bubble.instr {
  background: linear-gradient(135deg, #fff7e9, #fffdf5);
  border-left: 3px solid var(--brand-accent);
  border-top-left-radius: 4px;
}
.chat-msg .meta { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.chat-msg.self .meta { text-align: right; }
.chat-input {
  border-top: 1px solid var(--border-color);
  padding: 14px 16px; display: flex; gap: 10px; align-items: flex-end;
  background: linear-gradient(180deg, #fafbfd, #f5f7fb);
}
.chat-input textarea {
  flex: 1; resize: none;
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 10px 14px; font-size: 13.5px;
  max-height: 100px; line-height: 1.6;
  transition: all .2s;
  background: #fff;
}
.chat-input textarea:focus {
  border-color: var(--brand-primary-2);
  box-shadow: 0 0 0 4px rgba(17,74,130,.08);
}

/* ==================== 案件详情布局 ==================== */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 1150px) { .detail-grid { grid-template-columns: 1fr; } }
.info-row {
  display: flex; padding: 11px 0;
  border-bottom: 1px dashed var(--border-color);
  transition: background .15s;
}
.info-row:hover { background: rgba(17,74,130,.02); }
.info-row:last-child { border-bottom: none; }
.info-row .k {
  width: 108px; color: var(--text-muted); font-size: 13px;
  flex-shrink: 0; font-weight: 500;
  display: flex; align-items: center;
}
.info-row .v {
  color: var(--text-strong); font-size: 13px; font-weight: 500;
  line-height: 1.6;
}
.info-row .v .tag { margin-right: 4px; }

/* 详情侧边卡片 */
.side-card {
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 18px;
  transition: all .25s;
}
.side-card:hover { box-shadow: var(--shadow-md); }
.side-card .hd {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #ffffff, #fafbfd);
}
.side-card .hd h4 { font-size: 14px; color: var(--text-strong); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.side-card .hd h4::before { content: ''; width: 3px; height: 14px; background: var(--grad-primary); border-radius: 2px; }
.side-card .bd { padding: 16px 18px; }

/* 操作按钮组 */
.action-group {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fafbfd, #f5f7fb);
  border-top: 1px solid var(--border-color);
}

/* ==================== 筛选条 ==================== */
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.filter-bar .form-control {
  width: auto; min-width: 140px; height: 36px; font-size: 13px;
}
.filter-bar .btn-sm { height: 36px; padding: 0 16px; }

/* 通用辅助样式 - grid定义统一在theme.css中，此处不重复 */
@media (max-width: 768px) {
  .auth-left { display:none; }
  .auth-right { flex: 1; padding: 20px; }
  .auth-card { padding: 32px 24px; }

}}

/* 针对移动端UA的布局调整 */
html.mobile {
  /* 通用移动端样式覆盖 */
  button, .btn, input[type="text"], input[type="number"], textarea, select {
    padding: 12px 16px; font-size: 16px; min-height: 50px;
  }
  .tb-icon-btn, .mobile-menu-btn {
    width: 44px; height: 44px; min-height: unset; padding: 0;
  }
  .form-control { min-height: 50px; font-size: 16px; }
  .filter-bar .form-control {
    min-width: unset; width: 100%; max-width: 100%;
  }
  .filter-bar .btn-sm {
    height: 44px; font-size: 16px; padding: 0 20px;
  }
  .table-responsive-desktop { display: none; }
  .table-responsive-mobile { display: block; }
  .mobile-card {
    background-color: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px; padding: 12px;
  }
  .mobile-card-row {
    display: flex; justify-content: space-between; padding: 4px 0;
    border-bottom: 1px dashed #eee;
  }
  .mobile-card-row:last-child { border-bottom: none; }
  .mobile-card-key {
    font-weight: 600; color: var(--text-muted); flex-shrink: 0; margin-right: 10px;
  }
  .mobile-card-value {
    text-align: right; color: var(--text-strong); flex-grow: 1;
  }
}

/* 针对移动端UA的布局调整 */
html.mobile .sidebar { transform: translateX(-100%); transition: transform 0.3s ease-out; }
/* 打开状态 */
html.mobile .sidebar.is-open { transform: translateX(0); }
/* 主内容区在移动端占据全部宽度 */
html.mobile .main { margin-left: 0; }
/* 顶栏在移动端显示汉堡按钮 */
html.mobile .topbar .crumb { display: none; }
html.mobile .topbar .mobile-menu-btn { display: flex; }

/* New styles from user request for .mobile #app elements */
html.mobile #app .sidebar { display: none !important; }
html.mobile #app .main-content { margin-left: 0 !important; width: 100% !important; padding: 10px; }
html.mobile #app table { font-size: 14px; }
html.mobile #app .page-head { padding: 10px 0; }

  /* 表格卡片化 */
  html.mobile .info-ledger-table {
    border: none;
    box-shadow: none;
  }

  html.mobile .info-ledger-table thead {
    display: none; /* 隐藏表头 */
  }

  html.mobile .info-ledger-table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #fff;
  }

  html.mobile .info-ledger-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    white-space: normal; /* 允许文本换行 */
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }

  html.mobile .info-ledger-table tbody tr:last-child td { border-bottom: none; }
  html.mobile .info-ledger-table tbody tr:nth-child(even) { background: #fff; }
  html.mobile .info-ledger-table tbody tr:hover { background: #fff; }

  html.mobile .info-ledger-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-right: 15px;
    text-align: left;
  }

  html.mobile .info-ledger-table tbody td.text-center { text-align: right; }
  html.mobile .info-ledger-table .row-num { display: none; } /* 隐藏行号 */
  html.mobile .info-ledger-table .col-id { font-weight: normal; }

  /* 详情页 grid 布局在移动端变为单列 */
  html.mobile .detail-grid {
    grid-template-columns: 1fr;
  }

  /* 筛选条按钮和输入框样式加强 */
  html.mobile .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  html.mobile .filter-bar > * {
    width: 100%;
    margin-bottom: 10px;
  }
  html.mobile .filter-bar > *:last-child {
    margin-bottom: 0;
  }

  /* 通用按钮和输入框样式调整 */
  html.mobile button, html.mobile .btn, html.mobile input[type="text"], html.mobile input[type="number"], html.mobile textarea, html.mobile select {
    padding: 12px 16px !important;
    font-size: 16px !important;
    min-height: 50px !important;
    border-radius: 8px !important;
  }
  html.mobile .form-control {
    min-height: 50px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  /* 移动端强制隐藏汉堡菜单按钮 */
  html.mobile #mobileMenuBtn {
    display: none !important;
  }

/* 汉堡按钮样式（全局，默认桌面端隐藏） */
.mobile-menu-btn {
  display: none; /* 默认桌面端隐藏 */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: all .2s;
}
.mobile-menu-btn:hover {
  background: var(--bg-soft);
  color: var(--brand-primary-2);
}

/* ==================== 水印相机模态框 ==================== */
.camera-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.9);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.camera-container {
  width: 100%; max-width: 720px; background: #1a1a2e; border-radius: 16px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.camera-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #0f0f1e; color: #fff;
}
.camera-title { font-size: 16px; font-weight: 700; }
.camera-close {
  background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; width: 36px; height: 36px; border-radius: 8px;
  transition: background .2s;
}
.camera-close:hover { background: rgba(255,255,255,.15); }
.camera-body {
  position: relative; width: 100%; background: #000;
  min-height: 300px; display: flex; align-items: center; justify-content: center;
}
.camera-body video {
  width: 100%; max-height: 480px; object-fit: contain; display: block;
}
.camera-body canvas { display: none; }
.camera-preview { width: 100%; }
.camera-preview img { width: 100%; max-height: 480px; object-fit: contain; display: block; }
.camera-fallback { text-align: center; padding: 48px 24px; color: #fff; }
.camera-fallback .fallback-icon { font-size: 48px; margin-bottom: 16px; }
.camera-fallback .fallback-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.camera-fallback .fallback-desc { font-size: 13px; color: #aaa; }
.camera-info-bar {
  display: flex; gap: 16px; padding: 10px 16px; background: #0f0f1e;
  flex-wrap: wrap;
}
.camera-info-bar .info-item {
  color: #ccc; font-size: 12px; white-space: nowrap;
}
.camera-footer {
  display: flex; gap: 12px; padding: 16px 20px; background: #0f0f1e;
  justify-content: center; flex-wrap: wrap;
}
.cam-btn {
  padding: 10px 24px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.cam-btn-primary { background: #114a82; color: #fff; }
.cam-btn-primary:hover { background: #1a6fb5; }
.cam-btn-success { background: #1faf7a; color: #fff; }
.cam-btn-success:hover { background: #28c088; }
.cam-btn-ghost { background: rgba(255,255,255,.1); color: #ccc; }
.cam-btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ==================== 附件列表样式 ==================== */
.attachment-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-top: 12px;
}
.attachment-card {
  border: 1px solid var(--border-color, #e8ecf3); border-radius: 10px;
  overflow: hidden; position: relative; cursor: pointer; transition: box-shadow .2s;
}
.attachment-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.attachment-card .att-thumb {
  width: 100%; height: 100px; object-fit: cover; display: block; background: #f5f7fb;
}
.attachment-card .att-file-icon {
  width: 100%; height: 100px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: #f5f7fb;
}
.attachment-card .att-name {
  padding: 6px 8px; font-size: 11px; color: #6b7a90; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; background: #fafbfd;
}
.attachment-card .att-wm-badge {
  position: absolute; top: 4px; right: 4px; background: rgba(31,175,122,.9);
  color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px;
}
.attachment-card .att-del {
  position: absolute; top: 4px; left: 4px; background: rgba(229,62,62,.85);
  color: #fff; width: 22px; height: 22px; border-radius: 50%; border: none;
  cursor: pointer; font-size: 12px; display: none;
}
.attachment-card:hover .att-del { display: flex; align-items: center; justify-content: center; }

/* =========== 基础信息台账表格 =========== */
.info-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.info-ledger-table thead th {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  font-weight: 600;
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
}
.info-ledger-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.info-ledger-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.info-ledger-table tbody td {
  padding: 8px;
  border-bottom: 1px solid #e8eef3;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-ledger-table tbody tr:nth-child(even) { background: #f8fafc; }
.info-ledger-table tbody tr:hover { background: #eff6ff; }
.info-ledger-table tbody td.text-center { text-align: center; }
.info-ledger-table .row-num {
  width: 36px; text-align: center;
  color: #94a3b8; font-weight: 600;
}
.info-ledger-table .col-id { font-weight: 600; color: #1e3a5f; }

/* 受损程度色标 */
.dmg-severe { color: #dc2626; font-weight: 600; }
.dmg-moderate { color: #f59e0b; font-weight: 600; }
.dmg-minor { color: #10b981; }
.dmg-none { color: #94a3b8; }

/* 理赔状态色标 */
.claim-status {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.claim-status-查勘中 { background: #fef3c7; color: #92400e; }
.claim-status-已报案 { background: #dbeafe; color: #1e40af; }
.claim-status-定损中 { background: #e0e7ff; color: #3730a3; }
.claim-status-已赔付 { background: #d1fae5; color: #065f46; }
.claim-status-已拒赔 { background: #fee2e2; color: #991b1b; }
.claim-status-已结案 { background: #f3f4f6; color: #374151; }

/* 到期预警色标 */
.expire-ok { color: #10b981; }
.expire-soon { color: #f59e0b; font-weight: 600; }
.expire-overdue { color: #dc2626; font-weight: 600; }

/* =========== 基础信息表（竖版表单） =========== */
.info-detail-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 16px;
}
.info-detail-card .card-title {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.info-detail-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.info-detail-section:last-child { border-bottom: none; }
.info-detail-section h4 {
  font-size: 13px; font-weight: 700; color: #1e3a5f;
  margin: 0 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
  display: flex; align-items: center; gap: 6px;
}
.info-detail-section h4::before {
  content: ''; display: inline-block;
  width: 4px; height: 16px; background: #3a8ee6;
  border-radius: 2px;
}
.info-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px 20px;
}
.info-field {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  background: #f8fafc;
  transition: background .15s;
}
.info-field:hover { background: #eff6ff; }
.info-field .label {
  font-size: 12px; color: #64748b; font-weight: 500;
  white-space: nowrap; min-width: 80px;
}
.info-field .value {
  font-size: 13px; color: #0f172a; font-weight: 600;
  flex: 1; word-break: break-all;
}
.info-field .value.empty { color: #cbd5e1; font-weight: 400; }

/* 竖版多列对比表单 */
.info-vertical-compare {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
}
.info-vertical-compare th,
.info-vertical-compare td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.info-vertical-compare th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  width: 140px;
  white-space: nowrap;
}
.info-vertical-compare td {
  color: #0f172a;
}
.info-vertical-compare td.empty { color: #cbd5e1; }
.info-vertical-compare tr.section-header td {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
}

/* 台账筛选栏 */
.info-filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
  padding: 12px 16px; background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}
.info-filter-bar .filter-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #475569;
}
.info-filter-bar select,
.info-filter-bar input {
  padding: 5px 10px; border: 1px solid #cbd5e1;
  border-radius: 5px; font-size: 12.5px;
  background: #fff; color: #0f172a;
}
.info-filter-bar select:focus,
.info-filter-bar input:focus {
  outline: none; border-color: #3a8ee6;
  box-shadow: 0 0 0 3px rgba(58,142,230,.1);
}

/* 表格容器（带水平滚动） */
.table-scroll-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}
.table-scroll-wrap .info-ledger-table {
  border-radius: 0;
}

/* 统计摘要卡片 */
.info-summary-cards {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.info-summary-card {
  flex: 1; min-width: 120px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.info-summary-card .num {
  font-size: 24px; font-weight: 700; color: #1e3a5f;
}
.info-summary-card .label {
  font-size: 11.5px; color: #64748b; margin-top: 2px;
}
.info-summary-card.warning .num { color: #f59e0b; }
.info-summary-card.danger .num { color: #dc2626; }
.info-summary-card.success .num { color: #10b981; }

/* =========== 打印按钮 =========== */
.btn-print {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px; border: 1px solid #3a8ee6; border-radius: 5px;
  background: linear-gradient(135deg, #3a8ee6, #1e3a5f); color: #fff;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.btn-print:hover { box-shadow: 0 2px 8px rgba(58,142,230,.4); transform: translateY(-1px); }

/* =========== 打印样式（仅打印基础信息表卡片） =========== */
@media print {
  /* 隐藏侧边栏、顶栏、页面头部按钮区、其他非打印内容 */
  .sidebar, .topbar, .page-head, .info-filter-bar, .info-summary-cards,
  .table-scroll-wrap, .nav-group-title, .sidebar-foot, .app-foot,
  .no-print, .modal-mask, .toast-container { display: none !important; }
  /* 主内容区全宽显示 */
  .main-content, .app-main, #mainView, .content-area { width: 100% !important; margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  body, html { background: #fff !important; overflow: visible !important; }
  /* 基础信息卡片打印优化 */
  .info-detail-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; page-break: inside: avoid; }
  .info-detail-card .card-title { background: #1e3a5f !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .info-detail-section { page-break-inside: avoid; }
  .info-field-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .info-field { background: #f8fafc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .info-field .label { color: #475569 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .info-field .value { color: #0f172a !important; }
  .claim-status, .tag { border: 1px solid #cbd5e1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 打印标题 */
  .print-only-title { display: block !important; text-align: center; font-size: 18px; font-weight: 700; padding: 12px 0; border-bottom: 2px solid #1e3a5f; margin-bottom: 12px; }
}
.print-only-title { display: none; }

/* 响应式表格样式 */
.table-responsive-mobile {
  display: none; /* 默认在桌面端隐藏 */
}

@media (max-width: 768px) {
}

/* 钉钉iframe手机端适配，仅在手机端隐藏侧边栏 */
html.mobile .sidebar, html.mobile .sidebar-foot, html.mobile .sidebar-menu {
  display: none !important;
}
html.mobile .main-content, html.mobile .main, html.mobile .content-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  padding: 10px !important;
}
html.mobile .topbar, html.mobile .header, html.mobile .navbar {
  padding: 0 10px !important;
  font-size: 14px !important;
}

/* ==================== v20261023 侧栏工具条 / 菜单搜索 / 星标收藏 / 分组折叠 ==================== */
.sidebar .nav-tools { flex-shrink: 0; padding: 10px 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar .nav-search-box { position: relative; }
.sidebar .nav-search-ico {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; opacity: .55; pointer-events: none;
}
.sidebar .nav-search-box input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; border-radius: 9px; padding: 8px 10px 8px 30px;
  font-size: 12.5px; outline: none; font-family: inherit;
}
.sidebar .nav-search-box input::placeholder { color: rgba(199,212,230,.45); }
.sidebar .nav-search-box input:focus { border-color: rgba(245,166,35,.55); background: rgba(255,255,255,.12); }
.sidebar .nav-search-drop {
  display: none; position: absolute; left: 0; right: 0; top: 40px; z-index: 160;
  max-height: 320px; overflow: auto;
  background: #12233b; border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}
.sidebar .nav-search-drop.on { display: block; }
.sidebar .nav-search-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  font-size: 12.5px; color: #dbe6f5; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sidebar .nav-search-item:last-child { border-bottom: 0; }
.sidebar .nav-search-item:hover { background: #1a2e49; }
.sidebar .nav-search-item .ic { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar .nav-search-item .nm { font-weight: 600; white-space: nowrap; }
.sidebar .nav-search-item .md { margin-left: auto; font-size: 10.5px; color: #8fa2bb; white-space: nowrap; }
.sidebar .nav-search-empty { padding: 10px; font-size: 12px; color: #8fa2bb; }

.sidebar .nav-tools-btns { display: flex; gap: 6px; margin-top: 8px; }
.sidebar .nav-tool-btn {
  flex: 1; min-width: 0; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; color: rgba(199,212,230,.85);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 6px 2px; cursor: pointer; white-space: nowrap;
  transition: all .18s;
}
.sidebar .nav-tool-btn:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); }
.sidebar .nav-tool-panel {
  display: none; margin-top: 8px; max-height: 220px; overflow: auto;
  background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.10); border-radius: 9px; padding: 4px;
}
.sidebar .nav-tool-panel.on { display: block; }
.sidebar .nav-tool-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px;
  font-size: 12.5px; color: #cddcee; cursor: pointer;
}
.sidebar .nav-tool-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar .nav-tool-item .ic { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar .nav-tool-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .nav-tool-empty { padding: 8px; font-size: 11.5px; color: #8fa2bb; }

/* 菜单项右侧尾部（badge / 上线条 / 收藏星标）与星标 */
.sidebar .nav-item .nav-tail {
  margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.sidebar .nav-item .nav-tail .badge,
.sidebar .nav-item .nav-tail .wip-tag { margin-left: 0; }
.sidebar .nav-item .nav-star {
  flex-shrink: 0; margin-left: 0;
  font-size: 12px; line-height: 1; color: rgba(199,212,230,.22);
  cursor: pointer; padding: 0 1px; transition: color .15s, transform .15s;
}
.sidebar .nav-item .nav-star:hover { color: #f5c26b; transform: scale(1.15); }
.sidebar .nav-item .nav-star.on { color: #f5c26b; }

/* 分组小标可点击收起（箭头旋转） */
.sidebar .nav-subtitle {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.sidebar .nav-subtitle:hover { color: rgba(224,235,248,.85); }
.sidebar .nav-subtitle .nav-caret {
  font-size: 9px; opacity: .7; flex-shrink: 0; transition: transform .15s;
}
.sidebar .nav-subtitle.is-collapsed .nav-caret { transform: rotate(-90deg); }
.sidebar .nav-subtitle[data-collapsed="1"] { opacity: .72; }

/* ==================== v20261024 侧栏 1:1 还原原型（金色模块头 / 分组小标 / 折叠动画 / 星标 / 顶部快捷条） ==================== */
#sidebar { flex: 0 0 246px; width: 246px; background: #0e1c2f !important; border-right: 1px solid #2a3f5c !important; }
#sidebar .sb-top {
  display: flex; gap: 6px; padding: 6px 8px 10px; margin-bottom: 6px;
  border-bottom: 1px solid #22344c; position: relative; flex-shrink: 0;
}
#sidebar .sb-top .btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11.5px; color: #c3d3e6; background: #14263d; border: 1px solid #2a3f5c;
  border-radius: 8px; padding: 6px 2px; cursor: pointer; font-family: inherit;
}
#sidebar .sb-top .btn:hover { background: #1b3350; color: #fff; }
#sidebar .sb-top .nav-tool-panel {
  display: none; position: absolute; top: 46px; left: 8px; right: 8px; z-index: 170;
  max-height: 340px; overflow: auto; background: #12233b;
  border: 1px solid #2a3f5c; border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.45);
}
#sidebar .sb-top .nav-tool-panel.on { display: block; }
#sidebar .sb-top .nav-tool-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  font-size: 12.5px; color: #dbe6f5; cursor: pointer; border-bottom: 1px solid #22344c;
}
#sidebar .sb-top .nav-tool-item:last-child { border-bottom: 0; }
#sidebar .sb-top .nav-tool-item:hover { background: #1a2e49; }
#sidebar .sb-top .nav-tool-item .ic { width: 16px; text-align: center; flex-shrink: 0; }
#sidebar .sb-top .nav-tool-empty { padding: 12px; font-size: 12px; color: #8fa2bb; }

#sidebar #navList { padding: 2px 4px 14px; }
#sidebar .mod-title {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; margin: 3px 0;
  font-size: 13px; font-weight: 700; color: #f5c26b;
  background: #1f2e44; border-radius: 7px; cursor: pointer; user-select: none;
}
#sidebar .mod-title:hover { background: #24364f; }
#sidebar .mod-title .cnt { font-size: 10px; color: #b9a97e; margin-left: 6px; }
#sidebar .mod-title .caret { width: 12px; height: 12px; margin-left: auto; color: #f5c26b; transition: transform .2s; flex-shrink: 0; }
#sidebar .mod-title.is-collapsed .caret { transform: rotate(-90deg); }
#sidebar .mod-body { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
#sidebar .mod-body.open { max-height: 2400px; }

#sidebar .subtitle {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px 3px;
  font-size: 11.5px; font-weight: 700; color: #7f94af; letter-spacing: .5px;
  cursor: pointer; user-select: none;
}
#sidebar .subtitle:hover { color: #a8bdd6; }
#sidebar .subtitle .arr { width: 10px; height: 10px; color: #5b6f88; transition: transform .2s; flex-shrink: 0; }
#sidebar .subtitle.is-collapsed .arr { transform: rotate(-90deg); }
#sidebar .subtitle .gc { font-size: 9px; color: #5b6f88; background: #1b3350; border-radius: 3px; padding: 0 4px; }
#sidebar .subtitle .line { flex: 1; height: 1px; background: #22344c; }
#sidebar .sub-items { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
#sidebar .sub-items.open { max-height: 900px; }

#sidebar .nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6.5px 10px 6.5px 18px; margin: 1px 0; border-radius: 6px;
  font-size: 13px; color: #cddcee; cursor: pointer;
}
#sidebar .nav-item:hover { background: #1a2e49; }
#sidebar .nav-item.on,
#sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(63,140,255,.28), rgba(0,194,184,.18));
  color: #fff; font-weight: 600;
}
#sidebar .nav-item .ic { width: 16px; font-size: 13px; text-align: center; flex-shrink: 0; }
#sidebar .nav-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sidebar .nav-item .badge {
  font-size: 10px; background: #e64545; color: #fff; border-radius: 20px;
  padding: 1px 6px; min-width: 16px; text-align: center; flex-shrink: 0;
}
#sidebar .nav-item .wip { font-size: 9px; color: #9db4cf; background: #1b3350; border-radius: 3px; padding: 0 4px; flex-shrink: 0; }
#sidebar .nav-item .star { margin-left: auto; font-size: 12px; line-height: 1; color: #5b6f88; flex-shrink: 0; }
#sidebar .nav-item .star:hover { color: #f5c26b; }
#sidebar .nav-item .star.on { color: #f5c26b; }
#sidebar .nav-item.nav-wip { opacity: .82; }

/* 顶栏下方快捷条 */
.quickbar { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; background: #08111d; border-bottom: 1px solid #22344c; flex-shrink: 0; }
.quickbar .qk {
  display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
  background: #122744; border: 1px solid #2a3f5c; color: #dbe6f5;
  border-radius: 8px; padding: 6px 11px; font-size: 12.5px;
}
.quickbar .qk:hover { background: #1a2e49; border-color: #3f8cff; }
.quickbar .qk.hot { border-color: #f5c26b; color: #f5c26b; background: #1f2e44; }
.quickbar .qk .ic { font-size: 13px; }

