@charset "utf-8";

/* ============================================================
   UI 皮肤层 v2 —— 现代企业 SaaS（Arco / AntD Pro 风格）
   覆盖 style.css 的 token 与组件外观，不改页面结构类名。
   ============================================================ */

:root {
  --ink: #1f2d3d;
  --muted: #6b7a90;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-2: #3b82f6;
  --accent: #2563eb;
  --brand: #0c2450;
  --brand-2: #0a1c40;
  --navy: #0c2450;
  --navy-2: #123a7a;
  --amber: #f59e0b;
  --warn: #d97706;
  --overdue: #dc2626;
  --danger: #dc2626;
  --success: #059669;
  --ok: #059669;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --card: #ffffff;
  --line: #e7ecf3;
  --outline: #d3dce8;
  --sider: linear-gradient(180deg, #0c2450 0%, #0a1c40 55%, #081631 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px -14px rgba(16, 24, 40, 0.12);
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Noto Sans SC", ui-monospace, tabular-nums, sans-serif;
  --radius: 12px;
  --shell-header-h: 58px;
  --side-w: 240px;
}

body { background: var(--paper); color: var(--ink); }

::selection { background: rgba(37, 99, 235, 0.18); }

/* ---------- 全局细滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c6d1e0;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #a9b8cc; background-clip: padding-box; border: 2px solid transparent; }

/* ---------- 壳层 ---------- */
.shell { grid-template-columns: var(--side-w) 1fr; }

/* 品牌区：白底 logo，干净利落 */
.brand {
  justify-content: flex-start;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand:hover { background: #fff; }
.brand-logo { display: none; }
.brand-logo-img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 196px;
  object-fit: contain;
  object-position: left center;
}

/* ---------- 深色侧栏 ---------- */
.side {
  background: var(--sider);
  border-right: 0;
  box-shadow: 6px 0 24px -12px rgba(8, 22, 49, 0.55);
}
.nav { padding: 12px 12px 16px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.9;
}
.nav-ico svg { width: 17px; height: 17px; display: block; }

/* 一级：工作台直达 + 组标题 */
.nav a.nav-l1, .nav-group-title.nav-l1 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  margin-bottom: 2px;
}
.nav a.nav-home { margin-bottom: 8px; }
.nav a.nav-home.active,
.nav a.nav-l1.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.42), rgba(59, 130, 246, 0.14));
  box-shadow: inset 2.5px 0 0 var(--primary-2);
}

.nav-group { margin: 2px 0 4px; }
.nav-group-title {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
}
.nav-group-title:hover { background: rgba(255, 255, 255, 0.07); }
.nav-group-title::after {
  content: '';
  margin-left: auto;
  margin-top: 0;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.8px solid rgba(255, 255, 255, 0.5);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}
.nav-group.open > .nav-group-title { color: #fff; }
.nav-group.open > .nav-group-title::after { transform: rotate(45deg); }
.nav-group-body { padding: 2px 0 6px; }

/* 二级小节：可收缩 */
.nav-sub { margin: 0 0 2px; }
.nav-sub-title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-sub-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
  margin-top: -1px;
}
.nav-sub-title:hover { color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.04); }
.nav-sub.open > .nav-sub-title { color: rgba(255, 255, 255, 0.65); }
.nav-sub.open > .nav-sub-title::before { transform: rotate(45deg); margin-top: 2px; }
.nav-sub-body { display: none; padding: 1px 0 3px; }
.nav-sub.open > .nav-sub-body { display: block; }

/* 三级：菜单项（圆点 + 缩进轨道） */
.nav a.nav-l2 {
  position: relative;
  margin: 1px 0 1px 30px;
  padding: 8px 12px 8px 12px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  gap: 9px;
}
.nav a.nav-l2::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex: 0 0 auto;
}
.nav a.nav-l2:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a.nav-l2.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.1));
  box-shadow: inset 2.5px 0 0 var(--primary-2);
}
.nav a.nav-l2.active::before { background: #fff; opacity: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }

.nav-badge { margin-left: auto; }
.nav-h { display: none; }

/* 侧栏底部用户卡 */
.side-user {
  margin: auto 12px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
}
.side-user strong { color: #fff; font-size: 13px; }
.side-user-meta { color: rgba(255, 255, 255, 0.4); }
.side-logout {
  display: inline-flex;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.side-logout:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }

/* ---------- 顶栏 ---------- */
.app-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  padding: 0 22px;
}
.app-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.app-header-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
}
.app-header-meta { display: none; }
.app-header-bell {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}
.app-header-bell:hover { color: var(--primary); border-color: #c7dbff; background: #f5f8ff; }
.header-badge { box-shadow: 0 0 0 2px #fff; }
.app-user-chip { padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid transparent; }
.app-user-chip:hover { background: #f2f6fd; text-decoration: none; }
.app-user-avatar { background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%); }

/* ---------- 内容区 / 页头 ---------- */
.main { padding: 18px 22px 34px; }
.topbar { margin-bottom: 14px; }
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.topbar p { color: var(--muted); }

/* ---------- 卡片 ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.card h2, .card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.card h2::before, .card h3::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  flex: 0 0 auto;
}
.card h2 .btn, .card h3 .btn, .card h2 a, .card h3 a { margin-left: auto; }

/* ---------- KPI 卡 ---------- */
.stats-row { gap: 12px; margin-bottom: 14px; }
.card.stat, a.card.stat {
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  padding: 15px 18px 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.notices-kpis .card.stat, .notices-kpis a.card.stat { padding: 8px 10px 7px; }
.notices-kpis .card.stat .value, .notices-kpis a.card.stat .value { font-size: 20px; line-height: 24px; }
a.card.stat:hover {
  transform: translateY(-1px);
  border-left-color: var(--primary);
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.25);
}
a.card.stat.active, .card.stat.active { border-left-color: var(--primary); background: linear-gradient(180deg, #f7faff, #fff); }
.card.stat.warn, a.card.stat.warn { border-left-color: var(--warn); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { font-size: 13px; }
th {
  background: #f7f9fc;
  color: #5b6b80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td { padding: 11px 12px; border-bottom: 1px solid #eef2f7; }
tr:hover td { background: #f6f9ff; }
td.col-title a { font-weight: 600; }
td.col-title a:hover { color: var(--primary); }

/* ---------- 徽章 ---------- */
.badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #eff4ff;
  color: #1d4ed8;
  border: 1px solid #dbe7ff;
}
.badge.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge.danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.badge.muted { background: #f3f6fa; color: var(--muted); border-color: var(--line); }
.badge.accent { background: #eff4ff; color: #1d4ed8; border-color: #dbe7ff; }
.badge.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* ---------- 按钮 ---------- */
.btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(180deg, #2f6bff, #2563eb);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.55);
}
.btn:active { transform: translateY(0.5px); }
.btn.primary, .btn.accent { background: linear-gradient(180deg, #2f6bff, #2563eb); border-color: transparent; }
.btn.primary:hover, .btn.accent:hover { background: linear-gradient(180deg, #2563eb, #1d4ed8); border-color: transparent; }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--outline);
  box-shadow: none;
}
.btn.secondary:hover {
  background: #f5f8ff;
  color: var(--primary);
  border-color: var(--primary-2);
  box-shadow: none;
}
.btn.danger { background: linear-gradient(180deg, #ef4444, #dc2626); }
.btn.danger:hover { background: linear-gradient(180deg, #dc2626, #b91c1c); }
.btn.small { padding: 4px 12px; font-size: 12px; border-radius: 6px; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 1px;
}

/* ---------- 表单 ---------- */
label { font-size: 13px; color: #4b5b70; font-weight: 500; }
input, select, textarea {
  border: 1px solid #d5dde8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #aebdcf; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ---------- 提示条 / 筛选条 / 分页 ---------- */
.alert { border-radius: 10px; font-size: 13px; }
.alert.error, .alert.danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.alert.info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

.filter-bar { padding: 16px 18px; }
.pager { border-top: 1px solid var(--line); }

/* ---------- 页签 / 步骤 ---------- */
.tab { border-radius: 999px; padding: 6px 14px; background: #edf1f7; color: #5b6b80; }
.tab:hover { color: var(--ink); background: #e3e9f2; }
.tab.active { background: #e7efff; color: #1d4ed8; border: 1px solid #c7dbff; font-weight: 600; }
.step { border-radius: 999px; background: #edf1f7; color: #5b6b80; }
.step.on { background: linear-gradient(180deg, #2f6bff, #2563eb); color: #fff; }
.step.done { background: #e7efff; color: #1d4ed8; }

/* ---------- 抽屉 ---------- */
.fw-head { background: #fbfcfe; }
.fw-kicker { color: var(--primary); }

/* ---------- 登录页 ---------- */
.login-page { background: #e9eef6; }
.login-split { border-radius: 14px; box-shadow: 0 18px 48px -12px rgba(12, 36, 80, 0.25); }
.login-hero {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, #123a7a 0%, #0c2450 48%, #081631 100%);
}
.login-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.login-form-col .btn[type="submit"] {
  background: linear-gradient(180deg, #2f6bff, #2563eb);
}
.login-form-col .btn[type="submit"]:hover { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.login-hero-brand img { border-radius: 10px; }

/* ---------- 工作台 ---------- */
.workbench-head { margin-bottom: 16px; }
.wb-greeting { font-size: 22px; font-weight: 700; }
.wb-sec-title { margin: 20px 2px 10px; }
.wb-sec-title strong { font-size: 15px; }
.wb-sec-title span {
  font-size: 12px;
  color: var(--muted);
  background: #eef2f7;
  border-radius: 999px;
  padding: 2px 10px;
}

.mini-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mini {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mini:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: #c7dbff;
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.28);
}
.mini-k {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.mini:nth-child(2) .mini-k { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.mini:nth-child(3) .mini-k { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mini:nth-child(4) .mini-k { background: linear-gradient(135deg, #10b981, #059669); }
.mini:nth-child(5) .mini-k { background: linear-gradient(135deg, #ef4444, #dc2626); }
.mini:nth-child(6) .mini-k { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.mini-body { display: flex; flex-direction: column; min-width: 0; }
.mini-label { font-size: 12px; color: var(--muted); }
.mini-value { font-family: var(--font-num); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.mini-hint {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 列表页头部工具栏 */
.toolbar-form { display: flex; gap: 8px; align-items: center; }
.toolbar-form input { width: 220px; }

/* 侧栏滚动条 */
.side .nav::-webkit-scrollbar { width: 5px; }
.side .nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .mini-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { box-shadow: none; }
}
@media (max-width: 700px) {
  .mini-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   增强层：品牌区 logo、登录 hero、全局水印、硬朗化组件
   ============================================================ */

/* ---------- 侧栏品牌区：logo + 综合办公平台 ---------- */
.brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 16px; }
.brand-logo-img { height: 32px; max-width: 210px; }
.brand-sub { font-size: 11px; line-height: 1; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- 登录 hero：logo + 副标题 ---------- */
.login-hero-brand { flex-direction: column; align-items: flex-start; gap: 0; }
.login-hero-brand-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- 登录后全局水印（姓名 + 手机号）---------- */
.app-watermark {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 96px;
  gap: 0;
}
.app-watermark span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1f2d3d;
  opacity: 0.05;
  transform: rotate(-22deg);
  white-space: nowrap;
}

/* ---------- 硬朗化：更清晰的轮廓与层次 ---------- */
:root {
  --radius: 10px;
  --outline: #c4d0e0;
  --line: #dbe4ef;
  --shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 18px 40px -28px rgba(16, 24, 40, 0.22);
}
.card { border: 1px solid var(--outline); }
.card h2, .card h3 { letter-spacing: 0.02em; }
table { font-size: 13.5px; }
th { background: #f4f7fb; font-weight: 700; color: #23324a; border-bottom: 2px solid var(--outline); }
td { border-bottom: 1px solid var(--line); }
tbody tr:hover td { background: #f4f8ff; }
.btn { font-weight: 600; border-radius: 8px; }
.btn:not(.secondary):not(.danger):not(.accent) {
  background: linear-gradient(180deg, #2f6ef5, #1d4ed8);
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, 0.65);
}
.btn:not(.secondary):not(.danger):not(.accent):hover {
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.7);
}
input, select, textarea { border: 1px solid var(--outline); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
label { letter-spacing: 0.02em; }
