:root {
  --primary: #6098f2;
  --primary-light: #eef5ff;
  --primary-dark: #2f67c8;
  --ai-purple: #8a84e8;
  --ai-cyan: #61d0dd;
  --ai-ink: #222633;
  --ai-surface: rgba(255,255,255,.82);
  --ai-line: rgba(96,152,242,.18);
  --success: #10b981;
  --success-bg: #d1fae5;
  --success-text: #059669;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #d97706;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --danger-text: #ef4444;
  --info: #6098f2;
  --info-bg: #eef5ff;
  --info-text: #2f67c8;
  --bg: #f6f9ff;
  --card: rgba(255,255,255,.9);
  --border: #dbe7fb;
  --secondary-bg: #f2f7ff;
  --row-alt: #f8fbff;
  --text: #222633;
  --text-2: #66758f;
  --text-3: #9aa9c0;
  --radius-btn: 10px;
  --radius-input: 12px;
  --radius-card: 14px;
  --radius-modal: 12px;
  --shadow-card: 0 12px 36px rgba(59,95,160,.08), 0 1px 2px rgba(79,119,190,.06);
  --shadow-hover: 0 18px 46px rgba(59,95,160,.14), 0 0 0 1px rgba(96,152,242,.18);
  --shadow-modal: 0 22px 60px rgba(34,38,51,.18);
  --sidebar-w: 232px;
  --topbar-h: 56px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.login-mode {
  background:
    radial-gradient(ellipse 70% 50% at 18% 22%, rgba(60,120,220,.45), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 78%, rgba(120,90,220,.35), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(60,180,220,.25), transparent 60%),
    linear-gradient(160deg, #050d22 0%, #081536 38%, #0a1a45 70%, #050b1f 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96,152,242,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,152,242,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
}
body.login-mode::before { display: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }

/* ===== 通用元素 ===== */
.agent-title-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

/* ===== 项目管理 · 业财子模块（新增样式，隔离 finance-* 命名空间） ===== */
.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.finance-summary-card {
  position: relative;
  min-height: 112px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  color: var(--text);
  overflow: hidden;
  transition: all 150ms cubic-bezier(.4,0,.2,1);
}
.finance-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #1a73e8;
}
.finance-summary-card:hover { cursor: pointer; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.finance-summary-card:active { transform: scale(.98); }
.finance-summary-card:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(26,115,232,.24); }
.finance-summary-card.orange::before { background: #f59e0b; }
.finance-summary-card.red::before { background: #ef4444; }
.finance-summary-card.green::before { background: #10b981; }
.finance-summary-card.purple::before { background: #8b5cf6; }
.finance-summary-label { display: block; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.finance-summary-card b { display: block; margin: 8px 0 4px; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.finance-summary-card small { display: block; color: var(--text-3); font-size: 12px; line-height: 1.4; }
.finance-filter-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 16px; }
.finance-filter-bar .field { min-width: 152px; margin: 0; flex-direction: row; align-items: center; gap: 10px; }
.finance-filter-bar .field > span { flex: none; white-space: nowrap; }
.finance-filter-bar .input, .finance-filter-bar .select { height: 36px; }
.finance-filter-bar .select { width: 150px; }
.finance-search-field { flex: 1; }
.finance-search-field .input { min-width: 220px; width: 100%; }
.finance-filter-actions { display: flex; gap: 8px; }
.finance-alert-float { top: 84px; width: 390px; border-color: #fecaca; }
.finance-alert-content { display: grid; grid-template-columns: 8px 1fr 16px; align-items: center; gap: 10px; width: 100%; padding: 8px 0 2px; color: var(--text); text-align: left; }
.finance-alert-content:hover b { color: #b91c1c; }
.finance-alert-content > .dot { align-self: start; margin-top: 6px; }
.finance-alert-content span { display: block; }
.finance-alert-content b { display: block; font-size: 13px; line-height: 1.5; }
.finance-alert-content small { display: block; margin-top: 2px; color: #b91c1c; font-size: 12px; line-height: 1.5; }
.finance-alert-content svg { width: 16px; height: 16px; color: var(--text-3); }
.finance-table-card { min-width: 0; overflow: hidden; }
.finance-table-card > .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.finance-table-card > .table-wrap::-webkit-scrollbar { height: 10px; }
.finance-table-card > .table-wrap::-webkit-scrollbar-thumb { border: 2px solid #fff; border-radius: 8px; background: #94a3b8; }
.finance-table { min-width: 1480px; }
.finance-table th { white-space: nowrap; }
.finance-project-cell { min-width: 220px; }
.finance-project-cell b, .finance-project-cell span { display: block; }
.finance-project-cell span, .finance-table-note { margin-top: 4px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.finance-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 176px; }
.finance-progress-head b { font-size: 13px; font-variant-numeric: tabular-nums; }
.finance-progress-head span { color: var(--text-2); font-size: 12px; }
.finance-progress { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 6px; background: #e2e8f0; }
.finance-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1a73e8, #46c58a); }
.finance-profit { color: #059669; font-variant-numeric: tabular-nums; }
.finance-risk-cell { min-width: 176px; }
.finance-risk-cell span:last-child { display: block; margin-top: 6px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.finance-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; color: var(--text-2); }
.finance-empty svg { width: 32px; height: 32px; color: #94a3b8; }
.finance-empty b { color: var(--text); font-size: 14px; }
.finance-empty span { font-size: 12px; }

.finance-detail-head { margin-bottom: 16px; }
.finance-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
.finance-risk-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid #fecaca; border-radius: 8px; background: #fff7f7; color: #b91c1c; font-size: 12px; font-weight: 600; transition: all 150ms ease; }
.finance-risk-trigger:hover { cursor: pointer; border-color: #ef4444; background: #fee2e2; }
.finance-risk-trigger:focus-visible { outline: 2px solid rgba(239,68,68,.25); outline-offset: 2px; }
.finance-risk-trigger svg { width: 16px; height: 16px; }
.finance-risk-trigger b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; }
.finance-detail-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.finance-detail-kpis .finance-summary-card { min-height: 76px; padding: 12px 16px; }
.finance-detail-kpis .finance-summary-card b { margin: 4px 0 2px; font-size: 18px; }
.finance-tabs { margin-bottom: 16px; }
.finance-flow-card { margin-bottom: 16px; padding-top: 16px; padding-bottom: 12px; }
.finance-flow-card .card-head { margin-bottom: 4px; }
.finance-flow { display: flex; align-items: center; padding: 8px 4px 0; overflow-x: auto; }
.finance-flow-item { display: flex; align-items: center; min-width: max-content; }
.finance-flow-node { width: 112px; min-height: 68px; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; padding: 10px; border: 1px solid #dbe7fb; border-radius: 8px; background: #f8fbff; color: #1f4b8f; text-align: left; }
.finance-flow-node span { grid-row: 1 / 3; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8f0fe; color: #1a73e8; font-size: 11px; font-weight: 700; }
.finance-flow-node b { font-size: 12px; line-height: 1.4; }
.finance-flow-node small { color: #64748b; font-size: 12px; }
.finance-flow-node.done { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.finance-flow-node.done span { background: #d1fae5; color: #059669; }
.finance-flow-node.risk { border-color: #fecaca; background: #fff7f7; color: #b91c1c; }
.finance-flow-node.risk span { background: #fee2e2; color: #ef4444; }
.finance-flow-line { width: 18px; height: 1px; margin: 0 4px; background: #94a3b8; position: relative; }
.finance-flow-line::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 6px solid #94a3b8; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.finance-detail-grid { align-items: stretch; }
.finance-contract-card { margin-bottom: 24px; }
.finance-contract-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(560px, 1.6fr); gap: 24px; align-items: start; }
.finance-contract-info { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #f8fbff; }
.finance-contract-files { min-width: 0; }
.finance-contract-pane-title { margin-bottom: 12px; color: var(--text); font-size: 13px; font-weight: 700; }
.finance-contract-pane-title span { margin-left: 6px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.finance-contract-summary { grid-template-columns: 1fr; gap: 0; margin: 0; }
.finance-contract-summary > div { display: flex; }
.finance-contract-summary dd { text-align: right; }
.finance-material-table { min-width: 680px; }
.finance-receivable-wrap { width: 100%; }
.finance-receivable-table { width: 1100px; min-width: 1100px; table-layout: fixed; }
.finance-receivable-table .col-batch { width: 110px; }
.finance-receivable-table .col-plan { width: 120px; }
.finance-receivable-table .col-plan-date { width: 150px; }
.finance-receivable-table .col-status { width: 120px; }
.finance-receivable-table .col-arrival-date { width: 140px; }
.finance-receivable-table .col-arrival-amount { width: 140px; }
.finance-receivable-table .col-actions { width: 250px; }
.finance-receivable-table th,
.finance-receivable-table td { box-sizing: border-box; }
.finance-receivable-table th:nth-child(6),
.finance-receivable-table td:nth-child(6) { white-space: nowrap; }
.finance-receivable-table th:last-child,
.finance-receivable-table td:last-child { padding-left: 16px; padding-right: 16px; }
.finance-row-actions { display: flex; width: 100%; min-width: 0; gap: 8px; flex-wrap: nowrap; justify-content: flex-start; align-items: center; }
.finance-row-actions .btn { flex: 0 0 auto; white-space: nowrap; }
.finance-file-preview { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.finance-file-preview-placeholder { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 360px; border: 1px dashed #93c5fd; border-radius: 8px; background: linear-gradient(145deg, #fff, #eff6ff); color: #64748b; text-align: center; }
.finance-file-preview-placeholder.invoice { border-color: #c4b5fd; background: linear-gradient(145deg, #fff, #f5f3ff); }
.finance-file-preview-placeholder svg { width: 48px; height: 48px; color: #60a5fa; }
.finance-file-preview-placeholder b { color: var(--text); font-size: 16px; }
.finance-file-preview-placeholder span { color: var(--text-2); font-size: 13px; }
.finance-file-preview-placeholder small { font-size: 12px; }
.finance-info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.finance-info-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.finance-info-list dt { color: var(--text-2); font-size: 12px; }
.finance-info-list dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; text-align: right; }
.finance-risk-panel { border-color: #fee2e2; }
.finance-risk-hero { display: flex; gap: 16px; padding: 16px; border-radius: 8px; background: #fff7f7; }
.finance-risk-hero > span { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background: #fee2e2; color: #ef4444; }
.finance-risk-hero svg { width: 22px; height: 22px; }
.finance-risk-hero b { font-size: 14px; color: #b91c1c; }
.finance-risk-hero p { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.finance-risk-list { margin: 16px 0; }
.finance-risk-list > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.finance-risk-list b { font-size: 13px; }
.finance-risk-list small { color: var(--text-2); font-size: 12px; }
.finance-full-btn { width: 100%; }
.finance-mini-grid { margin-bottom: 24px; }
.finance-mini-card span, .finance-mini-card small { display: block; color: var(--text-2); font-size: 12px; }
.finance-mini-card b { display: block; margin: 8px 0 4px; font-size: 22px; font-variant-numeric: tabular-nums; }
.finance-mini-card.danger { border-color: #fecaca; background: #fffafa; }
.finance-profit-hero { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 24px; margin-bottom: 24px; padding: 24px; border: 1px solid #bbf7d0; border-radius: 10px; background: linear-gradient(135deg, #f0fdf4, #f8fbff); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.finance-profit-hero > div:first-child span, .finance-profit-hero small { display: block; color: #64748b; font-size: 12px; }
.finance-profit-hero > div:first-child b { display: block; margin: 8px 0 4px; color: #047857; font-size: 30px; font-variant-numeric: tabular-nums; }
.finance-profit-formula { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.finance-profit-formula span { min-width: 152px; padding: 16px; border: 1px solid #dbe7fb; border-radius: 8px; background: #fff; color: #153b7a; font-size: 16px; font-weight: 700; text-align: center; }
.finance-profit-formula span.result { border-color: #a7f3d0; color: #047857; background: #ecfdf5; }
.finance-profit-formula i { color: #64748b; font-size: 20px; font-style: normal; }
.finance-task-types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 24px; }
.finance-task-type { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-2); font-size: 13px; transition: all 150ms cubic-bezier(.4,0,.2,1); }
.finance-task-type:hover { cursor: pointer; border-color: #93c5fd; background: #f8fbff; }
.finance-task-type:active { transform: scale(.98); }
.finance-task-type.active { border-color: #1a73e8; background: #e8f0fe; color: #1557b0; }
.finance-task-type b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #f1f5f9; color: #0f172a; font-size: 12px; }
.finance-task-type.active b { background: #1a73e8; color: #fff; }
.finance-overdue { color: #ef4444; font-variant-numeric: tabular-nums; }

/* 项目业财台账 / 业财待办：克制的企业财务后台视觉 */
.finance-ledger-page,
.finance-tasks-page { color: #172033; }
.finance-ledger-page .page-head,
.finance-tasks-page .page-head { margin-bottom: 20px; }
.finance-ledger-page .page-title,
.finance-tasks-page .page-title { color: #172033; font-size: 22px; letter-spacing: 0; }
.finance-ledger-page .page-sub,
.finance-tasks-page .page-sub { color: #6b778c; }
.finance-ledger-page .btn,
.finance-tasks-page .btn { border-radius: 6px; box-shadow: none; }
.finance-ledger-page .btn-primary,
.finance-tasks-page .btn-primary { background: #2563b8; box-shadow: none; }
.finance-ledger-page .btn-primary:hover,
.finance-tasks-page .btn-primary:hover { background: #1e4f94; box-shadow: none; transform: none; }
.finance-ledger-page .btn-outline,
.finance-tasks-page .btn-outline { border-color: #d8dee8; background: #fff; }

.finance-ledger-page .finance-summary-grid { gap: 12px; margin-bottom: 16px; }
.finance-ledger-page .finance-summary-card {
  min-height: 96px;
  padding: 16px 18px;
  border-color: #dde3ec;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: border-color 120ms ease, background 120ms ease;
}
.finance-ledger-page .finance-summary-card::before { display: none; }
.finance-ledger-page .finance-summary-card:hover { transform: none; border-color: #9fb5d1; background: #fbfcfe; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.finance-ledger-page .finance-summary-label { color: #667085; font-weight: 500; }
.finance-ledger-page .finance-summary-card b { margin: 6px 0 3px; color: #172033; font-size: 21px; }
.finance-ledger-page .finance-summary-card small { color: #8a94a6; }

.finance-ledger-page .finance-filter-bar {
  padding: 12px 14px;
  border-color: #dde3ec;
  border-radius: 8px;
  background: #f7f8fa;
  box-shadow: none;
}
.finance-ledger-page .finance-filter-bar .input,
.finance-ledger-page .finance-filter-bar .select { border-color: #d8dee8; border-radius: 6px; background: #fff; }
.finance-ledger-page .finance-filter-bar .field > span { color: #4b5565; font-weight: 500; }

.finance-ledger-page .finance-table-card,
.finance-tasks-page .finance-table-card { border-color: #dde3ec; border-radius: 8px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.finance-ledger-page .finance-table-card .card-head,
.finance-tasks-page .finance-table-card .card-head { padding-bottom: 14px; border-bottom: 1px solid #e7ebf1; }
.finance-ledger-page .card-title,
.finance-tasks-page .card-title { color: #243147; }
.finance-ledger-page .table-wrap,
.finance-tasks-page .table-wrap { border: 0; border-radius: 0; }
.finance-ledger-page .table th,
.finance-tasks-page .table th { background: #f3f5f8; color: #526071; font-weight: 600; }
.finance-ledger-page .table td,
.finance-tasks-page .table td { border-bottom-color: #e8ecf2; }
.finance-ledger-page .table tbody tr:nth-child(even),
.finance-tasks-page .table tbody tr:nth-child(even) { background: #fafbfc; }
.finance-ledger-page .table tbody tr:hover,
.finance-tasks-page .table tbody tr:hover { background: #f3f6fa; }
.finance-ledger-page .finance-progress { background: #e5e9ef; }
.finance-ledger-page .finance-progress i { background: #4b7fba; }

.finance-alert-float { border-color: #d8dee8; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.finance-alert-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 6px; background: #fff3e6; color: #c46b08; }
.finance-alert-icon svg,
.finance-alert-float .app-alert-mini > svg { width: 16px; height: 16px; }
.finance-alert-float .app-alert-title { color: #344054; }
.finance-alert-float .app-alert-mini { background: #fff; }

.finance-tasks-page .finance-task-types { display: flex; gap: 0; margin-bottom: 16px; padding: 4px; border: 1px solid #dde3ec; border-radius: 8px; background: #f3f5f8; }
.finance-tasks-page .finance-task-type {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid #e1e6ed;
  border-radius: 0;
  background: transparent;
  color: #5d697a;
  transition: background 120ms ease, color 120ms ease;
}
.finance-tasks-page .finance-task-type:first-child { border-radius: 5px 0 0 5px; }
.finance-tasks-page .finance-task-type:last-child { border-right: 0; border-radius: 0 5px 5px 0; }
.finance-tasks-page .finance-task-type:hover { border-color: #e1e6ed; background: #fff; color: #243147; }
.finance-tasks-page .finance-task-type:active { transform: none; }
.finance-tasks-page .finance-task-type.active { border-color: transparent; background: #fff; color: #1f5a9d; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.finance-tasks-page .finance-task-type b { min-width: 22px; height: 20px; border-radius: 10px; background: #e5e9ef; color: #526071; }
.finance-tasks-page .finance-task-type.active b { background: #e7eff9; color: #1f5a9d; }

@media (max-width: 960px) {
  .finance-tasks-page .finance-task-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .finance-tasks-page .finance-task-type { border: 0; border-radius: 5px; }
}

@media (max-width: 1400px) {
  .finance-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-detail-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-task-types { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .finance-summary-grid, .finance-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-filter-bar { align-items: stretch; flex-direction: column; }
  .finance-filter-bar .field { align-items: stretch; flex-direction: column; gap: 6px; }
  .finance-filter-bar .select { width: 100%; }
  .finance-detail-title { align-items: flex-start; flex-direction: column; }
  .finance-contract-layout { grid-template-columns: 1fr; }
  .finance-profit-hero { grid-template-columns: 1fr; }
  .finance-profit-formula { justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 640px) {
  .finance-summary-grid, .finance-detail-kpis, .finance-task-types { grid-template-columns: 1fr; }
  .finance-info-list { grid-template-columns: 1fr; }
  .finance-profit-formula span { min-width: 128px; }
}
.agent-mark-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  min-width: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb020, #ff7a00);
  box-shadow: 0 0 0 3px rgba(255, 139, 26, .16), 0 0 14px rgba(255, 122, 0, .45);
  border: 1px solid rgba(255,255,255,.88);
  vertical-align: middle;
  cursor: pointer;
}
.agent-mark-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(255, 145, 35, .42);
  animation: markPulse 1.8s ease-out infinite;
}
.agent-mark-dot:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(255, 139, 26, .22), 0 0 18px rgba(255, 122, 0, .6);
}
.marked-action-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marked-action-row .btn-block {
  flex: 1;
}
.score-global-actions,
.doc-top-actions,
.page-actions,
.writer-bottom-chat {
  position: relative;
}
.agent-spec {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-spec-hero,
.agent-spec-grid > div,
.agent-spec-accept {
  border: 1px solid rgba(245, 158, 11, .22);
  background: linear-gradient(135deg, rgba(255, 251, 235, .92), rgba(255,255,255,.9));
  border-radius: 10px;
  padding: 12px 14px;
}
.agent-spec-hero {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}
.agent-spec-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb020, #ff7a00);
  box-shadow: 0 0 0 4px rgba(255, 139, 26, .16);
}
.agent-spec b {
  display: block;
  color: #9a4f00;
  font-size: 13px;
  margin-bottom: 4px;
}
.agent-spec p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}
.agent-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.agent-spec-section {
  border: 1px solid rgba(245, 158, 11, .18);
  background: rgba(255,255,255,.72);
  border-radius: 10px;
  padding: 12px 14px;
}
.agent-cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.agent-cap-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 247, 237, .95);
  border: 1px solid rgba(245, 158, 11, .24);
  color: #9a4f00;
  font-size: 12px;
  font-weight: 600;
}
@keyframes markPulse {
  0% { transform: scale(.75); opacity: .9; }
  100% { transform: scale(1.45); opacity: 0; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 150ms cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--ai-purple));
  color: #fff;
  box-shadow: 0 8px 18px rgba(96,152,242,.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #6f68d8);
  box-shadow: 0 10px 24px rgba(96,152,242,.28);
}
.btn-outline { border-color: rgba(96,152,242,.2); background: rgba(255,255,255,.74); color: var(--text); }
.btn-outline:hover { border-color: rgba(96,152,242,.46); color: var(--primary-dark); background: rgba(238,245,255,.84); box-shadow: 0 0 0 3px rgba(97,208,221,.12); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--secondary-bg); color: var(--text); }
.btn-danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-danger:hover { background: #fecaca; }
.btn-success { background: var(--success-bg); color: var(--success-text); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; height: 40px; font-size: 15px; }
.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-btn); color: var(--text-2);
  transition: all 150ms cubic-bezier(.4,0,.2,1); position: relative;
}
.icon-btn:hover { background: var(--secondary-bg); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); }
.input, .select, textarea.input {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: rgba(255,255,255,.86);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96,152,242,.18), 0 0 0 6px rgba(97,208,221,.08);
}
.input::placeholder, textarea.input::placeholder { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: var(--ai-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  backdrop-filter: blur(14px);
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.card.hoverable:hover { box-shadow: var(--shadow-hover); border-color: rgba(96,152,242,.24); transform: translateY(-1px); }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: #203d7c; }
.card-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: #203d7c; }
.page-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; max-width: 760px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 12px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-green { background: var(--success-bg); color: var(--success-text); }
.tag-yellow { background: var(--warning-bg); color: var(--warning-text); }
.tag-red { background: var(--danger-bg); color: var(--danger-text); }
.tag-blue { background: var(--info-bg); color: var(--info-text); }
.tag-gray { background: var(--secondary-bg); color: var(--text-2); }
.tag-plain::before { display: none; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--success); }
.dot-yellow { background: var(--warning); }
.dot-red { background: var(--danger); }
.dot-blue { background: var(--info); }
.dot-gray { background: var(--text-3); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.table th {
  background: var(--secondary-bg);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}
.role-th { color: var(--primary-dark) !important; font-weight: 600 !important; }
.role-th:hover { color: var(--primary) !important; text-decoration: underline; }
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.5;
}
.table tbody tr:nth-child(even) { background: var(--row-alt); }
.table tbody tr:hover { background: var(--primary-light); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table .link { color: var(--primary); cursor: pointer; }
.table .link:hover { text-decoration: underline; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.kpi-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.kpi-ico svg { width: 20px; height: 20px; }
.kpi-meta { min-width: 0; }
.kpi-label { font-size: 12px; color: var(--text-2); }
.kpi-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi-delta { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.kpi-delta.up { color: var(--success-text); }
.kpi-delta.down { color: var(--danger-text); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.section { margin-bottom: 16px; }

.bar { height: 8px; border-radius: 4px; background: var(--secondary-bg); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ai-purple), var(--primary), var(--ai-cyan)); }
.bar-green > i { background: var(--success); }
.bar-yellow > i { background: var(--warning); }
.bar-red > i { background: var(--danger); }

.progress-steps { display: flex; align-items: flex-start; gap: 0; }
.pstep { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.pstep::before {
  content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--border);
}
.pstep:first-child::before { display: none; }
.pstep.done::before { background: var(--success); }
.pstep-ico {
  width: 28px; height: 28px; border-radius: 50%; background: var(--secondary-bg);
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; z-index: 1; border: 2px solid var(--border);
}
.pstep.done .pstep-ico { background: var(--success-bg); color: var(--success-text); border-color: var(--success); }
.pstep.active .pstep-ico { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.pstep-label { font-size: 12px; color: var(--text-2); }
.pstep.done .pstep-label { color: var(--success-text); }
.pstep.active .pstep-label { color: var(--primary); font-weight: 600; }

.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 16px; margin-bottom: 16px;
}
.filter-bar .field { min-width: 150px; flex: 1; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
  padding: 8px 12px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 150ms ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.agent-steps {
  background: linear-gradient(90deg, rgba(238,245,255,.96), rgba(245,243,255,.96)); border: 1px solid rgba(96,152,242,.2); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--primary-dark);
  margin-bottom: 12px;
}
.agent-steps .spin { width: 16px; height: 16px; border: 2px solid rgba(96,152,242,.25); border-top-color: var(--ai-cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { border-radius: 6px; background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 40px 16px; color: var(--text-3); text-align: center;
}
.empty svg { width: 40px; height: 40px; opacity: .55; }

/* ===== 登录页（深色科技风 · AI 智库中枢） ===== */
.login-view { min-height: 100vh; display: block; background: transparent; }
.login-view--tech {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 18% 22%, rgba(60,120,220,.45), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 78%, rgba(120,90,220,.35), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(60,180,220,.25), transparent 60%),
    linear-gradient(160deg, #050d22 0%, #081536 38%, #0a1a45 70%, #050b1f 100%);
  color: #cfe0ff;
}

/* 星空层 */
.login-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stars-layer { position: absolute; inset: 0; }
.stars-layer--1 {
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 72%, #cfe0ff, transparent),
    radial-gradient(1.2px 1.2px at 47% 32%, #fff, transparent),
    radial-gradient(1px 1px at 63% 58%, #b9d6ff, transparent),
    radial-gradient(1px 1px at 78% 22%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 88% 68%, #fff, transparent),
    radial-gradient(1px 1px at 8% 88%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 35% 12%, #fff, transparent),
    radial-gradient(1px 1px at 92% 38%, #b9d6ff, transparent),
    radial-gradient(1px 1px at 22% 48%, #fff, transparent);
  background-size: 100% 100%;
  animation: starsTwinkle 6s ease-in-out infinite;
  opacity: .9;
}
.stars-layer--2 {
  background-image:
    radial-gradient(1.4px 1.4px at 16% 64%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 54% 8%, #cfe0ff, transparent),
    radial-gradient(1.4px 1.4px at 70% 86%, #fff, transparent),
    radial-gradient(1px 1px at 38% 44%, #b9d6ff, transparent),
    radial-gradient(1.4px 1.4px at 84% 50%, #fff, transparent);
  background-size: 100% 100%;
  animation: starsTwinkle 9s ease-in-out infinite reverse;
  opacity: .75;
}
.stars-layer--3 {
  background-image:
    radial-gradient(2px 2px at 32% 28%, rgba(186,220,255,.9), transparent 60%),
    radial-gradient(1.6px 1.6px at 72% 18%, rgba(186,220,255,.85), transparent 60%),
    radial-gradient(1.8px 1.8px at 18% 80%, rgba(186,220,255,.85), transparent 60%),
    radial-gradient(1.6px 1.6px at 90% 88%, rgba(186,220,255,.9), transparent 60%);
  background-size: 100% 100%;
  animation: starsTwinkle 5s ease-in-out infinite;
  opacity: .9;
}
@keyframes starsTwinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* 装饰光斑 */
.login-glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(60px); opacity: .55;
}
.login-glow--tl { width: 380px; height: 380px; top: -120px; left: -120px; background: radial-gradient(circle, #3a7df0 0%, transparent 70%); }
.login-glow--br { width: 480px; height: 480px; bottom: -160px; right: -120px; background: radial-gradient(circle, #6a5dd0 0%, transparent 70%); }

/* 内容容器 */
.login-tech-inner {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  padding: 56px 72px;
  align-items: center;
}
.login-tech-foot {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: rgba(207,224,255,.5); z-index: 1; letter-spacing: .5px;
}

/* ===== 左侧品牌区 ===== */
.login-tech-left { color: #e7f1ff; max-width: 560px; }
.login-tech-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.tech-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #4f8ef7, #7b6cdf);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 20px rgba(79,142,247,.45);
}
.tech-logo-text { font-size: 14px; color: rgba(207,224,255,.85); letter-spacing: .5px; }

/* 中央舞台 */
.hub-stage {
  position: relative; width: 320px; height: 320px; margin: 12px 0 28px;
  display: flex; align-items: center; justify-content: center;
}
.hub-book { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(106,180,255,.55)); animation: hubFloat 6s ease-in-out infinite; }
@keyframes hubFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hub-orbit {
  position: absolute; border-radius: 50%; border: 1px solid rgba(154,213,255,.25);
  pointer-events: none;
}
.hub-orbit--outer { width: 320px; height: 320px; border-color: rgba(154,213,255,.18); border-style: dashed; animation: orbitSpin 28s linear infinite; }
.hub-orbit--mid { width: 240px; height: 240px; border-color: rgba(154,213,255,.32); animation: orbitSpin 18s linear infinite reverse; }
.hub-orbit--inner { width: 180px; height: 180px; border-color: rgba(154,213,255,.5); animation: orbitSpin 12s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* 文案 */
.tech-title {
  font-size: 44px; font-weight: 800; line-height: 1.2; color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 0 24px rgba(106,180,255,.4);
  margin-bottom: 10px;
}
.tech-subtitle {
  font-size: 16px; color: rgba(207,224,255,.78); margin-bottom: 24px;
  letter-spacing: .5px;
}

/* 智能体标签 */
.tech-agents { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tech-agent-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(60,120,220,.18);
  border: 1px solid rgba(106,180,255,.45);
  color: #dceeff; font-size: 13px;
  backdrop-filter: blur(6px);
  transition: all 200ms ease;
}
.tech-agent-chip:hover { background: rgba(60,120,220,.32); border-color: rgba(154,213,255,.7); transform: translateY(-1px); }
.tech-agent-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, #5eead4);
  box-shadow: 0 0 8px var(--c, #5eead4);
  animation: agentDotPulse 2.4s ease-in-out infinite;
}
@keyframes agentDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .65; }
}

.tech-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(207,224,255,.55); margin-top: 12px;
}
.tech-foot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: agentDotPulse 2s ease-in-out infinite;
}

/* ===== 右侧登录卡（玻璃拟态） ===== */
.login-tech-card {
  position: relative;
  width: 100%; max-width: 420px;
  margin-left: auto;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(106,180,255,.65), rgba(122,108,223,.5) 50%, rgba(58,209,221,.45));
  box-shadow:
    0 30px 80px rgba(0,10,40,.55),
    0 0 0 1px rgba(154,213,255,.15) inset;
  animation: cardFloat 8s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.login-tech-card-glow {
  position: absolute; inset: -1px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(135deg, rgba(106,180,255,.4), transparent 50%, rgba(122,108,223,.3));
  filter: blur(20px); opacity: .55; z-index: -1;
}
.login-tech-card-inner {
  position: relative;
  background: linear-gradient(160deg, rgba(20,40,90,.78), rgba(10,20,55,.85));
  border-radius: 21px;
  padding: 36px 32px 28px;
  backdrop-filter: blur(20px);
  color: #e7f1ff;
}

/* 卡片顶部光纹 */
.login-tech-card-inner::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154,213,255,.7), transparent);
  pointer-events: none;
}

.login-tech-head h2 {
  font-size: 26px; font-weight: 700; color: #ffffff; text-align: center;
  text-shadow: 0 0 20px rgba(106,180,255,.35);
  letter-spacing: 1px;
}
.login-tech-head p {
  font-size: 13px; color: rgba(207,224,255,.7); text-align: center;
  margin-top: 6px; margin-bottom: 24px;
}

.login-tech-form { display: flex; flex-direction: column; gap: 14px; }

.tech-field { display: flex; flex-direction: column; gap: 6px; }
.tech-field-label { font-size: 12px; color: rgba(207,224,255,.7); padding-left: 4px; }
.tech-field-input {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px;
  background: rgba(20,40,90,.45);
  border: 1px solid rgba(106,180,255,.28);
  border-radius: 12px;
  transition: all 200ms ease;
}
.tech-field-input:hover { border-color: rgba(106,180,255,.5); }
.tech-field-input:focus-within {
  border-color: rgba(154,213,255,.85);
  background: rgba(20,40,90,.65);
  box-shadow: 0 0 0 3px rgba(106,180,255,.18);
}
.tech-field-icon { width: 17px; height: 17px; color: rgba(154,213,255,.85); flex: none; }
.tech-field-input input,
.tech-field-input .tech-select {
  flex: 1; height: 100%; background: transparent; border: none; outline: none;
  color: #ffffff; font-size: 14px; letter-spacing: .3px;
}
.tech-field-input input::placeholder { color: rgba(207,224,255,.45); }
.tech-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239ad5ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 14px;
  padding-right: 18px;
  cursor: pointer;
}
.tech-select option { background: #0a1a45; color: #ffffff; }

/* 登录按钮 */
.tech-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; margin-top: 8px;
  border-radius: 12px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #ffffff;
  background: linear-gradient(135deg, #4f8ef7 0%, #7b6cdf 50%, #5ad7e3 100%);
  background-size: 200% 200%;
  box-shadow:
    0 10px 30px rgba(79,142,247,.4),
    0 0 0 1px rgba(154,213,255,.3) inset;
  transition: all 250ms ease;
  position: relative;
  animation: btnGradientShift 6s ease infinite;
}
@keyframes btnGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tech-login-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(79,142,247,.55),
    0 0 0 1px rgba(154,213,255,.5) inset,
    0 0 30px rgba(106,180,255,.45);
}
.tech-login-btn:active { transform: translateY(0); }
.tech-login-btn svg { width: 17px; height: 17px; }

/* 链接/元信息 */
.login-tech-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 12px; margin-top: 6px;
}
.tech-link { color: rgba(154,213,255,.85); cursor: pointer; transition: color 150ms ease; background: none; border: none; padding: 0; }
.tech-link:hover { color: #ffffff; text-shadow: 0 0 8px rgba(106,180,255,.6); }
.tech-divider { color: rgba(154,213,255,.3); }

/* 角色快选 */
.login-tech-roles { margin-top: 6px; }
.tech-roles-label { font-size: 11px; color: rgba(207,224,255,.5); display: block; margin-bottom: 6px; }
.login-tech-roles .role-chip {
  height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; margin-right: 6px; margin-bottom: 6px;
  background: rgba(20,40,90,.45);
  border: 1px solid rgba(106,180,255,.28);
  color: rgba(207,224,255,.7);
  transition: all 200ms ease;
}
.login-tech-roles .role-chip:hover {
  border-color: rgba(106,180,255,.6);
  color: #ffffff;
  background: rgba(60,120,220,.32);
}
.login-tech-roles .role-chip.active {
  background: linear-gradient(135deg, rgba(79,142,247,.45), rgba(123,108,223,.45));
  border-color: rgba(154,213,255,.7);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(79,142,247,.35);
}

.login-tech-hint {
  font-size: 11px; color: rgba(207,224,255,.45);
  text-align: center; margin-top: 8px;
}

/* ===== 主框架 ===== */
.app-shell { min-height: 100vh; display: flex; background: transparent; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: rgba(255,255,255,.78); border-right: 1px solid rgba(96,152,242,.16);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  box-shadow: 8px 0 30px rgba(59,95,160,.06);
  backdrop-filter: blur(18px);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; min-height: var(--topbar-h); border-bottom: 1px solid rgba(96,152,242,.14); background: linear-gradient(180deg, rgba(238,245,255,.8), rgba(255,255,255,.55)); }
.brand-name { font-size: 14px; font-weight: 700; }
.brand-sub { font-size: 11px; color: var(--text-2); }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group { margin-bottom: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--text-2);
  transition: all 150ms ease; text-align: left;
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item:hover { background: rgba(96,152,242,.08); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(96,152,242,.16), rgba(138,132,232,.1)); color: var(--primary-dark); font-weight: 600; border: 1px solid rgba(96,152,242,.18); }
.nav-chevron { margin-left: auto; width: 14px; height: 14px; transition: transform 150ms ease; }
.nav-chevron.open { transform: rotate(90deg); }
.nav-sub { padding-left: 34px; display: none; }
.nav-sub.open { display: block; }
.nav-sub-item {
  display: block; width: 100%; text-align: left; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: var(--text-2); transition: all 150ms ease;
}
.nav-sub-item:hover { background: rgba(96,152,242,.08); color: var(--text); }
.nav-sub-item.active { color: var(--primary-dark); font-weight: 600; background: rgba(238,245,255,.84); }
.side-user {
  border-top: 1px solid var(--border); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--ai-purple)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.side-user-name { font-size: 13px; font-weight: 600; }
.side-user-role { font-size: 12px; color: var(--text-2); }
.side-user .icon-btn { margin-left: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(96,152,242,.16);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 30;
  box-shadow: 0 10px 26px rgba(59,95,160,.05);
  backdrop-filter: blur(18px);
}
.crumb { font-size: 14px; font-weight: 600; white-space: nowrap; }
.top-search { flex: 1; max-width: 440px; display: flex; gap: 8px; margin-left: auto; }
.top-search .input { height: 32px; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-user { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.top-user-name { font-size: 13px; font-weight: 600; }
.top-user-role { font-size: 12px; color: var(--text-2); }
.notify-dot {
  position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid var(--card);
}
.menu-btn { display: none; }
.dropdown {
  position: absolute; top: 48px; right: 8px; width: 320px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-modal);
  z-index: 60; overflow: hidden;
}
.dropdown-head { padding: 12px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); }
.dropdown-list { max-height: 360px; overflow-y: auto; }
.drop-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.drop-item:last-child { border-bottom: none; }
.drop-item:hover { background: var(--secondary-bg); }
.drop-item .dot { margin-top: 6px; }
.drop-item b { font-size: 13px; display: block; }
.drop-item span { font-size: 12px; color: var(--text-2); display: block; }
.drop-item time { font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; }

.view { padding: 24px; flex: 1; position: relative; isolation: isolate; }
.view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(97,208,221,.1) 50%, transparent 52%),
    linear-gradient(180deg, rgba(138,132,232,.06), transparent 45%);
  opacity: .65;
}

/* ===== 组件：聊天 / 时间线 / 详情抽屉 / 模态 ===== */
.chat-box {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  max-height: 520px; overflow-y: auto; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px;
}
.msg { display: flex; gap: 10px; max-width: 92%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.msg.user .msg-avatar { background: var(--primary); }
.msg.agent .msg-avatar { background: linear-gradient(135deg, #7c3aed, var(--primary)); }
.msg-body {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-size: 14px; line-height: 1.7; box-shadow: var(--shadow-card);
}
.msg.user .msg-body { background: var(--primary); border-color: var(--primary); color: #fff; }
.cite-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cite-chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--primary-light);
  color: var(--primary-dark); border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer;
}
.cite-chip:hover { background: #dbe7fb; }
.msg-actions { display: flex; gap: 8px; margin-top: 12px; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.qa-chat-input { position: relative; }
.qa-chat-input .input { width: 100%; resize: none; padding-right: 52px; }
.qa-send-btn {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 180ms ease; box-shadow: 0 2px 8px rgba(96,152,242,.35);
}
.qa-send-btn svg { width: 17px; height: 17px; }
.qa-send-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(96,152,242,.5); }
.qa-send-btn:active { transform: scale(.95); }
.chat-suggests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest-chip {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  border: 1px solid transparent; border-radius: 14px; padding: 5px 10px; transition: all 150ms ease;
}
.suggest-chip:hover { border-color: var(--primary); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--primary);
}
.tl-date { font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: var(--radius-modal); box-shadow: var(--shadow-modal);
  padding: 24px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.drawer-mask { position: fixed; inset: 0; background: rgba(15,23,42,.32); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw;
  background: var(--card); box-shadow: var(--shadow-modal); z-index: 95;
  display: flex; flex-direction: column; animation: slideIn .18s ease;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

.toast-root { position: fixed; top: 68px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text); color: #fff; border-radius: 8px; padding: 10px 14px;
  font-size: 13px; box-shadow: var(--shadow-modal); display: flex; align-items: center; gap: 8px;
  animation: toastIn .2s ease; max-width: 360px;
}
.toast.success { background: var(--success-text); }
.toast.warning { background: var(--warning-text); }
.toast.error { background: var(--danger-text); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.score-ring { position: relative; width: 120px; height: 120px; border-radius: 50%; }
.score-ring .ring-inner {
  position: absolute; inset: 12px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.score-ring span { font-size: 11px; color: var(--text-2); }

.diff-orig { background: var(--danger-bg); border-radius: 3px; padding: 0 2px; }
.diff-new { background: var(--success-bg); border-radius: 3px; padding: 0 2px; }
.doc-preview {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; font-size: 13px; line-height: 1.9; max-height: 480px; overflow-y: auto;
}
.doc-preview h3 { font-size: 15px; margin: 14px 0 8px; color: #153b7a; }
.doc-preview p { margin-bottom: 8px; }
.doc-preview .cite { color: var(--info-text); font-size: 11px; }
.eval-report-scroll {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(96,152,242,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96,152,242,.05) 1px, transparent 1px),
    #f7faff;
  background-size: 28px 28px;
}
.eval-report-paper {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 42px 42px;
  background: #fff;
  border: 1px solid #d8e2f1;
  box-shadow: 0 18px 42px rgba(20, 48, 92, .12);
  color: #1f2937;
  font-size: 14px;
  line-height: 1.9;
}
.eval-report-title {
  margin: 0 0 22px;
  text-align: center;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.eval-report-intro {
  margin-bottom: 18px;
  text-indent: 2em;
}
.eval-report-section {
  margin-top: 18px;
}
.eval-report-section h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}
.eval-report-paper p {
  margin: 0 0 10px;
  text-indent: 2em;
}
.eval-report-paper b {
  color: #111827;
}
.eval-report-table {
  width: 100%;
  margin: 10px 0 14px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}
.eval-report-table th,
.eval-report-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  vertical-align: top;
}
.eval-report-table th {
  background: #f3f6fb;
  color: #334155;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.eval-report-meta th {
  width: 16%;
}
.eval-report-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: #f8fbff;
  border-radius: 0 8px 8px 0;
  color: #334155;
  text-indent: 0 !important;
}

.slide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slide-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 150ms ease; background: #fff; }
.slide-card:hover { box-shadow: var(--shadow-hover); }
.slide-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.2); }
.slide-thumb { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f4f8ff, #e8f0fe); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.slide-thumb i { display: block; height: 6px; border-radius: 3px; background: rgba(26,115,232,.25); }
.slide-thumb i:first-child { width: 55%; height: 9px; background: var(--primary); }
.slide-thumb i:nth-child(2) { width: 90%; }
.slide-thumb i:nth-child(3) { width: 82%; }
.slide-thumb i:nth-child(4) { width: 70%; }
.slide-name { padding: 8px 12px; font-size: 12px; border-top: 1px solid var(--border); color: var(--text-2); }

.switch { position: relative; width: 38px; height: 22px; border-radius: 12px; background: var(--border); transition: background 150ms ease; flex: none; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left 150ms ease;
}
.switch.on { background: var(--primary); }
.switch.on::after { left: 19px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-row b { font-size: 14px; display: block; }
.setting-row span { font-size: 12px; color: var(--text-2); display: block; margin-top: 2px; }

.qa-drawer { }
.qa-block { margin-bottom: 16px; }
.qa-block-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.qa-text { font-size: 13px; color: var(--text); background: var(--bg); border-radius: 8px; padding: 12px; line-height: 1.8; border: 1px solid var(--border); }

.agent-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); transition: all 200ms ease; }
.agent-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(96,152,242,.12); }
.agent-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.agent-ico.agent-busy { background: #fff4e6; color: #e88000; animation: agentPulse 2s ease-in-out infinite; }
@keyframes agentPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,128,0,.3); } 50% { box-shadow: 0 0 0 6px rgba(232,128,0,0); } }
.agent-meta { flex: 1; min-width: 0; }
.agent-meta b { font-size: 14px; display: block; }
.agent-meta span { font-size: 12px; color: var(--text-2); display: block; }
.agent-stats b { color: var(--primary); }
.agent-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 14px; font-weight: 600; flex: none; }
.agent-badge-green { background: #e6f9ed; color: #1a8a4a; }
.agent-badge-orange { background: #fff4e6; color: #e88000; }
.agent-summary { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.agent-summary b { color: var(--primary); font-size: 15px; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--secondary-bg); font-size: 12px; color: var(--text-2); }
.chip-blue { background: var(--primary-light); color: var(--primary-dark); }

.kb-lib { cursor: pointer; transition: box-shadow 150ms ease, border-color 150ms ease; }
.kb-lib:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.kb-lib-head { display: flex; gap: 12px; align-items: flex-start; }
.kb-lib-head .kpi-ico { width: 40px; height: 40px; }
.kb-lib-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.kb-lib-foot .link { font-size: 13px; }
.folder-row { display: flex; flex-wrap: wrap; gap: 8px; }
.folder-column { flex-direction: column; flex-wrap: nowrap; }
.folder-column .folder-chip { width: 100%; justify-content: flex-start; }
.kb-browser-layout { align-items: stretch; }
.kb-browser-layout > .card { min-width: 0; }
.empty-module { min-height: 420px; display: grid; place-items: center; }
.folder-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--card);
  font-size: 13px; color: var(--text-2); transition: all 150ms ease;
}
.folder-chip svg { width: 14px; height: 14px; }
.folder-chip:hover { border-color: var(--primary); color: var(--primary); }
.folder-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--secondary-bg); border-radius: 6px; }
.seg-btn {
  height: 26px; padding: 0 10px; border-radius: 4px; font-size: 12px; color: var(--text-2);
  transition: all 150ms ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.doc-chat { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.doc-chat .chat-box { margin-bottom: 10px; }
#doc-settings .qa-block { margin-bottom: 12px; }
.doc-field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.doc-field-head .qa-block-title { margin-bottom: 0; }
.ai-writer-logo {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #7c3aed, #1a73e8); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(124,58,237,.28);
}
.ai-writer-logo svg { width: 22px; height: 22px; }
.doc-composer { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.doc-composer textarea { border: none; border-radius: 0; box-shadow: none; min-height: 150px; padding: 12px 46px 46px 46px; }
.doc-composer textarea:focus { box-shadow: none; }
.doc-attach-btn { position: absolute; left: 10px; bottom: 10px; background: var(--card); border: 1px solid var(--border); }
.doc-send-btn { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.doc-send-btn svg { width: 17px; height: 17px; }
.doc-file-summary { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #f8fbff; }
.doc-file-summary .qa-block-title { font-size: 12px; margin-bottom: 4px; }
.reviewer-logo { display: inline-flex; align-items: center; margin-right: 2px; }
.reviewer-logo svg { width: 15px; height: 15px; }
.reviewer-effect { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0 6px; }
.reviewer-ring {
  width: 118px; height: 118px; border-radius: 50%; position: relative;
  background: conic-gradient(#7c3aed, #1a73e8, #10b981, #7c3aed);
  animation: reviewerSpin 1.4s linear infinite;
  box-shadow: 0 0 24px rgba(124,58,237,.35);
}
.reviewer-ring-inner {
  position: absolute; inset: 10px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.reviewer-ring-inner b { font-size: 26px; font-variant-numeric: tabular-nums; color: #7c3aed; }
.reviewer-ring-inner span { font-size: 11px; color: var(--text-2); }
.reviewer-dims { font-size: 13px; color: var(--text-2); text-align: center; }
@keyframes reviewerSpin { to { transform: rotate(360deg); } }

.notice-banner {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--primary-light); border: 1px solid #c7d7f7; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 16px; color: var(--primary-dark); font-size: 13px;
}
.notice-banner svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.eval-anim { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 0; }
.eval-radar { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.eval-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(26,115,232,.35); }
.eval-ring.r1 { inset: 0; animation: evalPulse 1.6s ease-out infinite; }
.eval-ring.r2 { inset: 18px; animation: evalPulse 1.6s ease-out .4s infinite; }
.eval-core {
  width: 56px; height: 56px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #1a73e8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 26px rgba(26,115,232,.45);
}
.eval-core svg { width: 26px; height: 26px; }
.eval-step { font-size: 15px; font-weight: 600; color: var(--primary-dark); }
.eval-progress { width: 280px; max-width: 100%; height: 6px; border-radius: 3px; background: var(--secondary-bg); overflow: hidden; }
.eval-progress i { display: block; height: 100%; width: 8%; border-radius: 3px; background: linear-gradient(90deg, #7c3aed, #1a73e8); transition: width .5s ease; }
.eval-dims { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.eval-dim { font-size: 12px; color: var(--text-3); padding: 4px 10px; border-radius: 12px; background: var(--secondary-bg); transition: all .3s ease; }
.eval-dim.done { color: var(--success-text); background: var(--success-bg); }
@keyframes evalPulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

.qa-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: stretch; height: 100%; }
.qa-side { position: relative; top: 0; display: flex; flex-direction: column; padding: 12px; }
.qa-side .compact-head { padding: 2px 4px 8px; margin-bottom: 4px; }
.qa-side .card-title { font-size: 15px; }
.qa-new-btn { height: 34px; min-height: 34px; margin-bottom: 10px; border-radius: 8px; font-size: 13px; }
.qa-new-btn svg { width: 14px; height: 14px; }
.qa-conv-list { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-right: 2px; }
.qa-conv {
  display: flex; align-items: center; text-align: left; width: 100%;
  min-height: 34px; padding: 0 10px; border-radius: 7px; border: 1px solid transparent; background: transparent;
  color: var(--text); transition: all 120ms ease;
}
.qa-conv:hover { background: rgba(26,115,232,.06); border-color: rgba(26,115,232,.08); }
.qa-conv.active { background: rgba(26,115,232,.12); border-color: rgba(26,115,232,.16); }
.qa-conv-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--secondary-bg); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.qa-conv.active .qa-conv-ico { background: var(--primary); color: #fff; }
.qa-conv-ico svg { width: 15px; height: 15px; }
.qa-conv-meta { min-width: 0; width: 100%; }
.qa-conv-meta b {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; line-height: 32px; font-weight: 500;
}
.qa-conv-meta span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.qa-main .chat-box { margin-bottom: 10px; }
.qa-main { display: flex; flex-direction: column; }
.qa-main .chat-box { flex: 1; overflow-y: auto; }
.qa-main .card-head { flex: none; }
.qa-main .qa-scope-row { flex: none; }
.qa-main .chat-suggests { flex: none; }
.qa-main .chat-input { flex: none; }
.view:has(.qa-layout) { display: flex; flex-direction: column; }
.qa-scope-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 12px;
}
.qa-scope-label { font-size: 12px; color: var(--text-2); font-weight: 600; }

/* 企业筛选 Agent */
.company-agent-panel { display: flex; flex-direction: column; gap: 12px; }
.company-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(26,115,232,.16);
  background: rgba(238,245,255,.86); color: var(--primary-dark); font-size: 13px; font-weight: 600;
}
.filter-pill:hover { border-color: rgba(26,115,232,.35); background: rgba(226,239,255,.95); }
.company-agent-input { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: stretch; }
.agent-company-list { display: flex; flex-direction: column; gap: 8px; }
.agent-company-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(90deg, #fff, #f8fbff);
}
.agent-company-row b { display: block; font-size: 14px; }
.agent-company-row span { display: block; margin-top: 4px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.agent-company-score { text-align: center; color: var(--primary); }
.agent-company-score b { font-size: 20px; line-height: 1; }
.agent-company-score span { margin-top: 2px; font-size: 11px; }

/* ===== 文书智写项目工作台 ===== */
.app-alert-board {
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #fffbeb, #f8fbff);
  box-shadow: var(--shadow-card);
}
.app-alert-board > svg { width: 20px; height: 20px; color: var(--warning-text); flex: none; margin-top: 2px; }
.app-alert-title { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.app-alert-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); margin-top: 4px; }
.app-alert-item .dot { margin-top: 7px; flex: none; }
.app-alert-float {
  position: fixed;
  right: 20px;
  top: 128px;
  width: 360px;
  max-width: calc(100vw - 40px);
  z-index: 70;
  border: 1px solid #c7d7f7;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}
.app-alert-float.collapsed { width: 128px; }
.app-alert-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.app-alert-toggle:hover { background: var(--secondary-bg); color: var(--primary); }
.app-alert-toggle svg { width: 15px; height: 15px; }
.app-alert-float-body { display: flex; gap: 12px; padding: 14px 40px 14px 14px; }
.app-alert-mini { display: flex; align-items: center; gap: 8px; padding: 10px 34px 10px 10px; font-size: 12px; color: var(--primary-dark); font-weight: 600; }
.app-year { margin-bottom: 20px; }
.app-year-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 12px; padding-right: 380px; }
.app-year-head.alert-collapsed { padding-right: 150px; }
.app-year-title { font-size: 16px; font-weight: 700; color: #153b7a; }
.app-type-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.app-type-filter .select { width: 180px; height: 34px; padding: 0 32px 0 10px; }
.app-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-project-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: all 150ms cubic-bezier(.4,0,.2,1);
}
.app-project-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.app-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-company { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); }
.app-project-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.app-type-special {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid #f6c453;
  border-radius: 999px;
  color: #a85b00;
  background: linear-gradient(135deg, #fff7cf, #ffe4a8);
  box-shadow: 0 3px 10px rgba(245,166,35,.18);
  font-weight: 700;
}
.app-type-special i { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.16); }
.kb-lib-update { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 12px; }
.app-progress-line { margin-top: 16px; }
.app-progress-line > div:first-child { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.app-progress-line b { font-size: 20px; color: var(--primary); font-variant-numeric: tabular-nums; }
.app-progress-line span { font-size: 12px; color: var(--text-2); }
.app-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.app-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); line-height: 1.7; }
.app-workspace-head {
  margin-bottom: 12px;
  padding: 8px 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: var(--shadow-card);
}
.app-workspace-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 6px; }
.app-workspace-head .page-title { font-size: 16px; }
.app-workspace-head .page-sub { font-size: 12px; margin-top: 2px; }
.app-top-progress { width: 220px; max-width: 100%; }
.app-top-progress span { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.score-global-actions { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.app-main-tabs { margin-bottom: 0; margin-top: 8px; }
.app-section { margin-bottom: 16px; }
.ai-side-panel { position: relative; overflow: hidden; }
.ai-side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 12%, rgba(124,58,237,.12), transparent 28%), radial-gradient(circle at 20% 22%, rgba(26,115,232,.1), transparent 26%);
  pointer-events: none;
}
.ai-side-panel > * { position: relative; z-index: 1; }
.ai-orbit {
  width: 128px;
  height: 128px;
  margin: 4px auto 18px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #fff 0 38%, #e8f0fe 39% 42%, transparent 43%);
}
.ai-orbit span, .ai-orbit i {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(26,115,232,.32);
  border-radius: 50%;
  animation: reviewerSpin 3.2s linear infinite;
}
.ai-orbit i { inset: 24px; border-color: rgba(124,58,237,.28); animation-duration: 2.2s; animation-direction: reverse; }
.ai-orbit b {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, var(--primary));
  box-shadow: 0 0 24px rgba(26,115,232,.35);
}
.ai-orbit.tiny {
  width: 46px;
  height: 46px;
  margin: 0;
  flex: none;
}
.ai-orbit.tiny span, .ai-orbit.tiny i { display: none; }
.ai-orbit.tiny b {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.ai-insight {
  border: 1px solid rgba(26,115,232,.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.82);
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.ai-insight-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.outline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.outline-list::-webkit-scrollbar { width: 6px; }
.outline-list::-webkit-scrollbar-thumb {
  background: rgba(96,152,242,.32);
  border-radius: 999px;
}
.outline-list::-webkit-scrollbar-track { background: transparent; }
.outline-row {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  transition: all 150ms ease;
}
.outline-row:hover { border-color: var(--primary); background: #f8fbff; }
.outline-row.active { border-color: var(--primary); background: var(--primary-light); }
.outline-row b { display: block; font-size: 13px; line-height: 1.4; }
.outline-row span { display: block; font-size: 12px; color: var(--text-2); margin-top: 3px; }
.outline-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #fecaca;
}
.outline-row .outline-badge {
  display: inline-flex;
  color: var(--danger-text);
  margin-top: 0;
}
.mini-bar { height: 5px; border-radius: 3px; background: rgba(148,163,184,.28); overflow: hidden; margin-top: 8px; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7c3aed, var(--primary)); }
.writer-layout { align-items: start; grid-template-columns: 360px minmax(0, 1fr); }
.app-doc-preview { max-height: 520px; }
.app-doc-preview section { position: relative; border-left: 3px solid transparent; padding: 4px 12px 0; margin-bottom: 14px; }
.app-doc-preview section.located { border-left-color: #7c3aed; background: #f5f3ff; border-radius: 6px; padding: 8px 12px; }
.doc-pin-btn {
  position: absolute;
  right: 8px;
  top: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0;
  transition: all 150ms ease;
}
.doc-pin-btn svg { width: 13px; height: 13px; }
.app-doc-preview section:hover .doc-pin-btn { opacity: 1; }
.doc-pin-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.app-doc-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.ai-generate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 16px;
  border: 1px solid #c7d7f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef2ff);
}
.score-issue {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 10px;
}
.score-issue p { font-size: 13px; margin-top: 6px; }
.score-issue span { display: block; font-size: 12px; color: var(--primary-dark); margin-top: 4px; }
.folder-index-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px dashed #c7d7f7;
  border-radius: 8px;
  background: #f8fbff;
}
.folder-index-upload svg { width: 24px; height: 24px; color: var(--primary); flex: none; }
.folder-index-upload b { display: block; font-size: 14px; }
.folder-index-upload span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.readonly-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
}
.readonly-banner svg { width: 18px; height: 18px; flex: none; }
.readonly-banner b { display: block; font-size: 13px; }
.readonly-banner span { display: block; font-size: 12px; color: #3b5f9b; margin-top: 2px; }
.writer-doc-card .card-head { align-items: flex-start; }
.doc-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.locate-top-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.writer-bottom-chat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c7d7f7;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #ffffff, #f3f7ff);
  box-shadow: var(--shadow-card);
}
.writer-doc-card .writer-bottom-chat { margin-top: 14px; box-shadow: none; }
.tune-workbench, .score-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 16px;
  align-items: start;
}
.tune-side { display: flex; flex-direction: column; gap: 16px; }
.score-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.doc-edit-area { min-height: 520px; line-height: 1.8; font-family: inherit; }
.ai-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 12px;
  color: var(--primary-dark);
}
.ai-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(26,115,232,.12);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.similarity-card, .proof-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.88);
  margin-bottom: 10px;
}
.similarity-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.similarity-head > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.similarity-head span { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.similarity-card p { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.similarity-meter { height: 5px; margin-top: 10px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.similarity-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ef4444, #f59e0b, #1a73e8); }
.compare-select-btn { margin-bottom: 10px; }
.compare-source-note {
  margin-bottom: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(26,115,232,.14);
  border-radius: 8px;
  background: rgba(238,245,255,.75);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}
.compare-source-note b { color: var(--primary-dark); }
.compare-text-option { cursor: pointer; }
.ai-suggestion {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f5f3ff;
  color: #4338ca;
  font-size: 12px;
  line-height: 1.6;
}
.ai-suggestion svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.compact-chat { max-height: 190px; min-height: 120px; }
.history-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-row b { display: block; font-size: 13px; }
.history-row span { display: block; margin-top: 3px; color: var(--text-2); font-size: 12px; }
.score-hero { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: center; }
.score-hero.compact { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.score-ring-wrap { position: relative; width: 160px; }
.score-hero.compact .score-ring-wrap { width: 120px; }
.ai-scan-beam {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border-top: 2px solid rgba(26,115,232,.7);
  animation: reviewerSpin 2s linear infinite;
}
.score-report h3 { font-size: 16px; color: #153b7a; margin-bottom: 8px; }
.score-report p { font-size: 13px; line-height: 1.7; color: var(--text); }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.adv-grid div { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #f8fbff; }
.adv-grid b { display: block; font-size: 13px; margin-bottom: 4px; }
.adv-grid span { display: block; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.chart-bars { display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.chart-bars.compact { gap: 7px; margin: 12px 0 0; }
.chart-bars div { display: grid; grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 8px; align-items: center; font-size: 12px; }
.chart-bars i { height: 7px; border-radius: 6px; background: linear-gradient(90deg, #7c3aed, var(--primary), #46c58a); }
.chart-bars b { text-align: right; color: var(--primary); }
.score-ai-card.collapsed { padding-bottom: 12px; }
.score-proof-panel { overflow: hidden; }
.proof-scroll {
  max-height: 480px;
  overflow: auto;
  padding-right: 4px;
}
.score-doc-preview { max-height: 660px; }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .65; }
}
@keyframes dataSweep {
  0%, 45% { transform: translateX(-100%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* ===== AI 智能体视觉母版增强：浅底雾蓝科技风 ===== */
.brand-mark {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, #edf7ff, #f3f0ff);
  border: 1px solid rgba(65,132,235,.22);
  box-shadow: 0 8px 20px rgba(61,116,201,.16);
}
.brand-mark img { width: 34px; height: 34px; display: block; object-fit: contain; }

/* ===== 工作台指挥舱：业务数据、产业情报与知识资产 ===== */
.home-command-page { position: relative; max-width: 1440px; margin: 0 auto; }
.home-command-page > *:not(.home-particles) { position: relative; z-index: 1; }
.home-particles { position: absolute; inset: -20px 0 auto 0; height: 430px; overflow: hidden; pointer-events: none; z-index: 0; opacity: .62; }
.home-particles i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #58c8ed; box-shadow: 0 0 9px #58c8ed; left: calc((var(--i) * 7.1%)); top: calc(30px + (var(--i) * 23px) % 310px); animation: homeParticleDrift calc(5s + var(--i) * .22s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.31s); }
@keyframes homeParticleDrift { to { transform: translate3d(22px,-34px,0) scale(1.8); opacity: .18; } }
.home-overview { margin-bottom: 16px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 0 12px; }
.home-section-heading h2 { margin: 2px 0 0; font-size: 18px; color: #173c78; }
.home-eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 700; color: #6b91c6; }
.home-live { display: inline-flex; align-items: center; gap: 7px; color: #71839f; font-size: 12px; white-space: nowrap; }
.home-live i { width: 7px; height: 7px; border-radius: 50%; background: #18b981; box-shadow: 0 0 0 5px rgba(24,185,129,.1); animation: pulseDot 1.8s ease-in-out infinite; }
.home-core-kpis .kpi-row { gap: 12px; margin-bottom: 12px; }
.home-core-kpis .kpi { min-height: 98px; padding: 14px 16px; background: rgba(255,255,255,.9); border-color: rgba(101,146,210,.19); box-shadow: 0 8px 24px rgba(50,89,150,.07); }
.home-core-kpis .kpi:nth-child(1) { border-top: 2px solid #3478ef; }
.home-core-kpis .kpi:nth-child(2) { border-top: 2px solid #26a9d9; }
.home-core-kpis .kpi:nth-child(3) { border-top: 2px solid #7557d9; }
.home-core-kpis .kpi:nth-child(4) { border-top: 2px solid #16a778; }
.home-finance-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.home-finance-metric { min-height: 88px; display: flex; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid rgba(96,141,205,.18); border-radius: 11px; background: linear-gradient(135deg,rgba(248,251,255,.94),rgba(255,255,255,.88)); box-shadow: 0 7px 20px rgba(56,90,145,.055); }
.home-finance-metric .home-metric-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #3d75d6; background: #ebf3ff; }
.home-finance-metric .home-metric-icon svg { width: 17px; height: 17px; }
.home-finance-metric span { display: block; font-size: 12px; color: #7487a5; }
.home-finance-metric strong { font-size: 20px; line-height: 1.25; color: #1f2e45; }
.home-finance-metric strong small { margin-left: 3px; font-size: 12px; font-weight: 600; }
.home-finance-metric p { margin: 1px 0 0; font-size: 11px; color: #8ca0bd; }
.home-finance-metric.tone-3 { border-color: rgba(240,95,103,.22); }
.home-finance-metric.tone-3 .home-metric-icon { color: #ef5a63; background: #fff0f1; }
.home-finance-metric.tone-4 .home-metric-icon { color: #7b5ad9; background: #f1edff; }
.home-tech-flow { position: relative; overflow: hidden; margin-bottom: 16px; background: linear-gradient(115deg,rgba(250,253,255,.96),rgba(242,248,255,.91)); border-color: rgba(74,141,222,.22); }
.home-tech-flow::after { content:""; position:absolute; width:260px; height:260px; border-radius:50%; right:-120px; top:-150px; background:radial-gradient(circle,rgba(65,196,229,.13),transparent 67%); pointer-events:none; }
.home-flow-stage { position: relative; padding: 8px 0 2px; }
.home-flow-beam { position: absolute; left: 8%; right: 8%; top: 21px; height: 2px; overflow: hidden; background: rgba(80,157,216,.18); }
.home-flow-beam::after { content:""; position:absolute; width:30%; height:100%; background:linear-gradient(90deg,transparent,#37c9e8,transparent); animation:homeBeam 3.2s linear infinite; }
@keyframes homeBeam { from { transform:translateX(-110%); } to { transform:translateX(430%); } }
.home-tech-flow .pstep::before { background: rgba(85,145,201,.22); }
.home-tech-flow .pstep.done::before { background: linear-gradient(90deg,#24b681,#42cadd); }
.home-tech-flow .pstep-ico { box-shadow: 0 0 0 5px rgba(75,162,226,.06); }
.home-content-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 16px; }
.home-news-panel,.home-kb-panel { min-width: 0; }
.home-news-list { display: grid; gap: 8px; }
.home-news-item { display: grid; grid-template-columns: 44px minmax(0,1fr) 18px; gap: 12px; align-items: center; padding: 11px; border: 1px solid #e7eef8; border-radius: 10px; color: inherit; text-decoration: none; background: rgba(250,252,255,.74); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.home-news-item:hover { transform: translateY(-1px); border-color: #b9d0ee; box-shadow: 0 8px 20px rgba(50,91,150,.08); }
.home-news-visual { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #2c6fce; background: linear-gradient(145deg,#e9f4ff,#eef0ff); }
.home-news-visual.energy { color: #139c75; background: #e9faf4; }
.home-news-visual.space { color: #7854d7; background: #f2edff; }
.home-news-visual svg { width: 20px; height: 20px; }
.home-news-copy { min-width:0; }
.home-news-copy > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.home-news-tag { padding: 2px 7px; border-radius: 5px; color: #2f68be; background: #eaf2ff; font-size: 10px; }
.home-news-copy time { font-size:10px; color:#99a7ba; }
.home-news-copy b { display:block; margin-top:4px; font-size:13px; color:#233451; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-news-copy p { margin:2px 0 0; font-size:11px; color:#7486a0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-news-arrow { color:#9db0c9; }
.home-news-arrow svg { width:15px; height:15px; }
.home-kb-totals { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.home-kb-totals > div { padding:10px; border-radius:9px; background:#f7faff; border:1px solid #e7effa; }
.home-kb-totals span { display:block; font-size:11px; color:#7a8da8; }
.home-kb-totals strong { font-size:19px; color:#263954; }
.home-kb-totals small { margin-left:3px; color:#8b9bb1; }
.home-kb-charts { display:grid; grid-template-columns:1.2fr .8fr; gap:16px; align-items:stretch; }
.home-kb-bar { margin-bottom:9px; }
.home-kb-bar > div { display:flex; justify-content:space-between; margin-bottom:4px; font-size:11px; color:#73859e; }
.home-kb-bar b { color:#344a69; }
.home-kb-bar progress { display:block; width:100%; height:6px; border:0; border-radius:6px; overflow:hidden; accent-color:#4383dc; }
.home-kb-bar progress::-webkit-progress-bar { background:#edf2f8; }
.home-kb-bar progress::-webkit-progress-value { background:linear-gradient(90deg,#477ddd,#38bad6); border-radius:6px; }
.home-ingest-chart { padding:10px; border-radius:9px; background:#f8fbff; }
.home-ingest-chart > b { display:block; margin-bottom:8px; font-size:11px; color:#516781; }
.home-ingest-chart > div { height:104px; display:flex; align-items:flex-end; gap:7px; }
.home-ingest-chart > div > div { height:100%; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:5px; }
.home-ingest-chart i { width:100%; min-height:8px; border-radius:4px 4px 2px 2px; background:linear-gradient(180deg,#4ec3df,#5578dc); opacity:.82; }
.home-ingest-chart span { font-size:9px; color:#91a0b5; }
.home-ops-grid .drop-item { padding-left:0; padding-right:0; }
@media (max-width: 1180px) { .home-finance-strip { grid-template-columns: repeat(2,1fr); } .home-content-grid { grid-template-columns:1fr; } }
@media (max-width: 720px) { .home-finance-strip,.home-kb-totals,.home-kb-charts { grid-template-columns:1fr; } .home-section-heading { align-items:flex-start; gap:10px; } .home-news-copy time { display:none; } }

/* 工作台：常见问题洞察 */
.home-faq-panel { overflow:hidden; }
.home-faq-total { display:flex; align-items:baseline; gap:5px; color:#7a8ba3; font-size:11px; }
.home-faq-total b { color:#1f3658; font-size:22px; font-variant-numeric:tabular-nums; }
.home-faq-total small { color:#8395ae; }
.home-faq-grid { display:block; min-height:318px; border:1px solid #e4ecf7; border-radius:12px; overflow:hidden; background:#fbfdff; }
.home-faq-stream { min-width:0; padding:14px 16px; }
.home-faq-stream-head,.home-faq-map-head { display:flex; align-items:center; justify-content:space-between; gap:12px; height:30px; color:#405875; font-size:12px; font-weight:600; }
.home-faq-stream-head em,.home-faq-map-head small { color:#91a0b4; font-size:10px; font-style:normal; font-weight:400; }
.home-faq-window { position:relative; height:252px; overflow:hidden; mask-image:linear-gradient(to bottom,transparent 0,#000 9%,#000 91%,transparent 100%); -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 9%,#000 91%,transparent 100%); }
.home-faq-track { animation:homeFaqScroll 20s linear infinite; }
.home-faq-window:hover .home-faq-track { animation-play-state:paused; }
.home-faq-row { width:100%; height:55px; display:grid; grid-template-columns:36px minmax(0,1fr) 70px; align-items:center; gap:9px; padding:0 8px; border:0; border-bottom:1px solid #edf2f8; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.home-faq-row:hover { background:#f1f6fd; }
.home-faq-rank { color:#8da0ba; font-size:11px; font-variant-numeric:tabular-nums; }
.home-faq-question { min-width:0; }
.home-faq-question b { display:block; overflow:hidden; color:#263a56; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.home-faq-question small { display:block; margin-top:3px; color:#8496af; font-size:10px; }
.home-faq-row>strong { color:#2f6fce; font-size:14px; text-align:right; font-variant-numeric:tabular-nums; }
.home-faq-row>strong small { color:#91a0b5; font-size:9px; font-weight:400; }
@keyframes homeFaqScroll { from{transform:translateY(0)} to{transform:translateY(-330px)} }
.home-faq-map { padding:14px 16px; background:radial-gradient(circle at 50% 50%,rgba(89,144,226,.08),transparent 62%),linear-gradient(rgba(87,132,196,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(87,132,196,.045) 1px,transparent 1px); background-size:auto,32px 32px,32px 32px; }
.home-faq-bubbles { position:relative; height:252px; }
.home-faq-bubble { position:absolute; left:var(--x); top:var(--y); width:var(--size); height:var(--size); display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid color-mix(in srgb,var(--bubble) 42%,white); border-radius:50%; background:color-mix(in srgb,var(--bubble) 13%,white); color:var(--bubble); box-shadow:0 10px 24px color-mix(in srgb,var(--bubble) 14%,transparent); transform:translate(-50%,-50%); animation:homeFaqFloat 4.8s ease-in-out infinite; animation-delay:var(--delay); cursor:pointer; }
.home-faq-bubble:hover { z-index:3; background:color-mix(in srgb,var(--bubble) 20%,white); box-shadow:0 14px 30px color-mix(in srgb,var(--bubble) 22%,transparent); }
.home-faq-bubble b { max-width:82%; font-size:11px; line-height:1.2; text-align:center; }
.home-faq-bubble span { margin-top:3px; font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
@keyframes homeFaqFloat { 0%,100%{translate:0 -3px} 50%{translate:0 5px} }
@media (max-width:1000px) { .home-faq-stream { border:0; } }
@media (max-width:620px) { .home-faq-map { display:none; } .home-faq-row { grid-template-columns:28px minmax(0,1fr) 58px; } }
@media (prefers-reduced-motion:reduce) { .home-faq-track,.home-faq-bubble { animation:none !important; } }

/* 工作台紧凑模式：常见问题与运营区 */
.home-faq-panel { padding:14px 16px; }
.home-faq-panel .card-head { min-height:34px; margin-bottom:8px; align-items:center; }
.home-faq-panel .card-title { font-size:15px; }
.home-faq-panel .card-sub { margin-top:0; font-size:11px; }
.home-faq-total b { font-size:19px; }
.home-faq-grid { min-height:224px; border-radius:10px; }
.home-faq-stream { padding:8px 14px; }
.home-faq-stream-head { height:24px; }
.home-faq-window { height:184px; }
.home-faq-row { height:42px; grid-template-columns:32px minmax(0,1fr) 64px; }
.home-faq-question b { font-size:12px; }
.home-faq-question small { margin-top:1px; font-size:9px; }
.home-faq-row>strong { font-size:13px; }
@keyframes homeFaqScroll { from{transform:translateY(0)} to{transform:translateY(-252px)} }
.home-ops-grid { gap:12px; }
.home-ops-grid > .card { padding:14px 16px; }
.home-ops-grid > .card > .card-head { min-height:34px; margin-bottom:7px; align-items:center; }
.home-ops-grid .card-title { font-size:15px; }
.home-ops-grid .card-sub { margin-top:0; font-size:11px; }
.home-ops-grid .drop-item { gap:8px; padding-top:9px; padding-bottom:9px; }
.home-ops-grid .drop-item b { font-size:12px; line-height:1.45; }
.home-ops-grid .drop-item span { font-size:11px; }
.home-ops-grid .drop-item time { font-size:10px; }
.home-ops-grid .drop-item .btn { min-height:28px; height:28px; padding-inline:10px; }
.home-ops-grid .agent-summary { gap:8px 12px; font-size:11px; }
.home-ops-grid .agent-summary b { font-size:13px; }
.home-ops-grid .agent-card { gap:8px; padding:9px 10px; border-radius:10px; }
.home-ops-grid .agent-ico { width:32px; height:32px; border-radius:8px; }
.home-ops-grid .agent-meta b { font-size:12px; }
.home-ops-grid .agent-meta span { font-size:10px; line-height:1.45; }
.home-ops-grid .agent-meta > span:not(.agent-stats) { display:none; }
.home-ops-grid .agent-stats { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-ops-grid .agent-badge { gap:4px; padding:3px 7px; font-size:10px; }
.home-ops-grid > .card:nth-child(2) .grid-2 { gap:8px !important; }

/* 文书智写批注调整 */
.agent-mark-dot { display: none !important; }
.outline-template-picker { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; margin-bottom:12px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#f8fbff; }
.outline-template-picker > span { color:var(--text-2); font-size:12px; white-space:nowrap; }
.ai-optimize-card { margin-bottom:10px; padding:13px; border:1px solid #e0e9f6; border-radius:10px; background:#fbfdff; }
.ai-optimize-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.ai-optimize-head > div { display:flex; align-items:center; gap:7px; }
.ai-optimize-head > span { color:#8da0ba; font-size:11px; }
.ai-optimize-card dl { display:grid; gap:7px; margin:0; }
.ai-optimize-card dl > div { display:grid; grid-template-columns:66px 1fr; gap:8px; font-size:12px; line-height:1.6; }
.ai-optimize-card dt { color:#7c8ea8; }
.ai-optimize-card dd { margin:0; color:#354965; }
.ai-optimize-card .page-actions { margin-top:10px; }
.tune-chat-shell { margin-top:12px; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:#f8fbff; }
.tune-chat-toggle { display:grid; grid-template-columns:20px auto 1fr 16px; align-items:center; gap:8px; width:100%; padding:10px 12px; color:#245da8; text-align:left; }
.tune-chat-toggle svg { width:17px; height:17px; }
.tune-chat-toggle small { color:#8a9bb1; text-align:right; }
.tune-chat-toggle svg:last-child { transition:transform .15s ease; }
.tune-chat-toggle svg:last-child.open { transform:rotate(90deg); }
.tune-chat-shell .writer-bottom-chat { border-top:1px solid var(--border); border-radius:0; }

/* 提纲库 */
.outline-library-page { max-width:1540px; margin:0 auto; }
.outline-library-shell { display:grid; grid-template-columns:300px 370px minmax(480px,1fr); height:calc(100vh - 145px); min-height:620px; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#fff; box-shadow:var(--shadow-card); }
.outline-library-list,.outline-tree-pane { min-width:0; border-right:1px solid var(--border); }
.outline-pane-head { display:flex; align-items:center; justify-content:space-between; height:52px; padding:0 16px; border-bottom:1px solid var(--border); }
.outline-pane-head b { color:#203b67; font-size:14px; }
.outline-pane-head span { color:#8b99ad; font-size:12px; }
.outline-search { display:flex; align-items:center; gap:8px; margin:12px; padding:0 10px; border:1px solid #dce6f3; border-radius:8px; }
.outline-search svg { width:16px; color:#8294ac; }
.outline-search input { width:100%; height:36px; border:0; outline:0; background:transparent; }
.outline-library-scroll,.outline-tree-scroll { height:calc(100% - 116px); overflow:auto; padding:0 12px 12px; }
.outline-library-item { display:block; width:100%; margin-bottom:8px; padding:14px; border:1px solid #e2e8f1; border-radius:8px; text-align:left; background:#fff; }
.outline-library-item:hover { border-color:#9ebce8; }
.outline-library-item.active { border-color:#d0a14d; background:#fff9ef; box-shadow:inset 3px 0 #d89b31; }
.outline-library-item b { display:block; color:#27394f; font-size:13px; line-height:1.55; }
.outline-library-item > span { display:flex; align-items:center; gap:5px; margin-top:8px; color:#8796aa; font-size:11px; }
.outline-library-item .tag { display:inline-flex; padding:1px 5px; }
.outline-tree-row { display:grid; grid-template-columns:38px 1fr; gap:8px; align-items:center; width:100%; min-height:40px; padding:8px 10px; border-left:3px solid transparent; text-align:left; color:#586b84; }
.outline-tree-row:hover { background:#f5f8fc; }
.outline-tree-row.active { border-left-color:#d39a34; background:#fff9ef; color:#6e4b0f; }
.outline-tree-row.level-2 { padding-left:28px; }
.outline-tree-row span { font-size:11px; font-variant-numeric:tabular-nums; }
.outline-tree-row b { font-size:12px; font-weight:500; }
.outline-editor-tabs { display:flex; align-items:center; gap:6px; height:52px; padding:0 16px; border-bottom:1px solid var(--border); }
.outline-editor-tabs button { height:52px; padding:0 12px; border-bottom:2px solid transparent; }
.outline-editor-tabs button.active { border-color:#d19a39; color:#6e4b0f; font-weight:700; }
.outline-editor-tabs > span { display:flex; align-items:center; gap:5px; margin-left:auto; color:#278469; font-size:11px; }
.outline-editor-tabs svg { width:15px; }
.outline-editor-body { height:calc(100% - 52px); overflow:auto; padding:18px; }
.outline-current,.outline-node-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.outline-current > span { display:flex; align-items:center; gap:7px; color:#60748f; font-size:12px; }
.outline-current svg { width:16px; }
.outline-node-meta { padding-bottom:12px; border-bottom:1px solid var(--border); color:#278469; font-size:12px; }
.outline-node-meta small { color:#8b99ad; }
.outline-editor-body .field { margin-bottom:14px; }
.outline-editor-body textarea { line-height:1.7; resize:vertical; }
.outline-prompt { background:#fbfcfe; }

/* 业财页面按钮跟随系统统一规范 */
.finance-ledger-page .btn,.finance-tasks-page .btn { border-radius:var(--radius-btn); }
.finance-ledger-page .btn-primary,.finance-tasks-page .btn-primary { background:linear-gradient(135deg,var(--primary),var(--ai-purple)); box-shadow:0 8px 18px rgba(77,111,221,.18); }
.finance-ledger-page .btn-primary:hover,.finance-tasks-page .btn-primary:hover { background:linear-gradient(135deg,#4f86e8,#7667df); box-shadow:0 10px 22px rgba(77,111,221,.24); transform:translateY(-1px); }
.finance-ledger-page .btn-outline,.finance-tasks-page .btn-outline { border-color:rgba(96,152,242,.2); background:rgba(255,255,255,.84); }
@media (max-width:1100px){.outline-library-shell{grid-template-columns:250px 310px minmax(420px,1fr);overflow-x:auto}.outline-template-picker{grid-template-columns:1fr}.outline-template-picker>span{display:none}}

/* ===== 全系统视觉一致性收口 · 2026-08-14 ===== */
:root {
  --system-accent: #6098f2;
  --system-accent-strong: #3f7fe8;
  --system-accent-soft: #eef5ff;
  --system-accent-purple: #8a84e8;
  --system-border: rgba(96,152,242,.19);
  --system-shadow: 0 10px 30px rgba(59,95,160,.075), 0 1px 2px rgba(59,95,160,.05);
}
.view > :not(.home-command-page):not(.outline-library-page) { max-width: 1440px; margin-left:auto; margin-right:auto; }
.page-head { min-height:64px; margin-bottom:16px; align-items:flex-start; }
.page-title { color:#203d7c; font-size:22px; letter-spacing:-.01em; }
.page-sub { color:#71819a; line-height:1.55; }
.card { border-color:var(--system-border); border-radius:12px; box-shadow:var(--system-shadow); background:rgba(255,255,255,.91); }
.card-head { min-height:44px; gap:16px; }
.card-title { color:#203d7c; font-weight:700; }
.btn { min-height:36px; border-radius:10px; font-weight:500; transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease; }
.btn-sm { min-height:30px; height:30px; border-radius:8px; }
.btn-primary { background:linear-gradient(135deg,var(--system-accent),var(--system-accent-purple)); box-shadow:0 7px 18px rgba(74,109,212,.18); }
.btn-primary:hover { background:linear-gradient(135deg,#528ce9,#7b73df); box-shadow:0 9px 22px rgba(74,109,212,.23); transform:translateY(-1px); }
.btn-outline { border-color:var(--system-border); background:rgba(255,255,255,.88); }
.btn-outline:hover { border-color:rgba(96,152,242,.48); background:var(--system-accent-soft); box-shadow:0 0 0 3px rgba(96,152,242,.08); }
.input,.select,textarea.input { min-height:38px; border-color:rgba(96,152,242,.2); border-radius:10px; background:rgba(255,255,255,.94); }
.input:focus,.select:focus,textarea.input:focus { border-color:var(--system-accent); box-shadow:0 0 0 3px rgba(96,152,242,.1); }
.field > span { color:#687a95; font-weight:500; }
.table-wrap { border-color:var(--system-border); border-radius:9px; }
.table th { height:38px; color:#61748e; background:#f2f7ff; font-weight:600; }
.table td { min-height:42px; border-bottom-color:#e8eff8; }
.table tbody tr:nth-child(even) { background:#f9fbff; }
.table tbody tr:hover { background:#eef5ff; }
.filter-bar { border-color:var(--system-border); border-radius:12px; background:rgba(255,255,255,.9); box-shadow:var(--system-shadow); }
.tabs { border-bottom-color:rgba(96,152,242,.18); }
.tab.active { color:var(--system-accent-strong); border-bottom-color:var(--system-accent); }
.tag { border-radius:999px; }
.empty { color:#91a2ba; }
.empty svg { color:#b8c7db; }

/* 提纲库完全采用系统蓝紫色，而非独立金黄色主题 */
.outline-library-shell { border-color:var(--system-border); border-radius:12px; box-shadow:var(--system-shadow); background:rgba(255,255,255,.92); }
.outline-library-list,.outline-tree-pane { border-right-color:var(--system-border); }
.outline-pane-head,.outline-editor-tabs { border-bottom-color:var(--system-border); background:linear-gradient(180deg,#fbfdff,#f7faff); }
.outline-pane-head b { color:#203d7c; }
.outline-search { border-color:rgba(96,152,242,.2); background:#fff; }
.outline-search:focus-within { border-color:var(--system-accent); box-shadow:0 0 0 3px rgba(96,152,242,.08); }
.outline-library-item { border-color:rgba(96,152,242,.18); border-radius:10px; background:rgba(255,255,255,.92); }
.outline-library-item:hover { border-color:rgba(96,152,242,.5); background:#f8fbff; }
.outline-library-item.active { border-color:rgba(96,152,242,.55); background:linear-gradient(90deg,#eef5ff,#f6f4ff); box-shadow:inset 3px 0 var(--system-accent),0 6px 16px rgba(59,95,160,.07); }
.outline-library-item b { color:#294873; }
.outline-tree-row.active { border-left-color:var(--system-accent); background:linear-gradient(90deg,#eef5ff,#f7f5ff); color:#245ba6; }
.outline-editor-tabs button.active { border-color:var(--system-accent); color:#245ba6; }
.outline-editor-tabs > span,.outline-node-meta { color:#3486c7; }
.outline-current > span { color:#557397; }
.outline-editor-body { background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(249,252,255,.94)); }

/* 项目业财取消局部后台皮肤，复用全系统卡片与按钮 */
.finance-ledger-page,.finance-tasks-page { color:var(--text); }
.finance-ledger-page .page-title,.finance-tasks-page .page-title { color:#203d7c; font-size:22px; }
.finance-ledger-page .btn,.finance-tasks-page .btn { border-radius:10px; box-shadow:initial; }
.finance-ledger-page .btn-primary,.finance-tasks-page .btn-primary { background:linear-gradient(135deg,var(--system-accent),var(--system-accent-purple)); box-shadow:0 7px 18px rgba(74,109,212,.18); }
.finance-ledger-page .btn-outline,.finance-tasks-page .btn-outline { border-color:var(--system-border); background:rgba(255,255,255,.88); }
.finance-ledger-page .finance-summary-card { border-color:var(--system-border); border-radius:12px; box-shadow:var(--system-shadow); background:rgba(255,255,255,.91); }
.finance-ledger-page .finance-summary-card:hover { border-color:rgba(96,152,242,.4); background:#fbfdff; box-shadow:0 12px 28px rgba(59,95,160,.1); }
.finance-ledger-page .finance-filter-bar { border-color:var(--system-border); border-radius:12px; background:rgba(255,255,255,.9); box-shadow:var(--system-shadow); }
.finance-ledger-page .finance-filter-bar .input,.finance-ledger-page .finance-filter-bar .select { border-color:rgba(96,152,242,.2); border-radius:10px; }
.finance-ledger-page .finance-table-card,.finance-tasks-page .finance-table-card { border-color:var(--system-border); border-radius:12px; box-shadow:var(--system-shadow); }
.finance-ledger-page .table th,.finance-tasks-page .table th { background:#f2f7ff; color:#61748e; }
.finance-ledger-page .table tbody tr:nth-child(even),.finance-tasks-page .table tbody tr:nth-child(even) { background:#f9fbff; }
.finance-ledger-page .table tbody tr:hover,.finance-tasks-page .table tbody tr:hover { background:#eef5ff; }
.finance-tasks-page .finance-task-types { border-color:var(--system-border); border-radius:12px; background:#f2f7ff; }
.finance-tasks-page .finance-task-type.active { background:#fff; color:#245ba6; box-shadow:0 4px 12px rgba(59,95,160,.09); }

/* 项目列表、知识库及设置页保持同一密度 */
.app-project-card { border-radius:12px; border-color:var(--system-border); box-shadow:var(--system-shadow); }
.app-project-card:hover { border-color:rgba(96,152,242,.4); box-shadow:0 14px 34px rgba(59,95,160,.12); }
.kb-lib { border-radius:12px; }
.setting-row { border-bottom-color:#e8eff8; }
.app-alert-float,.finance-alert-float { border-radius:12px; border-color:var(--system-border); box-shadow:0 12px 34px rgba(45,71,118,.14); }

@media (max-width:960px){.page-head{min-height:auto}.outline-library-shell{height:auto;min-height:0;grid-template-columns:1fr}.outline-library-list,.outline-tree-pane{border-right:0;border-bottom:1px solid var(--system-border)}.outline-library-scroll,.outline-tree-scroll{height:320px}.outline-editor-body{height:auto}}
.app-alert-float {
  border-color: rgba(96,152,242,.28);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
}
.app-project-card {
  border-color: rgba(96,152,242,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.88));
}
.app-project-card::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, transparent, rgba(97,208,221,.5), transparent);
}
.app-year-title,
.app-company {
  color: #203d7c;
}
.app-workspace-head {
  border-color: rgba(96,152,242,.2);
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,245,255,.8));
  backdrop-filter: blur(18px);
}
.app-main-tabs .tab.active {
  background: linear-gradient(180deg, rgba(96,152,242,.12), rgba(138,132,232,.08));
  border-radius: 10px 10px 0 0;
}
.doc-preview {
  border-color: rgba(96,152,242,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.doc-preview h3 {
  color: #203d7c;
}
.doc-preview .cite {
  color: var(--info-text);
  font-size: 12px;
  background: rgba(238,245,255,.8);
  border-left: 2px solid rgba(97,208,221,.6);
  padding: 4px 8px;
  border-radius: 6px;
}
.doc-preview.eval-report-scroll {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(96,152,242,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96,152,242,.05) 1px, transparent 1px),
    #f7faff;
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.doc-preview.eval-report-scroll .cite {
  display: inline;
}
.ai-side-panel::before {
  background:
    radial-gradient(circle at 80% 12%, rgba(138,132,232,.12), transparent 28%),
    radial-gradient(circle at 20% 22%, rgba(96,152,242,.1), transparent 26%),
    linear-gradient(135deg, transparent 0 48%, rgba(97,208,221,.12) 49% 50%, transparent 51%);
}
.ai-orbit {
  background: radial-gradient(circle, #fff 0 38%, #eef5ff 39% 42%, transparent 43%);
  box-shadow: inset 0 0 28px rgba(96,152,242,.12), 0 0 38px rgba(97,208,221,.18);
}
.ai-orbit span,
.ai-orbit i {
  border-color: rgba(96,152,242,.36);
}
.ai-orbit i {
  border-color: rgba(138,132,232,.28);
}
.ai-orbit b {
  background: linear-gradient(135deg, var(--ai-purple), var(--primary), var(--ai-cyan));
  box-shadow: 0 0 24px rgba(96,152,242,.35);
}
.ai-insight,
.similarity-card,
.proof-card,
.score-issue {
  border-color: rgba(96,152,242,.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.86));
}
.outline-row:hover {
  border-color: rgba(96,152,242,.48);
  background: rgba(248,251,255,.92);
}
.outline-row.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(238,245,255,.96), rgba(245,243,255,.88));
}
.mini-bar i,
.eval-progress i,
.chart-bars i {
  background: linear-gradient(90deg, var(--ai-purple), var(--primary), var(--ai-cyan));
}
.ai-generate {
  border-color: rgba(96,152,242,.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(248,251,255,.92), rgba(238,242,255,.92));
}
.writer-bottom-chat {
  border-color: rgba(96,152,242,.26);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,245,255,.86));
  position: relative;
  overflow: hidden;
}
.writer-bottom-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(97,208,221,.12), transparent);
  transform: translateX(-100%);
  animation: dataSweep 4.8s ease-in-out infinite;
}
.writer-bottom-chat > * {
  position: relative;
  z-index: 1;
}
.ai-line {
  border-color: rgba(96,152,242,.22);
  background: linear-gradient(90deg, rgba(238,245,255,.95), rgba(245,243,255,.9));
}
.ai-line span {
  background: var(--ai-cyan);
  box-shadow: 0 0 0 6px rgba(96,152,242,.12);
}
.similarity-meter i {
  background: linear-gradient(90deg, #ef4444, #f59e0b, var(--primary), var(--ai-cyan));
}
.ai-suggestion {
  background: rgba(245,243,255,.86);
}
.score-report h3 {
  color: #203d7c;
}
.proof-scroll {
  scrollbar-color: rgba(96,152,242,.45) transparent;
}
.industry-card {
  cursor: pointer;
}
.industry-card:hover .card-title {
  color: var(--primary-dark);
}
.ind-alert {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #e8364f; font-weight: 600;
  background: #fef2f4; border: 1px solid #fecdd3;
  border-radius: 8px; padding: 6px 12px; margin-bottom: 12px;
}
.ind-alert-none { color: var(--text-3); background: var(--secondary-bg); border-color: var(--border); font-weight: 400; }
.ind-news-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ind-news-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.ind-news-tag {
  flex: none; font-size: 11px; padding: 2px 7px; border-radius: 4px;
  background: var(--primary-light); color: var(--primary-dark); font-weight: 600; margin-top: 2px;
}
.ind-news-title { color: var(--text); flex: 1; min-width: 0; }
.ind-news-empty { font-size: 13px; color: var(--text-3); padding: 12px 0; }
.ind-enter { font-size: 12px; color: var(--primary); text-align: right; padding-top: 8px; border-top: 1px solid var(--border); }

/* ===== 登录页改版：浅色 AI 智库中枢参考风格 ===== */
body.login-mode {
  background: #f7faff;
}
.login-view--tech {
  min-height: 100vh;
  color: #090d22;
  background:
    radial-gradient(circle at 80% 16%, rgba(177,137,255,.28), transparent 18%),
    radial-gradient(circle at 8% 70%, rgba(186,212,255,.22), transparent 30%),
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(239,246,255,.88) 46%, rgba(230,238,255,.92));
}
.login-view--tech::before,
.login-view--tech::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}
.login-view--tech::before {
  background:
    linear-gradient(150deg, transparent 0 24%, rgba(255,255,255,.92) 24.4%, transparent 25%),
    linear-gradient(162deg, transparent 0 34%, rgba(112,195,255,.28) 34.4%, transparent 36%),
    linear-gradient(174deg, transparent 0 45%, rgba(156,132,255,.22) 45.4%, transparent 47%),
    linear-gradient(27deg, transparent 0 58%, rgba(255,255,255,.8) 58.4%, transparent 59%),
    linear-gradient(20deg, transparent 0 64%, rgba(97,208,221,.24) 64.4%, transparent 66%);
  opacity: .95;
}
.login-view--tech::after {
  background:
    radial-gradient(circle at 10% 55%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 8%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 67% 86%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.95) 0 3px, transparent 4px);
  filter: drop-shadow(0 0 10px rgba(96,152,242,.45));
}
.login-stars,
.login-glow,
.login-tech-logo,
.tech-foot,
.login-tech-foot,
.login-tech-head p,
.tech-field-label,
.tech-field-icon,
.login-tech-roles,
.login-tech-hint,
.tech-divider,
.login-tech-meta a,
.tech-login-btn svg {
  display: none !important;
}
.login-tech-inner {
  min-height: 100vh;
  grid-template-columns: minmax(520px, .92fr) minmax(430px, 560px);
  align-items: center;
  gap: clamp(48px, 8vw, 150px);
  padding: clamp(42px, 6vw, 92px) clamp(84px, 10vw, 190px);
}
.login-tech-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  color: #080c20;
}
.tech-title {
  order: 1;
  margin: 0;
  font-size: clamp(54px, 5.2vw, 84px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  color: #080c20;
  text-shadow: none;
}
.tech-subtitle {
  order: 2;
  margin: 18px 0 46px;
  font-size: clamp(25px, 2.2vw, 38px);
  line-height: 1.22;
  color: #15192a;
  letter-spacing: 0;
}
.hub-stage {
  order: 3;
  width: clamp(360px, 31vw, 560px);
  height: clamp(320px, 28vw, 490px);
  margin: 0 0 24px;
  overflow: visible;
}
.hub-book {
  display: none;
}
.hub-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,1) 0 4%, rgba(125,235,255,.96) 5%, transparent 10%),
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.96) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.82), transparent 16%),
    radial-gradient(circle at 70% 78%, rgba(107,225,241,.72), transparent 28%),
    radial-gradient(circle at 20% 78%, rgba(180,116,244,.66), transparent 28%),
    linear-gradient(145deg, rgba(235,244,255,.94), rgba(89,179,235,.78) 52%, rgba(115,98,224,.76));
  box-shadow:
    inset 18px 24px 38px rgba(255,255,255,.68),
    inset -20px -22px 52px rgba(42,98,190,.2),
    0 30px 70px rgba(74,125,196,.28),
    0 0 0 1px rgba(255,255,255,.7);
  animation: hubFloat 6s ease-in-out infinite;
}
.hub-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 78%;
  height: 24%;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.88) 0 34%, transparent 35%),
    repeating-radial-gradient(ellipse at center, rgba(100,152,242,.32) 0 2px, transparent 3px 19px),
    linear-gradient(90deg, rgba(145,94,234,.5), rgba(97,208,221,.5));
  filter: drop-shadow(0 20px 22px rgba(89,123,196,.2));
}
.hub-orbit {
  display: block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border-color: rgba(80,139,191,.42);
}
.hub-orbit--outer {
  width: 92%;
  height: 52%;
  border-style: solid;
  border-color: rgba(56,132,186,.42);
  animation: none;
}
.hub-orbit--mid {
  width: 70%;
  height: 38%;
  border-color: rgba(138,132,232,.26);
  animation: none;
}
.hub-orbit--inner {
  width: 50%;
  height: 50%;
  border-color: rgba(255,255,255,.65);
  animation: none;
}
.tech-agents {
  order: 4;
  justify-content: center;
  gap: 14px;
  margin: 0;
  width: 100%;
}
.tech-agent-chip {
  min-width: 150px;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(210,216,232,.92);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(80,103,160,.16), inset 0 0 0 1px rgba(255,255,255,.72);
  color: #1c2030;
  font-size: 18px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.tech-agent-chip:hover {
  background: rgba(255,255,255,.86);
  border-color: rgba(138,132,232,.32);
  transform: translateY(-1px);
}
.tech-agent-dot {
  display: none;
}
.login-tech-card {
  width: min(100%, 520px);
  max-width: 560px;
  margin: 0;
  padding: 0;
  border-radius: 42px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 34px 78px rgba(80,103,160,.2), inset 0 0 0 1px rgba(255,255,255,.78);
  animation: none;
  backdrop-filter: blur(22px);
}
.login-tech-card-glow {
  display: none;
}
.login-tech-card-inner {
  min-height: 560px;
  border-radius: 42px;
  padding: 68px 62px 58px;
  background: rgba(255,255,255,.58);
  color: #090d22;
  backdrop-filter: blur(18px);
}
.login-tech-card-inner::before {
  display: none;
}
.login-tech-head h2 {
  margin: 0 0 54px;
  text-align: left;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
  color: #090d22;
  letter-spacing: 0;
  text-shadow: none;
}
.login-tech-form {
  gap: 30px;
}
.tech-field:nth-of-type(3) {
  display: none;
}
.tech-field-input {
  height: 70px;
  padding: 0 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(142,149,169,.48);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62);
}
.tech-field-input:hover,
.tech-field-input:focus-within {
  border-color: rgba(138,132,232,.48);
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 0 5px rgba(138,132,232,.09), inset 0 0 0 1px rgba(255,255,255,.76);
}
.tech-field-input input {
  color: #1a1d2b;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
.tech-field-input input::placeholder {
  color: #606574;
}
.tech-login-btn {
  height: 70px;
  margin-top: 28px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(90deg, #b582ee 0%, #755cf0 55%, #413cd9 100%);
  box-shadow: 0 16px 32px rgba(99,79,220,.28), inset 0 0 0 1px rgba(255,255,255,.18);
  animation: none;
}
.tech-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(99,79,220,.34), inset 0 0 0 1px rgba(255,255,255,.22);
}
.login-tech-meta {
  margin-top: 10px;
  font-size: 18px;
}
.tech-link {
  color: #4b4f5f;
  font-size: 18px;
  font-weight: 500;
}
.tech-link:hover {
  color: #413cd9;
  text-shadow: none;
}

@media (max-width: 1180px) {
  .login-tech-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 28px;
  }
  .login-tech-card {
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .tech-title { font-size: 40px; }
  .tech-subtitle { font-size: 21px; margin-bottom: 28px; }
  .hub-stage { width: 300px; height: 270px; }
  .tech-agent-chip { min-width: auto; font-size: 14px; padding: 8px 14px; }
  .login-tech-card-inner { min-height: auto; padding: 42px 28px 34px; border-radius: 30px; }
  .login-tech-card { border-radius: 30px; }
  .login-tech-head h2 { font-size: 30px; margin-bottom: 32px; }
  .tech-field-input, .tech-login-btn { height: 58px; }
  .tech-field-input input, .tech-login-btn { font-size: 18px; }
}

/* 登录页最终视觉：按参考图整屏呈现，透明表单保持可点击 */
/* 登录页最终版：参考视觉手写实现，保留真实输入与点击交互 */
.login-view--tech {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 16%, rgba(176,139,255,.22), transparent 18%),
    radial-gradient(circle at 22% 64%, rgba(107,225,241,.22), transparent 24%),
    radial-gradient(circle at 8% 16%, rgba(255,255,255,.82), transparent 20%),
    linear-gradient(118deg, #fbfdff 0%, #eef6ff 48%, #f6f8ff 100%) !important;
}
.login-view--tech::before,
.login-view--tech::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  pointer-events: none;
}
.login-view--tech::before {
  background:
    linear-gradient(158deg, transparent 0 24%, rgba(255,255,255,.9) 24.3%, transparent 24.8%),
    linear-gradient(164deg, transparent 0 36%, rgba(112,195,255,.35) 36.2%, transparent 37%),
    linear-gradient(171deg, transparent 0 45%, rgba(160,140,255,.27) 45.2%, transparent 46.2%),
    linear-gradient(23deg, transparent 0 58%, rgba(255,255,255,.86) 58.2%, transparent 58.7%),
    linear-gradient(17deg, transparent 0 65%, rgba(97,208,221,.3) 65.2%, transparent 66.3%);
  opacity: .95;
}
.login-view--tech::after {
  background:
    radial-gradient(circle at 9% 55%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 36% 8%, rgba(255,255,255,.96) 0 4px, transparent 5px),
    radial-gradient(circle at 67% 86%, rgba(255,255,255,.96) 0 4px, transparent 5px),
    radial-gradient(circle at 89% 18%, rgba(255,255,255,.96) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 10%, rgba(151,222,255,.7) 0 2px, transparent 3px);
  filter: drop-shadow(0 0 12px rgba(96,152,242,.38));
}
.login-tech-inner {
  position: relative;
  z-index: 1;
  display: grid !important;
  min-height: 100vh;
  grid-template-columns: minmax(560px, 1fr) minmax(440px, 560px);
  align-items: center;
  gap: clamp(58px, 9vw, 150px);
  padding: clamp(38px, 5.4vw, 78px) clamp(88px, 10vw, 188px) 42px !important;
}
.login-tech-left {
  opacity: 1 !important;
  pointer-events: auto !important;
  min-width: 0;
}
.hub-stage {
  width: clamp(360px, 29vw, 480px) !important;
  height: clamp(270px, 23vw, 380px) !important;
  margin: -10px 0 14px !important;
}
.hub-stage::before {
  display: none !important;
}
.hub-stage::after {
  z-index: 1;
  bottom: 16% !important;
  width: 70% !important;
  height: 22% !important;
}
.hub-globe {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 41%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 3%, rgba(113,232,255,.96) 4%, transparent 10%),
    radial-gradient(circle at 34% 25%, rgba(255,255,255,.86), transparent 17%),
    radial-gradient(circle at 70% 77%, rgba(92,214,236,.74), transparent 30%),
    radial-gradient(circle at 22% 77%, rgba(185,113,239,.66), transparent 30%),
    linear-gradient(145deg, rgba(240,248,255,.95), rgba(89,178,235,.8) 52%, rgba(114,98,224,.76));
  box-shadow:
    inset 18px 24px 40px rgba(255,255,255,.72),
    inset -22px -20px 54px rgba(44,98,190,.18),
    0 30px 68px rgba(74,125,196,.28),
    0 0 0 1px rgba(255,255,255,.72);
  animation: hubFloat 6s ease-in-out infinite;
}
.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 28%, rgba(121,234,255,.95) 30%, rgba(116,101,231,.18) 70%, transparent 72%);
  box-shadow: 0 0 32px rgba(121,234,255,.9);
}
.hub-line {
  position: absolute;
  left: 28%;
  top: 48%;
  width: 46%;
  height: 1px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 10px rgba(255,255,255,.65);
  transform-origin: center;
}
.hub-line--a { transform: rotate(34deg); }
.hub-line--b { transform: rotate(-28deg); }
.hub-cardlet,
.hub-chip,
.hub-bubble {
  position: absolute;
  z-index: 2;
}
.hub-cardlet {
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 2px rgba(101,160,255,.18), 0 8px 18px rgba(76,114,185,.18);
}
.hub-cardlet--doc {
  left: 31%;
  top: 29%;
  width: 15%;
  height: 21%;
}
.hub-cardlet--doc::before,
.hub-cardlet--paper::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 18%;
  top: 25%;
  height: 50%;
  background: repeating-linear-gradient(to bottom, rgba(78,132,214,.55) 0 3px, transparent 3px 9px);
}
.hub-cardlet--paper {
  left: 26%;
  top: 55%;
  width: 18%;
  height: 25%;
  border-radius: 10px;
}
.hub-cardlet--chart {
  right: 26%;
  bottom: 20%;
  width: 21%;
  height: 24%;
}
.hub-cardlet--chart::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 16%;
  bottom: 18%;
  height: 56%;
  background:
    linear-gradient(to top, rgba(116,101,231,.7) 24%, transparent 25% 100%),
    linear-gradient(to right, transparent 0 20%, rgba(255,255,255,.55) 20% 25%, transparent 25% 45%, rgba(255,255,255,.55) 45% 50%, transparent 50% 70%, rgba(255,255,255,.55) 70% 75%, transparent 75%);
}
.hub-chip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, #8c7cff, #38bdf8);
  box-shadow: 0 8px 20px rgba(75,113,205,.25);
}
.hub-chip--a { right: 18%; top: 50%; }
.hub-chip--b { right: 31%; top: 24%; transform: scale(.75); }
.hub-bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff, rgba(142,129,235,.55) 42%, rgba(98,196,237,.25) 70%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.hub-bubble--a { left: 10%; top: 28%; }
.hub-bubble--b { right: 10%; top: 40%; width: 22px; height: 22px; }
.hub-bubble--c { left: 19%; bottom: 18%; width: 18px; height: 18px; }
.login-tech-card {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  width: min(100%, 520px) !important;
  max-width: 560px !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  border-radius: 42px;
  background: rgba(255,255,255,.7) !important;
  box-shadow: 0 34px 78px rgba(80,103,160,.2), inset 0 0 0 1px rgba(255,255,255,.78) !important;
  pointer-events: auto;
}
.login-tech-card-inner {
  width: auto !important;
  height: auto !important;
  min-height: 560px !important;
  padding: 68px 62px 58px !important;
  border-radius: 42px;
  background: rgba(255,255,255,.58) !important;
}
.login-tech-form {
  height: auto !important;
}
.login-tech-card .tech-field-input,
.login-tech-card .tech-login-btn,
.login-tech-card .tech-link {
  pointer-events: auto;
}
.tech-agents {
  flex-wrap: nowrap !important;
  gap: 12px !important;
}
.tech-agent-chip {
  min-width: 132px !important;
  padding: 9px 16px !important;
  font-size: 16px !important;
}
.ai-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(96,152,242,.22);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(238,245,255,.95), rgba(245,243,255,.88));
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.ai-doc-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 0 5px rgba(97,208,221,.13);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.login-brand::before,
.login-brand::after {
  border-color: rgba(96,152,242,.18);
}
.login-brand h1,
.app-year-title,
.doc-preview h3,
.score-report h3 {
  color: #203d7c;
}
.login-flow,
.login-stats > div,
.slide-card.active {
  border-color: rgba(96,152,242,.18);
}
.msg.agent .msg-avatar,
.reviewer-logo,
.eval-core {
  background: linear-gradient(135deg, var(--ai-purple), var(--primary));
}
.reviewer-logo,
.reviewer-ring,
.eval-core {
  box-shadow: 0 8px 22px rgba(96,152,242,.22);
}
.reviewer-ring {
  background: conic-gradient(var(--ai-purple), var(--primary), var(--ai-cyan), var(--ai-purple));
}
.reviewer-ring-inner b {
  color: var(--ai-purple);
}
.notice-banner,
.folder-index-upload {
  border-color: rgba(96,152,242,.24);
  background: linear-gradient(135deg, rgba(238,245,255,.94), rgba(248,251,255,.92));
}
.eval-ring {
  border-color: rgba(96,152,242,.35);
}
.slide-thumb i {
  background: rgba(96,152,242,.25);
}
.app-doc-preview section.located {
  border-left-color: var(--ai-purple);
  border-radius: 8px;
}
.ai-scan-beam {
  border-top-color: rgba(96,152,242,.7);
}

@media (max-width: 1200px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .app-project-grid { grid-template-columns: repeat(2, 1fr); }
  .tune-workbench, .score-workbench { grid-template-columns: 1fr; }
  .login-tech-inner { padding: 40px 36px; gap: 24px; grid-template-columns: 1fr 1fr; }
  .hub-stage { width: 260px; height: 260px; }
  .tech-title { font-size: 36px; }
}
@media (max-width: 960px) {
  .login-view--tech { display: block; }
  .login-tech-inner { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
  .login-tech-left { text-align: center; margin: 0 auto; }
  .login-tech-card { margin: 0 auto; }
  .hub-stage { margin-left: auto; margin-right: auto; }
  .tech-agents { justify-content: center; }
  .login-tech-foot { position: static; padding: 18px 0; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 80; transform: translateX(-100%); transition: transform 180ms ease; box-shadow: var(--shadow-modal); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .top-search { display: none; }
  .grid-2, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
  .qa-layout { grid-template-columns: 1fr; height: auto; }
  .qa-side { position: static; max-height: 280px; }
  .view { padding: 16px; }
  .slide-grid { grid-template-columns: repeat(2, 1fr); }
  .app-project-grid { grid-template-columns: 1fr; }
  .writer-layout { grid-template-columns: 1fr; }
  .app-alert-float { right: 12px; top: 118px; }
  .app-year-head,
  .app-year-head.alert-collapsed { padding-right: 0; }
  .app-workspace-title { flex-direction: column; }
  .app-top-progress { width: 100%; }
  .writer-bottom-chat { grid-template-columns: 1fr; }
  .score-hero, .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-row, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .top-user > div:last-child { display: none; }
  .login-tech-inner { padding: 28px 18px; }
  .tech-title { font-size: 30px; }
  .tech-subtitle { font-size: 14px; }
  .hub-stage { width: 220px; height: 220px; }
  .login-tech-card-inner { padding: 28px 22px 22px; }
  .login-tech-head h2 { font-size: 22px; }
}

/* ===== 内页智能化元素（保留淡色底色） ===== */

/* 顶栏 · 智库中枢在线状态 */
.ai-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,152,242,.08), rgba(138,132,232,.08));
  border: 1px solid rgba(96,152,242,.22);
  font-size: 12px; color: var(--primary-dark);
  white-space: nowrap;
  transition: all 200ms ease;
}
.ai-status:hover { box-shadow: 0 0 0 3px rgba(96,152,242,.1); }
.ai-status-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: aiStatusPulse 2s ease-in-out infinite;
}
@keyframes aiStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* 页面标题旁的 AI 脉冲条 */
.ai-pulse-strip {
  display: flex; align-items: center; gap: 3px;
  height: 16px; margin: 0 12px;
  align-self: center;
}
.ai-pulse-strip span {
  width: 2px; height: 8px; border-radius: 1px;
  background: linear-gradient(180deg, var(--primary), var(--ai-cyan));
  opacity: .4;
  animation: aiPulseBar 1.4s ease-in-out infinite;
}
.ai-pulse-strip span:nth-child(2) { animation-delay: .15s; }
.ai-pulse-strip span:nth-child(3) { animation-delay: .3s; }
.ai-pulse-strip span:nth-child(4) { animation-delay: .45s; }
.ai-pulse-strip span:nth-child(5) { animation-delay: .6s; }
.ai-pulse-strip span:nth-child(6) { animation-delay: .75s; }
.ai-pulse-strip span:nth-child(7) { animation-delay: .9s; }
.ai-pulse-strip span:nth-child(8) { animation-delay: 1.05s; }
@keyframes aiPulseBar {
  0%, 100% { transform: scaleY(.4); opacity: .3; }
  50% { transform: scaleY(1.4); opacity: 1; }
}

/* 悬浮 AI 智库助手 */
.ai-quick-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(96,152,242,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 58px rgba(34,38,51,.2);
  overflow: hidden;
  z-index: 71;
  transform-origin: right bottom;
  animation: aiQuickIn 180ms ease-out;
}
@keyframes aiQuickIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-quick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--ai-purple));
}
.ai-quick-head b { display: block; font-size: 15px; }
.ai-quick-head span { display: block; margin-top: 2px; font-size: 12px; opacity: .82; }
.ai-quick-head .icon-btn { width: 28px; height: 28px; color: #fff; font-size: 20px; }
.ai-quick-chat {
  max-height: 220px;
  min-height: 112px;
  overflow-y: auto;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.ai-quick-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.ai-quick-message.agent { color: var(--text); background: var(--primary-light); border-bottom-left-radius: 3px; }
.ai-quick-message.user { margin-left: auto; color: #fff; background: var(--primary); border-bottom-right-radius: 3px; }
.ai-quick-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.ai-quick-input textarea {
  width: 100%;
  min-height: 54px;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
.ai-quick-input textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(96,152,242,.12); }
.ai-quick-enter { width: calc(100% - 28px); margin: 0 14px 14px; }
.ai-orb {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--ai-purple) 60%, var(--ai-cyan));
  color: #fff; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow:
    0 12px 32px rgba(96,152,242,.35),
    0 0 0 1px rgba(255,255,255,.5) inset;
  z-index: 70;
  transition: all 250ms cubic-bezier(.4,0,.2,1);
  overflow: visible;
}
.ai-orb:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 16px 40px rgba(96,152,242,.5),
    0 0 24px rgba(106,180,255,.4),
    0 0 0 1px rgba(255,255,255,.6) inset;
}
.ai-orb:active { transform: scale(.97); }
.ai-orb.active { box-shadow: 0 16px 40px rgba(96,152,242,.52), 0 0 0 6px rgba(96,152,242,.14); }
.ai-orb svg { width: 24px; height: 24px; position: relative; z-index: 2; }
.ai-orb-label {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: rgba(34,38,51,.92); color: #fff;
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.ai-orb-label::after {
  content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; background: rgba(34,38,51,.92);
}
.ai-orb:hover .ai-orb-label { opacity: 1; }

.ai-orb-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(96,152,242,.5);
  animation: orbPulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
.ai-orb-pulse--2 { animation-delay: 1.2s; }
@keyframes orbPulseRing {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 内页响应式调整 */
@media (max-width: 720px) {
  .ai-status .ai-status-text { display: none; }
  .ai-status { padding: 5px 8px; }
  .ai-pulse-strip { display: none; }
  .ai-orb { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .ai-quick-panel { right: 16px; bottom: 76px; }
  .ai-orb svg { width: 20px; height: 20px; }
  .ai-orb-label { display: none; }
  .app-year-head { align-items: flex-start; flex-direction: column; }
  .app-type-filter { width: 100%; justify-content: space-between; }
  .app-type-filter .select { width: min(220px, 66vw); }
}

/* ===== 产业链商业机会分析 V2 ===== */
.opp-tabs{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding:6px;background:#edf4ff;border:1px solid #dbe7fb;border-radius:10px;width:max-content}.opp-tab{display:flex;align-items:center;gap:8px;padding:9px 16px;border:0;border-radius:8px;background:transparent;color:#60708f;font:600 13px "Microsoft YaHei",sans-serif;cursor:pointer;transition:all 150ms ease}.opp-tab svg{width:17px;height:17px}.opp-tab:hover{background:rgba(255,255,255,.7);color:#245fb8}.opp-tab.active{background:#fff;color:#2563eb;box-shadow:0 4px 14px rgba(37,99,235,.12)}
.opp-head,.deduction-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:16px}.opp-head.compact{align-items:flex-end}.opp-head h1,.deduction-head h1{margin:2px 0 6px;color:#153b7a;font-size:26px;line-height:1.3}.opp-head p,.deduction-head p{margin:0;color:#64748b;font-size:13px}.eyebrow{color:#4f83f1;font-size:11px;font-weight:800;letter-spacing:.12em}.opp-head-actions,.deduction-actions{display:flex;align-items:center;gap:8px}.source-chip,.confidence{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #dbe7fb;border-radius:999px;background:#f8fbff;color:#4f6d9c;font-size:12px;white-space:nowrap}
.stock-kpis{display:grid;grid-template-columns:150px 150px 150px 1fr;gap:0;margin-bottom:16px;border:1px solid #dbe7fb;border-radius:10px;background:#fff;box-shadow:0 1px 3px rgba(31,75,143,.06);overflow:hidden}.stock-kpis>div{min-height:92px;padding:18px 20px;border-right:1px solid #e8eef8}.stock-kpis>div:last-child{border:0}.stock-kpis>div>b{display:block;color:#153b7a;font-size:26px}.stock-kpis>div>span{color:#64748b;font-size:12px}.domain-bars{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.domain-bars>span{display:grid;grid-template-columns:62px 1fr 32px;align-items:center;gap:8px}.domain-bars em{color:#51627f;font-size:12px;font-style:normal}.domain-bars i,.opportunity-score i,.confidence-drivers i{height:6px;border-radius:999px;background:#edf2fa;overflow:hidden}.domain-bars u,.opportunity-score u,.confidence-drivers u{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3f7df6,#68b8ff)}.domain-bars b{color:#153b7a;font-size:12px;text-align:right}
.stock-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}.search-shell{display:flex;align-items:center;gap:8px;min-width:280px;padding:0 12px;border:1px solid #dbe7fb;border-radius:8px;background:#fff}.search-shell svg{width:16px;color:#7190bd}.search-shell input{width:100%;height:38px;border:0;outline:0;color:#17325f}.domain-pills{display:flex;align-items:center;gap:6px;flex:1;overflow:auto}.filter-pill{padding:7px 10px;border:1px solid transparent;border-radius:999px;background:#f3f7fd;color:#64748b;font-size:12px;white-space:nowrap;cursor:pointer}.filter-pill.active{border-color:#a9c5f8;background:#e8f0fe;color:#1a73e8}.view-switch,.theme-switch{display:flex;padding:4px;border:1px solid #dbe7fb;border-radius:8px;background:#fff}.view-switch button,.theme-switch button{padding:7px 12px;border:0;border-radius:6px;background:transparent;color:#64748b;font-size:12px;cursor:pointer}.view-switch button.active,.theme-switch button.active{background:#e8f0fe;color:#1a73e8;font-weight:700}
.stock-workbench{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}.stock-main{min-height:590px}.relation-canvas{position:relative;height:500px;margin:8px 16px 16px;border:1px solid #e0eafb;border-radius:12px;overflow:hidden;background:radial-gradient(circle at 50% 50%,rgba(63,125,246,.12),transparent 20%),linear-gradient(rgba(116,155,218,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(116,155,218,.07) 1px,transparent 1px),#f9fbff;background-size:auto,32px 32px,32px 32px}.relation-glow{position:absolute;inset:18%;border:1px dashed rgba(79,131,241,.25);border-radius:50%;box-shadow:0 0 70px rgba(63,125,246,.14)}.relation-core{position:absolute;left:50%;top:50%;z-index:3;display:grid;place-items:center;width:124px;height:124px;transform:translate(-50%,-50%);border:1px solid rgba(105,163,255,.65);border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 16px 40px rgba(38,103,220,.2),0 0 0 12px rgba(232,240,254,.75)}.relation-core span{color:#1a73e8;font-size:30px;font-weight:800}.relation-core small{margin-top:-22px;color:#6880a5}.relation-node{position:absolute;left:var(--x);top:var(--y);z-index:2;display:flex;align-items:center;gap:7px;max-width:150px;padding:7px 9px;transform:translate(-50%,-50%);border:1px solid #cfe0fb;border-radius:9px;background:rgba(255,255,255,.96);box-shadow:0 7px 18px rgba(44,85,145,.1);cursor:pointer}.relation-node:after{content:"";position:absolute;left:50%;top:50%;z-index:-1;width:160px;border-top:1px solid rgba(75,132,226,.22);transform-origin:left;transform:rotate(calc((var(--x) - 50) * 1deg))}.relation-node>span{display:grid;place-items:center;min-width:34px;height:34px;border-radius:8px;background:#e8f0fe;color:#1a73e8;font-size:11px;font-weight:800}.relation-node small{overflow:hidden;color:#536987;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.relation-node:hover,.relation-node.active{border-color:#4f83f1;box-shadow:0 8px 24px rgba(63,125,246,.2)}.relation-node.active>span{background:#3f7df6;color:#fff}.relation-legend{position:absolute;left:16px;bottom:16px;display:flex;gap:16px;padding:8px 12px;border:1px solid #dbe7fb;border-radius:8px;background:rgba(255,255,255,.9);font-size:11px;color:#64748b}.dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%}.dot.blue{background:#3f7df6}.dot.cyan{background:#14b8a6}.dot.purple{background:#8b5cf6}
.company-profile{padding:0;overflow:hidden}.profile-cover{display:flex;gap:14px;align-items:center;padding:22px;background:linear-gradient(135deg,#eef5ff,#f7f9ff)}.profile-cover h2{margin:3px 0 4px;color:#153b7a;font-size:17px;line-height:1.45}.profile-cover p{margin:0;color:#64748b;font-size:12px}.company-monogram{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:1px solid #cbdcf8;border-radius:10px;background:linear-gradient(135deg,#e8f0fe,#fff);color:#1a73e8;font-weight:800}.company-monogram.sm{width:32px;height:32px;border-radius:8px;font-size:12px}.company-monogram.lg{width:54px;height:54px;border-radius:14px;font-size:20px}.profile-tags{display:flex;flex-wrap:wrap;gap:6px;padding:16px 20px 0}.profile-tags span{padding:4px 8px;border-radius:999px;background:#eef5ff;color:#315f9d;font-size:11px}.company-profile dl{margin:0;padding:10px 20px}.company-profile dl>div{padding:12px 0;border-bottom:1px solid #edf1f7}.company-profile dt{margin-bottom:5px;color:#8a9bb6;font-size:11px}.company-profile dd{margin:0;color:#334765;font-size:13px;line-height:1.65}.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px 20px 20px}.table-company{display:flex;align-items:center;gap:9px}.table-company b{display:block;max-width:220px;color:#17325f}.table-company small{color:#91a0b6}.stock-table tbody tr{cursor:pointer}
.chain-summary{display:grid;grid-template-columns:1.3fr repeat(3,1fr) auto;gap:0;margin-bottom:16px;border:1px solid #dbe7fb;border-radius:10px;background:#fff;overflow:hidden}.chain-summary>div{padding:14px 16px;border-right:1px solid #e5edf9}.chain-summary span{display:block;margin-bottom:4px;color:#8191aa;font-size:11px}.chain-summary b{color:#173b78;font-size:14px}.chain-summary>.btn{align-self:center;margin:0 14px}.chain-workbench{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px}.chain-main{padding:0;overflow:hidden}.chain-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #e7eef9}.chain-toolbar b{display:block;color:#153b7a;font-size:15px}.chain-toolbar span{color:#8392a9;font-size:11px}.chain-legend{display:flex;gap:12px}.chain-legend i{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%}.chain-legend i.high{background:#f59e0b}.chain-legend i.mid{background:#3f7df6}.chain-legend i.low{background:#46c58a}.chain-map{display:flex;align-items:stretch;gap:10px;min-height:370px;padding:20px;background:#f8fbff}.chain-stage{flex:1;border:1px solid #dfebfb;border-radius:10px;background:rgba(255,255,255,.9);overflow:hidden}.chain-stage header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#edf4ff}.chain-stage header span{color:#1f4b8f;font-weight:800}.chain-stage header small{color:#8092ad}.chain-stage>div{display:grid;gap:12px;padding:14px}.chain-node{position:relative;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:11px;border:1px solid #d8e5f7;border-radius:9px;background:#fff;text-align:left;cursor:pointer}.chain-node:hover,.chain-node.active{border-color:#3f7df6;box-shadow:0 7px 18px rgba(63,125,246,.14)}.chain-node.active{background:#f0f6ff}.chain-node .node-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e8f0fe;color:#1a73e8}.chain-node svg{width:17px;height:17px}.chain-node b{color:#294769;font-size:12px}.chain-node small{color:#8595ad;font-size:10px}.chain-node>i{position:absolute;right:8px;top:8px;width:6px;height:6px;border-radius:50%}.heat-high>i{background:#f59e0b}.heat-mid>i{background:#3f7df6}.heat-low>i{background:#46c58a}.chain-arrow{align-self:center;color:#6c9eea;font-size:22px}.chain-company-strip{border-top:1px solid #e5edf8}.strip-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px}.strip-head b{display:block;color:#153b7a}.strip-head span{color:#8595ad;font-size:11px}.strip-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:0 16px 16px}.stock-company-card{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #e0e8f4;border-radius:8px;background:#fff;text-align:left;cursor:pointer}.stock-company-card:hover,.stock-company-card.selected{border-color:#80aaf0;background:#f4f8ff}.company-card-copy{min-width:0;flex:1}.company-card-copy b,.company-card-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-card-copy b{color:#294769;font-size:11px}.company-card-copy small{margin-top:3px;color:#8797ad;font-size:10px}.relation-level{color:#4f83f1;font-size:10px}.policy-side{padding:18px}.policy-side-head{display:flex;align-items:center;gap:10px}.policy-side-head h2{margin:2px 0;color:#153b7a;font-size:17px}.policy-orb{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#3f7df6,#7b61ff);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(63,125,246,.25)}.policy-side-head .confidence{margin-left:auto}.opportunity-score{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin:18px 0;padding:14px;border-radius:9px;background:#f5f9ff}.opportunity-score span{color:#7185a4;font-size:11px}.opportunity-score b{color:#1a73e8;font-size:26px}.opportunity-score i{grid-column:1/-1}.insight-block{padding:14px 0;border-bottom:1px solid #edf1f7}.insight-block h3,.assumption h3,.confidence-drivers h3{margin:0 0 7px;color:#304c70;font-size:12px}.insight-block p{margin:0;color:#64748b;font-size:12px;line-height:1.7}.insight-block a{display:inline-block;margin-top:8px;color:#1a73e8;font-size:12px;cursor:pointer}.signal-list{padding:8px 0}.signal-list>div{display:flex;justify-content:space-between;padding:8px 0;color:#718198;font-size:12px}.signal-list b{color:#274c7d}.btn-block{width:100%;justify-content:center}
.policy-launch{position:relative;display:flex;align-items:center;justify-content:center;min-height:650px;border:1px solid #dce9fb;border-radius:14px;overflow:hidden;background:radial-gradient(circle at 50% 42%,rgba(91,159,255,.22),transparent 24%),linear-gradient(135deg,#fafdff,#eef5ff 48%,#f8f6ff);box-shadow:inset 0 0 80px rgba(89,147,231,.08)}.policy-grid-bg{position:absolute;inset:0;background-image:linear-gradient(rgba(77,131,214,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(77,131,214,.06) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent)}.launch-orbit{position:absolute;left:50%;top:39%;transform:translate(-50%,-50%);border:1px solid rgba(63,125,246,.26);border-radius:50%}.orbit-a{width:340px;height:170px}.orbit-b{width:250px;height:250px}.launch-core{position:absolute;left:50%;top:30%;display:grid;place-items:center;width:92px;height:92px;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.8);border-radius:50%;background:linear-gradient(135deg,#5da6ff,#7766e8);box-shadow:0 20px 50px rgba(69,118,218,.28),0 0 0 16px rgba(255,255,255,.45);color:#fff;font-size:28px;font-weight:900}.launch-copy{position:relative;z-index:2;width:min(720px,80%);margin-top:170px;text-align:center}.launch-copy h1{margin:8px 0 12px;color:#143d79;font-size:34px}.launch-copy p{margin:0 auto 24px;max-width:620px;color:#5e718e;font-size:14px;line-height:1.8}.launch-input{display:flex;gap:10px;width:min(620px,100%);margin:auto;padding:8px;border:1px solid #cddffa;border-radius:12px;background:rgba(255,255,255,.92);box-shadow:0 15px 36px rgba(60,107,181,.12)}.launch-input select{flex:1;border:0;outline:0;padding:0 12px;color:#173b78;font-size:15px;font-weight:700}.launch-chips{display:flex;justify-content:center;gap:10px;margin-top:18px}.launch-chips span{padding:6px 10px;border:1px solid #d9e6f8;border-radius:999px;background:rgba(255,255,255,.7);color:#6d7f99;font-size:11px}.back-link{margin-bottom:6px;border:0;background:transparent;color:#4f83f1;cursor:pointer}.trend-thesis{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;margin-bottom:16px;padding:18px 20px;border:1px solid #bcd3f8;border-radius:11px;background:linear-gradient(100deg,#f0f6ff,#fff);box-shadow:0 6px 20px rgba(55,110,196,.08)}.trend-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#3f7df6,#7b61ff);color:#fff}.trend-icon svg{width:22px}.trend-thesis span{color:#4f83f1;font-size:11px;font-weight:800}.trend-thesis h2{margin:5px 0;color:#153b7a;font-size:16px;line-height:1.6}.trend-thesis p{margin:0;color:#637692;font-size:12px}.trend-meta{text-align:center}.trend-meta b{display:block;color:#1a73e8;font-size:28px}.trend-meta span{display:block;color:#8291a7}.trend-meta em{display:inline-block;margin-top:7px;padding:4px 8px;border-radius:999px;background:#dff7eb;color:#15845c;font-size:10px;font-style:normal}.deduction-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 320px;gap:16px}.evidence-chain,.impact-path,.deduction-side{padding:0;overflow:hidden}.evidence-timeline{padding:6px 18px 18px}.evidence-timeline article{display:grid;grid-template-columns:58px 10px 1fr auto;gap:9px;align-items:start;padding:14px 0;border-bottom:1px solid #edf1f7}.evidence-date{color:#5275a5;font-size:11px}.evidence-timeline article>i{width:8px;height:8px;margin-top:4px;border:2px solid #fff;border-radius:50%;background:#3f7df6;box-shadow:0 0 0 3px #dce9ff}.evidence-timeline b{color:#28496f;font-size:12px}.evidence-timeline p{margin:5px 0;color:#667891;font-size:11px;line-height:1.6}.evidence-timeline small{color:#93a1b5}.evidence-timeline button,.affected-row button{border:0;background:transparent;color:#1a73e8;font-size:11px;cursor:pointer}.impact-flow{display:flex;align-items:center;gap:8px;margin:10px 16px 0;padding:14px;border-radius:9px;background:#f5f9ff}.impact-flow div{flex:1}.impact-flow span,.impact-flow b{display:block}.impact-flow span{color:#8596ae;font-size:10px}.impact-flow b{margin-top:5px;color:#315477;font-size:11px}.impact-flow>i{color:#65a0f2;font-style:normal}.affected-list{padding:0 16px 16px}.affected-row{display:grid;grid-template-columns:24px 1fr auto auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f7}.affected-row .rank{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#e8f0fe;color:#1a73e8;font-size:10px;font-weight:800}.affected-row b,.affected-row small{display:block}.affected-row b{color:#29486d;font-size:11px}.affected-row small{max-width:260px;margin-top:3px;overflow:hidden;color:#8797ad;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.affected-row em{color:#15916b;font-size:11px;font-style:normal}.deduction-side{padding:18px}.review-status{display:flex;justify-content:space-between;margin:14px 0;padding:11px;border-radius:8px;background:#fff7e6;color:#91611c;font-size:11px}.assumption,.confidence-drivers{padding:13px 0;border-bottom:1px solid #edf1f7}.assumption ul{margin:0;padding-left:18px;color:#667891;font-size:11px;line-height:1.8}.confidence-drivers>div{display:grid;grid-template-columns:78px 1fr 24px;gap:7px;align-items:center;margin:9px 0;color:#6f819b;font-size:10px}.deduction-side .field{margin:14px 0}
@media(max-width:1180px){.stock-workbench,.chain-workbench{grid-template-columns:1fr}.company-profile,.policy-side{min-height:auto}.stock-kpis{grid-template-columns:repeat(3,1fr)}.domain-bars{grid-column:1/-1}.deduction-grid{grid-template-columns:1fr 1fr}.deduction-side{grid-column:1/-1}.stock-toolbar{flex-wrap:wrap}.domain-pills{order:3;flex-basis:100%}}
@media(max-width:760px){.opp-tabs{width:100%}.opp-tab{flex:1;justify-content:center;padding:9px}.opp-head,.deduction-head{flex-direction:column}.stock-kpis{grid-template-columns:1fr 1fr}.stock-kpis>div{border-bottom:1px solid #e8eef8}.stock-kpis .domain-bars{grid-column:1/-1}.search-shell{min-width:100%}.chain-summary{grid-template-columns:1fr 1fr}.chain-summary>.btn{grid-column:1/-1;margin:12px}.chain-map{flex-direction:column}.chain-arrow{transform:rotate(90deg)}.strip-list{grid-template-columns:1fr}.deduction-grid{grid-template-columns:1fr}.deduction-side{grid-column:auto}.trend-thesis{grid-template-columns:auto 1fr}.trend-meta{grid-column:1/-1}.launch-copy{width:90%}.launch-copy h1{font-size:26px}}

/* 信息密度升级：对齐产业链机会地图与政策趋势研判参考 */
.chain-page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}.chain-page-head h1{margin:2px 0;color:#153b7a;font-size:22px}.chain-global-filters{display:flex;align-items:flex-end;gap:8px}.chain-global-filters label{display:grid;gap:4px;color:#64748b;font-size:10px}.chain-global-filters select,.evidence-controls select{height:34px;min-width:116px;padding:0 9px;border:1px solid #dbe7fb;border-radius:7px;background:#fff;color:#294769}.chain-summary.enhanced{grid-template-columns:1.25fr repeat(4,1fr)}.chain-workbench.enhanced{grid-template-columns:minmax(0,1fr) 350px}.chain-toolbar.two-row{display:grid;grid-template-columns:1fr auto;gap:10px 16px}.map-modes{display:flex;padding:3px;border:1px solid #dbe7fb;border-radius:7px;background:#f7faff}.map-modes button{padding:6px 10px;border:0;border-radius:5px;background:transparent;color:#718198;font-size:11px;cursor:pointer}.map-modes button.active{background:#3f7df6;color:#fff}.chain-toolbar.two-row .chain-legend{grid-column:1/-1;align-items:center;padding-top:8px;border-top:1px solid #edf1f7}.chain-toolbar.two-row .chain-legend label{margin-left:auto;color:#52657e}.chain-map.dense{min-height:500px;padding:14px}.chain-map.dense .chain-stage>div{gap:8px;padding:10px}.chain-map.dense .chain-node{grid-template-columns:30px minmax(0,1fr) auto;padding:8px}.chain-map.dense .node-icon{width:30px;height:30px}.chain-node-copy{min-width:0}.chain-node-copy b,.chain-node-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chain-node-copy small{margin-top:3px}.chain-node em{color:#4f83f1;font-size:10px;font-style:normal}.chain-comparison{border-top:1px solid #dfe9f7;background:#fff}.chain-comparison .table-wrap{margin:0 14px 14px}.chain-comparison .table th,.chain-comparison .table td{padding:9px 10px;font-size:10px}.rank-medal{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8f0fe;color:#1a73e8;font-weight:800}.gap-badge{display:inline-flex;padding:3px 7px;border:1px solid #ffb7a8;border-radius:999px;background:#fff3ef;color:#ef684d;font-size:9px;font-weight:700}.score-stars{color:#ef9b17;font-size:11px}.opportunity-detail{max-height:860px;overflow:hidden}.node-rating{display:flex;align-items:center;gap:10px;margin:16px 0;padding:12px;border-radius:8px;background:#f7faff}.node-rating span{color:#64748b;font-size:11px}.node-rating b{color:#f5a623;letter-spacing:2px}.node-rating b i{color:#d8e1ef;font-style:normal}.node-rating strong{margin-left:auto;color:#153b7a}.metric-bars{display:grid;gap:10px;padding-bottom:14px;border-bottom:1px solid #edf1f7}.metric-bars>div{display:grid;grid-template-columns:70px 1fr 60px;align-items:center;gap:8px;color:#64748b;font-size:10px}.metric-bars i{height:6px;border-radius:999px;background:#ebf0f7;overflow:hidden}.metric-bars u{display:block;height:100%;border-radius:inherit;background:#3f7df6}.metric-bars b{text-align:right;color:#315477;font-size:10px}.detail-scroll{max-height:510px;overflow:auto;padding-right:4px}.insight-block h3 em{float:right;padding:2px 6px;border-radius:4px;background:#e5f8ee;color:#15916b;font-size:9px;font-style:normal}.insight-block ol{margin:6px 0 0;padding-left:18px;color:#65758d;font-size:10px;line-height:1.8}
.deduction-head.rich{margin-bottom:10px}.trend-snapshot{display:grid;grid-template-columns:2.2fr repeat(5,1fr);margin-bottom:12px;border:1px solid #cfe0f8;border-radius:9px;background:#fff;overflow:hidden}.trend-snapshot>div{padding:12px 14px;border-right:1px solid #e5edf8}.trend-snapshot>div:last-child{border:0}.trend-snapshot .snapshot-thesis{display:flex;align-items:center;background:#eff5ff;color:#1f5bb1;font-size:12px;font-weight:600;line-height:1.6}.trend-snapshot span,.trend-snapshot b,.trend-snapshot small{display:block}.trend-snapshot span{color:#788aa4;font-size:9px}.trend-snapshot b{margin:5px 0;color:#173b78;font-size:13px}.trend-snapshot small{color:#8394aa;font-size:9px}.evidence-controls{display:flex;align-items:center;gap:8px}.evidence-controls select{height:30px;min-width:96px}.evidence-controls label{color:#64748b;font-size:10px}.evidence-chain .card-title small,.impact-path .card-title small{color:#8998ad;font-size:9px;font-weight:400}.evidence-timeline article{grid-template-columns:72px 10px 1fr auto}.evidence-timeline article b em{display:inline-flex;margin-right:5px;padding:2px 5px;border-radius:4px;background:#e8f0fe;color:#1a73e8;font-size:9px;font-style:normal}.evidence-timeline article h4{margin:4px 0;color:#294769;font-size:11px}.expand-evidence{width:100%;padding:9px;border:0;background:transparent;color:#1a73e8;font-size:10px;cursor:pointer}.impact-flow.five{gap:5px;padding:10px}.impact-flow.five div{padding:8px;border:1px solid #e2ebf8;border-radius:7px;background:#fff}.impact-flow.five small{display:block;margin-top:4px;color:#8a99ad;font-size:8px}.affected-table-head{display:grid;grid-template-columns:1.25fr .8fr .75fr .5fr .5fr 1.45fr;gap:8px;padding:7px 10px;background:#f1f5f9;color:#6f819b;font-size:9px}.affected-row.rich{grid-template-columns:1.25fr .8fr .75fr .5fr .5fr 1.45fr;padding:9px 10px}.affected-row.rich>span,.affected-row.rich>strong,.affected-row.rich>p{color:#556a86;font-size:9px}.affected-row.rich em i{display:block;color:#2f976e;font-size:8px;font-style:normal}.affected-row.rich p{margin:0;line-height:1.5}.deduction-side{padding:0}.side-section{padding:14px 16px;border-bottom:1px solid #e6edf7}.side-section:last-child{border:0}.side-section ul{margin:8px 0 0;padding-left:18px;color:#5e718d;font-size:10px;line-height:1.8}.mini-region-map{position:relative;height:100px;margin:10px 0;border:1px solid #e1eaf7;border-radius:8px;background:radial-gradient(circle at 55% 45%,rgba(63,125,246,.18),transparent 30%),linear-gradient(135deg,#f8fbff,#eef5ff)}.mini-region-map span{position:absolute;padding:3px 6px;border-radius:999px;background:#fff;color:#315f9d;font-size:9px;box-shadow:0 3px 10px rgba(63,125,246,.12)}.mini-region-map span:nth-child(1){left:55%;top:35%}.mini-region-map span:nth-child(2){left:45%;top:67%}.mini-region-map span:nth-child(3){left:36%;top:20%}.region-row{display:grid;grid-template-columns:8px 40px 1fr;gap:6px;align-items:center;padding:5px 0;color:#667891;font-size:9px}.region-row i{width:6px;height:6px;border-radius:50%}.region-row i.blue{background:#3f7df6}.region-row i.green{background:#46c58a}.region-row i.orange{background:#f5a623}.region-difference>.link{margin-top:6px}.review-panel .field{margin:10px 0}.review-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}
@media(max-width:1350px){.chain-global-filters label:nth-child(2),.chain-global-filters label:nth-child(3){display:none}.trend-snapshot{grid-template-columns:2fr repeat(3,1fr)}.trend-snapshot>div:nth-last-child(-n+2){display:none}.chain-workbench.enhanced{grid-template-columns:minmax(0,1fr) 320px}.deduction-grid{grid-template-columns:1fr 1.1fr 290px}}
@media(max-width:1000px){.chain-page-head{align-items:flex-start;flex-direction:column}.chain-global-filters{width:100%;flex-wrap:wrap}.chain-map.dense{flex-direction:column}.chain-arrow{transform:rotate(90deg)}.chain-workbench.enhanced{grid-template-columns:1fr}.opportunity-detail{max-height:none}.detail-scroll{max-height:none}.trend-snapshot{grid-template-columns:1fr 1fr}.trend-snapshot .snapshot-thesis{grid-column:1/-1}.deduction-grid{grid-template-columns:1fr}.affected-table-head{display:none}.affected-row.rich{grid-template-columns:1fr 1fr}.affected-row.rich p{grid-column:1/-1}}

/* 最终优先级：所有业务页面统一到系统设计令牌 */
#view .card { border-color:var(--system-border); border-radius:12px; box-shadow:var(--system-shadow); }
#view .btn { border-radius:10px; }
#view .btn-sm { border-radius:8px; }
#view .btn-primary { background:linear-gradient(135deg,var(--system-accent),var(--system-accent-purple)); box-shadow:0 7px 18px rgba(74,109,212,.18); }
#view .btn-outline { border-color:var(--system-border); background:rgba(255,255,255,.88); }
#view .input,#view .select,#view textarea.input { border-color:rgba(96,152,242,.2); border-radius:10px; }
#view .table-wrap { border-color:var(--system-border); border-radius:9px; }
#view .table th { background:#f2f7ff; color:#61748e; }
#view .finance-ledger-page .finance-summary-card,#view .finance-ledger-page .finance-filter-bar,#view .finance-ledger-page .finance-table-card,#view .finance-tasks-page .finance-table-card { border-color:var(--system-border); border-radius:12px; box-shadow:var(--system-shadow); }
#view .outline-library-item.active { border-color:rgba(96,152,242,.55); background:linear-gradient(90deg,#eef5ff,#f6f4ff); box-shadow:inset 3px 0 var(--system-accent),0 6px 16px rgba(59,95,160,.07); }
#view .outline-tree-row.active { border-left-color:var(--system-accent); background:linear-gradient(90deg,#eef5ff,#f7f5ff); color:#245ba6; }
#view .outline-editor-tabs button.active { border-color:var(--system-accent); color:#245ba6; }

/* Apple-inspired polish: retain existing color, layout and behavior */
html,body,button,input,select,textarea {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body { font-weight:400; letter-spacing:-.006em; }
.page-title,.card-title,.brand-name,.app-company,.finance-summary-card b,.kpi-value,
.outline-library-head h1,.outline-column-head strong {
  font-family:"SF Pro Display",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:600;
  letter-spacing:-.018em;
}
.page-sub,.card-sub,.field>span,.table,.nav-item,.nav-sub-item { letter-spacing:-.006em; }

/* Calm surfaces and hairline separation */
#view .card,
#view .app-project-card,
#view .finance-summary-card,
#view .finance-filter-bar,
#view .finance-table-card,
#view .outline-library-item,
#view .stock-kpis,
#view .trend-thesis {
  border-width:1px;
  box-shadow:none;
}
#view .card { border-radius:16px; }
#view .finance-summary-card,
#view .finance-filter-bar,
#view .finance-table-card { border-radius:14px; }
#view .card:hover,
#view .app-project-card:hover,
#view .finance-summary-card:hover { box-shadow:none; }
.topbar,.sidebar {
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  box-shadow:none;
}
.finance-alert-popover,.drawer,.modal-card {
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
}

/* Native-feeling controls without changing control placement */
#view .btn { font-weight:400; box-shadow:none; transition:transform 120ms ease,opacity 120ms ease,border-color 120ms ease; }
#view .btn-primary,#view .btn-outline { border-radius:999px; }
#view .btn:hover { box-shadow:none; }
#view .btn:active { transform:scale(.96); }
#view .btn:focus-visible,
#view .input:focus-visible,
#view .select:focus-visible,
#view textarea:focus-visible,
#view button:focus-visible {
  outline:2px solid var(--system-accent);
  outline-offset:2px;
}
#view .input,#view .select,#view textarea.input { box-shadow:none; }
#view .input:hover,#view .select:hover,#view textarea.input:hover { border-color:rgba(96,152,242,.42); }
#view .search-shell,#view .outline-search,#view .finance-search-field .input { border-radius:999px; box-shadow:none; }
#view .table-wrap { box-shadow:none; }
#view .table tbody tr { transition:background-color 120ms ease; }

/* Preserve the established accent while removing decorative elevation */
#view .btn-primary,
#view .outline-library-item.active,
#view .relation-core,
#view .relation-node,
#view .chain-node,
#view .policy-orb,
#view .launch-input,
#view .trend-thesis { box-shadow:none; }
@media (prefers-reduced-motion:reduce) {
  #view .btn,#view .table tbody tr { transition:none; }
}
#view .finance-ledger-page .finance-summary-card,
#view .finance-ledger-page .finance-filter-bar,
#view .finance-ledger-page .finance-table-card,
#view .finance-tasks-page .finance-table-card {
  border-radius:14px;
  box-shadow:none;
}

/* ===== 立体 AI 助手视觉与业财台账可读性 ===== */
.brand-mark-3d { width:44px; height:44px; padding:2px; overflow:hidden; border:1px solid rgba(96,152,242,.28); border-radius:14px; background:rgba(255,255,255,.9); box-shadow:0 8px 24px rgba(61,105,190,.16),inset 0 1px 0 rgba(255,255,255,.9); }
.brand-mark-3d img,.ai-orbit img,.policy-orb img,.ai-orb-avatar,.ai-agent-visual img { display:block; width:100%; height:100%; object-fit:cover; }
.brand-mark-3d img { border-radius:11px; transform:scale(1.18); }
.ai-orbit { overflow:visible; background:transparent; box-shadow:none; }
.ai-orbit>img { position:relative; z-index:2; border-radius:50%; filter:drop-shadow(0 10px 18px rgba(48,91,184,.26)); animation:aiFloat 3.2s ease-in-out infinite; }
.ai-orbit.tiny>img { border-radius:50%; transform:scale(1.12); }
.ai-orb { overflow:visible; background:rgba(255,255,255,.66); contain:layout style; isolation:isolate; }
.ai-orb-avatar {
  position:absolute;
  inset:4px;
  z-index:2;
  width:calc(100% - 8px) !important;
  height:calc(100% - 8px) !important;
  max-width:48px;
  max-height:48px;
  border-radius:50%;
  object-fit:cover;
  transform:none;
  filter:drop-shadow(0 7px 12px rgba(54,96,194,.32));
  pointer-events:none;
}
.ai-agent-visual { position:relative; width:126px; height:126px; margin:0 auto 18px; }
.ai-agent-visual img { position:relative; z-index:3; border-radius:50%; filter:drop-shadow(0 18px 25px rgba(51,91,180,.28)); animation:aiWorking 1.8s ease-in-out infinite; }
.ai-agent-ring { position:absolute; inset:-8px; z-index:1; border:1px solid rgba(76,132,236,.35); border-radius:50%; animation:aiRing 2.2s ease-out infinite; }
.ai-agent-ring.ring-b { inset:-22px; animation-delay:.7s; }
.ai-working-caption { display:grid; gap:6px; margin-bottom:14px; text-align:center; }
.ai-working-caption b { color:#173b78; font-size:15px; }
.ai-working-caption span { min-height:20px; color:#6680a8; font-size:12px; }
.ai-process-track { display:flex; justify-content:center; gap:8px; margin:14px 0; }
.ai-process-track span { padding:5px 9px; border-radius:999px; background:#eef3fa; color:#8a99ae; font-size:11px; transition:all .25s ease; }
.ai-process-track span.active { background:#e4efff; color:#2563eb; box-shadow:inset 0 0 0 1px rgba(37,99,235,.18); }
@keyframes aiFloat { 0%,100%{transform:translateY(0) scale(1.04)} 50%{transform:translateY(-5px) scale(1.07)} }
@keyframes aiWorking { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-8px) rotate(1deg)} }
@keyframes aiRing { 0%{transform:scale(.82);opacity:.7} 100%{transform:scale(1.18);opacity:0} }

.side-user { grid-template-columns:auto minmax(0,1fr); }
.logout-action { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:7px; width:100%; height:34px; margin-top:8px; border:1px solid rgba(96,152,242,.24); border-radius:10px; background:rgba(255,255,255,.72); color:#60748f; font-size:12px; cursor:pointer; transition:background .15s ease,color .15s ease,transform .12s ease; }
.logout-action svg { width:15px; height:15px; stroke-linecap:round; stroke-linejoin:round; }
.logout-action:hover { background:#eef5ff; color:#245fb8; }
.logout-action:active { transform:scale(.98); }

#view .finance-table-card>.table-wrap { overflow-x:auto; overflow-y:hidden; }
#view .finance-table { min-width:1760px; table-layout:auto; }
#view .finance-table th,#view .finance-table td { padding:16px 18px; line-height:1.65; vertical-align:middle; }
#view .finance-table th:first-child,#view .finance-table td:first-child { min-width:285px; }
#view .finance-table th:nth-child(2),#view .finance-table td:nth-child(2) { min-width:105px; }
#view .finance-table th:nth-child(n+3),#view .finance-table td:nth-child(n+3) { min-width:145px; }
#view .finance-table tbody tr+tr td { border-top:1px solid rgba(96,152,242,.1); }
#view .finance-table-card>.table-wrap::-webkit-scrollbar { height:12px; }
#view .finance-table-card>.table-wrap::-webkit-scrollbar-thumb { border:3px solid #fff; border-radius:999px; background:#9aabc2; }
@media (prefers-reduced-motion:reduce) { .ai-orbit>img,.ai-agent-visual img,.ai-agent-ring { animation:none; } }
@media (max-width:720px) { .ai-orb-avatar { max-width:40px; max-height:40px; } }

/* ===== 业财待办表格舒展与工作台流程粒子动效 ===== */
#view .finance-tasks-page .finance-table-card>.table-wrap {
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
}
#view .finance-tasks-page .finance-table-card .table {
  min-width:1520px;
  table-layout:auto;
}
#view .finance-tasks-page .finance-table-card .table th,
#view .finance-tasks-page .finance-table-card .table td {
  padding:16px 18px;
  line-height:1.65;
  vertical-align:middle;
  white-space:nowrap;
}
#view .finance-tasks-page .finance-table-card .table th:nth-child(2),
#view .finance-tasks-page .finance-table-card .table td:nth-child(2) {
  min-width:390px;
  white-space:normal;
}
#view .finance-tasks-page .finance-table-card .table th:first-child,
#view .finance-tasks-page .finance-table-card .table td:first-child { min-width:110px; }
#view .finance-tasks-page .finance-table-card .table th:nth-child(3),
#view .finance-tasks-page .finance-table-card .table td:nth-child(3) { min-width:130px; }
#view .finance-tasks-page .finance-table-card .table th:last-child,
#view .finance-tasks-page .finance-table-card .table td:last-child { min-width:210px; }
#view .finance-tasks-page .finance-table-card>.table-wrap::-webkit-scrollbar { height:12px; }
#view .finance-tasks-page .finance-table-card>.table-wrap::-webkit-scrollbar-thumb { border:3px solid #fff; border-radius:999px; background:#9aabc2; }

.home-tech-flow .home-flow-stage { padding:14px 0 6px; }
.home-tech-flow .home-flow-beam {
  top:27px;
  height:3px;
  overflow:visible;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(40,182,151,.22),rgba(55,201,232,.42),rgba(40,182,151,.22));
  box-shadow:0 0 12px rgba(55,201,232,.18);
}
.home-tech-flow .home-flow-beam::before,
.home-tech-flow .home-flow-beam::after {
  content:"";
  position:absolute;
  top:50%;
  left:0;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#66e9ff;
  box-shadow:0 0 7px #45d8f2,0 0 15px rgba(69,216,242,.82),-15px 0 0 -2px rgba(102,233,255,.56),-30px 0 0 -3px rgba(102,233,255,.3);
  transform:translate(-50%,-50%);
  animation:homeParticleTravel 5s linear infinite;
}
.home-tech-flow .home-flow-beam::after {
  width:5px;
  height:5px;
  animation-delay:2.5s;
  opacity:.72;
}
.home-tech-flow .pstep { z-index:2; }
.home-tech-flow .pstep-ico {
  width:32px;
  height:32px;
  border-color:rgba(37,182,137,.55);
  background:#eefbf7;
  animation:homeStepIlluminate 5s ease-in-out infinite;
}
.home-tech-flow .pstep:nth-child(1) .pstep-ico { animation-delay:0s; }
.home-tech-flow .pstep:nth-child(2) .pstep-ico { animation-delay:1s; }
.home-tech-flow .pstep:nth-child(3) .pstep-ico { animation-delay:2s; }
.home-tech-flow .pstep:nth-child(4) .pstep-ico { animation-delay:3s; }
.home-tech-flow .pstep:nth-child(5) .pstep-ico { animation-delay:4s; }
.home-tech-flow .pstep-label { animation:homeStepLabel 5s ease-in-out infinite; }
.home-tech-flow .pstep:nth-child(1) .pstep-label { animation-delay:0s; }
.home-tech-flow .pstep:nth-child(2) .pstep-label { animation-delay:1s; }
.home-tech-flow .pstep:nth-child(3) .pstep-label { animation-delay:2s; }
.home-tech-flow .pstep:nth-child(4) .pstep-label { animation-delay:3s; }
.home-tech-flow .pstep:nth-child(5) .pstep-label { animation-delay:4s; }
@keyframes homeParticleTravel { 0%{left:0;opacity:0} 7%{opacity:1} 93%{opacity:1} 100%{left:100%;opacity:0} }
@keyframes homeStepIlluminate {
  0%,15%,100% { transform:scale(1); background:#eefbf7; box-shadow:0 0 0 5px rgba(75,162,226,.06); }
  5%,10% { transform:scale(1.2); background:#d8fff1; border-color:#1ecb91; box-shadow:0 0 0 7px rgba(30,203,145,.13),0 0 24px rgba(48,213,199,.72); }
}
@keyframes homeStepLabel { 0%,15%,100%{filter:none;transform:translateY(0)} 5%,10%{filter:brightness(.78) saturate(1.4);transform:translateY(2px)} }
@media (prefers-reduced-motion:reduce) {
  .home-tech-flow .home-flow-beam::before,.home-tech-flow .home-flow-beam::after,
  .home-tech-flow .pstep-ico,.home-tech-flow .pstep-label { animation:none; }
}

/* Apple 风格流程轨道：单一基准线、统一节点尺寸与玻璃标签 */
.home-tech-flow { padding:18px 20px 20px; }
.home-tech-flow .card-head { margin-bottom:2px; }
.home-tech-flow .home-flow-stage {
  --flow-node-size:36px;
  position:relative;
  padding:18px 8px 4px;
}
.home-tech-flow .progress-steps {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:start;
  width:100%;
}
.home-tech-flow .pstep {
  min-width:0;
  padding:0 8px;
  gap:8px;
}
.home-tech-flow .pstep::before { display:none !important; }
.home-tech-flow .home-flow-beam {
  left:10%;
  right:10%;
  top:36px;
  z-index:1;
  height:2px;
}
.home-tech-flow .pstep-ico {
  flex:0 0 var(--flow-node-size);
  width:var(--flow-node-size);
  height:var(--flow-node-size);
  border-width:1px;
  background:rgba(247,255,252,.96);
  box-shadow:0 0 0 5px rgba(255,255,255,.9),0 3px 10px rgba(44,127,108,.1);
}
.home-tech-flow .pstep-ico svg { width:18px; height:18px; }
.home-tech-flow .pstep-label {
  width:min(132px,100%);
  min-height:48px;
  padding:7px 8px;
  border:1px solid rgba(96,152,242,.14);
  border-radius:12px;
  background:rgba(255,255,255,.74);
  color:#48647d;
  line-height:1.45;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter:blur(12px) saturate(145%);
  -webkit-backdrop-filter:blur(12px) saturate(145%);
  animation:homeStepLabelApple 5s ease-in-out infinite;
}
.home-tech-flow .pstep-label b { display:inline-block; margin-top:2px; color:#10986e; font-size:13px; }
.home-tech-flow .pstep:nth-child(1) .pstep-label { animation-delay:0s; }
.home-tech-flow .pstep:nth-child(2) .pstep-label { animation-delay:1s; }
.home-tech-flow .pstep:nth-child(3) .pstep-label { animation-delay:2s; }
.home-tech-flow .pstep:nth-child(4) .pstep-label { animation-delay:3s; }
.home-tech-flow .pstep:nth-child(5) .pstep-label { animation-delay:4s; }
@keyframes homeStepLabelApple {
  0%,15%,100% { border-color:rgba(96,152,242,.14); background:rgba(255,255,255,.74); box-shadow:inset 0 1px 0 rgba(255,255,255,.92); }
  5%,10% { border-color:rgba(30,203,145,.34); background:rgba(239,255,249,.94); box-shadow:0 8px 22px rgba(30,168,131,.12),inset 0 1px 0 #fff; }
}
@media (max-width:760px) {
  .home-tech-flow { padding:16px 14px 18px; }
  .home-tech-flow .home-flow-stage { padding-inline:0; overflow-x:auto; }
  .home-tech-flow .progress-steps { min-width:680px; }
  .home-tech-flow .home-flow-beam { left:68px; right:auto; width:544px; }
}

/* ===== 登录页：参考图复刻 + 独立登录窗口 ===== */
body.login-mode { overflow:hidden; background:#f4f7fc; }
.login-view--tech {
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:#f5f8fd;
}
.login-view--tech::before,
.login-view--tech::after { display:none; }
.login-tech-inner {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,62%) minmax(380px,38%);
  align-items:center;
  width:100%;
  max-width:none;
  min-height:100vh;
  margin:0;
  padding:0 8vw 0 0;
  gap:3vw;
}
.login-tech-left {
  position:relative;
  width:100%;
  max-width:none;
  height:100vh;
  margin:0;
  overflow:hidden;
}
.login-tech-left>:not(.login-reference-visual) { display:none !important; }
.login-reference-visual { position:absolute; inset:0; overflow:hidden; }
.login-reference-visual img {
  position:absolute;
  inset:0 auto auto 0;
  display:block;
  width:100vw;
  max-width:none;
  height:100vh;
  object-fit:fill;
  pointer-events:none;
  user-select:none;
}
.login-stars { display:block !important; position:absolute; inset:0; z-index:4; overflow:hidden; pointer-events:none; opacity:.72; }
.login-stars .stars-layer { position:absolute; inset:-15%; background-image:radial-gradient(circle,rgba(62,151,255,.75) 0 1px,transparent 1.7px); background-size:74px 74px; }
.login-stars .stars-layer--1 { animation:loginParticleDrift 18s linear infinite; }
.login-stars .stars-layer--2 { background-size:116px 116px; opacity:.6; animation:loginParticleDrift 28s linear infinite reverse; }
.login-stars .stars-layer--3 { background-size:168px 168px; opacity:.38; animation:loginParticleFloat 9s ease-in-out infinite; }
.login-glow { display:block !important; z-index:1; filter:blur(16px); opacity:.22; animation:loginGlowBreathe 7s ease-in-out infinite; }
.login-glow--tl { background:radial-gradient(circle,#68b9ff 0%,transparent 68%); }
.login-glow--br { background:radial-gradient(circle,#7568ff 0%,transparent 68%); animation-delay:-3.5s; }

.login-tech-card {
  position:relative;
  z-index:6;
  width:min(430px,100%);
  min-height:0;
  margin:0 0 0 auto;
  border:1px solid rgba(132,157,198,.34);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  box-shadow:0 24px 70px rgba(65,91,142,.14),inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter:blur(26px) saturate(160%);
  -webkit-backdrop-filter:blur(26px) saturate(160%);
  overflow:hidden;
}
.login-tech-card::before {
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-130px;
  top:-150px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(76,142,255,.18),transparent 68%);
  animation:loginGlowBreathe 6s ease-in-out infinite;
  pointer-events:none;
}
.login-tech-card-glow { display:none; }
.login-tech-card-inner {
  position:relative;
  min-height:0;
  padding:58px 54px 48px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.login-tech-card-inner::before { display:none; }
.login-tech-head h2 {
  margin:0 0 42px;
  color:#102d68;
  font-size:28px;
  font-weight:600;
  letter-spacing:.04em;
}
.login-tech-form { gap:22px; }
.login-tech-form .tech-field-label { display:none; }
.login-tech-form .tech-field:has(#login-role) { display:none; }
.login-tech-card .tech-field-input {
  position:relative;
  height:58px;
  border:1px solid #ced9ea;
  border-radius:9px;
  background:rgba(255,255,255,.66);
  box-shadow:inset 0 1px 2px rgba(42,67,112,.025);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.login-tech-card .tech-field-input:focus-within {
  border-color:#6d9dff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(69,122,255,.1),0 8px 24px rgba(60,102,187,.08);
}
.login-tech-card .tech-field-input input {
  height:100%;
  padding:0 48px 0 18px;
  color:#17356f;
  font-size:15px;
  font-weight:500;
}
.login-tech-card .tech-field-icon { left:auto; right:17px; width:20px; height:20px; color:#7890b7; }
.login-tech-card .tech-login-btn {
  height:58px;
  margin-top:4px;
  border-radius:9px;
  background:linear-gradient(110deg,#6846ee,#176cf1);
  box-shadow:0 12px 26px rgba(54,93,228,.22);
  font-size:16px;
  font-weight:600;
}
.login-tech-card .tech-login-btn:hover { transform:translateY(-1px); box-shadow:0 16px 32px rgba(54,93,228,.28); }
.login-tech-meta { justify-content:center; margin-top:4px; }
.login-tech-meta .tech-link { color:#176cf1; font-weight:500; }
@keyframes loginParticleDrift { from{transform:translate3d(-2%,0,0)} to{transform:translate3d(8%,6%,0)} }
@keyframes loginParticleFloat { 0%,100%{transform:translateY(-8px);opacity:.25} 50%{transform:translateY(14px);opacity:.7} }
@keyframes loginGlowBreathe { 0%,100%{transform:scale(.94);opacity:.16} 50%{transform:scale(1.12);opacity:.32} }
@media (max-width:980px) {
  body.login-mode { overflow:auto; }
  .login-tech-inner { grid-template-columns:1fr; min-height:100vh; padding:44px 24px; }
  .login-tech-left { display:none; }
  .login-tech-card { width:min(430px,100%); margin:auto; }
}

/* 文书智写：企业资料与层级目录 */
.enterprise-files-card { min-width:0; overflow:hidden; }
.grid-2-1.app-section > * { min-width:0; }
.enterprise-file-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--border); border-radius:12px; overflow:hidden; margin:2px 0 14px; background:#fbfdff; }
.enterprise-file-stats>div { padding:14px 18px; border-right:1px solid var(--border); }
.enterprise-file-stats>div:last-child { border-right:0; }
.enterprise-file-stats b { display:block; font-size:22px; color:var(--text); line-height:1.2; font-variant-numeric:tabular-nums; }
.enterprise-file-stats span { display:block; margin-top:5px; color:var(--text-2); font-size:12px; }
.enterprise-file-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:10px; color:var(--text-2); font-size:12px; }
.enterprise-file-search { flex:1; max-width:480px; height:38px; display:flex; align-items:center; gap:8px; padding:0 12px; border:1px solid var(--border); border-radius:9px; background:#fff; }
.enterprise-file-search svg { width:16px; height:16px; color:var(--text-2); flex:none; }
.enterprise-file-search input { width:100%; border:0; outline:0; background:transparent; color:var(--text); }
.enterprise-files-wrap { overflow-x:auto; padding-bottom:5px; }
.enterprise-file-table { min-width:1050px; }
.enterprise-file-table th,.enterprise-file-table td { padding:12px 14px; vertical-align:middle; }
.enterprise-file-table th:first-child { min-width:285px; }
.enterprise-file-table th:last-child { min-width:240px; }
.file-date { margin-top:4px; font-size:11px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.file-row-actions { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.danger-text { color:#c24141 !important; }
.indexed-status { display:inline-flex; padding:4px 9px; border:1px solid #d8dee8; background:#fff; color:#475569; border-radius:999px; font-size:11px; }
.outline-tree-card .card-head { align-items:center; }
.outline-framework-inline { display:flex; align-items:center; gap:6px; min-width:0; color:var(--text-2); font-size:11px; }
.outline-framework-inline select { width:170px; min-width:0; border:0; outline:0; background:transparent; color:var(--text-2); font-size:11px; text-overflow:ellipsis; }
.outline-framework-inline button { border:0; background:transparent; color:var(--primary); font-size:11px; cursor:pointer; padding:0; }
.outline-tree-head { display:flex; justify-content:space-between; padding:8px 10px; border-bottom:1px solid var(--border); color:var(--text-3); font-size:11px; }
.outline-tree-list { gap:0; max-height:500px; border-bottom:1px solid var(--border); }
.outline-tree-row { min-height:40px; display:grid; grid-template-columns:56px minmax(0,1fr) 36px; align-items:center; gap:8px; padding:5px 8px; border-left:3px solid transparent; cursor:pointer; color:var(--text-2); transition:background .14s ease,color .14s ease; }
.outline-tree-row:hover { background:#f6f9fe; color:var(--text); }
.outline-tree-row.active { border-left-color:var(--primary); background:var(--primary-light); color:var(--text); }
.outline-tree-row.level-1 { padding-left:24px; }
.outline-tree-row.level-2 { padding-left:44px; }
.outline-tree-code { font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.outline-tree-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.outline-ref-count { justify-self:end; min-width:28px; height:24px; padding:0 6px; border:1px solid #d9e5f5; border-radius:999px; background:#fff; color:var(--primary); font-size:11px; cursor:pointer; }
.outline-ref-count:hover { border-color:var(--primary); background:var(--primary-light); }
.reference-modal-list,.reference-picker { display:flex; flex-direction:column; gap:8px; max-height:420px; overflow:auto; }
.reference-modal-row,.reference-picker label { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:11px 12px; border:1px solid var(--border); border-radius:9px; background:#fbfdff; }
.reference-modal-row span,.reference-picker small { display:block; margin-top:3px; color:var(--text-2); font-size:11px; }
.reference-picker label { justify-content:flex-start; cursor:pointer; }
.reference-picker input { width:16px; height:16px; accent-color:var(--primary); }
@media(max-width:760px){.enterprise-file-stats{grid-template-columns:repeat(2,1fr)}.enterprise-file-stats>div:nth-child(2){border-right:0}.outline-framework-inline select{width:110px}}

/* 工作台资讯流与文书审核操作条 */
.home-news-head-meta { display:flex; align-items:center; gap:8px; color:var(--text-3); font-size:11px; }
.home-news-list { max-height:350px; overflow-y:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:#c8d8ec transparent; }
.home-news-list::-webkit-scrollbar { width:5px; }
.home-news-list::-webkit-scrollbar-thumb { background:#c8d8ec; border-radius:10px; }
.home-news-item { grid-template-columns:34px minmax(0,1fr) 14px; gap:9px; min-height:0; padding:7px 9px; border-radius:8px; }
.home-news-visual { width:34px; height:34px; border-radius:8px; }
.home-news-visual svg { width:16px; height:16px; }
.home-news-copy > div { min-height:15px; }
.home-news-copy b { margin-top:1px; font-size:12px; line-height:1.35; }
.home-news-copy p { margin-top:1px; font-size:10px; line-height:1.35; }
.home-news-tag { padding:1px 5px; }
.writer-bottom-chat.writer-review-bar { display:grid; grid-template-columns:auto auto minmax(180px,1fr) auto auto; gap:8px; padding:10px; border:1px solid #d8ddd9; border-radius:8px; background:#fbfcfa; box-shadow:none; }
.writer-review-bar::before { display:none !important; }
.writer-review-bar .writer-action { height:38px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 14px; border:1px solid #d5d9d5; border-radius:6px; background:#f4f6f3; color:#26312d; font-weight:700; font-size:12px; white-space:nowrap; cursor:pointer; }
.writer-review-bar .writer-action svg { width:15px; height:15px; }
.writer-review-bar .regenerate { color:#fff; border-color:#146449; background:#146449; }
.writer-review-bar .rewrite { color:#747b78; background:#f4f4f2; }
.writer-review-bar .approve { color:#fff; border-color:#9b6814; background:#9b6814; }
.writer-review-bar .input { height:38px; min-width:0; border-radius:6px; background:#fff; }
@media(max-width:980px){.writer-bottom-chat.writer-review-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.writer-review-bar .input{grid-column:1/-1;order:-1}.writer-review-bar .approve{grid-column:1/-1}}

/* 本轮统一优化：登录、工作台、目录与文书编辑 */
.login-tech-inner { overflow:hidden; }
.login-tech-left { min-width:0; }
.tech-agents { max-width:100%; gap:8px !important; }
.tech-agent-chip { min-width:0 !important; flex:1 1 0; padding:8px 8px !important; font-size:12px !important; white-space:nowrap; }
.login-tech-card-inner { min-height:0 !important; padding-top:48px !important; padding-bottom:42px !important; }
.home-hero-head { position:relative; overflow:hidden; margin:-2px -2px 18px; padding:2px; border-radius:18px; background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(238,246,255,.72)); border:1px solid rgba(198,215,239,.7); }
.home-hero-head .page-head { margin:0; padding:20px 22px; background:transparent; }
.home-hero-decor { position:absolute; right:22px; top:50%; display:flex; align-items:center; gap:5px; transform:translateY(-50%); color:#5e7698; font-size:11px; }
.home-hero-decor i { display:block; width:4px; height:18px; border-radius:4px; background:linear-gradient(#7a86ee,#42c8d8); }
.home-hero-decor i:nth-child(2){height:28px}.home-hero-decor i:nth-child(3){height:12px}
.home-overview { padding:18px; border:1px solid rgba(204,217,235,.72); border-radius:20px; background:rgba(255,255,255,.68); box-shadow:0 18px 44px rgba(57,83,124,.08); backdrop-filter:blur(16px); }
.home-core-kpis .kpi { border:1px solid rgba(211,220,234,.82); border-radius:18px; background:linear-gradient(155deg,#fff,rgba(247,249,253,.9)); box-shadow:0 12px 30px rgba(55,78,116,.07); }
.home-core-kpis .kpi:hover { transform:translateY(-2px); box-shadow:0 18px 38px rgba(55,78,116,.11); }
.home-finance-metric { border-radius:15px !important; background:rgba(250,252,255,.82) !important; }
.home-insight-ops { align-items:stretch; }
.home-insight-ops > .card { min-width:0; }
.home-faq-window { height:300px; }
.home-agent-panel .home-agent-grid { max-height:350px; overflow-y:auto; padding-right:4px; }
.writer-layout { grid-template-columns:300px minmax(0,1fr); transition:grid-template-columns .18s ease; }
.outline-tree-card .card-head { gap:5px; flex-wrap:nowrap; }
.outline-tree-card .card-title { white-space:nowrap; }
.outline-tree-card .outline-framework-inline { gap:4px; }
.outline-tree-card .outline-framework-inline select { width:104px; font-size:10px; }
.outline-tree-card .outline-framework-inline > span { font-size:10px; white-space:nowrap; }
.writer-layout.outline-collapsed { grid-template-columns:48px minmax(0,1fr); }
.writer-layout.outline-collapsed .outline-tree-card { padding:10px 7px; overflow:hidden; }
.writer-layout.outline-collapsed .outline-tree-card .card-head { justify-content:center; }
.writer-layout.outline-collapsed .outline-tree-card .card-title,.writer-layout.outline-collapsed .outline-framework-inline,.writer-layout.outline-collapsed .outline-tree-head,.writer-layout.outline-collapsed .outline-tree-list,.writer-layout.outline-collapsed .outline-footer-actions { display:none; }
.outline-collapse-btn { width:28px; height:28px; display:grid; place-items:center; flex:none; border:1px solid var(--border); border-radius:7px; background:#fff; color:var(--text-2); cursor:pointer; }
.outline-collapse-btn svg { width:15px; height:15px; transform:rotate(180deg); }
.outline-collapsed .outline-collapse-btn svg { transform:none; }
.outline-tree-row { grid-template-columns:48px minmax(0,1fr) 18px 32px; }
.outline-complete { width:17px; height:17px; display:grid !important; place-items:center; border-radius:50%; background:#e5f7ee; color:#159766 !important; margin:0 !important; }
.outline-complete svg { width:11px; height:11px; }
.outline-footer-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.outline-footer-actions .btn { justify-content:center; }
.writer-bottom-chat.writer-review-bar { border-color:#d9e4f3; background:#f8fbff; }
.writer-review-bar .writer-action { border-color:#d7e2f0; background:#fff; color:#34506f; }
.writer-review-bar .regenerate,.writer-review-bar .approve { color:#fff; border-color:#5c7fe8; background:linear-gradient(135deg,#5c91ed,#7d78e8); }
.writer-review-bar .rewrite { color:#406aa8; background:#eef5ff; }
.full-preview-scroll { max-height:64vh; overflow-y:auto; padding:2px 14px 2px 2px; }
.full-preview-scroll section { padding:16px 4px; border-bottom:1px solid var(--border); line-height:1.8; }
.full-preview-scroll h3 { margin:0 0 8px; color:var(--text); }
.full-preview-scroll p { margin:0 0 8px; color:var(--text-2); }
.chapter-current-title { max-width:520px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chapter-ref-summary { min-height:300px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:34px; text-align:center; color:var(--text-2); }
.chapter-ref-summary > svg { width:38px; height:38px; color:#b8c7db; }
.chapter-ref-summary .chapter-ref-kicker { color:#7d8da4; font-size:12px; }
.chapter-ref-summary strong { color:var(--text); font-size:17px; }
.chapter-ref-summary p { max-width:560px; margin:0; line-height:1.7; font-size:13px; }
.chapter-ref-types { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin:2px 0 4px; }
.chapter-ref-types span { padding:5px 9px; border:1px solid #dce7f5; border-radius:999px; background:#f5f9ff; color:#52719b; font-size:11px; }
.pdf-preview-shell { margin:-2px -2px 0; padding:12px; border-radius:10px; background:#e9edf3; }
.pdf-preview-toolbar { display:flex; align-items:center; justify-content:space-between; padding:0 4px 10px; color:#536174; font-size:12px; }
.pdf-preview-toolbar b { font-weight:500; }
.pdf-pages { max-height:64vh; padding:8px 20px 24px; }
.pdf-pages .pdf-page { position:relative; width:min(620px,100%); min-height:760px; margin:0 auto 18px; padding:62px 68px 58px; border:0; background:#fff; box-shadow:0 8px 24px rgba(38,51,71,.15); color:#273447; box-sizing:border-box; }
.pdf-page-head { padding-bottom:12px; margin-bottom:34px; border-bottom:1px solid #dfe4ea; color:#8a95a5; font-size:10px; letter-spacing:.08em; }
.pdf-pages .pdf-page h3 { margin-bottom:24px; text-align:center; font-size:20px; color:#192638; }
.pdf-pages .pdf-page p { font-size:14px; line-height:2; text-align:justify; color:#34445a; }
.pdf-pages .pdf-page .cite { margin-top:28px; padding:14px; border-left:3px solid #7d94bd; background:#f5f7fa; color:#607089; font-size:12px; }
.pdf-page-no { position:absolute; left:0; right:0; bottom:22px; text-align:center; color:#9aa4b2; font-size:10px; }
.tune-editor-card { min-height:calc(100vh - 120px); display:flex; flex-direction:column; }
.tune-editor-card .doc-edit-area { flex:1; min-height:calc(100vh - 220px); resize:none; }
@media(max-width:1200px){.login-tech-card{width:350px !important}.login-tech-card-inner{padding-left:38px !important;padding-right:38px !important}.login-tech-head h2{margin-bottom:30px !important}}
@media(max-width:900px){.home-insight-ops{grid-template-columns:1fr}.writer-layout{grid-template-columns:1fr}.writer-layout.outline-collapsed{grid-template-columns:1fr}.writer-layout.outline-collapsed .outline-tree-card{display:none}.home-hero-decor{display:none}}
@media (max-width:520px) {
  .login-tech-card-inner { padding:38px 24px 30px; }
  .login-tech-head h2 { margin-bottom:30px; font-size:24px; }
}
@media (prefers-reduced-motion:reduce) {
  .login-stars .stars-layer,.login-glow,.login-tech-card::before { animation:none; }
}

/* ===== 登录页 v28：Scale × Anthropic 编辑式滚动体验 ===== */
body.login-mode { overflow-x:hidden !important; overflow-y:auto !important; background:#f5f7fb !important; }
.login-view--tech {
  --login-scroll:0;
  min-height:190vh !important;
  overflow:visible !important;
  color:#101a33;
  background:
    linear-gradient(90deg,rgba(44,92,190,.045) 1px,transparent 1px) 0 0/12.5vw 100%,
    #f7f9fc !important;
}
.login-stars,.login-glow,.login-tech-card-glow,.login-tech-card::before { display:none !important; animation:none !important; }
.login-tech-inner {
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.45fr) minmax(360px,.72fr) !important;
  align-items:center !important;
  width:100% !important;
  min-height:100vh !important;
  padding:94px clamp(36px,7vw,120px) 64px !important;
  gap:clamp(42px,6vw,112px) !important;
  isolation:isolate;
}
.login-editorial-nav {
  position:absolute; top:0; left:0; right:0; height:76px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(36px,7vw,120px); border-bottom:1px solid rgba(16,26,51,.12);
  font-size:14px; letter-spacing:.01em;
}
.login-editorial-brand { display:flex; align-items:center; gap:12px; font-weight:700; }
.login-brand-symbol { display:grid; place-items:center; width:34px; height:34px; border:1px solid #13285a; border-radius:50%; font-size:11px; letter-spacing:.08em; }
.login-editorial-nav-note { color:#667089; }
.login-tech-left { position:relative !important; width:100% !important; max-width:none !important; height:70vh !important; min-height:570px; overflow:visible !important; color:#101a33 !important; }
.login-tech-left>:not(.login-reference-visual):not(.login-editorial-copy) { display:none !important; }
.login-reference-visual { position:absolute !important; inset:38% -8% -8% 26% !important; overflow:hidden !important; opacity:calc(.09 - var(--login-scroll)*.04); transform:translate3d(0,calc(var(--login-scroll)*-28px),0) scale(calc(.94 + var(--login-scroll)*.04)); transform-origin:60% 50%; transition:opacity .08s linear; }
.login-reference-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#f7f9fc 0%,transparent 25%,transparent 72%,#f7f9fc 100%),linear-gradient(0deg,#f7f9fc 0%,transparent 28%,transparent 82%,#f7f9fc 100%); }
.login-reference-visual img { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; object-fit:cover !important; filter:saturate(.72) contrast(.92); }
.login-tech-left > .login-editorial-copy { display:block !important; position:relative; z-index:3; max-width:760px; transform:translate3d(0,calc(var(--login-scroll)*-34px),0); opacity:calc(1 - var(--login-scroll)*.68); }
.login-editorial-copy h1 { margin:0; font-size:clamp(46px,5.25vw,82px); line-height:1.07; letter-spacing:-.055em; font-weight:650; color:#101a33; text-wrap:balance; }
.login-editorial-copy p { width:min(600px,82%); margin:30px 0 0; font-size:17px; line-height:1.75; color:#5d6880; }
.login-editorial-index { display:flex; align-items:center; gap:14px; margin-top:48px; color:#253b6d; font-size:13px; }
.login-editorial-index span { color:#78849b; font-variant-numeric:tabular-nums; }
.login-editorial-index i { display:block; width:84px; height:1px; background:#253b6d; transform-origin:left; transform:scaleX(calc(.35 + var(--login-scroll)*.65)); }
.login-tech-card {
  --card-x:0; --card-y:0;
  position:relative !important; z-index:7 !important; width:min(430px,100%) !important; margin:0 0 0 auto !important;
  border:1px solid rgba(16,26,51,.18) !important; border-radius:4px !important; background:rgba(255,255,255,.9) !important;
  box-shadow:0 24px 70px rgba(31,48,86,.1) !important; backdrop-filter:blur(18px) !important;
  overflow:hidden !important; transform:perspective(1000px) rotateY(calc(var(--card-x)*2deg)) rotateX(calc(var(--card-y)*-2deg)) translate3d(0,calc(var(--login-scroll)*18px),0) !important;
  transition:transform .16s ease-out,box-shadow .25s ease !important;
}
.login-tech-card:hover { box-shadow:0 30px 90px rgba(31,48,86,.15) !important; }
.login-tech-card-inner { min-height:0 !important; padding:52px 46px 44px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
.login-tech-head h2 { margin:0 0 38px !important; color:#101a33 !important; font-size:30px !important; letter-spacing:-.025em !important; font-weight:620 !important; }
.login-tech-form { gap:18px !important; }
.login-tech-card .tech-field-input { height:58px !important; border:1px solid #ccd3df !important; border-radius:2px !important; background:#fff !important; box-shadow:none !important; }
.login-tech-card .tech-field-input:focus-within { border-color:#1d4ed8 !important; box-shadow:0 0 0 3px rgba(29,78,216,.09) !important; }
.login-tech-card .tech-login-btn { height:58px !important; border-radius:2px !important; background:#13285a !important; box-shadow:none !important; font-weight:620 !important; transition:background .2s ease,transform .2s ease !important; }
.login-tech-card .tech-login-btn:hover { background:#1c376f !important; transform:translateY(-2px) !important; box-shadow:none !important; }
.login-tech-meta .tech-link { color:#1e4fa3 !important; }
.login-scroll-cue { position:absolute; z-index:8; left:clamp(36px,7vw,120px); bottom:28px; display:flex; align-items:center; gap:13px; padding:8px 0; border:0; background:none; color:#667089; font:inherit; font-size:13px; cursor:pointer; opacity:calc(1 - var(--login-scroll)*2); }
.login-scroll-cue i { display:block; width:18px; height:30px; border:1px solid rgba(16,26,51,.4); border-radius:12px; position:relative; }
.login-scroll-cue i::after { content:""; position:absolute; left:50%; top:6px; width:3px; height:3px; margin-left:-1.5px; border-radius:50%; background:#13285a; animation:loginScrollDot 1.8s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes loginScrollDot { 0%{transform:translateY(0);opacity:0} 25%{opacity:1} 70%{opacity:1} 100%{transform:translateY(13px);opacity:0} }
.login-story { position:relative; z-index:6; display:grid; grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr); gap:clamp(56px,9vw,150px); min-height:90vh; padding:13vh clamp(36px,7vw,120px) 15vh; border-top:1px solid rgba(16,26,51,.12); background:#ebe7df; color:#20201d; }
.login-story-intro { max-width:560px; }
.login-story-number { display:block; margin-bottom:46px; color:#736f67; font-size:13px; }
.login-story h2 { margin:0; font-size:clamp(40px,3.6vw,56px); line-height:1.08; letter-spacing:-.045em; font-weight:560; }
.login-story-intro p { max-width:520px; margin:34px 0 0; font-size:17px; line-height:1.75; color:#5c5953; }
.login-story-list { border-top:1px solid rgba(32,32,29,.35); }
.login-story-item { display:grid; grid-template-columns:48px 180px 1fr; gap:20px; align-items:start; padding:34px 0; border-bottom:1px solid rgba(32,32,29,.25); }
.login-story-item>span { color:#77736c; font-size:13px; }
.login-story-item h3 { margin:0; font-size:23px; font-weight:580; letter-spacing:-.03em; }
.login-story-item p { margin:0; font-size:15px; line-height:1.65; color:#646159; }
.login-reveal { opacity:0; transform:translateY(34px); transition:opacity .8s cubic-bezier(.22,1,.36,1),transform .8s cubic-bezier(.22,1,.36,1); }
.login-reveal.is-visible { opacity:1; transform:none; }
.login-story-item:nth-child(2) { transition-delay:.1s; }
.login-story-item:nth-child(3) { transition-delay:.2s; }
@media (max-width:980px) {
  .login-view--tech { min-height:100vh !important; }
  .login-tech-inner { grid-template-columns:1fr !important; align-content:center !important; min-height:auto !important; padding:112px 24px 64px !important; }
  .login-tech-left { display:block !important; height:auto !important; min-height:0; text-align:left !important; }
  .login-reference-visual { display:none; }
  .login-editorial-copy h1 { font-size:clamp(40px,9vw,62px); }
  .login-editorial-copy p { width:100%; }
  .login-editorial-index { margin-top:28px; }
  .login-tech-card { margin:0 !important; width:100% !important; }
  .login-scroll-cue { display:none; }
  .login-story { grid-template-columns:1fr; min-height:auto; padding:88px 24px; }
}
@media (max-width:620px) {
  .login-editorial-nav { padding:0 20px; }
  .login-editorial-nav-note { display:none; }
  .login-tech-inner { padding-inline:20px !important; }
  .login-editorial-copy h1 { font-size:40px; }
  .login-tech-card-inner { padding:38px 24px 30px !important; }
  .login-story-item { grid-template-columns:36px 1fr; }
  .login-story-item p { grid-column:2; }
}
@media (prefers-reduced-motion:reduce) {
  .login-scroll-cue i::after { animation:none !important; }
  .login-reveal { opacity:1; transform:none; transition:none; }
  .login-tech-card,.login-editorial-copy,.login-reference-visual { transform:none !important; transition:none !important; }
}

/* ===== 登录页 v32：按参考图静态还原（不启用动效） ===== */
body.login-mode { overflow:hidden !important; background:#f4f7fc !important; }
.login-view--tech { min-height:100vh !important; height:100vh !important; overflow:hidden !important; background:#f5f8fd !important; }
.login-stars,.login-glow,.login-editorial-nav,.login-scroll-cue,.login-story { display:none !important; }
.login-tech-left > .login-editorial-copy { display:none !important; }
.login-tech-inner {
  display:grid !important;
  grid-template-columns:minmax(0,62%) minmax(380px,38%) !important;
  align-items:center !important;
  width:100% !important;
  min-height:100vh !important;
  height:100vh !important;
  padding:0 8vw 0 0 !important;
  gap:3vw !important;
}
.login-tech-left { display:block !important; position:relative !important; width:100% !important; max-width:none !important; height:100vh !important; min-height:0 !important; overflow:hidden !important; }
.login-tech-left > .login-reference-visual {
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:1 !important;
  overflow:hidden !important;
  transform:none !important;
  transition:none !important;
}
.login-reference-visual::after { display:none !important; }
.login-reference-visual img {
  position:absolute !important;
  inset:0 auto auto 0 !important;
  display:block !important;
  width:100vw !important;
  max-width:none !important;
  height:100vh !important;
  object-fit:fill !important;
  filter:none !important;
  transform:none !important;
}
.login-tech-card {
  position:relative !important;
  z-index:6 !important;
  width:min(clamp(390px,25vw,430px),100%) !important;
  margin:0 0 0 auto !important;
  border:1px solid rgba(132,157,198,.34) !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.9) !important;
  box-shadow:0 24px 70px rgba(65,91,142,.14) !important;
  backdrop-filter:blur(18px) !important;
  transform:none !important;
  transition:none !important;
}
.login-tech-card:hover { transform:none !important; box-shadow:0 24px 70px rgba(65,91,142,.14) !important; }
.login-tech-card-inner { min-height:0 !important; padding:58px 54px 48px !important; }
.login-tech-head h2 { margin:0 0 42px !important; color:#102d68 !important; font-size:28px !important; font-weight:600 !important; letter-spacing:.04em !important; }
.login-tech-card .tech-field-input { height:58px !important; border:1px solid #ced9ea !important; border-radius:9px !important; background:#fff !important; }
.login-tech-card .tech-login-btn { height:58px !important; border-radius:9px !important; background:linear-gradient(110deg,#6846ee,#176cf1) !important; box-shadow:0 12px 26px rgba(54,93,228,.22) !important; transform:none !important; transition:none !important; }
.login-tech-card .tech-login-btn:hover { transform:none !important; box-shadow:0 12px 26px rgba(54,93,228,.22) !important; }
@media (max-width:980px) {
  body.login-mode { overflow:auto !important; }
  .login-view--tech { height:auto !important; min-height:100vh !important; }
  .login-tech-inner { grid-template-columns:1fr !important; min-height:100vh !important; height:auto !important; padding:44px 24px !important; }
  .login-tech-left { display:none !important; }
  .login-tech-card { width:min(430px,100%) !important; margin:auto !important; }
}

/* ===== 2026-08-15 内页柔和圆角扁平视觉统一：保持主题色、功能与布局 ===== */
:root {
  --radius-btn:14px; --radius-input:15px; --radius-card:22px; --radius-modal:22px;
  --soft-blue:#edf4ff; --soft-cyan:#eaf8fb; --soft-purple:#f1efff;
  --soft-green:#eaf8f3; --soft-rose:#fff0f2;
  --soft-shadow:0 12px 32px rgba(69,94,139,.07),0 2px 7px rgba(78,107,156,.035);
}
body:not(.login-mode) {
  background:radial-gradient(circle at 78% 12%,rgba(97,208,221,.11),transparent 25%),radial-gradient(circle at 28% 78%,rgba(138,132,232,.09),transparent 28%),linear-gradient(145deg,#f4f8ff 0%,#f1f6ff 52%,#f6f4ff 100%);
}
body:not(.login-mode)::before {
  opacity:.48; background-image:radial-gradient(circle,rgba(96,152,242,.15) 1px,transparent 1.5px),linear-gradient(90deg,rgba(96,152,242,.035) 1px,transparent 1px);
  background-size:26px 26px,72px 72px; mask-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent 88%);
}
.main,.content { background:transparent; }
.page-head { min-height:46px; margin-bottom:14px; padding:4px 2px; }
.page-head .page-sub { display:none !important; }
.page-title { font-size:22px; letter-spacing:-.025em; }
.sidebar { background:linear-gradient(180deg,rgba(247,250,255,.94),rgba(241,247,255,.91)); border-right-color:rgba(96,152,242,.12); box-shadow:8px 0 34px rgba(78,108,158,.045); }
.sidebar-brand { background:rgba(238,245,255,.62); border-bottom-color:rgba(96,152,242,.1); }
.topbar { background:rgba(248,251,255,.88); border-bottom-color:rgba(96,152,242,.1); box-shadow:0 6px 22px rgba(67,94,143,.04); }
.nav-item,.nav-sub-item { border-radius:16px; }
.nav-item:hover,.nav-sub-item:hover { background:rgba(232,241,255,.8); }
.nav-item.active,.nav-sub-item.active { background:linear-gradient(135deg,#e8f1ff,#efefff); box-shadow:inset 0 0 0 1px rgba(96,152,242,.14); }
#view .card { border:1px solid rgba(112,151,207,.12); border-radius:22px; background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(242,247,255,.78)); box-shadow:var(--soft-shadow); backdrop-filter:none; }
#view .card.hoverable:hover { border-color:rgba(96,152,242,.18); box-shadow:0 16px 38px rgba(69,94,139,.1); transform:translateY(-1px); }
.card-head { margin-bottom:14px; }
.card-title { letter-spacing:-.015em; }
#view .btn,#view .icon-btn,.outline-collapse-btn { border-radius:14px; border-color:rgba(96,152,242,.14); }
#view .btn-primary { border:0; box-shadow:0 8px 18px rgba(96,122,225,.15); }
#view .btn-outline { background:rgba(247,250,255,.8); }
#view .input,#view .select,#view textarea.input { border-color:transparent; border-radius:15px; background:rgba(237,244,255,.78); box-shadow:inset 0 0 0 1px rgba(96,152,242,.1); }
#view .input:focus,#view .select:focus,#view textarea.input:focus { background:rgba(248,251,255,.96); box-shadow:inset 0 0 0 1px rgba(96,152,242,.48),0 0 0 4px rgba(96,152,242,.08); }
.tag,.chip,.agent-badge,.indexed-status { border-radius:999px; border-color:transparent; }
.table-wrap { border-radius:17px; background:rgba(246,249,255,.6); }
.table th { background:rgba(230,239,253,.72); border-color:transparent; }
.table td { border-color:rgba(125,157,203,.09); }
.table tbody tr:hover { background:rgba(235,243,255,.58); }
.tabs { border-bottom-color:rgba(96,152,242,.1); }
.tab { border-radius:13px 13px 0 0; }
.modal,.drawer { border-radius:24px; border-color:rgba(96,152,242,.12); background:#f7faff; box-shadow:0 28px 80px rgba(48,70,110,.16); }
.modal-head,.modal-foot,.drawer-head,.drawer-foot { border-color:rgba(96,152,242,.1); }
.home-hero-head { border-radius:24px; background:radial-gradient(circle at 86% 38%,rgba(97,208,221,.17),transparent 22%),linear-gradient(135deg,rgba(234,243,255,.88),rgba(240,238,255,.78)); box-shadow:var(--soft-shadow); }
.home-hero-head .page-head { padding:18px 22px; }
.home-overview { border:0; border-radius:26px; background:linear-gradient(145deg,rgba(232,242,255,.72),rgba(241,239,255,.6)); box-shadow:var(--soft-shadow); }
.home-core-kpis .kpi { position:relative; min-height:118px; border:0 !important; border-radius:22px; box-shadow:0 10px 26px rgba(72,98,144,.065); overflow:hidden; }
.home-core-kpis .kpi:nth-child(1) { background:linear-gradient(145deg,#e7f0ff,#dce9ff); }
.home-core-kpis .kpi:nth-child(2) { background:linear-gradient(145deg,#e5f7fb,#dff2f8); }
.home-core-kpis .kpi:nth-child(3) { background:linear-gradient(145deg,#f0edff,#e8e5ff); }
.home-core-kpis .kpi:nth-child(4) { background:linear-gradient(145deg,#e7f7f1,#dcf1e9); }
.home-core-kpis .kpi::after { content:""; position:absolute; width:86px; height:86px; right:-24px; top:-28px; border-radius:50%; background:rgba(255,255,255,.34); pointer-events:none; }
.home-core-kpis .kpi-ico { border-radius:14px; background:rgba(255,255,255,.58); }
.home-finance-metric { border:0; border-radius:19px; background:var(--soft-blue); box-shadow:0 8px 22px rgba(70,96,141,.05); }
.home-finance-metric:nth-child(2) { background:var(--soft-cyan); }
.home-finance-metric:nth-child(3) { background:var(--soft-rose); }
.home-finance-metric:nth-child(4) { background:var(--soft-purple); }
.home-finance-metric .home-metric-icon { border-radius:13px; background:rgba(255,255,255,.55); }
.home-tech-flow,.home-news-item,.home-kb-totals>div,.agent-card,.drop-item,.app-project-card,.outline-tree-row.active,.reference-modal-row { border-color:transparent; box-shadow:inset 0 0 0 1px rgba(96,152,242,.08); }
.home-news-item,.home-kb-totals>div,.agent-card,.drop-item { border-radius:16px; background:rgba(237,244,255,.62); }
.home-news-visual,.agent-ico { border-radius:14px; }
.app-project-card,.kpi,.finance-summary-card,.finance-filter-bar,.finance-table-card,.qa-chat,.qa-sessions,.kb-lib,.outline-library-shell {
  border-radius:20px;
}
.app-project-card {
  border-color:transparent;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(239,245,255,.72));
  box-shadow:var(--soft-shadow),inset 0 0 0 1px rgba(96,152,242,.08);
}
@media (min-width:981px) { .login-tech-left>.login-reference-visual img { transform:scaleX(.86) !important; transform-origin:left center !important; } }
@media(max-width:760px) { #view .card{border-radius:18px}.home-hero-head,.home-overview{border-radius:20px}.home-core-kpis .kpi{border-radius:18px} }

/* ===== 2026-08-15 v48 白色阅读画布 + 局部色块 + 苹果式线性图标 ===== */
body:not(.login-mode) { background:#fff; }
body:not(.login-mode)::before { display:none; }
.main,.content,#view { background:#fff; }
.sidebar { background:#fbfcff; box-shadow:none; }
.sidebar-brand,.topbar { background:#fff; }

.page-head { justify-content:flex-start; }
.page-heading-main { display:flex; align-items:center; gap:11px; min-width:0; }
.page-title-icon {
  width:36px; height:36px; flex:none; display:grid; place-items:center;
  border-radius:12px; color:var(--primary-dark); background:var(--primary-light);
}
.page-title-icon svg { width:18px; height:18px; stroke-width:1.65; }
.page-head .page-actions { margin-left:auto; }
.page-head .ai-pulse-strip { order:2; margin:0 0 0 8px; opacity:.62; }
.page-head .ai-pulse-strip span { width:2px; background:var(--primary); animation-duration:2.4s; }
.page-head .ai-pulse-strip span:nth-child(n+5) { display:none; }

#view .card,
#view .app-project-card,
#view .finance-summary-card,
#view .finance-filter-bar,
#view .finance-table-card,
#view .outline-library-item,
#view .kb-lib {
  background:#fff;
  border-color:rgba(91,115,158,.13);
  box-shadow:0 8px 24px rgba(49,68,104,.045);
}
#view .card.hoverable:hover,#view .app-project-card:hover { box-shadow:0 12px 28px rgba(49,68,104,.075); }
.home-hero-head,.home-overview { background:#fff; border:1px solid rgba(91,115,158,.1); box-shadow:0 8px 24px rgba(49,68,104,.04); }
.home-hero-head::after { content:""; position:absolute; right:0; top:0; bottom:0; width:28%; background:linear-gradient(135deg,transparent,rgba(138,132,232,.09)); pointer-events:none; }
.home-tech-flow { background:#fff; }

/* 文本、报告、编辑、对话与表格区域全部使用白色底，保证可读性 */
.writer-doc-card,.outline-tree-card,.chapter-ref-summary,.doc-preview,.app-doc-preview,
.score-doc-preview,.score-proof-panel,.proof-scroll,.tune-editor-card,.tune-preview-card,
.qa-chat,.qa-chat-body,.qa-answer,.chat-bubble,.reference-modal-list,.reference-modal-row,
.pdf-page,.pdf-preview-shell,.material-table-shell,.finance-table-scroll,.table-wrap {
  background:#fff !important;
}
#view textarea.input,#view .doc-edit-area,#view .writer-bottom-chat .input { background:#fff; }
.chapter-ref-summary { border-radius:18px; box-shadow:inset 0 0 0 1px rgba(91,115,158,.1); }
.table th { background:#f6f8fc; }
.table tbody,.table td { background:#fff; }
.table tbody tr:hover td { background:#f8faff; }
.home-news-item,.home-kb-totals>div,.agent-card,.drop-item { background:#fff; border:1px solid rgba(91,115,158,.1); box-shadow:none; }

/* 局部色块保留在关键数据和状态，不扩散到整页 */
.home-core-kpis .kpi { box-shadow:none; }
.home-finance-metric { box-shadow:none; border:1px solid rgba(91,115,158,.08); }
.home-kb-totals>div:nth-child(1) { background:var(--soft-blue); }
.home-kb-totals>div:nth-child(2) { background:var(--soft-purple); }
.home-kb-totals>div:nth-child(3) { background:var(--soft-green); }

/* 图标统一为轻量线性图标，始终位于文字或指标左侧 */
#view svg:not(.ai-orbit img):not(.ai-orb-avatar) { stroke-width:1.65; }
.kpi,.home-finance-metric,.agent-card,.kb-lib-head,.qa-chat-title,.card-title .agent-title-mark { align-items:center; }
.kpi-ico,.home-metric-icon,.agent-ico,.home-news-visual {
  flex:none; order:-1; border-radius:12px; box-shadow:none;
}
.nav-item>svg,.nav-sub-item>svg,.btn>svg,.icon-btn>svg { flex:none; }

/* 线条动效收敛为低对比、低频率的状态提示 */
.home-particles { display:none; }
.home-flow-beam { height:1px; opacity:.52; }
.home-flow-beam::after { width:18%; animation-duration:5.2s; background:linear-gradient(90deg,transparent,rgba(96,152,242,.8),transparent); }
.home-tech-flow .pstep-ico { box-shadow:0 0 0 4px rgba(96,152,242,.055); }
.home-hero-decor i { width:3px; opacity:.7; animation:none; }
@media(prefers-reduced-motion:reduce) { .ai-pulse-strip span,.home-flow-beam::after { animation:none !important; } }

/* ===== 2026-08-15 v49 白色主画布 + 蓝紫主色收口 ===== */
:root {
  --ui-blue:#6098f2;
  --ui-blue-deep:#2f67c8;
  --ui-purple:#8379e8;
  --ui-purple-deep:#6658d8;
  --ui-blue-soft:#edf4ff;
  --ui-purple-soft:#f1efff;
}
body:not(.login-mode),.main,.content,#view { background:#fff !important; }

/* 非业务状态的装饰性色彩仅使用蓝紫体系 */
.page-title-icon,
.kpi-ico,
.home-metric-icon,
.agent-ico,
.home-news-visual {
  color:var(--ui-blue-deep);
  background:var(--ui-blue-soft);
}
.home-core-kpis .kpi:nth-child(1),
.home-core-kpis .kpi:nth-child(2) { background:linear-gradient(145deg,#edf4ff,#e2edff); }
.home-core-kpis .kpi:nth-child(3),
.home-core-kpis .kpi:nth-child(4) { background:linear-gradient(145deg,#f4f1ff,#eae6ff); }
.home-finance-metric:nth-child(1),
.home-finance-metric:nth-child(2) { background:var(--ui-blue-soft); }
.home-finance-metric:nth-child(3),
.home-finance-metric:nth-child(4) { background:var(--ui-purple-soft); }
.home-kb-totals>div:nth-child(1),
.home-kb-totals>div:nth-child(3) { background:var(--ui-blue-soft); }
.home-kb-totals>div:nth-child(2) { background:var(--ui-purple-soft); }

/* 重点操作和选中态允许使用更深的蓝紫，但不扩散到阅读底色 */
#view .btn-primary,
.nav-item.active::before,
.tab.active::after {
  background:linear-gradient(110deg,var(--ui-blue),var(--ui-purple));
}
.nav-item.active,.nav-sub-item.active,.outline-tree-row.active {
  background:linear-gradient(135deg,var(--ui-blue-soft),var(--ui-purple-soft));
}
.page-head .ai-pulse-strip span,
.home-flow-beam::after {
  background:linear-gradient(90deg,transparent,var(--ui-blue),var(--ui-purple),transparent);
}

/* 正文、报告、资料和输入阅读区维持纯白 */
.chapter-ref-summary,.writer-doc-card,.doc-preview,.app-doc-preview,.pdf-page,
.score-doc-preview,.tune-editor-card,.qa-chat-body,.qa-answer,.chat-bubble,
.reference-modal-row,.material-table-shell,.finance-table-scroll,
#view textarea.input,#view .doc-edit-area {
  background:#fff !important;
}

/* ===== 2026-08-15 v50 商务蓝紫：强化深浅对比、减少渐变 ===== */
:root {
  --business-navy:#17366f;
  --business-blue:#315fba;
  --business-purple:#5548a9;
  --business-ink:#17233b;
  --business-slate:#e9eef7;
}

/* 左侧导航使用克制的深色选中块，避免轻飘的小清新质感 */
.sidebar { background:#f7f9fd; border-right:1px solid #e1e7f0; }
.nav-item,.nav-sub-item { color:#53627a; }
.nav-item:hover,.nav-sub-item:hover { background:#e8edf6; color:var(--business-navy); }
.nav-item.active {
  color:#fff;
  background:var(--business-navy);
  box-shadow:0 8px 20px rgba(23,54,111,.18);
}
.nav-item.active svg { color:#fff; }
.nav-sub-item.active {
  color:var(--business-navy);
  background:#dfe7f5;
  box-shadow:inset 3px 0 0 var(--business-blue);
}
.nav-item.active::before { display:none; }

/* 数据色块以纯色和细微高光为主，不再使用大面积糖果色渐变 */
.home-core-kpis .kpi {
  border:0 !important;
  box-shadow:0 10px 24px rgba(28,45,83,.11);
}
.home-core-kpis .kpi:nth-child(1) { background:var(--business-navy); color:#fff; }
.home-core-kpis .kpi:nth-child(2) { background:#315f9e; color:#fff; }
.home-core-kpis .kpi:nth-child(3) { background:var(--business-purple); color:#fff; }
.home-core-kpis .kpi:nth-child(4) { background:#283e78; color:#fff; }
.home-core-kpis .kpi:nth-child(-n+4) .kpi-label,
.home-core-kpis .kpi:nth-child(-n+4) .kpi-sub,
.home-core-kpis .kpi:nth-child(-n+4) .kpi-value,
.home-core-kpis .kpi:nth-child(-n+4) .trend,
.home-core-kpis .kpi:nth-child(-n+4) .kpi-delta { color:#fff; }
.home-core-kpis .kpi:nth-child(-n+4) .kpi-sub { opacity:.68; }
.home-core-kpis .kpi:nth-child(-n+4) .kpi-ico {
  color:#fff;
  background:rgba(255,255,255,.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
}
.home-core-kpis .kpi::after {
  width:118px; height:1px; right:20px; top:25px; border-radius:0;
  background:rgba(255,255,255,.22);
}

/* 次级指标保持白底，以深蓝紫条带建立层级 */
.home-finance-metric { background:#fff !important; border:1px solid #e0e6f0; }
.home-finance-metric:nth-child(odd) { box-shadow:inset 4px 0 0 var(--business-blue); }
.home-finance-metric:nth-child(even) { box-shadow:inset 4px 0 0 var(--business-purple); }

/* 毛玻璃仅用于少量头部与浮层，阅读内容不透明 */
.home-hero-head,.page-head.glass,
.app-alert-float,.finance-alert-popover,.modal-head,.drawer-head {
  background:rgba(255,255,255,.82) !important;
  border:1px solid rgba(101,118,151,.18) !important;
  backdrop-filter:blur(16px) saturate(115%);
  -webkit-backdrop-filter:blur(16px) saturate(115%);
  box-shadow:0 12px 32px rgba(29,45,78,.09);
}
.home-hero-head::after { background:rgba(85,72,169,.08); width:18%; }

/* 按钮与关键标签使用更稳重的纯色 */
#view .btn-primary { background:var(--business-blue); box-shadow:0 7px 16px rgba(49,95,186,.2); }
#view .btn-primary:hover { background:#264f9c; }
.qa-chat-title .agent-ico,.page-title-icon { color:var(--business-blue); background:#e8eef9; }
.tab.active { color:var(--business-navy); }
.tab.active::after { background:var(--business-purple); }

/* 动效线条收敛为单一冷色高光，提升商务感 */
.page-head .ai-pulse-strip span { background:var(--business-blue); }
.home-flow-beam::after {
  background:linear-gradient(90deg,transparent,rgba(49,95,186,.85),transparent);
  opacity:.65;
}

/* ===== 2026-08-15 v51 品牌三色阶 + 标题对齐修正 ===== */
:root {
  --brand-blue:#4d79c6;
  --brand-blue-2:#628bd0;
  --brand-purple:#7567c8;
  --brand-blue-soft:#e9f0fb;
  --brand-purple-soft:#efedfb;
}

/* 仅使用品牌蓝、辅助蓝、品牌紫三组色阶 */
.home-core-kpis .kpi:nth-child(1) { background:var(--brand-blue); }
.home-core-kpis .kpi:nth-child(2) { background:var(--brand-blue-2); }
.home-core-kpis .kpi:nth-child(3) { background:var(--brand-purple); }
.home-core-kpis .kpi:nth-child(4) { background:#5c73b2; }
.home-core-kpis .kpi { box-shadow:0 9px 22px rgba(45,70,118,.12); }
.nav-item.active {
  background:#426ba9;
  box-shadow:0 7px 16px rgba(49,82,135,.16);
}
.nav-sub-item.active { background:var(--brand-blue-soft); }
#view .btn-primary { background:var(--brand-blue); }
#view .btn-primary:hover { background:#416caf; }
.qa-chat-title .agent-ico { background:var(--brand-purple); color:#fff; }
.chip-blue,.qa-suggest,.qa-current { color:#3f68ad; background:var(--brand-blue-soft); }

/* 工作台标题区固定为同一基线，消除状态块与标题错位 */
.home-hero-head {
  min-height:86px;
  display:flex;
  align-items:center;
  padding:0 22px;
}
.home-hero-head .page-head {
  width:100%; min-height:0; margin:0; padding:0;
  display:flex; align-items:center; flex-wrap:nowrap;
}
.home-hero-head .page-heading-main { align-items:center; }
.home-hero-head .page-title-icon { margin:0; }
.home-hero-head .ai-pulse-strip { margin-left:10px; }
.home-hero-head .home-hero-decor { right:22px; top:50%; }
.home-hero-head::after { z-index:0; }
.home-hero-head .page-head,.home-hero-head .home-hero-decor { position:relative; z-index:1; }
.home-hero-head .home-hero-decor { position:absolute; }

/* 智库标题固定在内容区左上角，不随主体卡片居中 */
.view:has(.qa-layout) > .page-head {
  width:100%; max-width:none;
  margin:0 0 14px 0;
  align-self:stretch;
  justify-content:flex-start;
}

/* ===== 2026-08-15 v53 参考稿：项目业财台账与全系统商务密度 ===== */
:root {
  --ui-line:#e2e8f2;
  --ui-line-strong:#d4deec;
  --ui-head:#f4f7fb;
  --ui-blue:#3474d4;
  --ui-blue-soft:#edf4ff;
  --ui-purple:#7465cf;
  --ui-ink:#17243d;
  --ui-muted:#73829a;
  --ui-shadow:0 8px 24px rgba(38,58,94,.055);
}

/* 全系统复用的商务卡片规范 */
#view .card,
#view .app-project-card,
#view .kb-lib,
#view .outline-library-item {
  border:1px solid var(--ui-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--ui-shadow);
}
#view .btn { min-height:38px; border-radius:10px; font-weight:600; }
#view .btn-primary { background:var(--ui-blue); box-shadow:0 6px 14px rgba(52,116,212,.18); }
#view .btn-primary:hover { background:#2e68bf; }
#view .btn-outline { border-color:var(--ui-line-strong); background:#fff; color:#34435c; }
#view .input,#view .select { border:1px solid var(--ui-line-strong); border-radius:10px; background:#fff; box-shadow:none; }
#view .input:focus,#view .select:focus { border-color:#8ab0e7; box-shadow:0 0 0 3px rgba(52,116,212,.08); }

/* 项目业财台账标题及操作区 */
.finance-ledger-page { position:relative; }
.finance-ledger-page > .page-head { min-height:48px; margin-bottom:14px; padding:0 2px; align-items:center; }
.finance-ledger-page > .page-head .page-title-icon { width:38px; height:38px; border:1px solid #dce8f8; border-radius:50%; background:#f7faff; }
.finance-ledger-page > .page-head .page-title { color:var(--ui-ink); font-size:23px; }
.finance-ledger-page > .page-head .ai-pulse-strip { margin-left:auto; }
.finance-ledger-page > .page-head .page-actions { margin-left:auto; }
.finance-ledger-page > .page-head .btn { min-height:40px; padding:0 17px; }

/* 参考稿为四张核心指标卡；风险数保留在告警浮层和筛选能力中 */
.finance-ledger-page .finance-summary-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px; margin-bottom:16px;
}
.finance-ledger-page .finance-summary-card:nth-child(5) { display:none; }
.finance-ledger-page .finance-summary-card {
  min-height:112px; padding:16px;
  display:grid; grid-template-columns:52px minmax(0,1fr); align-items:center; gap:12px;
  border:1px solid var(--ui-line); border-radius:15px; background:#fff;
  box-shadow:0 5px 18px rgba(43,65,101,.045);
}
.finance-ledger-page .finance-summary-card:hover { border-color:#b9cce7; background:#fff; box-shadow:0 9px 24px rgba(43,65,101,.08); }
.finance-summary-icon {
  width:50px; height:50px; display:grid; place-items:center; flex:none;
  border-radius:14px; color:var(--ui-blue); background:var(--ui-blue-soft);
  box-shadow:0 5px 14px rgba(52,116,212,.09),inset 0 0 0 1px rgba(52,116,212,.08);
}
.finance-summary-icon svg { width:24px; height:24px; stroke-width:1.7; }
.finance-summary-card.purple .finance-summary-icon { color:var(--ui-purple); background:#f0efff; }
.finance-summary-card.red .finance-summary-icon { color:#e65353; background:#fff0f0; }
.finance-summary-card.orange .finance-summary-icon { color:#c98023; background:#fff6e9; }
.finance-summary-copy { min-width:0; display:block; }
.finance-ledger-page .finance-summary-card b { margin:4px 0 2px; color:var(--ui-ink); font-size:22px; }
.finance-ledger-page .finance-summary-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 筛选和明细形成一个连续的业务工作区 */
.finance-ledger-page .finance-filter-bar {
  margin-bottom:0; padding:15px 16px;
  border:1px solid var(--ui-line); border-bottom:0; border-radius:16px 16px 0 0;
  background:#fff; box-shadow:none;
}
.finance-ledger-page .finance-filter-bar .field { gap:9px; }
.finance-ledger-page .finance-filter-bar .field>span { color:#34435c; font-weight:600; }
.finance-ledger-page .finance-filter-bar .input,.finance-ledger-page .finance-filter-bar .select { height:40px; }
.finance-ledger-page .finance-filter-actions { margin-left:auto; }
.finance-ledger-page .finance-table-card {
  padding-top:0; border:1px solid var(--ui-line); border-radius:0 0 16px 16px;
  box-shadow:var(--ui-shadow); overflow:hidden;
}
.finance-ledger-page .finance-table-card .card-head { min-height:76px; margin:0; padding:17px 18px; border-bottom:1px solid var(--ui-line); }
.finance-ledger-page .finance-table-card .card-title { color:var(--ui-ink); font-size:17px; }
.finance-ledger-page .finance-table-card .card-sub { margin-top:4px; }
.finance-ledger-page .finance-table-card>.table-wrap { padding:0 12px 10px; background:#fff !important; }
.finance-ledger-page .finance-table { min-width:1420px; }
.finance-ledger-page .table th { height:44px; padding:10px 13px; background:var(--ui-head); color:#34588f; font-size:12px; }
.finance-ledger-page .table td { min-height:74px; padding:15px 13px; background:#fff; border-bottom:1px solid #e9eef5; vertical-align:middle; }
.finance-ledger-page .table tbody tr:nth-child(even) td { background:#fff; }
.finance-ledger-page .table tbody tr:hover td { background:#f8faff; }
.finance-ledger-page .finance-project-cell b { color:var(--ui-ink); font-size:13px; }
.finance-ledger-page .finance-project-cell span { color:#71839f; }
.finance-ledger-page .table-wrap::-webkit-scrollbar { height:10px; }
.finance-ledger-page .table-wrap::-webkit-scrollbar-track { background:#eef2f7; border-radius:999px; }
.finance-ledger-page .table-wrap::-webkit-scrollbar-thumb { border:2px solid #eef2f7; background:#9faec4; border-radius:999px; }

/* 右上角告警浮层贴近参考稿 */
.finance-ledger-page .finance-alert-float {
  top:72px; right:0; width:350px;
  border:1px solid #f2dcc5; border-radius:14px;
  background:rgba(255,255,255,.96) !important;
  box-shadow:0 12px 30px rgba(52,64,89,.10);
  backdrop-filter:blur(14px);
}
.finance-ledger-page .finance-alert-icon { width:34px; height:34px; border-radius:10px; }

/* 导航与顶栏沿用参考稿的克制蓝白比例 */
.sidebar { background:#f8faff; border-right:1px solid var(--ui-line); }
.sidebar-brand,.topbar { background:#fff; }
.nav-item.active { background:#3f72bd; box-shadow:0 7px 18px rgba(47,91,156,.16); }
.nav-sub-item.active { color:#3266ae; background:#e9f0fa; box-shadow:none; }
.topbar { box-shadow:0 4px 15px rgba(37,56,89,.04); }

@media(max-width:1180px) {
  .finance-ledger-page .finance-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .finance-ledger-page .finance-alert-float { width:320px; }
}
@media(max-width:760px) {
  .finance-ledger-page .finance-summary-grid { grid-template-columns:1fr; }
  .finance-ledger-page .finance-filter-bar { flex-wrap:wrap; }
  .finance-ledger-page .finance-filter-bar .field { width:100%; }
  .finance-ledger-page .finance-filter-bar .select { width:100%; }
}

/* ===== 2026-08-15 v54：工作台、全局导航与身份视觉统一 ===== */
:root { --sidebar-w:228px; --topbar-h:64px; }
body:not(.login-mode) { background:#f7f9fc; }
body:not(.login-mode)::before { display:none; }
.sidebar { background:#fff; }
.sidebar-brand { min-height:92px; padding:18px 16px; gap:12px; border-bottom:1px solid #edf1f6; }
.brand-mark { width:48px; height:48px; padding:5px; border:1px solid #d8e4f4; border-radius:50%; background:#fff; box-shadow:0 4px 14px rgba(38,73,126,.10); overflow:hidden; }
.brand-mark img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.brand-name { color:#142b55; font-size:15px; line-height:1.35; white-space:nowrap; }
.brand-sub { margin-top:3px; color:#65758f; font-size:11px; white-space:nowrap; }
.side-nav { padding:16px 10px; }
.nav-group { margin-bottom:4px; }
.nav-item { min-height:44px; padding:0 12px; border-radius:9px; color:#334b72; font-size:14px; }
.nav-item svg { width:19px; height:19px; color:#2e5693; }
.nav-item.active { color:#fff; background:linear-gradient(135deg,#1769e8,#4a91f2); box-shadow:0 7px 16px rgba(30,103,220,.18); }
.nav-item.active svg { color:#fff; }
.nav-sub { margin:4px 0 6px; padding-left:6px; }
.nav-sub-item { min-height:36px; padding:0 14px 0 38px; border-radius:7px; color:#4f6280; }
.nav-sub-item.active { color:#2268c7; background:#eef4fc; font-weight:600; }
.side-user { padding:14px 14px 16px; border-top:1px solid #edf1f6; background:#fff; }
.avatar { padding:0; overflow:hidden; color:transparent; background:#e8eef7; border:2px solid #fff; box-shadow:0 0 0 1px #cfdaea; }
.avatar img { width:100%; height:100%; display:block; object-fit:cover; }
.topbar { min-height:64px; border-bottom:1px solid #e8edf4; box-shadow:0 3px 12px rgba(31,55,91,.035); }
.crumb { color:#172b4d; font-size:18px; font-weight:700; }
.top-user { padding-left:12px; border-left:1px solid #edf1f6; }
.view { padding:22px 24px 32px; }

.home-command-page { max-width:none; }
.home-hero-head { margin:0 0 18px; border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.home-hero-head::after,.home-hero-decor,.home-particles { display:none; }
.home-hero-head .page-head { min-height:auto; padding:0; }
.home-hero-head .page-title { font-size:22px; color:#142e5d; }
.home-hero-head .page-sub,.home-hero-head .page-title-icon,.home-hero-head .ai-pulse-strip { display:none; }
.home-overview { margin-bottom:16px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.home-section-heading { margin:0 0 12px; align-items:center; }
.home-section-heading h2 { font-size:18px; color:#17366d; }
.home-live { color:#23a77b; }
.home-core-kpis { gap:16px; }
.home-core-kpis .kpi { min-height:132px; padding:20px; border:1px solid #e2e8f1 !important; border-radius:16px; color:#17315f !important; background:#fff !important; box-shadow:0 5px 18px rgba(33,62,105,.045); }
.home-core-kpis .kpi:hover { transform:translateY(-1px); border-color:#c9d8eb !important; box-shadow:0 9px 24px rgba(33,62,105,.075); }
.home-core-kpis .kpi::after { display:none; }
.home-core-kpis .kpi .kpi-label,.home-core-kpis .kpi .kpi-value,.home-core-kpis .kpi .trend,.home-core-kpis .kpi .kpi-delta { color:#17315f !important; }
.home-core-kpis .kpi .kpi-sub { color:#6c7d97 !important; opacity:1 !important; }
.home-core-kpis .kpi-ico { color:#fff; background:linear-gradient(145deg,#58a4f7,#1675eb); border-radius:13px; box-shadow:0 7px 16px rgba(35,120,230,.2); }
.home-core-kpis .kpi:nth-child(3) .kpi-ico { background:linear-gradient(145deg,#9a84f6,#704cdf); }
.home-finance-strip { gap:16px; }
.home-finance-metric { min-height:104px; padding:17px 18px; border:1px solid #e2e8f1 !important; border-radius:15px; background:#fff !important; box-shadow:inset 3px 0 0 #3b86ed !important; }
.home-finance-metric:nth-child(3) { box-shadow:inset 3px 0 0 #ef6b6b !important; }
.home-finance-metric:nth-child(4) { box-shadow:inset 3px 0 0 #8b6be8 !important; }
.home-metric-icon { background:#eef5ff; border-radius:12px; }
.home-tech-flow,#view .home-news-panel,#view .home-kb-panel,#view .home-faq-panel,#view .home-agent-panel { border-radius:16px; box-shadow:0 5px 18px rgba(33,62,105,.04); }
.home-tech-flow { padding:18px 20px 20px; }
.home-content-grid,.home-insight-ops { gap:16px; }

@media(max-width:1100px) {
  .home-core-kpis,.home-finance-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .view { padding:18px; }
}
@media(max-width:760px) {
  :root { --topbar-h:56px; }
  .sidebar-brand { min-height:76px; }
  .home-core-kpis,.home-finance-strip { grid-template-columns:1fr; }
  .top-user>div:last-child { display:none; }
}

/* 批注修正：在常用桌面视口保持参考稿的横向信息密度 */
.home-hero-head { display:none; }
.home-command-page .home-overview { margin-top:8px; }
.home-core-kpis { display:block; }
.home-core-kpis .kpi-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.home-finance-strip { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.home-core-kpis .kpi { min-height:112px; padding:16px 14px; }
.home-core-kpis .kpi-ico { width:44px; height:44px; }
.home-core-kpis .kpi-value { font-size:25px; }
.home-finance-metric { min-height:92px; padding:14px; }
.home-metric-icon { width:42px; height:42px; }
.home-tech-flow { margin-top:16px; }

@media(max-width:760px) {
  .home-core-kpis .kpi-row,.home-finance-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
  .home-core-kpis .kpi-row,.home-finance-strip { grid-template-columns:1fr; }
}

/* 批注 v57：按工作台参考稿重建指标卡内部结构与下方双栏 */
.home-core-kpis .kpi {
  min-width:0;
  min-height:124px;
  padding:14px 12px;
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  column-gap:10px;
  overflow:hidden;
}
.home-core-kpis .kpi-ico {
  display:grid !important;
  place-items:center;
  width:44px !important;
  height:44px !important;
  order:initial;
  opacity:1 !important;
  visibility:visible !important;
  color:#fff !important;
  background:linear-gradient(145deg,#5aa9f8,#1878ed) !important;
  box-shadow:0 7px 16px rgba(39,125,231,.20) !important;
}
.home-core-kpis .kpi:nth-child(3) .kpi-ico {
  background:linear-gradient(145deg,#a28af7,#744fe2) !important;
  box-shadow:0 7px 16px rgba(119,82,222,.20) !important;
}
.home-core-kpis .kpi-ico svg { display:block; width:21px; height:21px; }
.home-core-kpis .kpi-meta { min-width:0; align-self:center; }
.home-core-kpis .kpi-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.home-core-kpis .kpi-value { margin-top:2px; font-size:25px; line-height:1.12; }
.home-core-kpis .kpi-delta { margin-top:7px; gap:5px; font-size:11px; line-height:1.35; white-space:normal; }
.home-core-kpis .kpi-delta svg { width:13px !important; height:13px !important; flex:none; }
.home-content-grid { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) !important; }
.home-news-panel,.home-kb-panel { min-height:320px; }

@media(max-width:760px) {
  .home-content-grid { grid-template-columns:1fr !important; }
}

/* ===== 2026-08-15 v58：业财台账批注修正 ===== */
.finance-ledger-page > .page-head { display:flex; width:100%; }
.finance-ledger-page > .page-head .page-heading-main { flex:0 1 auto; }
.finance-ledger-page > .page-head .ai-pulse-strip { display:none; }
.finance-ledger-page > .page-head .page-actions { margin-left:auto !important; justify-content:flex-end; flex-wrap:nowrap; }

/* 台账横向滚动时固定“操作 / 查看详情”列，始终可见 */
.finance-ledger-page .finance-table th:last-child,
.finance-ledger-page .finance-table td:last-child {
  position:sticky;
  right:0;
  z-index:3;
  width:116px;
  min-width:116px;
  text-align:center;
  background:#fff !important;
  box-shadow:-8px 0 16px rgba(38,58,94,.06);
}
.finance-ledger-page .finance-table th:last-child { z-index:4; background:var(--ui-head) !important; }
.finance-ledger-page .finance-table td:last-child .btn { display:inline-flex; }

/* 告警首次进入默认展开；收起后只保留带数量角标的小图标 */
.finance-ledger-page .finance-alert-float.collapsed {
  top:72px;
  width:46px !important;
  height:46px;
  border-radius:50%;
  overflow:visible;
}
.finance-ledger-page .finance-alert-float.collapsed .app-alert-toggle { display:none; }
.finance-ledger-page .finance-alert-float.collapsed .app-alert-mini {
  position:relative;
  width:44px;
  height:44px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#3474d4;
  background:#fff;
}
.finance-ledger-page .finance-alert-float.collapsed .app-alert-mini svg { width:20px; height:20px; }
.finance-alert-count {
  position:absolute;
  right:-3px;
  top:-4px;
  display:grid !important;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  color:#fff;
  background:#ef4444;
  font-size:10px;
  line-height:1;
}

/* 详情页操作按钮固定在“操作”列正下方并纵向对齐 */
.finance-receivable-table th:last-child,
.finance-receivable-table td:last-child { text-align:center; vertical-align:middle; }
.finance-receivable-table .col-actions { width:146px; }
.finance-receivable-table th:last-child,
.finance-receivable-table td:last-child { width:146px; padding-left:10px; padding-right:10px; }
.finance-receivable-table .finance-row-actions {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:6px;
  width:100%;
}
.finance-receivable-table .finance-row-actions .btn { width:100%; justify-content:center; }

/* ===== 2026-08-15 v59：全局弹框标题与提示层清理 ===== */
.modal .modal-head,
.drawer .drawer-head {
  margin-left:0;
  margin-right:0;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.modal .modal-head { padding:0; }
.drawer .drawer-head { padding:20px 24px 16px; border-bottom:1px solid rgba(96,152,242,.12) !important; }

/* 修复 toast-root 使用 id 后未命中定位样式，避免提示进入页面流并出现在左下角 */
#toast-root {
  position:fixed;
  top:76px;
  right:20px;
  z-index:200;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  width:auto;
  max-width:min(360px,calc(100vw - 40px));
  pointer-events:none;
}
#toast-root .toast { width:max-content; max-width:100%; pointer-events:auto; }

/* ===== 2026-08-15 v60：全系统禁用绿色对勾视觉 ===== */
#toast-root .toast.success {
  color:#fff;
  background:#3474d4;
}
#toast-root .toast.success svg { color:#fff; }

/* 完成节点保留对勾语义，但统一为品牌蓝，不再使用绿色对勾 */
.pstep.done::before,
.home-tech-flow .pstep.done::before { background:#4d8fe8 !important; }
.pstep.done .pstep-ico,
.home-tech-flow .pstep.done .pstep-ico {
  color:#3474d4 !important;
  border-color:#8db7ef !important;
  background:#edf4ff !important;
  box-shadow:0 0 0 5px rgba(52,116,212,.07) !important;
}
.pstep.done .pstep-label { color:#3474d4 !important; }
.outline-complete {
  color:#3474d4 !important;
  background:#edf4ff !important;
}

/* 对话框、空状态和指标中的完成图标统一使用品牌蓝 */
.modal .kpi-ico:has(svg),
.empty > svg,
.finance-empty > svg {
  color:#3474d4 !important;
  background:#edf4ff;
}
