/*!
 * 伏虎工作台 P0 增量样式 · 2026-11-07
 * 挂载：ui-states-v1.css 之后；禁区：不改账号口令、不伪造业务数、不整站换脚手架
 * 覆盖：登录说明/错误态/页脚；首页三区；侧栏低频组；空态动作；加载超时；通知铃铛；403 友好页
 */
:root {
  --fh-p0-danger: #dc2626;
  --fh-p0-danger-bg: #fef2f2;
  --fh-p0-muted: #64748b;
  --fh-p0-border: #e2e8f0;
  --fh-p0-card: #ffffff;
  --fh-p0-primary: #1a56db;
  --fh-p0-primary-soft: #eff6ff;
  --fh-p0-warn: #d97706;
}

/* ===== 登录页：说明句 / 错误态 / 页脚可信感 ===== */
.login-page {
  flex-direction: column;
  gap: 0;
  padding: 24px 12px 12px;
}
.login-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--fh-p0-border);
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
.login-hint strong { color: #1e3a8a; font-weight: 600; }
.login-pwd-path {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--fh-p0-muted);
  text-align: center;
  line-height: 1.5;
}
.login-pwd-path a {
  color: var(--fh-p0-primary);
  text-decoration: none;
  font-weight: 500;
}
.login-pwd-path a:hover { text-decoration: underline; }

.login-error {
  display: none;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: var(--fh-p0-danger-bg);
  color: var(--fh-p0-danger);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.login-error.is-visible { display: block; }
.login-error[data-kind="network"] {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.login-error[data-kind="account"] {
  border-color: #fecaca;
  background: var(--fh-p0-danger-bg);
  color: var(--fh-p0-danger);
}
.login-error[data-kind="empty"] {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.login-footer {
  margin-top: 18px;
  padding: 14px 8px 4px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.65;
  max-width: 520px;
}
.login-footer .lf-org { font-weight: 600; letter-spacing: 0.2px; }
.login-footer .lf-meta { opacity: 0.88; }
.login-footer a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ===== 顶栏通知铃铛壳 ===== */
.topbar .user-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fh-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fh-p0-border);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  padding: 0;
}
.fh-notif-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.fh-notif-btn:focus-visible { outline: 2px solid var(--fh-p0-primary); outline-offset: 2px; }
.fh-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--fh-p0-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  display: none;
}
.fh-notif-badge.is-on { display: inline-block; }
.fh-notif-badge[data-count="0"] { display: none !important; }

/* ===== 首页三区骨架 ===== */
.fh-home-tri {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.fh-home-tri .fh-zone {
  background: var(--fh-p0-card);
  border: 1px solid var(--fh-p0-border);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 120px;
}
.fh-home-tri .fh-zone-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.fh-home-tri .fh-zone-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.fh-home-tri .fh-zone-sub {
  font-size: 12px;
  color: var(--fh-p0-muted);
}
.fh-home-tri .fh-zone-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--fh-p0-primary);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.fh-home-tri .fh-zone-notice {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #eff6ff 0%, #fff 60%);
  border-color: #bfdbfe;
  min-height: 0;
  padding: 12px 16px;
}
.fh-home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fh-home-shortcuts a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px;
  border: 1px solid var(--fh-p0-border);
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fh-home-shortcuts a:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
  background: #fff;
}
.fh-home-shortcuts .ico { font-size: 18px; line-height: 1; }
.fh-home-shortcuts .lab { font-size: 13px; font-weight: 600; }
.fh-home-shortcuts .hint { font-size: 11px; color: var(--fh-p0-muted); }
.fh-todo-summary-list { list-style: none; margin: 0; padding: 0; }
.fh-todo-summary-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 13px;
  color: #1e293b;
}
.fh-todo-summary-list li:last-child { border-bottom: 0; }
.fh-todo-summary-list .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fh-p0-primary); margin-top: 5px; flex: none;
}
.fh-todo-summary-list .dot.overdue { background: var(--fh-p0-danger); }
.fh-todo-summary-list .dot.warn { background: var(--fh-p0-warn); }
.fh-notice-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #1e3a8a;
}
.fh-notice-strip .tag {
  flex: none;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
@media (max-width: 900px) {
  .fh-home-tri { grid-template-columns: 1fr; }
  .fh-home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 侧栏：低频组视觉 + 无权限灰显 ===== */
.nav-group[data-freq="low"] > .nav-group-head .nav-group-name::after {
  content: "低频";
  margin-left: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
  text-transform: none;
}
.nav-item.is-denied,
.nav-item[data-denied="1"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}
.nav-item.is-denied .nav-text::after,
.nav-item[data-denied="1"] .nav-text::after {
  content: "无权限";
  margin-left: 6px;
  font-size: 10px;
  color: #fbbf24;
  font-weight: 600;
}
.nav-item.active {
  outline: none;
}

/* ===== 空态动作按钮 ===== */
.empty-state .empty-actions,
.fh-empty .empty-actions,
.lg-empty .empty-actions,
.wh-empty .empty-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.empty-actions .btn,
.empty-actions button,
.empty-actions a.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
}
.empty-actions .btn-primary,
.empty-actions a.btn-primary {
  background: var(--fh-p0-primary);
  border-color: var(--fh-p0-primary);
  color: #fff;
}

/* ===== 加载超时 → 重试 ===== */
.fh-load-timeout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 16px;
  color: var(--fh-p0-muted);
  text-align: center;
}
.fh-load-timeout .msg { font-size: 14px; color: #334155; }
.fh-load-timeout .sub { font-size: 12.5px; color: #94a3b8; max-width: 360px; line-height: 1.5; }
.fh-load-timeout .btn-retry {
  margin-top: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--fh-p0-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fh-load-timeout .btn-retry:hover { background: #1e40af; }

/* ===== 403 / 无权限友好页 ===== */
.fh-forbidden-page {
  max-width: 520px;
  margin: 48px auto;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--fh-p0-border);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.fh-forbidden-page .code {
  font-size: 42px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 2px;
  line-height: 1;
}
.fh-forbidden-page h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  color: #0f172a;
}
.fh-forbidden-page p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--fh-p0-muted);
  line-height: 1.6;
}
.fh-forbidden-page .actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.fh-forbidden-page .actions a,
.fh-forbidden-page .actions button {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.fh-forbidden-page .actions a.primary,
.fh-forbidden-page .actions button.primary {
  background: var(--fh-p0-primary);
  border-color: var(--fh-p0-primary);
  color: #fff;
}
