/* =============================================================
   1024FO 员工后台 · 设计系统
   深墨蓝 + 香槟金 · 高端金融财富管理风
   ============================================================= */

:root {
  /* 主色 */
  --c-navy-900: #0A1428;
  --c-navy-800: #0F1E3D;
  --c-navy-700: #16294F;
  --c-navy-600: #1E345F;
  --c-navy-500: #2A4477;
  --c-navy-300: #55689A;
  --c-navy-100: #E8ECF4;

  --c-gold-700: #8C6B34;
  --c-gold-600: #A07C42;
  --c-gold-500: #B8945F;
  --c-gold-400: #C9A876;
  --c-gold-100: #F5EFE3;

  /* 语义色（中国金融习惯：涨红跌绿） */
  --c-up: #C0392B;
  --c-up-bg: #FDECEA;
  --c-down: #1E8E5A;
  --c-down-bg: #E8F6EF;
  --c-warn: #C87F2A;
  --c-warn-bg: #FDF3E4;
  --c-info: #2A6FB0;
  --c-info-bg: #EAF2FA;
  --c-danger: #C0392B;

  /* 中性 */
  --c-text: #1A2233;
  --c-text-2: #4A5568;
  --c-text-3: #7A8699;
  --c-text-4: #A8B2C1;
  --c-border: #E2E7EF;
  --c-border-2: #EDF0F5;
  --c-bg: #F5F7FA;
  --c-bg-2: #FAFBFD;
  --c-white: #FFFFFF;

  /* 尺寸 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 14px; --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15,30,61,.06);
  --shadow: 0 2px 8px rgba(15,30,61,.08);
  --shadow-md: 0 6px 20px rgba(15,30,61,.10);
  --shadow-lg: 0 12px 40px rgba(15,30,61,.16);

  --sidebar-w: 232px;
  --header-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-navy-600); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CFD6E0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B4BECD; }
::-webkit-scrollbar-track { background: transparent; }

/* =============================================================
   布局骨架
   ============================================================= */
#app { min-height: 100vh; }

.layout { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--c-navy-800) 0%, var(--c-navy-900) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 60;
}

.brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-gold-500), var(--c-gold-700));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--c-navy-900);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.brand-sub { font-size: 10px; color: var(--c-gold-400); letter-spacing: 1.5px; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); }

.nav-group-title {
  font-size: 10px; letter-spacing: 1.2px;
  color: rgba(255,255,255,.34);
  padding: 14px 12px 6px;
  text-transform: uppercase;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .14s, color .14s;
  margin-bottom: 1px;
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active {
  background: rgba(184,148,95,.18);
  color: #fff;
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--c-gold-500);
}
.nav-item .ico { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.nav-item.active .ico { opacity: 1; }
.nav-item .badge {
  margin-left: auto;
  background: var(--c-up); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 9px;
  min-width: 18px; text-align: center;
}

.sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.me {
  display: flex; align-items: center; gap: 9px;
  padding: 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .14s;
}
.me:hover { background: rgba(255,255,255,.07); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold-500), var(--c-gold-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--c-navy-900);
  flex-shrink: 0;
}
.me-info { line-height: 1.3; overflow: hidden; }
.me-name { font-size: 13px; font-weight: 500; }
.me-role { font-size: 11px; color: var(--c-gold-400); }

/* ---------- 主区 ---------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header {
  height: var(--header-h);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 40;
}
.page-title { font-size: 16px; font-weight: 600; }
.page-crumb { font-size: 12px; color: var(--c-text-3); }
.header-spacer { flex: 1; }
.header-search {
  position: relative;
}
.header-search input {
  width: 240px;
  height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: var(--c-bg);
  outline: none;
  transition: border-color .14s, background .14s;
}
.header-search input:focus { border-color: var(--c-gold-500); background: #fff; }
.header-search .ico {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--c-text-3); pointer-events: none;
}

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--c-border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-2);
  position: relative;
  transition: border-color .14s, color .14s;
}
.icon-btn:hover { border-color: var(--c-gold-500); color: var(--c-navy-700); }
.icon-btn .dot {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--c-up); color: #fff;
  border-radius: 8px; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.content { padding: 24px; flex: 1; }

/* =============================================================
   通用组件
   ============================================================= */

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border-2);
}
.card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head .sub { font-size: 12px; color: var(--c-text-3); }
.card-head .spacer { flex: 1; }

/* ---------- 指标卡 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat::after {
  content: ''; position: absolute;
  right: -20px; top: -20px; width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--c-navy-100);
  opacity: .5;
}
.stat.navy { background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-800)); border-color: transparent; }
.stat.navy .stat-label { color: rgba(255,255,255,.66); }
.stat.navy .stat-value { color: #fff; }
.stat.navy .stat-foot { color: rgba(255,255,255,.5); }
.stat.navy::after { background: rgba(184,148,95,.14); }

.stat-label { font-size: 12.5px; color: var(--c-text-3); margin-bottom: 8px; position: relative; z-index: 1; }
.stat-value {
  font-size: 26px; font-weight: 700; letter-spacing: -.5px;
  font-family: var(--font-num);
  position: relative; z-index: 1;
  line-height: 1.2;
}
.stat-value .unit { font-size: 13px; font-weight: 500; color: var(--c-text-3); margin-left: 3px; font-family: var(--font); }
.stat-foot { font-size: 12px; color: var(--c-text-3); margin-top: 7px; position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; }
.stat-foot .chg { font-weight: 600; font-family: var(--font-num); }
.chg.up { color: var(--c-up); }
.chg.down { color: var(--c-down); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 500;
  transition: all .14s;
  white-space: nowrap;
  background: #fff;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--c-navy-700); color: #fff; }
.btn-primary:hover { background: var(--c-navy-600); box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(135deg, var(--c-gold-500), var(--c-gold-700)); color: #fff; }
.btn-gold:hover { box-shadow: 0 4px 14px rgba(184,148,95,.4); }
.btn-ghost { border-color: var(--c-border); color: var(--c-text-2); }
.btn-ghost:hover { border-color: var(--c-navy-500); color: var(--c-navy-700); background: var(--c-navy-100); }
.btn-danger { color: var(--c-danger); border-color: #F0CFCB; background: #fff; }
.btn-danger:hover { background: var(--c-up-bg); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-sm svg { width: 12px; height: 12px; }
.btn-lg { height: 42px; padding: 0 22px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link {
  background: none; border: none; color: var(--c-navy-600);
  padding: 0; height: auto; font-size: 13px;
}
.btn-link:hover { text-decoration: underline; color: var(--c-gold-700); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field-label {
  display: block; font-size: 12.5px; font-weight: 500;
  color: var(--c-text-2); margin-bottom: 6px;
}
.field-label .req { color: var(--c-danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 36px;
  padding: 0 11px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
  color: var(--c-text);
  transition: border-color .14s, box-shadow .14s;
}
.textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 84px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--c-gold-500);
  box-shadow: 0 0 0 3px rgba(184,148,95,.14);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-4); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8699' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.field-hint { font-size: 11.5px; color: var(--c-text-3); margin-top: 5px; }
.field-error { font-size: 11.5px; color: var(--c-danger); margin-top: 5px; }
.input.invalid { border-color: var(--c-danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 徽标 / 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 9px;
  border-radius: 11px;
  font-size: 11.5px; font-weight: 500;
  background: var(--c-navy-100); color: var(--c-navy-700);
  white-space: nowrap;
}
.tag-gold { background: var(--c-gold-100); color: var(--c-gold-700); }
.tag-up { background: var(--c-up-bg); color: var(--c-up); }
.tag-down { background: var(--c-down-bg); color: var(--c-down); }
.tag-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.tag-info { background: var(--c-info-bg); color: var(--c-info); }
.tag-gray { background: #EEF1F5; color: var(--c-text-3); }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--c-text-3);
  padding: 10px 14px;
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
table.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border-2);
  vertical-align: middle;
}
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--c-bg-2); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl .num { font-family: var(--font-num); }
.table-empty { padding: 56px 20px; text-align: center; color: var(--c-text-3); }

.cell-main { font-weight: 500; }
.cell-sub { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-user .avatar { width: 30px; height: 30px; font-size: 12px; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--c-border-2);
  font-size: 12.5px; color: var(--c-text-3);
}
.pager .spacer { flex: 1; }
.pager .pg {
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--c-text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-num);
}
.pager .pg:hover:not(:disabled) { border-color: var(--c-gold-500); color: var(--c-navy-700); }
.pager .pg.active { background: var(--c-navy-700); border-color: var(--c-navy-700); color: #fff; }
.pager .pg:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border-2);
  flex-wrap: wrap;
}
.toolbar .spacer { flex: 1; }
.toolbar .input, .toolbar .select { height: 34px; }
.search-inline { position: relative; }
.search-inline input { width: 220px; padding-left: 32px; }
.search-inline .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--c-text-3); }

/* ---------- Segmented ---------- */
.seg {
  display: inline-flex; padding: 3px;
  background: var(--c-bg); border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
.seg button {
  height: 26px; padding: 0 13px;
  border: none; background: transparent;
  border-radius: 4px; font-size: 12.5px; color: var(--c-text-2);
  transition: all .14s;
}
.seg button.active { background: #fff; color: var(--c-navy-700); font-weight: 500; box-shadow: var(--shadow-sm); }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,20,40,.5);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(12px) scale(.98);
  transition: transform .2s;
}
.modal-mask.show .modal { transform: none; }
.modal.wide { max-width: 880px; }
.modal.narrow { max-width: 420px; }
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-border-2);
  flex-shrink: 0;
}
.modal-head h3 { font-size: 15.5px; font-weight: 600; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  padding: 15px 22px;
  border-top: 1px solid var(--c-border-2);
  flex-shrink: 0;
  background: var(--c-bg-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.modal-foot .spacer { flex: 1; margin-right: auto; }

/* ---------- 抽屉 ---------- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(10,20,40,.42);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 620px; max-width: 92vw;
  background: var(--c-bg);
  box-shadow: var(--shadow-lg);
  z-index: 195;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
}
.drawer.show { transform: none; }
.drawer-head {
  height: var(--header-h); flex-shrink: 0;
  background: #fff; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot {
  flex-shrink: 0; background: #fff; border-top: 1px solid var(--c-border);
  padding: 13px 20px; display: flex; gap: 10px; justify-content: flex-end;
}

/* ---------- Toast ---------- */
#toast-wrap {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 400; display: flex; flex-direction: column; gap: 9px;
  align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  background: var(--c-navy-800); color: #fff;
  border-radius: 24px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: toastIn .24s cubic-bezier(.2,.9,.3,1.3);
  max-width: 480px;
}
.toast svg { width: 15px; height: 15px; flex-shrink: 0; }
.toast.success svg { color: #4ADE80; }
.toast.error svg { color: #FCA5A5; }
.toast.error { background: var(--c-up); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.94); } }

/* ---------- 空状态 ---------- */
.empty {
  padding: 60px 20px; text-align: center; color: var(--c-text-3);
}
.empty svg { width: 52px; height: 52px; color: var(--c-text-4); margin-bottom: 12px; }
.empty-title { font-size: 14px; color: var(--c-text-2); margin-bottom: 4px; }
.empty-sub { font-size: 12.5px; }

/* ---------- 骨架屏 ---------- */
.skel {
  background: linear-gradient(90deg, #EEF1F5 25%, #F7F9FC 50%, #EEF1F5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 加载 ---------- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner.dark { border-color: var(--c-border); border-top-color: var(--c-navy-600); }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 80px; color: var(--c-text-3); font-size: 13px;
}

/* =============================================================
   页面专属
   ============================================================= */

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--c-navy-900);
}
.login-visual {
  flex: 1.1;
  background:
    radial-gradient(circle at 22% 30%, rgba(184,148,95,.20), transparent 46%),
    radial-gradient(circle at 78% 72%, rgba(42,68,119,.6), transparent 52%),
    linear-gradient(140deg, var(--c-navy-800), var(--c-navy-900));
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.login-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 44px 44px;
}
.login-visual > * { position: relative; z-index: 1; }
.lv-mark {
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(135deg, var(--c-gold-500), var(--c-gold-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--c-navy-900);
  margin-bottom: 30px;
  box-shadow: 0 8px 28px rgba(184,148,95,.36);
}
.lv-title { font-size: 34px; font-weight: 700; color: #fff; line-height: 1.28; letter-spacing: -.5px; }
.lv-title em { font-style: normal; color: var(--c-gold-400); }
.lv-desc { font-size: 14.5px; color: rgba(255,255,255,.56); margin-top: 18px; max-width: 440px; line-height: 1.85; }
.lv-feats { margin-top: 44px; display: flex; flex-direction: column; gap: 15px; }
.lv-feat { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: 13.5px; }
.lv-feat .ico {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(184,148,95,.16);
  border: 1px solid rgba(184,148,95,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold-400); flex-shrink: 0;
}
.lv-feat .ico svg { width: 15px; height: 15px; }
.lv-foot {
  position: absolute; bottom: 30px; left: 64px;
  font-size: 12px; color: rgba(255,255,255,.3); z-index: 1;
}

.login-form-side {
  width: 460px; flex-shrink: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.login-box { width: 100%; max-width: 340px; }
.login-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-box .sub { font-size: 13px; color: var(--c-text-3); margin-bottom: 30px; }
.login-box .input { height: 42px; }
.login-error {
  background: var(--c-up-bg); color: var(--c-up);
  border: 1px solid #F5D5D1;
  border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 12.5px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 7px;
}
.login-error svg { width: 14px; height: 14px; flex-shrink: 0; }
.demo-hint {
  margin-top: 22px; padding: 13px 15px;
  background: var(--c-gold-100);
  border: 1px dashed var(--c-gold-400);
  border-radius: var(--radius-sm);
  font-size: 12px; color: var(--c-gold-700);
  line-height: 1.9;
}
.demo-hint b { font-family: var(--font-num); }

/* ---------- 看板 ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 1180px) { .dash-grid { grid-template-columns: 1fr; } }

/* 迷你柱状图 */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 34px;
  background: linear-gradient(180deg, var(--c-navy-500), var(--c-navy-700));
  border-radius: 5px 5px 2px 2px;
  min-height: 3px;
  transition: height .5s cubic-bezier(.3,1,.4,1);
  position: relative;
}
.bar.gold { background: linear-gradient(180deg, var(--c-gold-400), var(--c-gold-600)); }
.bar-lab { font-size: 10.5px; color: var(--c-text-3); white-space: nowrap; }
.bar-val { font-size: 11px; font-weight: 600; font-family: var(--font-num); color: var(--c-text-2); }

/* 待办项 */
.todo {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--c-border-2);
}
.todo:last-child { border-bottom: none; }
.todo-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.todo-ico svg { width: 16px; height: 16px; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 13.5px; font-weight: 500; }
.todo-desc { font-size: 12px; color: var(--c-text-3); margin-top: 1px; }

/* 排行榜 */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.rank-no {
  width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; font-family: var(--font-num);
  background: var(--c-bg); color: var(--c-text-3); flex-shrink: 0;
}
.rank-no.top1 { background: linear-gradient(135deg, var(--c-gold-400), var(--c-gold-600)); color: #fff; }
.rank-no.top2 { background: #D7DEE8; color: #556; }
.rank-no.top3 { background: #E8D5BE; color: #8C6B34; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 13.5px; font-weight: 500; }
.rank-bar { height: 5px; background: var(--c-border-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-navy-500), var(--c-navy-700)); border-radius: 3px; transition: width .5s; }
.rank-val { font-size: 13px; font-weight: 600; font-family: var(--font-num); color: var(--c-navy-700); }

/* ---------- 详情抽屉 ---------- */
.detail-hero {
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-800));
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.detail-hero .avatar { width: 52px; height: 52px; font-size: 20px; }
.detail-hero-main { flex: 1; }
.detail-hero-name { font-size: 19px; font-weight: 600; }
.detail-hero-meta { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }

.section-title {
  font-size: 13px; font-weight: 600; color: var(--c-text-2);
  margin: 22px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 3px; height: 13px;
  background: var(--c-gold-500); border-radius: 2px;
}
.section-title .spacer { flex: 1; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--c-text-3); font-size: 12.5px; }
.kv dd { color: var(--c-text); }

/* 时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1.5px; background: var(--c-border);
}
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -24px; top: 3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--c-navy-500);
}
.tl-item.gold .tl-dot { border-color: var(--c-gold-500); }
.tl-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.tl-title { font-size: 13.5px; font-weight: 500; }
.tl-time { font-size: 11.5px; color: var(--c-text-3); font-family: var(--font-num); }
.tl-body { font-size: 12.5px; color: var(--c-text-2); margin-top: 4px; line-height: 1.7; }

/* 工单流转条 */
.flow { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.flow-step { display: flex; align-items: center; gap: 0; flex: 1; }
.flow-node {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: var(--c-bg); color: var(--c-text-3);
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}
.flow-node.done { background: var(--c-navy-700); border-color: var(--c-navy-700); color: #fff; }
.flow-node.cur { background: var(--c-gold-500); border-color: var(--c-gold-500); color: #fff; box-shadow: 0 0 0 4px rgba(184,148,95,.2); }
.flow-line { flex: 1; height: 2px; background: var(--c-border); }
.flow-line.done { background: var(--c-navy-700); }
.flow-lab { font-size: 11px; color: var(--c-text-3); text-align: center; margin-top: 5px; }

/* 工单卡片流 */
.kanban { display: flex; flex-direction: column; gap: 10px; }
.bk-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: all .14s;
  border-left: 3px solid var(--c-navy-500);
}
.bk-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--c-gold-400); }
.bk-card.pending { border-left-color: var(--c-warn); }
.bk-card.assigned { border-left-color: var(--c-info); }
.bk-card.contacted { border-left-color: var(--c-navy-500); }
.bk-card.done { border-left-color: var(--c-down); opacity: .82; }
.bk-card.canceled { border-left-color: var(--c-text-4); opacity: .68; }
.bk-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bk-name { font-size: 14px; font-weight: 600; }
.bk-no { font-size: 11.5px; color: var(--c-text-3); font-family: var(--font-num); }
.bk-topic { font-size: 13px; color: var(--c-text-2); margin-bottom: 8px; }
.bk-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--c-text-3); flex-wrap: wrap; }
.bk-meta svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.bk-fb {
  margin-top: 10px; padding: 9px 11px;
  background: var(--c-gold-100); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--c-gold-700); line-height: 1.6;
}

/* ---------- 内容管理 ---------- */
.content-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--c-border-2);
}
.content-item:last-child { border-bottom: none; }
.ci-thumb {
  width: 76px; height: 56px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-navy-600), var(--c-navy-800));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold-400); flex-shrink: 0;
}
.ci-thumb svg { width: 22px; height: 22px; }
.ci-main { flex: 1; min-width: 0; }
.ci-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.ci-sum { font-size: 12.5px; color: var(--c-text-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--c-text-3); }
.ci-acts { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- 资产/合同 ---------- */
.asset-card {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 16px; background: #fff;
  transition: all .14s;
}
.asset-card:hover { box-shadow: var(--shadow); border-color: var(--c-gold-400); }
.asset-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.asset-name { font-size: 14px; font-weight: 600; flex: 1; line-height: 1.4; }
.asset-amount { font-size: 20px; font-weight: 700; font-family: var(--font-num); color: var(--c-navy-700); letter-spacing: -.4px; }
.asset-amount .unit { font-size: 12px; font-weight: 400; color: var(--c-text-3); font-family: var(--font); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.asset-dates { display: flex; gap: 20px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--c-border); }
.asset-date { font-size: 11.5px; color: var(--c-text-3); }
.asset-date b { display: block; font-size: 13px; color: var(--c-text); font-family: var(--font-num); font-weight: 600; margin-top: 2px; }

/* 到期进度条 */
.expire-bar { height: 5px; background: var(--c-border-2); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.expire-bar i { display: block; height: 100%; border-radius: 3px; transition: width .5s; }
.expire-bar i.ok { background: var(--c-down); }
.expire-bar i.warn { background: var(--c-warn); }
.expire-bar i.danger { background: var(--c-up); }

/* ---------- 员工 ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.staff-card {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 18px; background: #fff; text-align: center;
  transition: all .14s;
}
.staff-card:hover { box-shadow: var(--shadow); }
.staff-card .avatar { width: 52px; height: 52px; font-size: 19px; margin: 0 auto 11px; }
.staff-name { font-size: 15px; font-weight: 600; }
.staff-title { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; }
.staff-acts { display: flex; gap: 7px; justify-content: center; margin-top: 15px; }

/* ---------- 日志 ---------- */
.log-row {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid var(--c-border-2);
  font-size: 13px;
}
.log-row:last-child { border-bottom: none; }
.log-act {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--c-navy-100); color: var(--c-navy-600);
}
.log-act svg { width: 14px; height: 14px; }
.log-act.warn { background: var(--c-warn-bg); color: var(--c-warn); }
.log-act.danger { background: var(--c-up-bg); color: var(--c-up); }
.log-act.gold { background: var(--c-gold-100); color: var(--c-gold-700); }
.log-main { flex: 1; min-width: 0; }
.log-txt { color: var(--c-text); }
.log-txt b { font-weight: 600; }
.log-sub { font-size: 11.5px; color: var(--c-text-3); margin-top: 1px; }
.log-time { font-size: 11.5px; color: var(--c-text-3); font-family: var(--font-num); white-space: nowrap; }

/* ---------- 通知 ---------- */
.noti-panel {
  position: fixed; top: calc(var(--header-h) + 8px); right: 20px;
  width: 360px; max-height: 460px;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 150; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all .18s;
}
.noti-panel.show { opacity: 1; pointer-events: auto; transform: none; }
.noti-head { padding: 14px 16px; border-bottom: 1px solid var(--c-border-2); display: flex; align-items: center; gap: 8px; }
.noti-head h4 { font-size: 13.5px; font-weight: 600; }
.noti-head .spacer { flex: 1; }
.noti-list { overflow-y: auto; flex: 1; }
.noti-item { padding: 13px 16px; border-bottom: 1px solid var(--c-border-2); display: flex; gap: 11px; }
.noti-item.unread { background: var(--c-gold-100); }
.noti-item:last-child { border-bottom: none; }
.noti-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-up); margin-top: 6px; flex-shrink: 0; }
.noti-dot.hidden { visibility: hidden; }
.noti-title { font-size: 13px; font-weight: 500; }
.noti-txt { font-size: 12px; color: var(--c-text-3); margin-top: 2px; line-height: 1.55; }
.noti-time { font-size: 11px; color: var(--c-text-4); margin-top: 5px; font-family: var(--font-num); }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-4 { margin-bottom: 16px; }
.text-3 { color: var(--c-text-3); } .text-2 { color: var(--c-text-2); }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }
.fw-6 { font-weight: 600; }
.num { font-family: var(--font-num); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; } }

/* 响应式：收起侧栏 */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .content { padding: 16px; }
  .login-visual { display: none; }
  .login-form-side { width: 100%; }
}
