/* ============================================================
   路南区政务协同与督办平台 · 设计系统与动效
   说明：动效默认强制开启，不随系统「减少动态效果」设置关闭或缩短（不检测系统动效偏好）；
   页面隐藏时由 app.js 统一暂停 JS 动画，CSS 动画经 body.anim-paused 暂停。
   ============================================================ */

:root {
  /* 主色：政务深蓝 */
  --navy-950: #0b1f3f;
  --navy-900: #10294f;
  --navy-800: #16345f;
  --navy-700: #1d4175;
  --navy-600: #2456a0;
  --blue-500: #2f6fd0;
  --blue-400: #4a86e8;
  --blue-100: #e3edfb;
  --blue-50:  #f2f7fe;

  /* 状态色 */
  --red-600: #d4382c;
  --red-500: #e5534b;
  --red-50:  #fdecea;
  --orange-600: #d97b16;
  --orange-500: #f0912b;
  --orange-50: #fdf1e3;
  --green-600: #1e9e6a;
  --green-500: #27b581;
  --green-50:  #e6f6ef;
  --purple-600: #7a5af8;
  --purple-50:  #efebfd;
  --gray-600: #5b6b83;
  --gray-50:  #eef1f6;

  /* 中性 */
  --ink-900: #1b2a41;
  --ink-700: #3b4c66;
  --ink-500: #64748e;
  --ink-400: #8a97ad;
  --line: #dde4ee;
  --line-soft: #e8edf5;
  --bg: #f0f4fa;
  --card: #ffffff;

  --shadow-1: 0 1px 2px rgba(16, 41, 79, .06), 0 2px 8px rgba(16, 41, 79, .06);
  --shadow-2: 0 6px 18px rgba(16, 41, 79, .12), 0 2px 6px rgba(16, 41, 79, .08);
  --shadow-3: 0 18px 48px rgba(11, 31, 63, .22);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;

  --topbar-h: 56px;
  --sidenav-w: 200px;
  --rightbar-w: 308px;

  --ease-out: cubic-bezier(.22, .9, .32, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.anim-paused *, body.anim-paused *::before, body.anim-paused *::after {
  animation-play-state: paused !important;
}
a { color: var(--blue-500); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 页面级入场 */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes drawerIn {
  from { transform: translateX(48px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes barGrow { from { width: 0; } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 56, 44, .45); }
  50% { box-shadow: 0 0 0 6px rgba(212, 56, 44, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  from { background-position: -200px 0; }
  to { background-position: 200px 0; }
}

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--radius-s);
  padding: 7px 16px; font-size: 13px; cursor: pointer;
  transition: background-color .18s var(--ease-out), box-shadow .18s var(--ease-out),
              transform .18s var(--ease-out), border-color .18s var(--ease-out), color .18s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-400); box-shadow: 0 4px 12px rgba(47, 111, 208, .35); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: var(--red-600); box-shadow: 0 4px 12px rgba(212, 56, 44, .3); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-500); }
.btn-warn { background: var(--orange-500); color: #fff; }
.btn-warn:hover { background: var(--orange-600); }
.btn-success { background: var(--green-500); color: #fff; }
.btn-success:hover { background: var(--green-600); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label { font-size: 13px; color: var(--ink-700); font-weight: 600; }
.field > label .req { color: var(--red-500); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--ink-900);
  background: #fff; transition: border-color .18s, box-shadow .18s;
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 208, .15);
}
.field .hint { font-size: 12px; color: var(--ink-400); }

.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: 12px; cursor: pointer; color: var(--ink-700); background: #fff;
  transition: all .18s var(--ease-out);
}
.check-chip:hover { border-color: var(--blue-400); }
.check-chip input { accent-color: var(--blue-500); margin: 0; }
.check-chip:has(input:checked) {
  background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-500); font-weight: 600;
}

/* 状态胶囊 */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600;
  transition: background-color .25s, color .25s, transform .2s var(--ease-out);
  white-space: nowrap; animation: popIn .3s var(--ease-spring) both;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-st-assigned  { background: var(--gray-50);  color: var(--gray-600); }
.chip-st-accepted  { background: var(--blue-50);  color: var(--blue-500); }
.chip-st-doing     { background: var(--blue-100); color: var(--navy-600); }
.chip-st-submitted { background: var(--orange-50); color: var(--orange-600); }
.chip-st-returned  { background: var(--red-50);   color: var(--red-600); }
.chip-st-closed    { background: var(--green-50); color: var(--green-600); }
.chip-dept-pending { background: var(--gray-50);  color: var(--gray-600); }
.chip-dept-accepted { background: var(--blue-50); color: var(--blue-500); }
.chip-dept-doing   { background: var(--blue-100); color: var(--navy-600); }
.chip-dept-done    { background: var(--green-50); color: var(--green-600); }

.tag-overdue { color: var(--red-600); font-weight: 700; }
.tag-soon { color: var(--orange-600); font-weight: 700; }

/* 优先级 */
.pri { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.pri-urgent { color: var(--red-600); }
.pri-high { color: var(--orange-600); }
.pri-normal { color: var(--ink-500); }

/* 进度条 */
.prog { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.prog-track {
  flex: 1; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden;
}
.prog-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
  transition: width .8s var(--ease-out);
  animation: barGrow .9s var(--ease-out) both;
}
.prog-fill.is-done { background: linear-gradient(90deg, var(--green-500), var(--green-600)); }
.prog-fill.is-overdue { background: linear-gradient(90deg, var(--red-500), var(--red-600)); }
.prog-num { font-size: 12px; color: var(--ink-500); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 布局骨架 ---------- */
.layout { display: grid; grid-template-columns: var(--sidenav-w) 1fr; min-height: 100vh; }

/* 左侧导航 */
.sidenav {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #cdd9ec; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.sidenav .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-emblem {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.brand-text { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; color: #93a7c6; line-height: 1.35; }
.nav-list { padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent;
  color: #b9c8e0; font-size: 14px; cursor: pointer; text-align: left;
  transition: background-color .2s var(--ease-out), color .2s, transform .2s var(--ease-out);
  position: relative;
}
.nav-item svg { flex: none; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(3px); }
.nav-item.active {
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(31, 78, 158, .45);
}
.nav-item .nav-badge {
  margin-left: auto; background: var(--red-500); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center; font-weight: 700;
}
.sidenav .nav-foot {
  margin-top: auto; padding: 12px 16px; font-size: 11px; color: #6f82a3;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* 顶栏 */
.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); background: var(--navy-900); color: #fff;
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  position: sticky; top: 0; z-index: 25; box-shadow: var(--shadow-1);
}
.topbar .menu-toggle {
  display: none; background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 6px; border-radius: 6px;
}
.topbar .menu-toggle:hover { background: rgba(255, 255, 255, .12); }
.topbar .sys-name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.topbar .sys-name .xx { color: #f0c453; }
.topbar .date-line { margin-left: auto; font-size: 12px; color: #9fb2d2; }
.topbar .user-box { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue-400), var(--navy-600));
  color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.user-meta { line-height: 1.3; }
.user-meta .u-name { font-size: 13px; font-weight: 600; }
.user-meta .u-role { font-size: 11px; color: #9fb2d2; }
.btn-logout {
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer;
  transition: background-color .18s;
}
.btn-logout:hover { background: rgba(255, 255, 255, .22); }

/* 内容区 */
.content { padding: 18px 20px 40px; animation: pageIn .35s var(--ease-out) both; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.page-head h1::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue-500), var(--navy-600));
}
.page-head .sub { color: var(--ink-500); font-size: 12px; }
.page-head .spacer { flex: 1; }

.card {
  background: var(--card); border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  padding: 16px 18px; animation: cardIn .4s var(--ease-out) both;
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.card.hoverable:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title .more { margin-left: auto; font-size: 12px; color: var(--blue-500); font-weight: 400; cursor: pointer; }

/* 工作台网格 */
.dash-grid { display: grid; grid-template-columns: 1fr var(--rightbar-w); gap: 16px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--topbar-h) + 16px); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: var(--card); border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  padding: 16px; display: flex; gap: 12px; align-items: center;
  animation: cardIn .45s var(--ease-out) both;
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
  cursor: pointer; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--accent, var(--blue-500)); opacity: .85;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.stat-card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--accent, var(--blue-500));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent, var(--blue-500)) 40%, transparent);
}
.stat-info .s-label { font-size: 12px; color: var(--ink-500); }
.stat-info .s-value {
  font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.stat-info .s-value .unit { font-size: 13px; font-weight: 600; color: var(--ink-500); margin-left: 2px; }
.stat-card.c-blue { --accent: var(--blue-500); }
.stat-card.c-red { --accent: var(--red-500); }
.stat-card.c-orange { --accent: var(--orange-500); }
.stat-card.c-green { --accent: var(--green-500); }
.stat-card.c-red .s-value { color: var(--red-600); }
.stat-card.c-orange .s-value { color: var(--orange-600); }
.stat-card.c-green .s-value { color: var(--green-600); }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line-soft); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
table.grid th, table.grid td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; vertical-align: middle;
}
table.grid thead th {
  background: #f7fafd; color: var(--ink-500); font-size: 12px; font-weight: 600;
  position: sticky; top: 0; z-index: 1;
}
table.grid tbody tr { cursor: pointer; transition: background-color .15s; animation: rowIn .3s var(--ease-out) both; }
table.grid tbody tr:hover { background: var(--blue-50); }
table.grid tbody tr:last-child td { border-bottom: 0; }
td .t-code { font-family: "Consolas", "Courier New", monospace; font-size: 12px; color: var(--ink-500); }
td .t-title { font-weight: 600; color: var(--ink-900); max-width: 240px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
td.is-overdue, .row-overdue td .t-deadline { color: var(--red-600); font-weight: 600; }
tr.row-overdue { background: linear-gradient(90deg, rgba(212, 56, 44, .045), transparent 40%); }

/* 预警列表 */
.warn-list { display: flex; flex-direction: column; gap: 2px; }
.warn-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; transition: background-color .18s, transform .18s var(--ease-out);
  animation: rowIn .35s var(--ease-out) both;
}
.warn-item:hover { background: var(--blue-50); transform: translateX(3px); }
.warn-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.warn-dot.red { background: var(--red-500); animation: pulseDot 1.8s infinite; }
.warn-dot.orange { background: var(--orange-500); }
.warn-body { flex: 1; min-width: 0; }
.warn-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warn-meta { font-size: 11px; color: var(--ink-400); }
.warn-dept { font-size: 11px; color: var(--ink-500); background: var(--gray-50); border-radius: 4px; padding: 1px 6px; flex: none; }
.warn-days { font-size: 12px; font-weight: 700; flex: none; }
.warn-days.red { color: var(--red-600); }
.warn-days.orange { color: var(--orange-600); }
.warn-empty { color: var(--ink-400); font-size: 13px; text-align: center; padding: 24px 0; }

/* 图表 */
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-500); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.line-draw { stroke-dasharray: var(--len, 1600); stroke-dashoffset: var(--len, 1600); animation: lineDraw 1.4s var(--ease-out) .1s forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
.area-fade { opacity: 0; animation: fadeIn .9s ease .7s forwards; }
.dot-pop { transform-origin: center; transform-box: fill-box; animation: popIn .35s var(--ease-spring) both; }
.bar-h-grow { transform: scaleX(0); transform-origin: left; animation: barHGrow .8s var(--ease-out) both; }
@keyframes barHGrow { to { transform: scaleX(1); } }

.bars-v { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 84px; align-items: center; gap: 10px; font-size: 12px; }
.bar-row .b-label { color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .b-track { height: 16px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar-row .b-fill {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-400), var(--navy-600));
  animation: barGrow .9s var(--ease-out) both;
  transition: filter .2s;
}
.bar-row:hover .b-fill { filter: brightness(1.12); }
.bar-row .b-num { text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.bar-row .b-num b { color: var(--ink-900); }

/* 双图并排 */
.chart-duo { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }

/* 任务台账页 */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  padding: 12px 14px; margin-bottom: 14px;
}
.filter-bar .select, .filter-bar .input { width: auto; min-width: 130px; }
.filter-bar .input.search { min-width: 210px; }
.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-700); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .sw-track {
  width: 36px; height: 20px; border-radius: 999px; background: #c9d3e2; position: relative;
  transition: background-color .22s var(--ease-out); flex: none;
}
.switch .sw-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .22s var(--ease-spring);
}
.switch input:checked + .sw-track { background: var(--blue-500); }
.switch input:checked + .sw-track::after { transform: translateX(16px); }
.switch input:focus-visible + .sw-track { outline: 2px solid var(--blue-400); outline-offset: 2px; }

.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; font-size: 12px; color: var(--ink-500); flex-wrap: wrap; }
.pager button {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; min-width: 30px; height: 30px;
  padding: 0 8px; cursor: pointer; font-size: 12px; color: var(--ink-700);
  transition: all .16s;
}
.pager button:hover:not([disabled]) { border-color: var(--blue-500); color: var(--blue-500); }
.pager button.cur { background: var(--blue-500); border-color: var(--blue-500); color: #fff; font-weight: 700; }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }

.empty-box { text-align: center; color: var(--ink-400); padding: 44px 0; font-size: 13px; }
.empty-box .e-icon { font-size: 34px; display: block; margin-bottom: 8px; opacity: .5; }

/* 任务卡片（移动端） */
.task-cards { display: none; flex-direction: column; gap: 10px; }
.task-card {
  background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-1);
  padding: 12px 14px; cursor: pointer; animation: cardIn .35s var(--ease-out) both;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.task-card .tc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.task-card .tc-title { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card .tc-meta { font-size: 12px; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.task-card .tc-bottom { display: flex; align-items: center; gap: 10px; }

/* 详情抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(11, 31, 63, .42);
  z-index: 60; animation: fadeIn .22s ease both;
  backdrop-filter: blur(2px);
}
.drawer-mask.closing { animation: fadeOut .2s ease both; }
@keyframes fadeOut { to { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--bg); z-index: 61; box-shadow: var(--shadow-3);
  animation: drawerIn .32s var(--ease-out) both;
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer.closing { animation: drawerOut .24s ease both; }
@keyframes drawerOut { to { transform: translateX(60px); opacity: 0; } }
.drawer-head {
  background: var(--navy-900); color: #fff; padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px; flex: none;
}
.drawer-head .d-title { font-size: 16px; font-weight: 700; flex: 1; line-height: 1.45; }
.drawer-head .d-code { font-size: 12px; color: #9fb2d2; margin-top: 3px; font-family: Consolas, monospace; }
.drawer-close {
  background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer; font-size: 16px; flex: none; transition: background-color .18s;
}
.drawer-close:hover { background: rgba(255, 255, 255, .24); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 90px; }
.drawer .actions-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px;
  background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
  display: flex; gap: 8px; flex-wrap: wrap; backdrop-filter: blur(4px);
}
.d-section { background: #fff; border-radius: var(--radius-m); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-1); animation: cardIn .35s var(--ease-out) both; }
.d-section h3 { font-size: 13px; color: var(--ink-500); margin-bottom: 10px; font-weight: 700; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; }
.kv-grid .k { color: var(--ink-500); }
.kv-grid .v { color: var(--ink-900); font-weight: 600; }
.d-content-text { font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

.dept-line {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line-soft); margin-bottom: 8px; font-size: 13px;
  transition: border-color .2s;
}
.dept-line:hover { border-color: var(--blue-400); }
.dept-line .dl-role {
  font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; flex: none;
}
.dept-line .dl-role.lead { background: var(--blue-100); color: var(--navy-600); }
.dept-line .dl-role.assist { background: var(--purple-50); color: var(--purple-600); }
.dept-line .dl-name { font-weight: 600; }
.dept-line .dl-owner { color: var(--ink-500); font-size: 12px; }
.dept-line .dl-note { color: var(--ink-400); font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--line));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 16px 12px; animation: rowIn .35s var(--ease-out) both; }
.tl-item:last-child { padding-bottom: 2px; }
.tl-item::before {
  content: ""; position: absolute; left: -19px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue-500);
}
.tl-item.tl-red::before { border-color: var(--red-500); }
.tl-item.tl-green::before { border-color: var(--green-500); }
.tl-item.tl-orange::before { border-color: var(--orange-500); }
.tl-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.tl-action { font-weight: 700; }
.tl-user { color: var(--ink-500); font-size: 12px; }
.tl-time { margin-left: auto; color: var(--ink-400); font-size: 11px; font-variant-numeric: tabular-nums; }
.tl-content { font-size: 13px; color: var(--ink-700); margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.tl-progress { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--blue-500); font-weight: 700; background: var(--blue-50); border-radius: 4px; padding: 0 6px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 31, 63, .46); z-index: 70;
  display: grid; place-items: center; padding: 18px;
  animation: fadeIn .2s ease both; backdrop-filter: blur(2px); overflow-y: auto;
}
.modal-mask.closing { animation: fadeOut .18s ease both; }
.modal {
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-3);
  width: min(560px, 100%); max-height: calc(100vh - 60px); overflow-y: auto;
  animation: modalIn .3s var(--ease-spring) both;
}
.modal.modal-lg { width: min(680px, 100%); }
.modal-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px 0;
}
.modal-head h2 { font-size: 16px; flex: 1; }
.modal-head .modal-x {
  border: 0; background: var(--gray-50); width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; color: var(--ink-500); font-size: 15px; transition: all .18s;
}
.modal-head .modal-x:hover { background: var(--red-50); color: var(--red-600); }
.modal-body { padding: 14px 20px; }
.modal-foot {
  padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 10px;
}

/* Toast */
.toast-root { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink-900); color: #fff; border-radius: 8px; padding: 9px 18px;
  font-size: 13px; box-shadow: var(--shadow-2); animation: toastIn .28s var(--ease-spring) both;
  display: flex; align-items: center; gap: 8px; max-width: 90vw;
}
.toast.ok { background: var(--green-600); }
.toast.err { background: var(--red-600); }
.toast.out { animation: fadeOut .25s ease both; }

/* 加载骨架 */
.skeleton {
  border-radius: 6px; background: linear-gradient(90deg, #edf1f7 25%, #f7fafd 50%, #edf1f7 75%);
  background-size: 400px 100%; animation: shimmer 1.3s infinite linear;
}
.spin {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spin.dark { border-color: var(--line); border-top-color: var(--blue-500); }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-400); font-size: 13px; padding: 30px 0; }

/* 部门协同 */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dept-card {
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  padding: 16px; cursor: pointer; animation: cardIn .4s var(--ease-out) both;
  transition: transform .22s var(--ease-out), box-shadow .22s; border-top: 3px solid var(--blue-500);
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.dept-card .dc-name { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.dept-card .dc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.dept-card .dc-num { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dept-card .dc-label { font-size: 11px; color: var(--ink-500); }
.dept-card .dc-num.red { color: var(--red-600); }
.dept-card .dc-num.blue { color: var(--blue-500); }
.dept-card .dc-num.green { color: var(--green-600); }
.dept-card .dc-foot { margin-top: 10px; font-size: 12px; color: var(--blue-500); text-align: right; }

/* 统计分析页 */
.analy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analy-grid .card:first-child { grid-column: 1 / -1; }
.status-dist { display: flex; flex-direction: column; gap: 10px; }
.sd-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; }
.sd-row .sd-label { color: var(--ink-700); }
.sd-row .sd-track { height: 12px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.sd-row .sd-fill { display: block; height: 100%; border-radius: 6px; animation: barGrow .8s var(--ease-out) both; }
.sd-row .sd-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.log-list { display: flex; flex-direction: column; }
.log-line {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 4px; font-size: 13px;
  border-bottom: 1px dashed var(--line-soft); animation: rowIn .3s var(--ease-out) both;
  cursor: pointer; border-radius: 6px; transition: background-color .15s;
}
.log-line:hover { background: var(--blue-50); }
.log-line:last-child { border-bottom: 0; }
.log-line .lg-act { font-weight: 700; flex: none; }
.log-line .lg-title { color: var(--ink-700); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-line .lg-time { color: var(--ink-400); font-size: 11px; flex: none; font-variant-numeric: tabular-nums; }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-600) 100%);
}
.login-hero {
  color: #fff; padding: 8vh 7vw; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.login-hero::before, .login-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 134, 232, .28), transparent 70%);
}
.login-hero::before { width: 480px; height: 480px; right: -120px; top: -120px; animation: heroFloat 9s ease-in-out infinite; }
.login-hero::after { width: 360px; height: 360px; left: -100px; bottom: -100px; animation: heroFloat 11s ease-in-out infinite reverse; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.06); }
}
.login-hero .lh-emblem {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  display: grid; place-items: center; font-size: 24px; font-weight: 800;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 28px rgba(0, 0, 0, .3);
  animation: popIn .6s var(--ease-spring) both;
}
.login-hero h1 { font-size: 30px; letter-spacing: 1px; margin-bottom: 10px; animation: pageIn .5s var(--ease-out) .05s both; }
.login-hero h1 .xx { color: #f0c453; }
.login-hero p { color: #b9c8e0; font-size: 14px; max-width: 460px; animation: pageIn .5s var(--ease-out) .12s both; }
.login-hero .lh-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.login-hero .lh-points li {
  display: flex; align-items: center; gap: 10px; color: #d7e2f4; font-size: 14px;
  animation: rowIn .45s var(--ease-out) both;
}
.login-hero .lh-points li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #f0c453; box-shadow: 0 0 10px rgba(240, 196, 83, .8);
}
.login-panel-wrap { display: grid; place-items: center; padding: 6vh 5vw; position: relative; z-index: 1; }
.login-panel {
  width: min(400px, 100%); background: #fff; border-radius: 16px; padding: 30px 30px 24px;
  box-shadow: 0 24px 64px rgba(4, 14, 32, .45); animation: modalIn .45s var(--ease-spring) both;
}
.login-panel h2 { font-size: 19px; margin-bottom: 4px; }
.login-panel .lp-sub { color: var(--ink-500); font-size: 12px; margin-bottom: 20px; }
.login-error {
  display: none; background: var(--red-50); color: var(--red-600); border: 1px solid #f3c3bf;
  border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px;
  animation: popIn .25s var(--ease-spring) both;
}
.login-error.show { display: block; }
.btn-login { width: 100%; padding: 10px; font-size: 15px; font-weight: 700; margin-top: 4px; }
.demo-accounts { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 14px; }
.demo-accounts h3 { font-size: 12px; color: var(--ink-500); margin-bottom: 8px; font-weight: 600; }
.demo-accounts table { width: 100%; font-size: 12px; border-collapse: collapse; }
.demo-accounts td { padding: 4px 2px; color: var(--ink-700); }
.demo-accounts td.da-user { font-family: Consolas, monospace; color: var(--blue-500); font-weight: 700; }
.demo-accounts tr { cursor: pointer; transition: background-color .15s; border-radius: 4px; }
.demo-accounts tr:hover { background: var(--blue-50); }
.demo-accounts .da-tip { font-size: 11px; color: var(--ink-400); margin-top: 6px; }

/* ---------- 响应式 ---------- */

/* ≤1280 收紧侧栏 */
@media (max-width: 1280px) {
  .dash-grid { grid-template-columns: 1fr 280px; }
  .stat-row { gap: 10px; }
}

/* ≤1100 收起右栏（右栏移到主列下方） */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .dash-side > .card { flex: 1 1 320px; }
  .chart-duo { grid-template-columns: 1fr; }
  .analy-grid { grid-template-columns: 1fr; }
}

/* ≤900 导航收窄为图标条 */
@media (max-width: 900px) {
  .layout { grid-template-columns: 62px 1fr; }
  .sidenav .brand-text, .nav-item span.nav-text, .sidenav .nav-foot { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item .nav-badge { position: absolute; top: 4px; right: 4px; margin: 0; }
  .sidenav .brand { justify-content: center; padding: 14px 6px; }
}

/* ≤768 手机：侧滑抽屉导航 + 卡片列表 */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .topbar .menu-toggle { display: block; }
  .topbar .date-line { display: none; }
  .topbar .sys-name { font-size: 14px; }
  .user-meta .u-role { display: none; }
  .sidenav {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(260px, 78vw);
    transform: translateX(-105%); transition: transform .3s var(--ease-out);
    box-shadow: var(--shadow-3); height: 100dvh;
  }
  .sidenav.open { transform: translateX(0); }
  .sidenav .brand-text, .nav-item span.nav-text { display: block; }
  .nav-item { justify-content: flex-start; padding: 12px 14px; }
  .nav-item .nav-badge { position: static; margin-left: auto; }
  .nav-mask {
    position: fixed; inset: 0; background: rgba(11, 31, 63, .45); z-index: 29;
    animation: fadeIn .2s ease both;
  }
  .content { padding: 14px 12px 60px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-info .s-value { font-size: 22px; }
  .table-wrap.resp-hide { display: none; }
  .task-cards { display: flex; }
  .filter-bar .select, .filter-bar .input { min-width: 0; flex: 1 1 140px; }
  .filter-bar .input.search { flex: 1 1 100%; }
  .kv-grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-panel-wrap { padding: 8vh 18px; }
  .pager { justify-content: center; }
}

/* 打印：只保留内容 */
@media print {
  .sidenav, .topbar, .actions-bar, .pager, .filter-bar { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body.anim-paused * { animation-play-state: running !important; }
}

/* 改密码提示与顶栏操作按钮（手机端收窄间距） */
.form-tip { margin: 8px 0 0; font-size: 12px; color: #7b8aa0; line-height: 1.6; }
@media (max-width: 900px) {
  .topbar .user-box { gap: 6px; }
  .topbar .user-box .btn-logout { padding: 5px 7px; font-size: 12px; }
}

/* ---------- 驾驶舱入口 ---------- */
.btn-board-entry {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, rgba(240, 196, 83, .28), rgba(240, 196, 83, .12));
  border-color: rgba(240, 196, 83, .55); color: #ffe9ad; font-weight: 700;
  text-decoration: none;
}
.btn-board-entry:hover { background: rgba(240, 196, 83, .32); color: #fff; }

/* ---------- AI 智能分析（新建任务弹窗） ---------- */
.ai-box {
  border: 1px dashed var(--line); border-radius: var(--radius-m);
  background: linear-gradient(160deg, #f6faff, #f2f6fd);
  padding: 10px 12px; margin-bottom: 14px;
}
.ai-box-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-box-tip { font-size: 12px; color: var(--ink-400); flex: 1; min-width: 200px; }
.ai-result { margin-top: 10px; }
.ai-steps { display: flex; flex-direction: column; gap: 8px; }
.ai-steps-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-700); font-weight: 600; }
.ai-step {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 8px 10px; animation: rowIn .3s var(--ease-out) both;
}
.ai-step-no {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--purple-50); color: var(--purple-600);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.ai-step b { font-size: 13px; }
.ai-step p { margin: 2px 0 0; font-size: 12px; color: var(--ink-500); line-height: 1.55; }
.ai-error {
  background: var(--orange-50); border: 1px solid #f3d3ac; color: var(--orange-600);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.7;
}
.ai-error span { font-size: 12px; color: var(--ink-500); }
.ai-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 12px 14px; animation: cardIn .35s var(--ease-out) both;
}
.ai-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-card-head b { font-size: 14px; }
.ai-card-sub { font-size: 11px; color: var(--ink-400); flex: 1; min-width: 180px; text-align: right; }
.ai-demo-tag, .ai-live-tag {
  font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 8px; white-space: nowrap;
}
.ai-demo-tag { background: var(--orange-50); color: var(--orange-600); border: 1px solid #f3d3ac; }
.ai-live-tag { background: var(--green-50); color: var(--green-600); border: 1px solid #bfe8d4; }
.ai-sug-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ai-sug { background: var(--blue-50); border-radius: 8px; padding: 8px 10px; }
.ai-sug .k { display: block; font-size: 11px; color: var(--ink-500); margin-bottom: 2px; }
.ai-sug b { font-size: 13px; color: var(--navy-600); }
.ai-why { margin-top: 10px; font-size: 12px; color: var(--ink-700); line-height: 1.7; background: #fafbfd; border-radius: 8px; padding: 8px 10px; }
.ai-ops { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 768px) {
  .ai-sug-grid { grid-template-columns: 1fr 1fr; }
  .ai-card-sub { text-align: left; }
}

/* 会议纪要一键交办 */
.meeting-tip { font-size: 12px; color: #6f819b; line-height: 1.7; margin-bottom: 12px; }
.meeting-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 10px 0 4px; }
.meeting-result { margin-top: 8px; }
.meeting-summary { font-size: 13px; color: #4d5f78; line-height: 1.7; margin-bottom: 12px; }
.meeting-summary b { color: #1d4ed8; }
.meeting-item { display: flex; gap: 12px; padding: 14px; border: 1px solid #dde4ef; border-radius: 10px; margin-bottom: 12px; background: #fafcff; transition: all .22s var(--ease-out, ease); }
.meeting-item.on { border-color: #b9cdf5; background: #f4f8ff; }
.meeting-item .mi-check { flex: none; padding-top: 4px; }
.meeting-item .mi-check input { width: 16px; height: 16px; cursor: pointer; }
.meeting-item .mi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.meeting-item .mi-title { font-weight: 600; }
.meeting-item .mi-content { font-size: 12px; color: #55637a; }
.meeting-item .mi-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr 1fr; gap: 10px; }
.meeting-item .mi-grid .field label { font-size: 11px; }
.meeting-item .mi-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #7a8ba3; }
.meeting-item .mi-kw { color: #1d4ed8; }
.meeting-item .mi-warn { color: #c2410c; }
.meeting-count { margin-right: auto; font-size: 12px; color: #64748b; }
@media (max-width: 900px) { .meeting-item .mi-grid { grid-template-columns: 1fr 1fr; } }

/* ===== 智能协同：分类标签 / 建议弹层 / 拆解关系（intelligence.js） ===== */
.cat-tag { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:10px; font-size:11px; font-weight:600; color:var(--cat-c,#64748e); background:var(--cat-bg,#eef1f6); vertical-align:1px; }
.cat-tag.big { font-size:13px; padding:3px 12px; }
.cat-tag.cat-low { outline:1px dashed var(--cat-c,#64748e); }
.cat-tag.cat-ovr { box-shadow: inset 0 0 0 1px var(--cat-c,#64748e); }
.cat-detail { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cat-conf { font-size:12px; color:var(--ink-400,#64748b); }
.cat-conf b { color:var(--blue-600,#1d4ed8); }
.cat-conf-low { color:var(--orange-600,#c2410c) !important; }
.cat-ovr-note { font-size:11px; color:var(--orange-600,#c2410c); }
.cat-review { margin-top:6px; font-size:12px; color:var(--orange-600,#c2410c); }
.cat-reason { margin-top:8px; font-size:12px; color:var(--ink-400,#64748b); line-height:1.7; }
.cat-kws { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }
.cat-kw { font-size:11px; padding:1px 8px; border-radius:9px; background:#eef4fb; color:#2456a0; }
.cat-none { font-size:13px; color:var(--ink-400,#64748b); line-height:1.7; }

.ai-demo-tag { display:inline-block; margin-left:8px; padding:1px 8px; border-radius:9px; background:#efebfd; color:#7a5af8; font-size:11px; font-weight:600; vertical-align:1px; }

.sent-list { display:flex; flex-direction:column; gap:12px; }
.sent-item { border:1px solid var(--line,#dde4ef); border-left:4px solid var(--blue-400,#5b9bf8); border-radius:10px; padding:14px 16px; background:#fafcff; animation:rowIn .4s var(--ease-out,ease) both; }
.sent-item.lv-red { border-left-color:var(--red-500,#e5484d); }
.sent-item.lv-orange { border-left-color:var(--orange-500,#f76b15); }
.si-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.si-title { font-weight:700; font-size:14px; }
.se-heat { margin-left:auto; font-variant-numeric:tabular-nums; color:var(--orange-600,#c2410c); font-size:12px; }
.si-meta { display:flex; gap:14px; flex-wrap:wrap; margin-top:6px; font-size:12px; color:var(--ink-400,#64748b); }
.si-kw { color:var(--blue-600,#1d4ed8); }
.si-related { color:var(--orange-600,#c2410c); font-weight:600; }
.si-ai { margin-top:8px; font-size:12px; color:#7a5af8; line-height:1.7; background:#f6f3fe; border-radius:8px; padding:8px 10px; }
.si-ai::before { content:"AI 研判："; font-weight:700; }
.si-foot { margin-top:10px; display:flex; gap:10px; align-items:center; }
.si-wait { font-size:12px; color:var(--ink-300,#94a3b8); }
.chip.hs-unhandled { background:#fdecea; color:#c2410c; }
.chip.hs-dispatched { background:#e3edfb; color:#2456a0; }
.chip.hs-processing { background:#faf0d7; color:#92600a; }
.chip.hs-closed { background:#e6f6ef; color:#147d56; }
.sent-brief { border:1px solid var(--line,#dde4ef); border-left:4px solid var(--blue-400,#5b9bf8); border-radius:10px; padding:12px 14px; margin-bottom:12px; }
.dispose-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dispose-children { display:flex; flex-direction:column; gap:8px; }
.dc-child { border:1px dashed var(--line,#dde4ef); border-radius:8px; padding:8px 10px; font-size:12px; }
.dc-child b { display:block; margin-bottom:2px; }
.dc-child span { color:var(--ink-400,#64748b); }

.advice-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:14px; }
.advice-tip { margin:8px 0 0; font-size:12px; color:var(--ink-400,#64748b); }
.advice-summary { margin-top:10px; font-size:13px; color:#4d5f78; line-height:1.7; background:#f4f8ff; border-radius:8px; padding:10px 12px; }
.advice-step { display:flex; gap:10px; padding:9px 0; border-bottom:1px dashed var(--line,#e6ebf3); }
.advice-step:last-child { border-bottom:none; }
.as-no { flex:none; width:24px; height:24px; border-radius:50%; background:var(--blue-600,#1d4ed8); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:700; }
.as-top { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.as-top b { color:var(--blue-600,#1d4ed8); font-size:13px; }
.as-action { font-size:13px; }
.as-meta { display:flex; gap:12px; flex-wrap:wrap; margin-top:3px; font-size:11px; color:var(--ink-400,#64748b); }
.advice-block h4 { margin:12px 0 6px; font-size:13px; color:#4d5f78; }
.advice-block ul { padding-left:18px; }
.advice-block li { font-size:12px; color:var(--ink-500,#3f4e63); line-height:1.8; list-style:disc; }
.advice-risk { margin-top:12px; font-size:12px; color:#92600a; background:#faf0d7; border-radius:8px; padding:9px 11px; line-height:1.7; }
.advice-closing { margin-top:10px; font-size:12px; color:var(--ink-400,#64748b); }

.decomp-result { margin-top:10px; }
.decomp-tag { display:inline-block; margin-bottom:6px; padding:1px 10px; border-radius:9px; background:#e3edfb; color:#1d4ed8; font-size:11px; font-weight:700; }
.decomp-tag.sub { background:#faf0d7; color:#92600a; }
.sub-link { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--line,#dde4ef); border-radius:9px; margin-bottom:8px; cursor:pointer; transition:all .2s; }
.sub-link:hover { border-color:var(--blue-400,#5b9bf8); background:#f6faff; }
.sl-code { font-variant-numeric:tabular-nums; font-size:12px; color:var(--ink-400,#64748b); }
.sl-title { flex:1; min-width:0; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sl-go { font-size:12px; color:var(--blue-600,#1d4ed8); }

/* 登录页演示密码胶囊：醒目、可点击填入 */
.pwd-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.pwd-label { font-size: 12px; color: var(--ink-400); }
.pwd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(240, 196, 83, .55); border-radius: 16px;
  background: rgba(240, 196, 83, .14); color: #8a6410;
  font: 700 13px/1 "Microsoft YaHei", sans-serif; letter-spacing: .5px;
  padding: 5px 14px; cursor: pointer; user-select: all;
  transition: all .2s var(--ease-out, ease);
}
.pwd-chip::after { content: "📋"; font-size: 12px; opacity: .8; }
.pwd-chip:hover { background: rgba(240, 196, 83, .28); border-color: var(--gold, #f0c453); transform: translateY(-1px); }
.pwd-chip:active { transform: translateY(0) scale(.97); }
.pwd-chip.filled { background: rgba(61, 220, 151, .16); border-color: rgba(61, 220, 151, .6); color: #147d56; }
.pwd-chip.filled::after { content: "✓"; }
.pwd-tip { font-size: 11px; color: var(--ink-300); }
