:root {
  --navy: #0a1726;
  --navy-2: #102338;
  --navy-3: #17324d;
  --ink: #15202e;
  --ink-2: #415060;
  --muted: #71808f;
  --line: #e3e8ef;
  --line-strong: #d3dae3;
  --bg: #f3f5f9;
  --card: #ffffff;
  --primary: #1f63d6;
  --primary-dark: #184fae;
  --primary-soft: #eaf1fd;
  --teal: #0f766e;
  --teal-soft: #e7f5f2;
  --success: #12735a;
  --success-soft: #e8f5f0;
  --warn: #a86400;
  --warn-soft: #fff4e0;
  --danger: #c23b3b;
  --danger-soft: #fdeeee;
  --info: #2563a8;
  --info-soft: #eaf3fc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 35, 56, 0.04), 0 12px 28px rgba(16, 35, 56, 0.06);
  --sidebar: 232px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 登录 ---------- */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.1fr) minmax(420px, 0.9fr);
  background: #fff;
}
.login-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 195, 0.32), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(15, 118, 110, 0.2), transparent 36%),
    linear-gradient(145deg, #081320 0%, #0d2035 58%, #102a43 100%);
  color: #fff;
  padding: 64px 68px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.login-visual::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,0.018), 0 0 0 140px rgba(255,255,255,0.012);
}
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, #2f7af0, #0f766e);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(20, 88, 200, 0.35);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-copy strong { display: block; font-size: 16px; letter-spacing: 0.5px; }
.brand-copy span { display: block; color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 3px; letter-spacing: 1.2px; }
.login-copy { position: relative; z-index: 1; max-width: 560px; padding-bottom: 20px; }
.login-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1.5px; color: #9fc3eb; margin-bottom: 20px;
}
.login-kicker::before { content: ""; width: 28px; height: 1px; background: #3a76b9; }
.login-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.24;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.login-copy h1 em { font-style: normal; color: #8fc0f3; }
.login-copy p { margin: 0; color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.9; max-width: 470px; }
.login-points { position: relative; z-index: 1; display: flex; gap: 26px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.1); }
.login-point { display: flex; gap: 10px; align-items: flex-start; }
.login-point .dot { width: 7px; height: 7px; border-radius: 50%; background: #65a9f5; margin-top: 6px; box-shadow: 0 0 0 4px rgba(101,169,245,0.12); }
.login-point strong { display: block; font-size: 13px; font-weight: 500; }
.login-point span { display: block; color: rgba(255,255,255,0.45); font-size: 11px; margin-top: 4px; }
.login-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; position: relative;
}
.login-form-wrap { width: 100%; max-width: 356px; }
.login-form-wrap h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.2px; }
.login-form-wrap > p { margin: 0 0 30px; color: var(--muted); font-size: 13px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff;
  border-radius: 8px; padding: 10px 12px; color: var(--ink); outline: none;
  transition: border-color 0.18s, box-shadow 0.18s; min-height: 40px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,99,214,0.1);
}
.input::placeholder, .textarea::placeholder { color: #a3adb8; }
.textarea { min-height: 86px; resize: vertical; line-height: 1.7; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 4px; top: 4px; height: 32px; width: 36px;
  border: 0; background: transparent; color: var(--muted); border-radius: 6px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 15px;
  min-height: 38px; background: #fff; color: var(--ink-2); font-weight: 500;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { background: #f7f9fb; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 5px 14px rgba(31,99,214,0.22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-danger { color: var(--danger); border-color: #f0cccc; background: #fffafa; }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.link-btn { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 500; }

/* ---------- 工具栏下拉菜单 ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.menu-caret { font-size: 9px; opacity: 0.55; line-height: 1; margin-left: -1px; }
.menu-pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 304px; padding: 6px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 10px; box-shadow: 0 2px 6px rgba(16, 35, 56, 0.06), 0 16px 36px rgba(16, 35, 56, 0.13);
}
.menu-pop[hidden] { display: none; }
.menu-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink); line-height: 1.4;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--primary-soft); outline: none; }
.menu-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.menu-title svg { color: var(--primary); flex: none; }
.menu-desc { display: block; margin-top: 2px; padding-left: 19px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.login-error {
  display: none; margin-bottom: 16px; padding: 10px 12px; border-radius: 8px;
  background: var(--danger-soft); color: var(--danger); font-size: 12px; line-height: 1.6;
}
.login-error.show { display: block; }
.demo-box { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-title { font-size: 11px; color: var(--muted); letter-spacing: 0.6px; margin-bottom: 10px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.demo-account {
  text-align: left; border: 1px solid var(--line); background: #fbfcfd; border-radius: 7px;
  padding: 8px 10px; transition: 0.15s;
}
.demo-account:hover { border-color: #b9cceb; background: var(--primary-soft); }
.demo-account strong { display: block; font-size: 12px; font-weight: 600; }
.demo-account span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.login-footnote { margin-top: 18px; color: #9aa6b2; font-size: 10px; line-height: 1.7; }

/* ---------- 应用框架 ---------- */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar); background: var(--navy); color: #fff;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar-brand { padding: 24px 22px 22px; display: flex; align-items: center; gap: 11px; }
.sidebar-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.sidebar-brand .brand-mark svg { width: 19px; height: 19px; }
.sidebar-brand strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.2px; }
.sidebar-brand span { display: block; font-size: 9px; color: rgba(255,255,255,0.38); letter-spacing: 1.1px; margin-top: 3px; }
.nav-section { padding: 0 12px; margin-top: 8px; }
.nav-label { padding: 0 10px 8px; color: rgba(255,255,255,0.28); font-size: 9px; letter-spacing: 1.5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; margin-bottom: 3px;
  border-radius: 8px; color: rgba(255,255,255,0.62); font-size: 13px;
  transition: background 0.15s, color 0.15s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.055); color: rgba(255,255,255,0.9); }
.nav-item.active { background: rgba(62, 133, 228, 0.16); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: #4c94f5;
}
.nav-item svg { width: 17px; height: 17px; opacity: 0.86; }
.sidebar-bottom { margin-top: auto; padding: 14px 12px 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: linear-gradient(145deg, #2d5f9e, #183c63); color: #dcecff;
}
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-user-info strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { display: block; color: rgba(255,255,255,0.36); font-size: 10px; margin-top: 2px; }
.icon-btn {
  border: 0; background: transparent; width: 32px; height: 32px; border-radius: 7px;
  display: inline-grid; place-items: center; color: var(--muted); transition: 0.15s;
}
.icon-btn:hover { background: #f0f3f7; color: var(--ink); }
.sidebar .icon-btn { color: rgba(255,255,255,0.4); }
.sidebar .icon-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.main-wrap { margin-left: var(--sidebar); flex: 1; min-width: 0; }
.topbar {
  height: 62px; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
  padding: 0 30px; position: sticky; top: 0; z-index: 30;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-date { font-size: 11px; color: var(--muted); }
.topbar-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px;
  background: #f4f6f9; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2);
}
.topbar-tag .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.content { padding: 26px 30px 50px; max-width: 1560px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.page-title h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.notice-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid #eadfc4;
  background: #fffaf0; color: #80601f; border-radius: 8px; font-size: 11px; margin-bottom: 18px;
}
.notice-bar svg { width: 15px; height: 15px; flex: 0 0 15px; }
.notice-bar .close-notice { margin-left: auto; border: 0; background: transparent; color: #9c7d3d; }

/* ---------- 卡片 / 统计 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px 16px; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(16,35,56,0.02);
}
.stat-card::after {
  content: ""; position: absolute; width: 90px; height: 90px; right: -42px; top: -42px;
  border-radius: 50%; background: var(--primary-soft); opacity: 0.65;
}
.stat-card.warn::after { background: var(--warn-soft); }
.stat-card.teal::after { background: var(--teal-soft); }
.stat-card.danger::after { background: var(--danger-soft); }
.stat-label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.stat-label svg { width: 14px; height: 14px; }
.stat-value { font-size: 27px; font-weight: 600; letter-spacing: -0.5px; margin: 10px 0 3px; font-variant-numeric: tabular-nums; }
.stat-value .unit { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.stat-foot { color: #8a97a5; font-size: 10px; }
.stat-foot strong { color: var(--ink-2); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); gap: 16px; margin-bottom: 16px; }
.grid-2-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16,35,56,0.02); overflow: hidden;
}
.card-head { padding: 16px 18px 13px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f4; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-head .sub { color: var(--muted); font-size: 10px; margin-top: 3px; }
.card-head .card-action { margin-left: auto; }
.card-body { padding: 17px 18px; }
.card-body.flush { padding: 0; }
.more-link { color: var(--primary); font-size: 11px; display: inline-flex; align-items: center; gap: 3px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 680px; }
table.data thead th {
  text-align: left; font-size: 10px; font-weight: 500; color: #8793a0; letter-spacing: 0.3px;
  padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody td { padding: 12px 14px; border-bottom: 1px solid #eef1f5; vertical-align: middle; font-size: 12px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfcfe; }
table.data .name-cell { font-weight: 500; color: var(--ink); }
table.data .sub-cell { color: var(--muted); font-size: 10px; margin-top: 3px; }
table.data .num { font-variant-numeric: tabular-nums; }
table.data .actions { text-align: right; white-space: nowrap; }
table.data .actions .btn { margin-left: 5px; }
.table-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-icon { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: #f2f5f9; display: grid; place-items: center; color: #a5b0bb; }
.empty-icon svg { width: 20px; height: 20px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 500; white-space: nowrap; line-height: 1.5;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge-pass, .badge-active, .badge-valid { background: var(--success-soft); color: var(--success); }
.badge-warn, .badge-notice, .badge-bidding { background: var(--warn-soft); color: var(--warn); }
.badge-fail, .badge-expired, .badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info, .badge-muted { background: #eef2f7; color: #5c6b7a; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-plain::before { display: none; }
.risk-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-right: 5px; }
.risk-dot.fail { background: var(--danger); }
.risk-dot.ok { background: var(--success); }

/* ---------- 筛选栏 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 14px;
}
.search-box { position: relative; min-width: 220px; flex: 1; max-width: 320px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #99a5b1; }
.search-box .input { padding-left: 33px; min-height: 36px; background: #fafbfc; }
.toolbar .select { width: auto; min-width: 125px; min-height: 36px; padding: 7px 30px 7px 11px; background: #fafbfc; }
.toolbar-spacer { margin-left: auto; }
.count-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.count-label strong { color: var(--ink); font-weight: 600; }

/* ---------- 项目 / 详情 ---------- */
.project-name-cell { display: flex; align-items: flex-start; gap: 9px; }
.cat-icon {
  width: 29px; height: 29px; flex: 0 0 29px; border-radius: 7px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-top: 1px;
}
.cat-icon.municipal { background: var(--teal-soft); color: var(--teal); }
.cat-icon svg { width: 15px; height: 15px; }
.detail-hero {
  background: linear-gradient(135deg, #0b1c2e, #123653); color: #fff; border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px; display: flex; gap: 20px; align-items: center;
}
.detail-hero .hero-main { flex: 1; min-width: 0; }
.detail-hero h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.detail-hero p { margin: 0; color: rgba(255,255,255,0.55); font-size: 11px; }
.detail-hero .hero-actions { display: flex; gap: 8px; }
.detail-hero .btn-outline { border-color: rgba(255,255,255,0.22); color: #fff; background: rgba(255,255,255,0.04); }
.detail-hero .btn-outline:hover { background: rgba(255,255,255,0.1); }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 16px; }
.meta-item { padding: 14px 16px; border-right: 1px solid var(--line); }
.meta-item:last-child { border-right: 0; }
.meta-item .k { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.meta-item .v { font-size: 13px; font-weight: 500; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.section-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.section-title .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- 投标校验 ---------- */
.tender-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.tender-title-row { display: flex; align-items: flex-start; gap: 14px; }
.tender-title-row h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.tender-title-row p { margin: 0; color: var(--muted); font-size: 11px; }
.tender-title-row .actions { margin-left: auto; display: flex; gap: 8px; }
.tender-submeta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f5; }
.tender-submeta span { font-size: 11px; color: var(--muted); }
.tender-submeta strong { color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.result-panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px 22px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.result-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--muted); }
.result-panel.pass::before { background: var(--success); }
.result-panel.warn::before { background: var(--warn); }
.result-panel.fail::before { background: var(--danger); }
.result-top { display: flex; gap: 16px; align-items: center; }
.result-seal {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 50px;
  background: #eef2f7; color: #6c7b89;
}
.result-panel.pass .result-seal { background: var(--success-soft); color: var(--success); }
.result-panel.warn .result-seal { background: var(--warn-soft); color: var(--warn); }
.result-panel.fail .result-seal { background: var(--danger-soft); color: var(--danger); }
.result-seal svg { width: 24px; height: 24px; }
.result-copy { flex: 1; }
.result-copy h3 { margin: 0 0 5px; font-size: 16px; font-weight: 600; }
.result-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.result-counts { display: flex; gap: 16px; margin-left: 12px; }
.result-count { text-align: center; min-width: 44px; }
.result-count strong { display: block; font-size: 20px; line-height: 1; }
.result-count span { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.result-count.pass strong { color: var(--success); }
.result-count.warn strong { color: var(--warn); }
.result-count.fail strong { color: var(--danger); }
.check-list { border-top: 1px solid #eef1f5; }
.check-item { padding: 15px 0; border-bottom: 1px solid #eef1f5; }
.check-item:last-child { border-bottom: 0; }
.check-row { display: flex; align-items: flex-start; gap: 11px; }
.check-status { width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.check-status svg { width: 12px; height: 12px; }
.check-status.pass { background: var(--success-soft); color: var(--success); }
.check-status.warn { background: var(--warn-soft); color: var(--warn); }
.check-status.fail { background: var(--danger-soft); color: var(--danger); }
.check-main { flex: 1; }
.check-main h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.check-main h4 .badge { font-size: 9px; }
.check-line { font-size: 11px; color: var(--ink-2); line-height: 1.8; }
.check-line .k { color: var(--muted); display: inline-block; min-width: 60px; }
.check-detail { margin-top: 6px; padding: 8px 10px; background: #f8fafc; border-radius: 6px; color: #647382; font-size: 10px; line-height: 1.7; }
.check-detail.warn { background: #fffaf0; color: #8b641c; }
.check-detail.fail { background: #fdf4f4; color: #a34747; }
.requirement-list { display: flex; flex-direction: column; gap: 0; }
.req-row { display: flex; padding: 9px 0; border-bottom: 1px dashed #eef1f5; font-size: 11px; gap: 14px; }
.req-row:last-child { border-bottom: 0; }
.req-row .k { width: 88px; color: var(--muted); flex: 0 0 88px; }
.req-row .v { color: var(--ink-2); line-height: 1.6; flex: 1; }
.person-mini { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f0f2f6; }
.person-mini:last-child { border-bottom: 0; }
.person-mini .avatar { width: 30px; height: 30px; flex: 0 0 30px; background: #edf2f9; color: #47637f; font-size: 11px; }
.person-mini .info { flex: 1; min-width: 0; }
.person-mini .info strong { display: block; font-size: 11px; font-weight: 500; }
.person-mini .info span { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.person-mini .risk-dot { margin: 0; }
.risk-text { font-size: 9px; color: var(--warn); }
.risk-text.fail { color: var(--danger); }

/* ---------- 抽屉 / 模态 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(8, 20, 34, 0.45); z-index: 80;
  display: flex; justify-content: flex-end; opacity: 0; animation: fadeIn 0.18s ease forwards;
}
.overlay.center { justify-content: center; align-items: center; padding: 24px; }
@keyframes fadeIn { to { opacity: 1; } }
.drawer {
  width: min(620px, 92vw); height: 100%; background: #fff; box-shadow: -20px 0 50px rgba(8,20,34,0.16);
  display: flex; flex-direction: column; animation: slideIn 0.24s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(26px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.drawer-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { padding: 22px 24px 40px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 13px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #fbfcfd; }
.modal {
  width: min(680px, 94vw); max-height: 90vh; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 70px rgba(8,20,34,0.28); display: flex; flex-direction: column;
  animation: modalIn 0.22s cubic-bezier(.2,.8,.2,1);
}
.modal.wide { width: min(860px, 96vw); }
@keyframes modalIn { from { transform: translateY(10px) scale(0.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; justify-content: flex-end; background: #fbfcfd; border-radius: 0 0 14px 14px; }
.modal-foot .left { margin-right: auto; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-label { grid-column: 1 / -1; margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.form-section-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.checkbox-row { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 12px; color: var(--ink-2); }
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--primary); }
.help-text { color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.6; }

.person-picker { border: 1px solid var(--line); border-radius: 8px; max-height: 210px; overflow-y: auto; background: #fbfcfd; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid #eef1f5; }
.picker-row:last-child { border-bottom: 0; }
.picker-row input { width: 15px; height: 15px; accent-color: var(--primary); }
.picker-row .info { flex: 1; min-width: 0; }
.picker-row strong { font-size: 11px; font-weight: 500; display: block; }
.picker-row span { font-size: 9px; color: var(--muted); display: block; margin-top: 2px; }
.picker-row .cert { font-size: 9px; color: var(--teal); text-align: right; max-width: 190px; }

/* ---------- 提示 ---------- */
.toast-stack { position: fixed; right: 22px; top: 76px; z-index: 120; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 240px; max-width: 360px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 8px; padding: 11px 14px; box-shadow: 0 10px 30px rgba(16,35,56,0.14);
  font-size: 12px; color: var(--ink-2); animation: toastIn 0.2s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.loading-line { height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 40% 100%; animation: loading 1.2s infinite linear; position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
@keyframes loading { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ---------- 其他 ---------- */
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; }
.segmented button { border: 0; background: #fff; padding: 7px 11px; font-size: 11px; color: var(--muted); }
.segmented button.active { background: var(--primary-soft); color: var(--primary); }
.progress-track { height: 6px; background: #edf0f4; border-radius: 10px; overflow: hidden; }
.progress-track > div { height: 100%; border-radius: 10px; background: var(--primary); }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 18px; }
.info-strip > div { background: #fff; padding: 12px 14px; }
.info-strip .k { font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.info-strip .v { font-size: 12px; font-weight: 500; }
.side-list { display: flex; flex-direction: column; gap: 0; }
.side-list-item { padding: 11px 0; border-bottom: 1px solid #f0f2f6; display: flex; gap: 10px; }
.side-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list-item .date-box { width: 44px; flex: 0 0 44px; text-align: center; background: #f5f7fa; border-radius: 6px; padding: 5px 2px; }
.side-list-item .date-box strong { display: block; font-size: 15px; line-height: 1.1; font-weight: 600; }
.side-list-item .date-box span { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.side-list-item .info { flex: 1; min-width: 0; }
.side-list-item .info strong { display: block; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-list-item .info span { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.side-list-item .tail { color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
.dash-table .name-cell { max-width: 300px; }
.dash-table .name-cell .sub-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-item:nth-child(2) { border-right: 0; }
  .meta-item:nth-child(3), .meta-item:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  :root { --sidebar: 68px; }
  .sidebar-brand { padding: 20px 16px; justify-content: center; }
  .sidebar-brand .brand-copy, .nav-label, .nav-item span, .sidebar-user-info, .sidebar-user .icon-btn { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item.active::before { left: -12px; }
  .sidebar-user { justify-content: center; }
  .sidebar-bottom { padding: 12px 8px; }
  .content, .topbar { padding-left: 20px; padding-right: 20px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { min-height: 330px; padding: 40px; }
  .login-points { display: none; }
  .login-copy h1 { font-size: 32px; }
  .login-form-side { padding: 40px 24px; }
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head { flex-direction: column; }
  .page-actions { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .result-top { flex-wrap: wrap; }
  .result-counts { width: 100%; margin-left: 0; justify-content: flex-start; }
  .tender-title-row { flex-wrap: wrap; }
  .tender-title-row .actions { margin-left: 0; width: 100%; }
  .login-screen { display: block; }
  .login-visual { min-height: 250px; }
}

/* ---------------- 报价分析 ---------------- */
.hist-svg { width: 100%; height: 190px; display: block; }
table.data.compact th, table.data.compact td { padding: 7px 10px; font-size: 11.5px; }
table.data.compact thead th { font-size: 10.5px; }
tr.row-active td { background: #fdf3f3; }
tr.row-active td:first-child { box-shadow: inset 3px 0 0 var(--danger); }

.sim-result { margin-top: 16px; }
.sim-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
.sim-summary > div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.sim-summary span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.sim-summary strong { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }

.chain-list { display: flex; flex-direction: column; }
.chain-row { display: grid; grid-template-columns: 190px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.chain-row:last-child { border-bottom: 0; }
.chain-k { color: var(--muted); font-size: 11.5px; }
.chain-v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.chain-note { font-size: 11px; color: #8a97a5; }

.tier-list { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tier-head { background: var(--bg); padding: 9px 12px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tier-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.tier-name { font-size: 11px; color: var(--muted); }
.tier-price { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary); }
.tier-note { grid-column: 2; font-size: 10.5px; color: #8a97a5; line-height: 1.5; }
.sim-warn { margin-top: 12px; display: flex; gap: 7px; align-items: flex-start; font-size: 10.5px; line-height: 1.6; color: #8a6b28; background: #fffaf0; border: 1px solid #f0ddb5; border-radius: 8px; padding: 9px 11px; }
.sim-warn svg { flex: 0 0 auto; margin-top: 1px; }

@media (max-width: 1080px) {
  .chain-row { grid-template-columns: 1fr; gap: 3px; }
  .sim-summary { grid-template-columns: 1fr; }
}

/* 报价模拟布局 */
.sim-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-stack .btn { margin-top: 4px; }
.sim-empty { padding: 34px 24px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.sim-empty svg { color: #b8c3cf; margin-bottom: 8px; }
@media (max-width: 1080px) { .sim-layout { grid-template-columns: 1fr; } }

/* 误差与窗口对比 */
.gap-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gap-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.gap-row:last-child { border-bottom: 0; }
.gap-row span { color: var(--muted); }
.gap-row strong { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12px; }
.tier-meta { grid-column: 2; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.tier-pill { font-size: 10px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.tier-meta .tier-note { font-size: 10.5px; color: #8a97a5; }
table.data.compact { min-width: 0; }

/* 我方复盘条 */
.review-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.review-strip > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.review-strip > div:last-child { border-right: 0; }
.review-strip span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.review-strip strong { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.review-strip strong.neg { color: var(--danger); }
.review-strip em { display: block; font-style: normal; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px; }
@media (max-width: 1080px) { .review-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
table.data .sub-cell.neg { color: var(--danger); }


/* 三类人员（安全员 A/B/C 证） */
.abc-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.abc-cell { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-right: 1px solid var(--line); }
.abc-cell:last-child { border-right: 0; }
.abc-tag { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: ui-monospace, monospace; }
.abc-a { background: var(--primary-soft); color: var(--primary); }
.abc-b { background: var(--success-soft); color: var(--success); }
.abc-c { background: var(--warn-soft); color: var(--warn); }
.abc-cell strong { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.abc-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.abc-names { display: block; align-self: stretch; }
@media (max-width: 1080px) { .abc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .abc-names { display: none; } }

.abc-cell strong.abc-zero { color: var(--danger); }
.abc-cell strong.abc-zero::after { content: ' 缺'; font-size: 10px; color: var(--danger); font-weight: 400; margin-left: 2px; }

/* ---------------- 社保缴纳 ---------------- */
.si-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.si-cell {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 3px;
  text-align: center; background: #fff; line-height: 1.35;
}
.si-cell b { display: block; font-size: 12px; font-weight: 600; font-family: ui-monospace, "Cascadia Mono", monospace; letter-spacing: -0.3px; }
.si-cell span { font-size: 10px; }
.si-paid { background: var(--success-soft); border-color: #b6dfcd; color: var(--success); }
.si-makeup { background: var(--info-soft); border-color: #bcd8f2; color: var(--info); }
.si-gap { background: var(--danger-soft); border-color: #f0c4c4; color: var(--danger); }
.si-empty { background: #f8fafc; border-style: dashed; color: var(--muted); }
.si-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.si-legend span { display: inline-flex; align-items: center; gap: 5px; }
.si-dot { width: 9px; height: 9px; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.si-dot.si-paid { background: var(--success-soft); border-color: #b6dfcd; }
.si-dot.si-makeup { background: var(--info-soft); border-color: #bcd8f2; }
.si-dot.si-gap { background: var(--danger-soft); border-color: #f0c4c4; }
.si-dot.si-empty { background: #f8fafc; border-style: dashed; }
@media (max-width: 900px) { .si-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* 人员列表：证书、ABC 证与社保直接展开，不必进入档案才能看到 */
table.data.person-cert-table { min-width: 1390px; table-layout: fixed; }
.person-cert-table th:nth-child(1) { width: 120px; }
.person-cert-table th:nth-child(2) { width: 135px; }
.person-cert-table th:nth-child(3) { width: 350px; }
.person-cert-table th:nth-child(4) { width: 310px; }
.person-cert-table th:nth-child(5) { width: 185px; }
.person-cert-table th:nth-child(6) { width: 75px; }
.person-cert-table th:nth-child(7) { width: 105px; }
table.data.person-cert-table tbody td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.cert-detail-cell { padding-left: 10px !important; padding-right: 10px !important; }
.cert-list { display: grid; gap: 8px; }
.cert-list-item { padding: 8px 9px; border: 1px solid #e8edf2; border-radius: 7px; background: #fbfcfd; }
.abc-detail-cell .cert-list-item { background: #fffaf3; border-color: #f0e2ca; }
.cert-list-title { color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.45; }
.cert-list-no { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.cert-list-expiry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 6px; color: var(--ink-2); font-size: 10.5px; }
.cert-list-expiry strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cert-list-expiry .badge { flex: 0 0 auto; }
.cert-list-expiry.is-warning > span, .cert-list-expiry.is-warning > span strong { color: var(--warn); }
.cert-list-expiry.is-expired > span, .cert-list-expiry.is-expired > span strong { color: var(--danger); }
.social-detail-cell .sub-cell { line-height: 1.55; }

/* 官网核验结论（注册类证书） */
.qual-line { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 10.5px; line-height: 1.5; }
.qual-line.is-ok { color: var(--pass, #177245); }
.qual-line.is-warn { color: var(--warn, #b26a00); font-weight: 500; }
.qual-line.is-idle { color: var(--ink-3, #8a8f98); }
.qual-cert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.qual-cert { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--surface-2, #fafbfc); }
.qual-cert .qc-type { font-size: 11px; color: var(--ink-3, #8a8f98); }
.qual-cert .qc-no { font-weight: 600; font-variant-numeric: tabular-nums; margin: 3px 0; word-break: break-all; }
.qual-cert .qc-meta { font-size: 10.5px; color: var(--ink-2, #5c6470); line-height: 1.5; }

/* 已登记但没有缴费凭据的月份：虚框 + 琥珀色，和能开出证明的实缴区分开 */
.si-cell.si-pending { background: #fffdf5; border-style: dashed; border-color: #e2c185; }
.si-cell.si-pending span { color: #a9690c; font-weight: 600; }
.si-dot.si-pending { background: #fffdf5; border: 1px dashed #d9b877; }
.sub-cell.sub-warn { color: #a9690c; font-weight: 500; }

/* ================= AI 助手 ================= */
.ai-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ai-tab { border: 1px solid var(--line); background: var(--surface-2, #f5f7fa); color: var(--ink-2); border-radius: 8px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.ai-tab:hover { border-color: var(--primary, #1f63d6); color: var(--primary, #1f63d6); }
.ai-tab.active { background: var(--primary, #1f63d6); border-color: var(--primary, #1f63d6); color: #fff; font-weight: 600; }
.ai-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ai-result { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: var(--surface-2, #fafbfc); min-height: 120px; font-size: 13px; line-height: 1.75; color: var(--ink, #2b3540); }
.ai-empty { color: var(--muted, #71808f); font-size: 12.5px; text-align: center; padding: 26px 10px; line-height: 2; }
.ai-thinking { position: relative; padding-left: 26px; text-align: left; }
.ai-thinking::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -8px; width: 16px; height: 16px; border: 2px solid var(--primary, #1f63d6); border-top-color: transparent; border-radius: 50%; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-result h3 { font-size: 14px; margin: 18px 0 8px; color: var(--ink, #2b3540); }
.ai-result h3:first-child { margin-top: 0; }
.ai-result h4 { font-size: 13px; margin: 14px 0 6px; }
.ai-result p { margin: 6px 0; }
.ai-result ul, .ai-result ol { margin: 6px 0; padding-left: 20px; }
.ai-result li { margin: 3px 0; }
.ai-result strong { color: var(--ink, #1f2a35); }
.ai-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.ai-table th, .ai-table td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
.ai-table th { background: var(--surface, #f0f3f8); font-weight: 600; }
.ai-code { background: #1f2937; color: #e5e7eb; border-radius: 8px; padding: 12px 14px; font-size: 12px; overflow-x: auto; margin: 10px 0; }
.ai-chat-layout { display: grid; grid-template-columns: 210px 1fr; gap: 14px; min-height: 480px; }
.ai-chat-sidebar { border-right: 1px solid var(--line); padding-right: 12px; display: flex; flex-direction: column; gap: 10px; }
.ai-chat-list { overflow-y: auto; max-height: 420px; display: flex; flex-direction: column; gap: 6px; }
.ai-chat-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 12.5px; }
.ai-chat-item:hover { border-color: var(--primary, #1f63d6); }
.ai-chat-item.active { border-color: var(--primary, #1f63d6); background: rgba(31, 99, 214, .06); }
.ai-chat-item-title { font-weight: 500; color: var(--ink, #2b3540); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-chat-item-meta { font-size: 11px; color: var(--muted, #71808f); margin-top: 3px; }
.ai-chat-main { display: flex; flex-direction: column; min-width: 0; }
.ai-chat-messages { flex: 1; overflow-y: auto; max-height: 430px; padding: 4px 2px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg .ai-bubble { max-width: 82%; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.7; }
.ai-msg.user .ai-bubble { background: var(--primary, #1f63d6); color: #fff; border-bottom-right-radius: 3px; white-space: pre-wrap; }
.ai-msg.assistant .ai-bubble { background: var(--surface-2, #f5f7fa); border: 1px solid var(--line); border-bottom-left-radius: 3px; color: var(--ink, #2b3540); }
.ai-msg.error .ai-bubble { background: #fdf2f2; border-color: #e5b8b8; color: #b23b3b; }
.ai-msg.assistant .ai-bubble h3 { font-size: 13.5px; margin: 10px 0 6px; }
.ai-msg.assistant .ai-bubble h3:first-child { margin-top: 0; }
.ai-msg.assistant .ai-bubble p, .ai-msg.assistant .ai-bubble ul, .ai-msg.assistant .ai-bubble ol { margin: 6px 0; }
.ai-msg.assistant .ai-bubble ul, .ai-msg.assistant .ai-bubble ol { padding-left: 18px; }
.ai-msg.assistant .ai-bubble table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.ai-msg.assistant .ai-bubble table th, .ai-msg.assistant .ai-bubble table td { border: 1px solid var(--line); padding: 5px 8px; }
.ai-chat-inputbar { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ai-withdata { font-size: 12px; color: var(--ink-2, #5c6470); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.ai-chat-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-family: inherit; line-height: 1.5; }
.ai-chat-form textarea:focus { outline: none; border-color: var(--primary, #1f63d6); }
@media (max-width: 860px) { .ai-chat-layout { grid-template-columns: 1fr; } .ai-chat-sidebar { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 10px; } }

/* 招标文件 AI 精读卡片（投标导入弹窗内） */
.ai-tender-card { border: 1px solid #cfdcf3; border-radius: 10px; background: linear-gradient(180deg, #f7faff, #fbfdff); margin-bottom: 16px; overflow: hidden; }
.ai-tender-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #eef4ff; border-bottom: 1px solid #dbe6f8; }
.ai-tender-head .name-cell { display: flex; align-items: center; gap: 6px; color: #1f4f9e; font-size: 13px; }
.ai-tender-body { padding: 6px 16px 14px; max-height: 340px; overflow-y: auto; font-size: 12.5px; line-height: 1.75; color: var(--ink, #2b3540); }
.ai-tender-body h3 { font-size: 13px; margin: 14px 0 6px; color: #1f4a8f; }
.ai-tender-body h3:first-child { margin-top: 10px; }
.ai-tender-body h4 { font-size: 12.5px; margin: 10px 0 4px; }
.ai-tender-body ul, .ai-tender-body ol { margin: 5px 0; padding-left: 19px; }
.ai-tender-body li { margin: 2px 0; }
.ai-tender-body table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.ai-tender-body th, .ai-tender-body td { border: 1px solid #dbe4f2; padding: 5px 8px; text-align: left; }
.ai-tender-body th { background: #f2f6fd; }
.ai-tender-body p { margin: 5px 0; }

/* 现场打卡时间线（项目详情 + 手机端记录） */
.timeline-item{padding:11px 0;border-bottom:1px solid var(--line)}
.timeline-item:last-child{border-bottom:none}
.timeline-head{display:flex;align-items:center;gap:8px;font-size:13px}
.timeline-body{font-size:13px;color:var(--text);margin-top:6px;line-height:1.6}
.timeline-foot{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:12px}
.timeline-foot a{color:var(--primary);text-decoration:none}

/* 行内可点的小字（如"起缴 2026-08 · 待核"）：起缴月错了整列社保都错，必须一眼能改 */
.link-btn.is-warn { color: #a9690c; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg { vertical-align: -1px; }
.si-cell.si-prior { background: #f4f5f7; border-color: #e2e5ea; color: #98a0aa; }
.si-cell.si-prior span { color: #98a0aa; }
.si-dot.si-prior { background: #f4f5f7; border-color: #d8dce2; }
