/* ==========================================================================
   TIEDI v1 · components.css
   职责:卡片 / KPI / 按钮 / chip / tag / kanban / ai-fab / ai-panel / 列表
   ========================================================================== */

/* ==========================================================================
   网格工具
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }

@media (max-width: 1280px) {
  .grid-2, .grid-3, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   卡片 card
   ========================================================================== */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.6) 0%, rgba(8, 11, 24, 0.4) 100%);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  color: var(--c-primary);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}
.card::after {
  content: ""; position: absolute; bottom: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, currentColor 0%, transparent 65%);
  opacity: 0.04; pointer-events: none;
}
.card.theme-cyan { color: var(--c-cyan); }
.card.theme-amber { color: var(--c-amber); }
.card.theme-violet { color: var(--c-violet); }
.card.theme-magenta { color: var(--c-magenta); }
.card--glow { box-shadow: 0 0 16px var(--c-primary-soft); }
.card--flat::before { display: none; }
.card--flat::after { display: none; }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px dashed var(--border-1);
}
.card-title { display: flex; flex-direction: column; gap: 1px; }
.card-title-zh { font-family: var(--f-display-cn); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; color: var(--text-0); }
.card-title .en { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px; color: currentColor; text-transform: uppercase; }
.card-link { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; color: currentColor; transition: all 0.2s; }
.card-link:hover { text-shadow: 0 0 6px currentColor; }
.card-actions { display: flex; gap: 4px; align-items: center; }

/* ==========================================================================
   KPI 指标卡
   ========================================================================== */
.kpi-grid { display: grid; gap: 12px; }
.kpi-grid--6 { grid-template-columns: repeat(6, 1fr); }
.kpi-grid--4 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid--2 { grid-template-columns: repeat(2, 1fr); }

.kpi {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--c-primary);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.kpi::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: currentColor;
  opacity: 0.7;
}
.kpi::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, currentColor, transparent 50%);
  opacity: 0.5;
}
.kpi:hover { border-color: currentColor; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.kpi.theme-cyan { color: var(--c-cyan); }
.kpi.theme-amber { color: var(--c-amber); }
.kpi.theme-violet { color: var(--c-violet); }
.kpi.theme-magenta { color: var(--c-magenta); }
.kpi.theme-success { color: var(--status-success); }
.kpi.theme-danger { color: var(--status-danger); }

.kpi-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; margin-bottom: 4px; }
.kpi-value {
  font-family: var(--f-display-en); font-size: 26px; font-weight: 800;
  color: currentColor; line-height: 1.1;
}
.kpi-value--xl { font-size: 32px; }
.kpi-value--sm { font-size: 20px; }
.kpi-value .kpi-unit {
  font-family: var(--f-mono); font-size: 11px; font-weight: 400;
  color: var(--text-2); margin-left: 3px;
}
.kpi-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-family: var(--f-mono); font-size: 11px; }
.kpi-meta .rate.up { color: var(--c-amber); }
.kpi-meta .rate.down { color: var(--status-danger); }
.kpi-meta .rate.flat { color: var(--text-3); }
.kpi-meta .lbl { color: var(--text-3); }
.kpi-meta .ctx { color: var(--text-2); margin-left: auto; }

/* Mini KPI (登录页等紧凑) */
.kpi-mini {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-left: 3px solid currentColor;
  border-radius: var(--r-xs);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.kpi-mini::after {
  content: ""; position: absolute; bottom: -30%; right: -20%;
  width: 100px; height: 100px;
  background: radial-gradient(circle, currentColor 0%, transparent 65%);
  opacity: 0.08; pointer-events: none;
}
.kpi-mini .k { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: 1.5px; }
.kpi-mini .v { font-family: var(--f-display-en); font-size: 22px; font-weight: 800; color: currentColor; line-height: 1.1; }
.kpi-mini .u { font-family: var(--f-mono); font-size: 11px; color: var(--text-2); letter-spacing: 1.5px; }
.kpi-mini.theme-cyan { color: var(--c-cyan); }
.kpi-mini.theme-amber { color: var(--c-amber); }
.kpi-mini.theme-violet { color: var(--c-violet); }
.kpi-mini.theme-magenta { color: var(--c-magenta); }

/* ==========================================================================
   按钮 button
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-family: var(--f-display-cn); font-weight: 500; font-size: 12px;
  letter-spacing: 1.5px;
  border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--bg-0); box-shadow: 0 0 14px var(--c-primary-soft); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 22px var(--c-primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: var(--c-primary); border-color: var(--c-primary); }
.btn-amber { background: var(--c-amber); border-color: var(--c-amber); color: var(--bg-0); box-shadow: 0 0 14px var(--c-amber-soft); }
.btn-amber:hover:not(:disabled) { box-shadow: 0 0 22px var(--c-amber); transform: translateY(-1px); }
.btn-violet { background: var(--c-violet); border-color: var(--c-violet); color: var(--text-0); box-shadow: 0 0 14px var(--c-violet-soft); }
.btn-violet:hover:not(:disabled) { box-shadow: 0 0 22px var(--c-violet); transform: translateY(-1px); }
.btn-magenta { background: var(--c-magenta); border-color: var(--c-magenta); color: var(--text-0); box-shadow: 0 0 14px var(--c-magenta-soft); }
.btn-magenta:hover:not(:disabled) { box-shadow: 0 0 22px var(--c-magenta); transform: translateY(-1px); }
.btn-sm { padding: 5px 12px; font-size: 11px; }
.btn-lg { padding: 12px 22px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; }

/* ==========================================================================
   Chip / Tag
   ========================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--text-2);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { color: var(--c-primary); border-color: var(--c-primary); }
.chip.active { background: var(--c-primary-soft); color: var(--c-primary); border-color: var(--c-primary); }
.chip.theme-amber { color: var(--c-amber); border-color: var(--c-amber); background: var(--c-amber-soft); }
.chip.theme-violet { color: var(--c-violet); border-color: var(--c-violet); background: var(--c-violet-soft); }
.chip.theme-magenta { color: var(--c-magenta); border-color: var(--c-magenta); background: var(--c-magenta-soft); }

.tag {
  padding: 2px 7px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: currentColor;
  background: transparent;
  white-space: nowrap;
}
.tag--solid { color: var(--text-0); background: currentColor; }
.tag-cyan { color: var(--c-cyan); background: var(--c-cyan-soft); }
.tag-amber { color: var(--c-amber); background: var(--c-amber-soft); }
.tag-violet { color: var(--c-violet); background: var(--c-violet-soft); }
.tag-magenta { color: var(--c-magenta); background: var(--c-magenta-soft); }
.tag-success { color: var(--status-success); background: rgba(82, 196, 26, 0.12); }
.tag-warning { color: var(--status-warning); background: var(--c-amber-soft); }
.tag-danger { color: var(--status-danger); background: rgba(255, 51, 102, 0.12); }

/* ==========================================================================
   ECharts 容器
   ========================================================================== */
.echart-box { width: 100%; height: 240px; }
.echart-box--tall { height: 320px; }
.echart-box--short { height: 180px; }

/* ==========================================================================
   Mini List (紧凑列表)
   ========================================================================== */
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-1);
  border-left: 2px solid currentColor;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all 0.2s;
}
.mini-row:hover { background: rgba(255, 255, 255, 0.04); border-color: currentColor; }
.mini-row .name { font-size: 13px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .name strong { color: var(--text-0); font-weight: 600; }
.mini-row .meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3); letter-spacing: 0.5px; }

/* 预警行 */
.alert-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xs);
  cursor: pointer; transition: all 0.2s;
}
.alert-row:hover { background: rgba(255, 255, 255, 0.04); }
.alert-sev {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 2px; min-width: 38px; justify-content: center;
}
.alert-sev.red { color: var(--status-danger); background: rgba(255, 51, 102, 0.12); border: 1px solid var(--status-danger); }
.alert-sev.orange { color: var(--c-amber); background: var(--c-amber-soft); border: 1px solid var(--c-amber); }
.alert-sev.yellow { color: #ffd54f; background: rgba(255, 213, 79, 0.12); border: 1px solid #ffd54f; }
.alert-body { font-size: 12.5px; color: var(--text-1); }
.alert-body strong { color: var(--text-0); }
.alert-time { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.5px; }

/* ==========================================================================
   用户菜单 (avatar 下拉 · 含 ctx-bar 内容)
   ========================================================================== */
.user-menu { position: relative; display: inline-flex; align-items: center; gap: 6px; }
/* 一把手/高管/专员 级别徽章 (avatar 右侧) */
.user-level-badge {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.8px;
  padding: 3px 7px; border-radius: 2px;
  background: var(--c-primary-soft); color: var(--c-primary);
  border: 1px solid var(--c-primary); cursor: help;
  white-space: nowrap; line-height: 1;
  text-transform: uppercase; font-weight: 700;
  transition: all 0.2s var(--ease-out);
}
.user-level-badge:hover { background: var(--c-primary); color: var(--bg-0); box-shadow: 0 0 8px var(--c-primary-soft); }
.user-level-badge[data-level="L0"] { background: var(--c-ai-soft); color: var(--c-ai); border-color: var(--c-ai); }
.user-level-badge[data-level="L0"]:hover { background: var(--c-ai); color: var(--bg-0); box-shadow: 0 0 10px var(--c-ai-soft); }
.user-level-badge[data-level="L0"].is-virtual::before { content: "★ "; color: var(--c-ai); }
.user-level-badge[data-level="L1"] { background: rgba(255, 200, 0, 0.12); color: #ffc800; border-color: #ffc800; }
.user-level-badge[data-level="L1"]:hover { background: #ffc800; color: var(--bg-0); box-shadow: 0 0 10px rgba(255, 200, 0, 0.4); }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px;
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.97) 0%, rgba(8, 11, 24, 0.97) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--c-primary-rgb), 0.1) inset;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; flex-direction: column;
  z-index: 99;
  overflow: hidden;
}
.user-menu.is-open .user-dropdown { display: flex; }
.user-menu.is-open .avatar { box-shadow: 0 0 0 2px var(--c-primary), 0 0 12px rgba(var(--c-primary-rgb), 0.4); }
.ud-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(var(--c-primary-rgb), 0.15), transparent);
  border-bottom: 1px solid var(--border-1);
}
.ud-avatar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
  color: var(--bg-0);
  font-family: var(--f-display-cn); font-weight: 700; font-size: 15px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(var(--c-primary-rgb), 0.5);
}
.theme-ent .ud-avatar { background: linear-gradient(135deg, var(--c-amber), var(--c-magenta)); }
.theme-sci .ud-avatar { background: linear-gradient(135deg, var(--c-violet), var(--c-magenta)); }
.ud-info { flex: 1; min-width: 0; }
.ud-name { font-family: var(--f-display-cn); font-weight: 700; font-size: 14px; color: var(--text-0); letter-spacing: 1px; }
.ud-role { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--c-primary); margin-top: 2px; text-transform: uppercase; }
.ud-dept { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.ud-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.ud-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-1); border-left: 2px solid var(--c-primary); border-radius: 2px; }
.ud-item-k { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 1.2px; color: var(--text-3); text-transform: uppercase; }
.ud-item-v { font-size: 12px; color: var(--text-0); font-weight: 500; }
.ud-item-v .num { font-family: var(--f-display-en); color: var(--c-primary); font-weight: 700; }
.ud-actions { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border-1); background: rgba(0, 0, 0, 0.15); }
.ud-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 0; background: transparent; border: 1px solid var(--border-2); border-radius: var(--r-xs); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px; color: var(--text-2); cursor: pointer; transition: all 0.2s; }
.ud-action:hover { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
.ud-action.danger:hover { color: var(--status-danger); border-color: var(--status-danger); }

/* ==========================================================================
   AI 助手 fab + panel · 科技绿渐变实心按钮
   ========================================================================== */
.ai-fab {
  position: fixed; bottom: 32px; right: 32px;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background:
    /* 主渐变:亮绿 → 中绿 → 深绿 (135° 对角线) */
    linear-gradient(135deg, #00ff9d 0%, #00d680 35%, #00b368 70%, #008f55 100%),
    /* 角向渐变叠加:增加"科技转盘"质感 */
    conic-gradient(from 180deg at 30% 30%, transparent 0deg, rgba(255, 255, 255, 0.2) 60deg, transparent 120deg);
  background-blend-mode: normal;
  color: var(--bg-0);
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    /* 外部投影 */
    0 8px 24px rgba(0, 179, 104, 0.5),
    /* 远场光晕 */
    0 0 56px rgba(0, 230, 140, 0.4),
    /* 内描边 (白色) */
    0 0 0 2px rgba(255, 255, 255, 0.5) inset,
    /* 顶部高光 (3D 立体感) */
    0 3px 0 rgba(255, 255, 255, 0.4) inset,
    0 -2px 4px rgba(0, 100, 60, 0.3) inset;
  z-index: 100; transition: all 0.3s var(--ease-out);
  border: none;
  overflow: visible;
}
/* 顶部高光 (光照效果) */
.ai-fab::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.ai-fab:hover {
  background:
    linear-gradient(135deg, #2effb3 0%, #00ff9d 35%, #00d680 70%, #00b368 100%),
    conic-gradient(from 180deg at 30% 30%, transparent 0deg, rgba(255, 255, 255, 0.3) 60deg, transparent 120deg);
  box-shadow:
    0 12px 36px rgba(0, 200, 120, 0.7),
    0 0 72px rgba(0, 255, 157, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.6) inset,
    0 3px 0 rgba(255, 255, 255, 0.5) inset,
    0 -2px 4px rgba(0, 100, 60, 0.4) inset;
  transform: scale(1.06);
}
/* 4 角 HUD 标 */
.ai-fab-corners { position: absolute; inset: -4px; pointer-events: none; z-index: 3; }
.ai-fab-corners::before,
.ai-fab-corners::after,
.ai-fab-corners > span::before,
.ai-fab-corners > span::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  border-color: rgba(255, 255, 255, 0.95);
  border-style: solid;
  border-width: 0;
  animation: corner-blink 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}
.ai-fab-corners::before { top: -2px; left: -2px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ai-fab-corners::after { top: -2px; right: -2px; border-top-width: 1.5px; border-right-width: 1.5px; animation-delay: 0.6s; }
.ai-fab-corners > span::before { bottom: -2px; left: -2px; border-bottom-width: 1.5px; border-left-width: 1.5px; animation-delay: 1.2s; }
.ai-fab-corners > span::after { bottom: -2px; right: -2px; border-bottom-width: 1.5px; border-right-width: 1.5px; animation-delay: 1.8s; }
@keyframes corner-blink { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.4; } }

/* 外圈光晕扩散 (替代之前的 24 段刻度环) */
.ai-fab::after {
  content: ""; position: absolute; inset: -3px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: ai-ping 2.4s ease-out infinite;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(var(--c-ai-rgb), 0.6);
}
@keyframes ai-ping { 0% { opacity: 0.7; transform: scale(0.94); } 100% { opacity: 0; transform: scale(1.45); } }

/* 扫描线 (从上到下,白色高亮) */
.ai-fab-scan {
  position: absolute; left: 12%; right: 12%; height: 1.5px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 6px #ffffff, 0 0 12px rgba(255, 255, 255, 0.8);
  pointer-events: none; z-index: 4;
  animation: ai-scan 2.6s linear infinite;
}
@keyframes ai-scan {
  0% { top: 18%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 82%; opacity: 0; }
}

/* HUD SVG 文字环 (白色) */
.ai-fab-hud {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  animation: ai-spin-rev 24s linear infinite;
}
.ai-fab-hud text { font-family: var(--f-mono); font-size: 5.5px; fill: rgba(255, 255, 255, 0.9); letter-spacing: 1px; font-weight: 600; }
@keyframes ai-spin-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* 能量弧 (右上小弧,白色) */
.ai-fab-power {
  position: absolute; right: -4px; top: -4px;
  width: 16px; height: 16px;
  pointer-events: none; z-index: 6;
}
.ai-fab-power::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #ffffff 0deg, #ffffff 270deg, transparent 270deg);
  mask: radial-gradient(circle, transparent 45%, black 46%, black 100%);
  -webkit-mask: radial-gradient(circle, transparent 45%, black 46%, black 100%);
  animation: ai-power-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #ffffff);
}
@keyframes ai-power-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.ai-fab:hover .ai-fab-hud { animation-duration: 8s; }
.ai-fab:hover .ai-fab-scan { animation-duration: 1.4s; }

/* 中心 logo (深色,因背景是亮绿) */
.ai-fab svg { color: var(--bg-0); }
.ai-fab canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0.45; }

/* 中心 "AI" 标 (深色,在亮绿底上清晰) */
.ai-fab-label {
  position: relative; z-index: 3;
  font-family: var(--f-display-cn); font-weight: 900; font-size: 16px;
  color: var(--bg-0);
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* ==========================================================================
   AI FAB · 激活态 (panel 打开时)
   设计:主体更亮、阴影更猛、HUD 全亮、外圈持续光环、中心 AI 文字翻白
   ========================================================================== */
.ai-fab.is-active {
  background:
    /* 主渐变:更亮的绿色 */
    linear-gradient(135deg, #5dffce 0%, #1effa8 30%, #00ff9d 60%, #00d680 100%),
    /* 角向叠加更强 */
    conic-gradient(from 180deg at 30% 30%, transparent 0deg, rgba(255, 255, 255, 0.4) 60deg, rgba(255, 255, 255, 0.15) 120deg, transparent 180deg);
  box-shadow:
    /* 外部投影 (更深) */
    0 12px 32px rgba(0, 220, 130, 0.7),
    /* 远场光晕 (更猛) */
    0 0 80px rgba(0, 255, 157, 0.7),
    0 0 140px rgba(0, 255, 157, 0.35),
    /* 内描边 (更亮) */
    0 0 0 2px rgba(255, 255, 255, 0.85) inset,
    /* 顶部高光 */
    0 4px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 4px rgba(0, 100, 60, 0.35) inset,
    /* 持续激活环 (深绿) */
    0 0 0 4px rgba(0, 255, 157, 0.25);
  transform: scale(1.04);
}
/* 激活态:hover 不再二次放大,避免抖动 */
.ai-fab.is-active:hover {
  background:
    linear-gradient(135deg, #5dffce 0%, #1effa8 30%, #00ff9d 60%, #00d680 100%),
    conic-gradient(from 180deg at 30% 30%, transparent 0deg, rgba(255, 255, 255, 0.4) 60deg, rgba(255, 255, 255, 0.15) 120deg, transparent 180deg);
  transform: scale(1.04);
}
/* 激活态:4 角 HUD 全亮(暂停 blink,稳定显示) */
.ai-fab.is-active .ai-fab-corners::before,
.ai-fab.is-active .ai-fab-corners::after,
.ai-fab.is-active .ai-fab-corners > span::before,
.ai-fab.is-active .ai-fab-corners > span::after {
  animation: none;
  opacity: 1;
  border-color: #ffffff;
  filter: drop-shadow(0 0 4px #ffffff);
}
/* 激活态:外圈光晕扩散加速 + 持续可见 */
.ai-fab.is-active::after {
  animation-duration: 1.2s;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 20px rgba(var(--c-ai-rgb), 0.9);
}
/* 激活态:扫描线更亮 + 加速 */
.ai-fab.is-active .ai-fab-scan {
  animation-duration: 1s;
  height: 2px;
  box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.9);
}
/* 激活态:HUD 文字环加速旋转 */
.ai-fab.is-active .ai-fab-hud {
  animation-duration: 6s;
}
.ai-fab.is-active .ai-fab-hud text {
  fill: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}
/* 激活态:能量弧 360° 全亮 */
.ai-fab.is-active .ai-fab-power::before {
  background: conic-gradient(from 0deg, #ffffff 0deg, rgba(255, 255, 255, 0.6) 360deg);
  mask: radial-gradient(circle, transparent 45%, black 46%, black 100%);
  -webkit-mask: radial-gradient(circle, transparent 45%, black 46%, black 100%);
  filter: drop-shadow(0 0 6px #ffffff);
  animation-duration: 2.4s;
}
/* 激活态:canvas 粒子更亮 */
.ai-fab.is-active canvas { opacity: 0.7; }
/* 激活态:中心 AI 文字翻白加重 */
.ai-fab.is-active .ai-fab-label {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.4);
}

.ai-panel {
  position: fixed; bottom: 100px; right: 32px;
  width: 380px; height: 540px;
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.95) 0%, rgba(8, 11, 24, 0.95) 100%);
  border: 1px solid rgba(var(--c-ai-rgb), 0.3);
  border-radius: var(--r-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--c-ai-rgb), 0.15) inset, 0 0 30px rgba(var(--c-ai-rgb), 0.15);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 100; display: none; flex-direction: column; overflow: hidden;
}
.ai-panel.is-open { display: flex; }
.ai-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(var(--c-ai-rgb), 0.2);
  background: linear-gradient(90deg, rgba(var(--c-ai-rgb), 0.15), rgba(var(--c-ai-rgb), 0.02) 60%, transparent);
  position: relative;
}
.ai-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-ai), transparent);
  opacity: 0.5;
}
.ai-header-left { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ai);
  color: var(--text-0);
  border-radius: var(--r-xs);
  border: 1px solid rgba(var(--c-ai-rgb), 0.6);
  box-shadow: 0 0 12px rgba(var(--c-ai-rgb), 0.4);
}
.ai-name { font-family: var(--f-display-cn); font-weight: 700; font-size: 13px; color: var(--text-0); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.ai-status { width: 6px; height: 6px; background: var(--status-success); border-radius: 50%; box-shadow: 0 0 6px var(--status-success); animation: status-blink 2s ease-in-out infinite; }
@keyframes status-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ai-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--c-ai); text-transform: uppercase; }
.ai-close { cursor: pointer; color: var(--text-3); font-size: 22px; padding: 0 6px; line-height: 1; transition: color 0.2s; }
.ai-close:hover { color: var(--status-danger); }
.ai-body { flex: 1; padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { padding: 10px 12px; border-radius: var(--r-xs); font-size: 12px; line-height: 1.55; max-width: 92%; }
.ai-msg.bot { background: rgba(var(--c-ai-rgb), 0.08); border: 1px solid rgba(var(--c-ai-rgb), 0.25); color: var(--text-1); align-self: flex-start; }
.ai-msg.user { background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.25); color: var(--text-0); align-self: flex-end; }
.ai-msg-head { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 1.5px; color: var(--c-ai); text-transform: uppercase; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.ai-msg-time { color: var(--text-4); letter-spacing: 0.5px; text-transform: none; font-size: 9px; }
.ai-msg-title { font-family: var(--f-display-cn); font-size: 12.5px; font-weight: 700; color: var(--text-0); margin-bottom: 6px; letter-spacing: 0.5px; }
.ai-msg-body { color: var(--text-1); }
.ai-msg .highlight { color: var(--c-ai); font-weight: 700; font-family: var(--f-mono); }
.ai-msg .highlight.danger { color: var(--c-danger); }
.ai-msg .highlight.up { color: var(--c-up); }
.ai-msg .highlight.down { color: var(--c-down); }
.ai-msg .highlight.warn { color: var(--c-amber); }
.ai-msg .highlight.info { color: var(--c-cyan); }
.ai-data-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; background: rgba(0, 0, 0, 0.18); border-left: 2px solid var(--c-ai); border-radius: 2px; margin-top: 4px; font-size: 11.5px; }
.ai-data-row.urgent { border-left-color: var(--c-danger); background: rgba(255, 51, 102, 0.1); }
.ai-data-row .k { color: var(--text-2); }
.ai-data-row .v { color: var(--text-0); font-family: var(--f-mono); font-weight: 600; }
.ai-data-row .v.danger { color: var(--c-danger); }

/* ===== AI 登录摘要样式 ===== */
.ai-msg-summary .ai-msg-body { display: flex; flex-direction: column; gap: 8px; }
.ai-msg-greeting { font-size: 11.5px; color: var(--text-2); line-height: 1.55; padding: 6px 0 2px; }
.ai-msg-sections { display: flex; flex-direction: column; gap: 4px; }
.ai-msg-links { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgba(var(--c-ai-rgb), 0.3); }
.ai-link { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(var(--c-ai-rgb), 0.06); border: 1px solid rgba(var(--c-ai-rgb), 0.25); border-radius: var(--r-xs); text-decoration: none; color: var(--text-1); font-size: 12px; transition: all 0.2s; }
.ai-link:hover { background: rgba(var(--c-ai-rgb), 0.16); border-color: var(--c-ai); color: var(--c-ai); transform: translateX(2px); }
.ai-link-icon { font-size: 14px; color: var(--c-ai); width: 16px; text-align: center; }
.ai-link-label { flex: 1; font-family: var(--f-display-cn); font-weight: 500; }
.ai-link-arrow { font-size: 13px; color: var(--c-ai); opacity: 0.6; transition: all 0.2s; }
.ai-link:hover .ai-link-arrow { opacity: 1; transform: translateX(2px); }
.ai-msg-footer { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.5px; margin-top: 4px; text-align: center; opacity: 0.7; }
.ai-data-row .v.up { color: var(--c-up); }
.ai-data-row .v.down { color: var(--c-down); }
.ai-risk-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 4px 8px; background: rgba(0, 0, 0, 0.18); border-left: 2px solid currentColor; border-radius: 2px; margin-top: 4px; font-size: 11px; }
.ai-risk-row.danger { color: var(--c-danger); }
.ai-risk-row.warn { color: var(--c-amber); }
.ai-risk-row.info { color: var(--c-cyan); }
.ai-risk-row .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.ai-risk-row .t { color: var(--text-1); }
.ai-risk-row .lvl { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.5px; color: currentColor; }
.ai-typing { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
.ai-typing span { width: 6px; height: 6px; background: var(--c-ai); border-radius: 50%; animation: ai-bounce 1.2s ease-in-out infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.quick-questions { padding: 0 16px 10px; border-top: 1px solid var(--border-1); padding-top: 10px; }
.quick-q-label { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; margin-bottom: 6px; }
.quick-q-list { display: flex; gap: 5px; flex-wrap: wrap; }
.quick-q {
  padding: 4px 10px;
  background: rgba(var(--c-ai-rgb), 0.08);
  border: 1px solid rgba(var(--c-ai-rgb), 0.3);
  border-radius: var(--r-xs);
  font-size: 11px; color: var(--c-ai);
  cursor: pointer; transition: all 0.2s;
}
.quick-q:hover { background: rgba(var(--c-ai-rgb), 0.18); border-color: var(--c-ai); }
.ai-input {
  display: flex; gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-1);
  background: rgba(0, 0, 0, 0.15);
}
.ai-input input {
  flex: 1; padding: 8px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text-1); outline: none;
}
.ai-input input:focus { border-color: var(--c-ai); box-shadow: 0 0 0 2px rgba(var(--c-ai-rgb), 0.2); }
.ai-send {
  width: 36px;
  background: var(--c-ai); color: var(--bg-0);
  border: 1px solid var(--c-ai);
  border-radius: var(--r-xs);
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.ai-send:hover { background: var(--c-ai); border-color: var(--c-ai); transform: translateX(1px); box-shadow: 0 0 12px rgba(var(--c-ai-rgb), 0.5); }

/* ===== AI 模式切换 (文字 / 语音) ===== */
.ai-mode-toggle {
  display: flex; gap: 2px; padding: 3px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-1);
}
.ai-mode-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
}
.ai-mode-btn svg { width: 12px; height: 12px; }
.ai-mode-btn:hover { color: var(--text-1); }
.ai-mode-btn.is-active {
  background: rgba(var(--c-ai-rgb), 0.15);
  border-color: rgba(var(--c-ai-rgb), 0.4);
  color: var(--c-ai);
  box-shadow: 0 0 8px rgba(var(--c-ai-rgb), 0.2) inset;
}

/* ===== AI 语音模式 ===== */
.ai-voice-mode {
  padding: 16px 14px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-1);
}
.ai-waveform {
  display: flex; align-items: center; justify-content: center;
  gap: 2px;
  width: 100%; height: 48px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xs);
}
.ai-voice-bar {
  width: 3px;
  background: var(--c-ai);
  border-radius: 1px;
  transition: height 0.1s linear, opacity 0.1s linear;
  box-shadow: 0 0 4px rgba(var(--c-ai-rgb), 0.6);
}
.ai-mic {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ai);
  color: var(--bg-0);
  border: 1px solid var(--c-ai);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(var(--c-ai-rgb), 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.2s;
}
.ai-mic:hover { transform: scale(1.06); box-shadow: 0 0 28px rgba(var(--c-ai-rgb), 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
.ai-mic.is-recording {
  background: var(--status-danger);
  border-color: var(--status-danger);
  box-shadow: 0 0 24px rgba(255, 69, 105, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  animation: mic-pulse 1.4s ease-in-out infinite;
}
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 24px rgba(255, 69, 105, 0.6), 0 0 0 0 rgba(255, 69, 105, 0.4); } 50% { box-shadow: 0 0 32px rgba(255, 69, 105, 0.8), 0 0 0 12px rgba(255, 69, 105, 0); } }
.ai-mic svg { width: 20px; height: 20px; }
.ai-transcript {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-2);
  text-align: center;
  letter-spacing: 0.5px;
  min-height: 16px;
}

.ai-footer {
  padding: 6px 16px 8px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 9.5px; color: var(--text-4); letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-1);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; top: 90px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 22px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px;
  color: var(--text-1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease-out);
  z-index: 1000;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   模态 Modal (4 角切角)
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(2, 4, 10, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.4s var(--ease-out); }
.modal.is-open .modal-mask { opacity: 1; }
.modal-dialog {
  position: relative; width: 100%; max-width: 520px;
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.95) 0%, rgba(8, 11, 24, 0.95) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 36px 40px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94) translateY(20px); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.modal.is-open .modal-dialog { transform: scale(1) translateY(0); opacity: 1; }
.modal-corner { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--c-primary); filter: drop-shadow(0 0 6px var(--c-primary)); }
.modal-corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal-corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.modal-corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.modal-corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border-1); }
.modal-title-block { display: flex; flex-direction: column; gap: 6px; }
.modal-kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: 3px; color: var(--c-primary); }
.modal-title { font-family: var(--f-display-cn); font-weight: 700; font-size: 24px; letter-spacing: 3px; color: var(--text-0); }
.modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-2); border: 1px solid var(--border-1); border-radius: var(--r-xs); transition: all 0.3s var(--ease-out); cursor: pointer; font-size: 18px; line-height: 1; }
.modal-close:hover { color: var(--c-magenta); border-color: var(--c-magenta); box-shadow: 0 0 10px var(--c-magenta-soft); }

/* ==========================================================================
   表格 (复用 · 政策列表 / 成果库 / 诉求工单 等)
   ========================================================================== */
.tbl-wrap { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r-sm); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead { background: rgba(255, 255, 255, 0.02); }
.tbl th {
  text-align: left; padding: 12px 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-3); text-transform: uppercase;
  border-bottom: 1px solid var(--border-1);
  font-weight: 500;
}
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border-1); color: var(--text-1); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.02); }
.tbl-num { font-family: var(--f-display-en); font-weight: 700; color: var(--text-0); }
.tbl-actions { display: flex; gap: 6px; }
.tbl-pager { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }
.tbl-pager-btns { display: flex; gap: 4px; }
.tbl-pager-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-1); border-radius: var(--r-xs);
  color: var(--text-2); cursor: pointer; transition: all 0.2s;
}
.tbl-pager-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.tbl-pager-btn.active { background: var(--c-primary-soft); color: var(--c-primary); border-color: var(--c-primary); }

/* ==========================================================================
   表单 field / input / select
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 2.5px; }
.field-label-cn { color: var(--text-1); font-family: var(--f-display-cn); font-size: 12px; letter-spacing: 2px; font-weight: 500; }
.field-label-en { color: var(--text-3); }
.field-label .req { color: var(--status-danger); }

.field-input-wrap {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  transition: all 0.3s var(--ease-out);
}
.field-input-wrap:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft), inset 0 0 12px var(--c-primary-soft);
}
.field-prompt { font-family: var(--f-mono); color: var(--c-primary); font-weight: 600; font-size: 14px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.field-input { flex: 1; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.5px; color: var(--text-0); background: transparent; border: none; outline: none; }
.field-input::placeholder { color: var(--text-3); }
.field-textarea { width: 100%; min-height: 100px; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-2); border-radius: var(--r-xs); color: var(--text-0); font-family: var(--f-body); font-size: 13px; resize: vertical; outline: none; transition: all 0.3s; }
.field-textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }

.field-select { width: 100%; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-2); border-radius: var(--r-xs); color: var(--text-0); font-family: var(--f-body); font-size: 13px; cursor: pointer; outline: none; transition: all 0.3s; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 12px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field-select:focus { border-color: var(--c-primary); }
.field-hint { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3); letter-spacing: 0.5px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-top: 18px; border-top: 1px dashed var(--border-1); }
.checkbox { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--text-2); }
.checkbox input { appearance: none; width: 12px; height: 12px; border: 1px solid var(--border-2); border-radius: 2px; background: var(--bg-0); position: relative; cursor: pointer; }
.checkbox input:checked { background: var(--c-primary); border-color: var(--c-primary); }
.checkbox input:checked::after { content: "✓"; position: absolute; top: -3px; left: 1px; color: var(--bg-0); font-size: 11px; font-weight: 700; }

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-1); padding: 0 2px; }
.tab {
  padding: 10px 18px;
  font-family: var(--f-display-cn); font-weight: 500; font-size: 13px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex; align-items: center; gap: 8px;
}
.tab .count { font-family: var(--f-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 8px; background: var(--border-1); color: var(--text-3); }
.tab:hover { color: var(--text-0); }
.tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab.active .count { background: var(--c-primary-soft); color: var(--c-primary); }

/* ==========================================================================
   Side Panel (详情侧拉)
   ========================================================================== */
.side-panel {
  border-left: 1px solid var(--border-1);
  background: linear-gradient(180deg, rgba(8, 11, 24, 0.6) 0%, rgba(4, 6, 12, 0.4) 100%);
  padding: 20px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.side-panel.is-hidden { display: none; }
.side-panel--left { border-left: none; border-right: 1px solid var(--border-1); }
.side-section { display: flex; flex-direction: column; gap: 10px; }
.side-title {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--text-3); text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-1);
}

/* ==========================================================================
   Kanban (项目全生命周期)
   ========================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  flex: 1; overflow-x: auto; min-height: 0;
}
.kanban-col {
  display: flex; flex-direction: column;
  background: rgba(8, 11, 24, 0.5);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  overflow: hidden; min-height: 0;
  transition: all 0.3s var(--ease-out);
}
.kanban-col.drag-over { background: var(--c-primary-soft); border-color: var(--c-primary); box-shadow: 0 0 16px var(--c-primary-soft); }
.kanban-col-head {
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--c-primary-soft) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-1);
  position: relative;
}
.kanban-col-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--c-primary); box-shadow: 0 0 8px var(--c-primary);
}
.kanban-col-head .label { display: flex; align-items: center; gap: 8px; font-family: var(--f-display-cn); font-weight: 700; font-size: 13px; color: var(--text-0); letter-spacing: 0.5px; }
.kanban-col-head .lbl-num {
  font-family: var(--f-display-en); font-size: 18px; font-weight: 800;
  color: var(--c-primary);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft);
  border: 1px solid var(--c-primary);
  border-radius: var(--r-xs);
}
.kanban-col-head .en { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; margin-top: 2px; }
.kanban-col-head .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; }
.kanban-col-head .count { color: var(--c-primary); font-weight: 700; }
.kanban-col-head .amount { color: var(--text-2); }
.kanban-col-body { flex: 1; padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 100px; }

/* Project Card */
.proj-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-left: 2px solid var(--c-primary);
  border-radius: var(--r-xs);
  padding: 10px 12px;
  cursor: grab;
  transition: all 0.2s;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.proj-card:hover { border-color: var(--c-primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.proj-card:active { cursor: grabbing; }
.proj-card.dragging { opacity: 0.4; transform: rotate(2deg); }
.proj-card.cyan { border-left-color: var(--c-cyan); }
.proj-card.amber { border-left-color: var(--c-amber); }
.proj-card.violet { border-left-color: var(--c-violet); }
.proj-card.magenta { border-left-color: var(--c-magenta); }
.proj-priority { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.proj-priority.s { color: var(--status-danger); }
.proj-priority.a { color: var(--c-amber); }
.proj-priority.b { color: var(--c-cyan); }
.proj-priority.c { color: var(--text-3); }
.proj-name { font-size: 12.5px; font-weight: 600; color: var(--text-0); letter-spacing: 0.3px; padding-right: 14px; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }
.proj-meta .row { display: flex; align-items: center; gap: 3px; }
.proj-meta .v { color: var(--c-primary); font-weight: 700; }
.proj-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; margin-top: 4px; border-top: 1px dashed var(--border-1); }
.proj-owner { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-2); }
.proj-owner-avatar { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; background: var(--c-primary-soft); color: var(--c-primary); font-family: var(--f-display-cn); font-weight: 700; font-size: 11px; border-radius: var(--r-xs); border: 1px solid var(--c-primary); }
.proj-date { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }

/* ==========================================================================
   Funnel (漏斗)
   ========================================================================== */
.funnel { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.funnel-stage {
  display: grid; grid-template-columns: 110px 1fr 80px;
  align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--c-primary-soft) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-1);
  border-left: 2px solid currentColor;
  border-radius: var(--r-xs);
  cursor: pointer; transition: all 0.2s;
  color: var(--c-violet);
}
.funnel-stage:hover { background: linear-gradient(90deg, var(--c-primary-soft) 0%, rgba(255, 255, 255, 0.04) 100%); }
.funnel-stage.cyan { color: var(--c-cyan); }
.funnel-stage.amber { color: var(--c-amber); }
.funnel-stage.violet { color: var(--c-violet); }
.funnel-stage.magenta { color: var(--c-magenta); }
.funnel-label { font-family: var(--f-display-cn); font-weight: 700; font-size: 13px; color: currentColor; letter-spacing: 0.5px; }
.funnel-bar-wrap { position: relative; height: 18px; background: rgba(255, 255, 255, 0.04); border-radius: 2px; overflow: hidden; }
.funnel-bar { position: absolute; top: 0; left: 0; bottom: 0; background: linear-gradient(90deg, currentColor 0%, transparent 100%); opacity: 0.6; border-radius: 2px; }
.funnel-bar-num { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: currentColor; }
.funnel-count { font-family: var(--f-display-en); font-size: 16px; font-weight: 800; color: currentColor; text-align: right; }
.funnel-count .unit { font-size: 11px; color: var(--text-3); margin-left: 2px; font-weight: 400; }
.funnel-stage .lbl-en { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; }

/* ==========================================================================
   Detail Row (详情行 · 政策/企业画像/项目详情共用)
   ========================================================================== */
.detail-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border-1); font-size: 12.5px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-3); }
.detail-row .v { font-family: var(--f-mono); font-weight: 600; color: var(--text-0); }
.detail-row .v.amount { color: var(--c-primary); font-size: 14px; font-family: var(--f-display-en); }
.detail-row .v.weak { color: var(--status-danger); }
.detail-row .v.strong { color: var(--status-success); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 5px; width: 1px; background: var(--border-2); }
.tl-item { position: relative; padding: 8px 0; font-size: 11.5px; }
.tl-item::before { content: ""; position: absolute; top: 12px; left: -18px; width: 11px; height: 11px; background: var(--bg-2); border: 2px solid var(--border-2); border-radius: 50%; }
.tl-item.active::before { background: var(--c-primary); border-color: var(--c-primary); box-shadow: 0 0 8px var(--c-primary); }
.tl-item.active .tl-title { color: var(--c-primary); }
.tl-title { color: var(--text-1); font-weight: 500; }
.tl-time { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ===== 角色徽章 (topbar 标识当前身份) ===== */
.role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px 4px 6px;
  background: var(--bg-1);
  border: 1px solid currentColor;
  border-left-width: 3px;
  border-radius: var(--r-xs);
  font-family: var(--f-mono);
  letter-spacing: 1px;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.role-badge::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.role-badge .rb-zh {
  font-family: var(--f-display-cn); font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; color: currentColor;
}
.role-badge .rb-en {
  font-size: 10.5px; opacity: 0.7; color: currentColor;
}


/* ===== 角色功能矩阵 (Dashboard 顶部) ===== */
.func-matrix {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.55) 0%, rgba(8, 11, 24, 0.35) 100%);
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  position: relative; overflow: hidden;
}
.func-matrix::before { content: ""; position: absolute; top: 0; right: -50px; width: 200px; height: 200px; background: radial-gradient(circle, var(--c-primary) 0%, transparent 60%); opacity: 0.06; pointer-events: none; }
.func-matrix-head { display: flex; align-items: center; justify-content: space-between; }
.func-matrix-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--c-primary); text-transform: uppercase; }
.func-matrix-title .num { font-family: var(--f-display-en); font-size: 16px; font-weight: 800; color: var(--c-primary); text-shadow: 0 0 8px var(--c-primary); }
.func-matrix-actions { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: 1.5px; }
.func-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.func-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-left: 2px solid currentColor;
  border-radius: var(--r-xs);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-1);
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}
.func-chip:hover { color: var(--c-primary); border-color: var(--c-primary); background: rgba(0, 240, 255, 0.05); transform: translateY(-1px); }
.func-chip .fc-icon { font-size: 12px; opacity: 0.8; }
.func-chip .fc-name { font-family: var(--f-display-cn); font-weight: 500; }
.func-chip .fc-sub { color: var(--text-3); margin-left: 2px; font-size: 10.5px; }
.func-chip .fc-arrow { font-size: 11px; opacity: 0; transition: opacity 0.2s; }
.func-chip:hover .fc-arrow { opacity: 1; color: var(--c-primary); }

/* ===== 通用顶栏元素(从 login 提取,所有页面统一) ===== */
/* logo-mark 脉冲点 */
.logo-mark { position: relative; }
.logo-mark::after { content: ""; position: absolute; top: 1px; right: 1px; width: 6px; height: 6px; background: #fff; border-radius: 50%; box-shadow: 0 0 6px #fff, 0 0 12px var(--c-primary); animation: logo-pulse 1.8s ease-in-out infinite; }
@keyframes logo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }

/* logo 文字(升级到 XX 市 · 产业经济数智一体化平台) */
.logo-text { gap: 1px; }
.logo-cn { font-family: var(--f-display-cn); font-weight: 700; font-size: 13.5px; letter-spacing: 1.2px; color: var(--text-0); white-space: nowrap; }
.logo-en { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--c-primary); text-transform: uppercase; opacity: 0.9; white-space: nowrap; }

/* 顶栏竖线分隔 */
.topbar-divider { width: 1px; height: 28px; background: var(--border-1); flex-shrink: 0; }

/* 顶栏副标区(角色 + 描述) */
.topbar-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.topbar-meta-1 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 2.5px; color: var(--c-primary); text-transform: uppercase; white-space: nowrap; }
.topbar-meta-2 { font-family: var(--f-display-cn); font-weight: 600; font-size: 12px; color: var(--text-1); letter-spacing: 1.5px; white-space: nowrap; }

/* tab panel 切换(支持 7 个 panel 同时存在,只显一个) */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-fade-in 0.25s var(--ease-out); }
@keyframes panel-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* 子功能 section 分隔(模块下子级) */
.section-divider { display: flex; align-items: center; gap: 12px; padding: 24px 0 12px; margin-top: 12px; border-top: 1px solid var(--border-1); }
.section-divider .sd-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--c-primary); padding: 2px 8px; background: var(--c-primary-soft); border: 1px solid var(--c-primary); border-radius: 2px; }
.section-divider .sd-en { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; }

/* Modal 弹窗 */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; }
.modal.is-open { display: flex; animation: modal-fade 0.2s var(--ease-out); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card { position: relative; max-width: 720px; width: calc(100% - 60px); max-height: calc(100vh - 100px); background: linear-gradient(180deg, rgba(12, 18, 36, 0.95) 0%, rgba(8, 11, 24, 0.95) 100%); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 24px 28px; overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.modal-card--xl { max-width: 1000px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-1); }
.modal-kicker { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 2.5px; color: var(--c-primary); text-transform: uppercase; }
.modal-title { font-family: var(--f-display-cn); font-weight: 700; font-size: 20px; letter-spacing: 1.5px; color: var(--text-0); margin-top: 4px; }
.modal-sub { font-family: var(--f-display-cn); font-size: 11.5px; color: var(--text-2); margin-top: 4px; letter-spacing: 0.5px; }
.modal-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 20px; cursor: pointer; border: 1px solid var(--border-1); border-radius: 2px; transition: all 0.2s; }
.modal-close:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* ==========================================================================
   权限不足全屏页 (不自动跳转,避免循环)
   ========================================================================== */
.no-access-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(12, 18, 36, 0.97) 0%, rgba(4, 6, 12, 0.99) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in 0.3s var(--ease-out);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.no-access-card {
  position: relative; max-width: 480px; width: 100%;
  background: linear-gradient(180deg, rgba(18, 24, 44, 0.97) 0%, rgba(10, 14, 28, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--c-primary);
  border-radius: var(--r-sm);
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--c-primary-soft) inset, 0 0 40px var(--c-primary-soft);
  animation: slide-up 0.4s var(--ease-out);
  color: var(--text-0);
}
.no-access-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); opacity: 0.6; }
.na-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--c-primary); border: 1.5px solid var(--c-primary); border-radius: 50%; box-shadow: 0 0 24px var(--c-primary-soft); animation: pulse-warn 2s ease-in-out infinite; }
.na-icon svg { width: 28px; height: 28px; }
@keyframes pulse-warn { 0%, 100% { box-shadow: 0 0 24px var(--c-primary-soft); } 50% { box-shadow: 0 0 36px var(--c-primary), 0 0 56px var(--c-primary-soft); } }
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.na-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 3px; color: var(--c-primary); margin-bottom: 6px; font-weight: 700; }
.na-title { font-family: var(--f-display-cn); font-size: 22px; font-weight: 800; color: var(--text-0); letter-spacing: 2px; margin-bottom: 8px; }
.na-msg { font-family: var(--f-display-cn); font-size: 13px; color: var(--text-1); margin-bottom: 18px; letter-spacing: 0.5px; }
.na-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); border-left: 2px solid var(--c-primary); border-radius: var(--r-xs); margin: 0 auto 16px; max-width: 340px; }
.na-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-soft)); color: var(--bg-0); font-family: var(--f-display-cn); font-weight: 800; font-size: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px var(--c-primary-soft); }
.na-user-info { flex: 1; min-width: 0; text-align: left; }
.na-user-name { font-family: var(--f-display-cn); font-weight: 700; font-size: 13px; color: var(--text-0); display: flex; align-items: center; gap: 6px; }
.na-user-level { font-family: var(--f-mono); font-size: 9px; padding: 1.5px 5px; background: var(--c-primary); color: var(--bg-0); border-radius: 1px; letter-spacing: 0.5px; font-weight: 700; }
.na-user-role { font-family: var(--f-mono); font-size: 9.5px; color: var(--text-3); letter-spacing: 0.5px; margin-top: 1px; }
.na-hint { font-family: var(--f-display-cn); font-size: 11.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 18px; padding: 0 8px; }
.na-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.na-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; border-radius: var(--r-xs); cursor: pointer; transition: all 0.2s; text-decoration: none; border: 1px solid; font-weight: 600; }
.na-btn-primary { background: var(--c-primary); color: var(--bg-0); border-color: var(--c-primary); box-shadow: 0 0 12px var(--c-primary-soft); }
.na-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 20px var(--c-primary), 0 0 40px var(--c-primary-soft); }
.na-btn-ghost { background: transparent; color: var(--text-1); border-color: var(--border-2); }
.na-btn-ghost:hover { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
.na-tip { font-family: var(--f-mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.5px; line-height: 1.5; padding-top: 12px; border-top: 1px dashed var(--border-1); }
