
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #2d3436;
  padding: 0;
}
a { color: inherit; text-decoration: none; }

/* ===== 顶栏 ===== */
.topbar { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 14px 40px; position: sticky; top: 0; z-index: 100; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.topbar-logo { height: 36px; width: auto; }
.topbar h1 { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.topbar h1 small { font-size: 12px; font-weight: 400; color: #b2bec3; margin-left: 8px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: 184px; }
.topbar-nav a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; font-size: 13px;
  color: #6b7280; text-decoration: none; border-radius: 8px;
  transition: all .15s; cursor: pointer;
  position: relative;
}
/* 皇冠 - 斜着戴在 "北" 字头顶上（绝对定位） */
.topbar-nav a .nav-icon-crown {
  position: absolute;
  font-size: 20px;
  transform: rotate(-20deg) scale(1.2);
  left: 2px;
  top: -4px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
/* 给带皇冠的链接额外留出顶部空间 */
.topbar-nav a:has(.nav-icon-crown) {
  padding-top: 18px;
  margin-top: -12px;
}
.topbar-nav a:hover { background: #f1f5f9; color: #1f2937; }
.topbar-nav a.active { background: #eef2ff; color: #4f6ef7; font-weight: 600; }

/* ===== 用户菜单 ===== */
.user-menu {
  position: relative; display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 10px; transition: background .15s;
}
.user-menu:hover { background: #f1f5f9; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.user-info-mini { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.user-role { font-size: 11px; color: #6b7280; }
.caret { font-size: 10px; color: #9ca3af; margin-left: 2px; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); padding: 8px 0; z-index: 1000;
}
.dropdown.show { display: block; }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid #eef0f5; }
.dropdown-name { font-weight: 600; color: #1a1a2e; font-size: 14px; }
.dropdown-email { font-size: 12px; color: #6b7280; margin-top: 2px; }
.dropdown-role-tag {
  display: inline-block; margin-top: 6px; font-size: 11px; padding: 2px 8px;
  border-radius: 4px; background: linear-gradient(135deg,#4f6ef7,#7c3aed);
  color: #fff; font-weight: 600; letter-spacing: .5px;
}
.dropdown-items { padding: 6px 0; }
.dropdown-item {
  display: flex; align-items: center; padding: 10px 16px;
  font-size: 13px; color: #1a1a2e; cursor: pointer; transition: background .12s;
}
.dropdown-item:hover { background: #f8faff; }
.dropdown-item.danger { color: #c62828; }
.dropdown-item.danger:hover { background: #fff5f5; }
.dropdown-divider { height: 1px; background: #eef0f5; margin: 6px 0; }

/* ===== 按钮 ===== */
.btn { padding: 7px 14px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; background: #6c5ce7; color: #fff; font-weight: 500; transition: all .2s; }
.btn:hover { background: #5a4bd1; }
.btn-outline { background: transparent; border: 1px solid #dfe6e9; color: #636e72; }
.btn-outline:hover { background: #f8f9fa; border-color: #b2bec3; }
.btn-sm { padding: 4px 7px; font-size: 11px; border: 1px solid #dfe6e9; background: #fff; color: #636e72; border-radius: 6px; }
.btn-sm:hover { background: #f5f5f5; border-color: #b2bec3; }

/* ===== 统计栏 ===== */
.stats { max-width:1280px; margin:10px auto 0; padding:0 24px; display:flex; flex-wrap:wrap; gap:10px; }
.sta { background:#fff; border-radius:10px; padding:12px 18px; box-shadow:0 1px 3px rgba(0,0,0,0.05); text-align:center; min-width:120px; }
.stv { font-size:22px; font-weight:700; line-height:1.2; }
.stl { font-size:11px; color:#999; margin-top:2px; }

/* ===== 顶栏双行：公告 + 北区之星 ===== */
.top-banner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: stretch;
}

/* ===== 公告栏（驾驶舱版，黄调） ===== */
/* 驾驶舱公告栏（黄调渐变） */
/* .annBar is defined in multi-line block below */
.annBar {
  min-width: 0; margin: 0;
  display: flex; flex-direction: column;
  grid-column: 1 / 5;
}
/* 公告面板在驾驶舱内显示黄调渐变 */
.annBar > div {
  background: #fff;
  border: 1px solid #e8e8e8; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column;
}
.annBar .annPanel { display: flex !important; flex-direction: column !important; flex: 1 !important; margin: 0 !important; max-width: none !important; }
.annBar .annPL { display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; flex-wrap: nowrap !important; flex: 1 !important; }
.annBar .annPC { display: flex !important; flex-direction: column !important; justify-content: center !important; flex: 1 !important; min-width: 0 !important; border-radius: 0 !important; padding: 12px 18px !important; background: transparent !important; border-bottom: 1px solid #e5e7eb !important; box-shadow: none !important; }
.annsHead { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; border-bottom: 1px solid #fde68a;  }
.annsTitle { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.annsCount { font-size: 12px; color: #6b7280; }
.annsList { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; gap: 0; }
.annItem {
  border-radius: 0; border-left: 0; background: transparent;
  padding: 8px 18px; margin: 0; border-bottom: 1px solid #e5e7eb;
  font-size: 13px; line-height: 1.5;
}
.annItem:last-child { border-bottom: 0; }
.annItem:hover { background: rgba(255,251,235,0.5); }
.annHead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.annIcon { font-size: 12px; }
.annType { font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.annItem.ann-pub .annType { background: #ede7f6; color: #4527a0; }
.annItem.ann-notice .annType { background: #e0f7fa; color: #00838f; }
.annItem.ann-urgent .annType { background: #fee; color: #c62828; }
.annTitle-text { font-size: 14px; font-weight: 600; color: #1a1a2e; flex: 1; }
.annPin { font-size: 11px; color: #f59e0b; }
.annMeta { font-size: 12px; color: #9ca3af; }
.annDel { background: none; border: none; color: #d1d5db; font-size: 18px; cursor: pointer; padding: 0 6px; line-height: 1; }
.annDel:hover { color: #ef4444; }
.annContent { font-size: 13px; line-height: 1.5; color: #4b5563; padding-left: 22px; }

/* ===== 北区之星（驾驶舱版，黄调） ===== */
.star-section { min-width: 0; margin: 0; display: flex; flex-direction: column; grid-column: 5 / 7; }
#starList { display: flex; flex-direction: column; flex: 1; }
.star-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border: 1px solid #fde68a; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(251,191,36,0.06); overflow: hidden;
  display: flex; flex-direction: column;
  flex: 1; min-height: 300px;
}
.star-header-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 6px; 
  border-bottom: 1px solid #e5e7eb; border-radius: 10px 10px 0 0;
}
.star-header-title { font-size: 14px; font-weight: 600; color: #1f2937; display: block; }
.star-header-edit {
  font-size: 12px; color: #4f6ef7; cursor: pointer;
  padding: 6px 12px; border-radius: 6px; background: #eef2ff;
  font-weight: 500; line-height: 1;
  display: inline-block; box-sizing: border-box;
  border: 1px solid transparent;
  transition: all .15s;
}
.star-header-edit:hover {
  background: #dbeafe; border-color: #93c5fd;
}
.star-header-edit:hover { background: #dbeafe; }
.star-list { display: flex; flex-direction: column; gap: 0; padding: 0; }
.star-entry {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid #e5e7eb;
  flex: 1;
}
.star-entry:last-child { border-bottom: 0; }
.star-avatar-yellow {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.star-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.star-entry-name { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 3px; }
.star-entry-title { font-size: 11px; color: #92400e; font-weight: 400; }
.star-entry-achievement { font-size: 12px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
.star-del-btn { background: none; border: none; font-size: 14px; color: #d1d5db; cursor: pointer; padding: 2px; flex-shrink: 0; }
.star-del-btn:hover { color: #ef4444; }
.star-loader { font-size: 12px; color: #9ca3af; padding: 16px 0; text-align: center; }

/* ===== 驾驶舱主容器 ===== */
#dashboard {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px; box-sizing: border-box;
}

/* ===== KPI 6 卡行 ===== */
.kpi-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-bottom: 10px;
}
.kpi-card { background: #fff; border-radius: 10px; padding: 12px 18px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.kpi-label { font-size: 11px; color: #6b7280; font-weight: 500; margin-bottom: 4px; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi-blue .kpi-value { color: #4f6ef7; }
.kpi-green .kpi-value { color: #059669; }
.kpi-orange .kpi-value { color: #d97706; }
.kpi-red .kpi-value { color: #dc2626; }
.kpi-purple { background: linear-gradient(135deg,#f3e8ff,#e9d5ff); }
.kpi-purple .kpi-value { color: #7c3aed; }
.kpi-nra { background: linear-gradient(135deg,#f0fdf4 0%,#fff 100%); }
.kpi-nra .kpi-label { color: #166534; }
.kpi-nra .kpi-value { color: #16a34a; }

/* ===== 北区动态 + 认收进度行 ===== */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.chart-card-header { font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }

/* ===== 北区动态 feed ===== */
.feed-section { }
.feed-scroll-wrap { position: relative; overflow: hidden; height: 260px; }
.feed-scroll-inner { display: flex; flex-direction: column; will-change: transform; }

.feed-body { display: flex; flex-direction: column; gap: 2px; }
.feed-item {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 5px 8px; border-radius: 6px; font-size: 12px; line-height: 1.6; min-height: 44px;
}
.feed-dot {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; font-size: 10px; margin-top: 3px;
}
.feed-text { flex: 1; color: #374151; }
.feed-time { font-size: 10px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; margin-top: 3px; }

/* ===== 认收进度卡 ===== */
.settle-card { }
.settle-body { margin-top: 10px; }
.settle-numbers { display: flex; justify-content: space-around; margin-bottom: 12px; }
.settle-num-main { text-align: center; }
.settle-num-main .num { display: block; font-size: 28px; font-weight: 700; color: #1f2937; }
.settle-num-main .lbl { display: block; font-size: 11px; color: #9ca3af; font-weight: 400; margin-top: 2px; }
.settle-num-sub { text-align: center; }
.settle-num-sub .num { display: block; font-size: 14px; font-weight: 700; color: #374151; }
.settle-num-sub .lbl { display: block; font-size: 10px; color: #9ca3af; font-weight: 400; }
.settle-bar { height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.settle-bar-fill { height: 100%; background: linear-gradient(90deg,#10b981,#059669); border-radius: 4px; transition: width .4s ease; }

/* ===== 风险项目 + 待办双列 ===== */
.risk-todo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.risk-list { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.risk-inner { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.todo-inner { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.risk-row-header { font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
.risk-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; cursor: pointer;
}
.risk-item:last-child { border-bottom: none; }
.risk-item:hover { background: #f9fafb; }
.risk-name { color: #374151; font-weight: 500; }
.risk-meta { font-size: 10px; color: #9ca3af; }
.todo-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px;
}
.todo-item:last-child { border-bottom: none; }
.todo-body { flex: 1; }
.todo-name { font-size: 10px; color: #9ca3af; white-space: nowrap; }
.todo-text { color: #374151; line-height: 1.5; }
.todo-icon { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }
.todo-done {
  background: none; border: 1px solid #d1d5db; cursor: pointer;
  font-size: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #6b7280; margin: 0 0 0 auto; transition: all .15s; align-self: center;
}
.todo-done:hover { border-color: #10b981; color: #10b981; background: #e0f7e9; }
.todo-completed-tag { display: inline-block; font-size: 11px; color: #10b981; background: #e0f7e9; padding: 1px 6px; border-radius: 3px; margin-top: 3px; }
.todo-done-item { opacity: .6; }
.todo-done-item .todo-text { text-decoration: line-through; }

/* ===== 部门区块（项目看板） ===== */
.ds { max-width:1280px; margin:16px auto 0; padding:0 24px; }
.dh { display:flex; align-items:center; justify-content:space-between; font-size:14px; font-weight:600; color:#2d3436; padding:11px 24px; background:#e3f2fd; border-radius:12px; border:1px solid #90caf9; margin-bottom:-1px; position:relative; z-index:2; }
.dh .dc { font-size:11px; font-weight:500; color:#1976d2; padding:2px 8px; background:#fff; border:1px solid #90caf9; border-radius:10px; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap:14px; padding:14px 0; }
.card { background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow:hidden; transition:box-shadow .2s,transform .2s; position:relative; }
.card:hover { box-shadow:0 6px 20px rgba(0,0,0,0.1); transform:translateY(-2px); }
.ca { position:absolute; top:8px; right:8px; display:flex; gap:6px; opacity:0; transition:opacity .2s; z-index:10; }
body.edit-mode .ca { opacity:1; }
.bxs { width:28px; height:28px; border:none; background:rgba(245,245,245,0.9); border-radius:7px; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; color:#888; transition:all .2s; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.bxs:hover { background:#6c5ce7; color:#fff; transform:scale(1.1); }
.ch { display:flex; align-items:center; gap:12px; padding:16px 24px 12px; }
.caa { width:64px; height:64px; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.caa img, .caa svg { max-width:60px; max-height:60px; object-fit:contain; display:block; }
.af { width:56px; height:56px; border-radius:12px; background:linear-gradient(135deg,#6c5ce7,#a29bfe); color:#fff; font-size:22px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.cht { flex:1; min-width:0; padding-top:2px; }
.ct { font-size:14px; font-weight:600; line-height:1.3; color:#1a1a2e; }
.cc { font-size:11px; color:#999; margin-top:3px; }
.tag { display:inline-block; font-size:10px; font-weight:600; padding:2px 8px; border-radius:10px; white-space:nowrap; flex-shrink:0; }
.tag-blue { background:#eef3ff; color:#4f6ef7; }
.tag-red { background:#ffebee; color:#c62828; }
.tag-orange { background:#fff3e0; color:#e65100; }
.tag-green { background:#e8f5e9; color:#0d8b3e; }
.paa { display:flex; align-items:center; gap:8px; padding:10px 24px 8px; }
.pb { flex:1; height:7px; background:#f0f0f0; border-radius:4px; overflow:hidden; }
.pbf { height:100%; border-radius:4px; transition:width .4s ease; }
.pp { font-size:13px; font-weight:700; color:#2d3436; min-width:36px; text-align:right; }
.mr { display:grid; grid-template-columns:repeat(3,1fr); gap:0; padding:8px 24px 4px; }
.mrb { display:flex; flex-direction:column; align-items:center; gap:1px; border-right:1px solid #f0f0f0; }
.mrb:last-child { border-right:none; }
.mrL { font-size:9px; color:#999; letter-spacing:.5px; }
.mrV { font-size:13px; font-weight:600; color:#2d3436; }
.mrV.ma { font-size:14px; font-weight:700; color:#1a1a2e; }
.mrV.md { font-size:12px; }
.ig { display:grid; grid-template-columns:repeat(5,1fr); gap:0; padding:10px 0; border-top:1px solid #eee; background:#f7f8fa; }
.igb { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:2px 0; border-right:1px solid #eee; }
.igb:last-child { border-right:none; }
.igl { font-size:9px; color:#999; white-space:nowrap; letter-spacing:.5px; }
.igv { font-weight:700; font-size:15px; color:#2d3436; }
.rs { padding:6px 24px 16px; display:flex; flex-direction:column; gap:4px; }
.rl { display:flex; align-items:flex-start; gap:6px; padding:5px 8px; border-radius:6px; font-size:12px; line-height:1.6; background:#fafbfc; }

/* ===== 模态框 ===== */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:999; align-items:center; justify-content:center; }
.modal.show { display:flex; }
.modal-box { background:#fff; border-radius:14px; width:90%; max-width:560px; max-height:90vh; overflow-y:auto; box-shadow:0 10px 40px rgba(0,0,0,0.2); }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #f0f0f0; }
.modal-header h2 { font-size:16px; font-weight:600; }
.modal-close { width:28px; height:28px; border:none; background:#f5f5f5; border-radius:6px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; color:#999; }
.modal-close:hover { background:#6c5ce7; color:#fff; }
.modal-body { padding:14px 18px 18px; }
.modal-footer { padding:0 18px 14px; display:flex; gap:8px; justify-content:flex-end; }
.modal-footer .btn { min-width:70px; }
.detail-box { max-width:780px; max-height:90vh; overflow-y:auto; }
.detail-section { padding:14px 20px; border-bottom:1px solid #f1f3f5; }
.detail-section h3 { font-size:13px; color:#636e72; margin:0 0 12px; font-weight:600; }
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px 20px; }
.detail-grid > div { display:flex; flex-direction:column; gap:2px; }
.detail-grid label { font-size:11px; color:#999; }
.detail-grid span { font-size:13px; color:#2d3436; font-weight:500; }
.customer-level { background:#fff3cd; color:#856404; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.finance-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.finance-card { padding:12px; background:#f8f9fa; border-radius:8px; }
.fc-label { font-size:11px; color:#636e72; font-weight:600; }
.fc-val { font-size:14px; color:#2d3436; font-weight:600; margin:4px 0 6px; }
.fc-bar { height:6px; background:#e9ecef; border-radius:3px; overflow:hidden; }
.fc-bar-inner { height:100%; transition:width .3s; }
.fc-pending { font-size:11px; color:#999; margin-top:4px; }
.members-list { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.member-card { display:flex; gap:10px; padding:8px; background:#f8f9fa; border-radius:8px; align-items:center; }
.mc-avatar { width:36px; height:36px; border-radius:50%; background:#6c5ce7; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; flex-shrink:0; }
.mc-info { flex:1; min-width:0; }
.mc-name { font-size:13px; font-weight:600; color:#2d3436; display:flex; gap:6px; align-items:center; }
.mc-grade { font-size:10px; background:#00b894; color:#fff; padding:1px 6px; border-radius:3px; font-weight:600; }
.mc-meta { font-size:11px; color:#999; margin-top:2px; }
.mc-loyalty { font-size:11px; color:#e17055; margin-top:2px; }
.history-list { display:flex; flex-direction:column; gap:4px; }
.hist-row { display:grid; grid-template-columns:1fr 1fr 2fr; gap:8px; padding:6px 10px; background:#f8f9fa; border-radius:4px; font-size:12px; }

/* ===== 编辑表单 ===== */
.fg { margin-bottom:8px; }
.fg label { display:block; font-size:11px; color:#636e72; margin-bottom:2px; font-weight:500; }
.fg input, .fg select { width:100%; padding:6px 10px; border:1px solid #dfe6e9; border-radius:7px; font-size:13px; transition:border-color .2s; }
.fg input:focus, .fg select:focus { outline:none; border-color:#6c5ce7; }
.fg textarea { width:100%; padding:6px 10px; border:1px solid #dfe6e9; border-radius:7px; font-size:13px; resize:vertical; font-family:inherit; line-height:1.5; transition:border-color .2s; min-height:48px; }
.fg textarea:focus { outline:none; border-color:#6c5ce7; }
.fr { display:flex; gap:8px; }
.fr .fg { flex:1; }

/* ===== 公告表单弹窗 ===== */
.annModal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 999; }
.annModalInner { background: #fff; border-radius: 14px; width: 500px; max-width: 90vw; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.annModalHead { padding: 16px 20px; border-bottom: 1px solid #eef0f5; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 16px; }
.annModalHead button { background: none; border: none; font-size: 22px; color: #9ca3af; cursor: pointer; }
.annForm { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.annForm label { font-size: 13px; font-weight: 600; color: #4b5563; }
.annForm input, .annForm select, .annForm textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; }
.annForm textarea { resize: vertical; min-height: 80px; }
.annForm input:focus, .annForm select:focus, .annForm textarea:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.annChk { display: flex; align-items: center; gap: 6px; font-weight: 400 !important; cursor: pointer; }
.annChk input { width: auto; }
.annFormBtns { display: flex; gap: 10px; margin-top: 8px; }
.annBtnPrimary { flex: 1; padding: 12px; background: #4f6ef7; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.annBtnPrimary:hover { background: #3d5dd8; }
.annBtnSecondary { flex: 1; padding: 12px; background: #f1f5f9; color: #64748b; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.annBtnSecondary:hover { background: #e2e8f0; }

/* ===== 公告面板（非驾驶舱用） ===== */
.annPanel { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 14px 18px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.annPH { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.annPT { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.annPB { font-size: 12px; color: #4f6ef7; cursor: pointer; padding: 4px 10px; border-radius: 6px; background: #eef2ff; font-weight: 500; transition: background .15s; }
.annPB:hover { background: #dbeafe; }
.annPL { display: flex; flex-wrap: wrap; gap: 10px; }
.annPC { flex: 1 1 220px; min-width: 180px; background: #fafbfc; border-radius: 10px; padding: 12px 14px; transition: background .15s; position: relative; }
.annPC:hover { background: #f0f4ff; }
.annPCT { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.annPType { font-size: 11px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.annP-pub .annPType { background: #dbeafe; color: #2563eb; }
.annP-notice .annPType { background: #d1fae5; color: #059669; }
.annP-urgent .annPType { background: #fee2e2; color: #dc2626; }
.annPC .annPCT > span:last-child:not(.annPType) { font-size: 11px; color: #f59e0b; }
.annPCTitle { font-size: 13px; color: #1f2937; font-weight: 500; margin-bottom: 6px; word-break: break-word; flex: none; }
.annPCContent { font-size: 12px; color: #6b7280; line-height: 1.5; }
.annPCM { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 6px; flex: none; }
.annDelBtn { background: none; border: none; font-size: 14px; color: #d1d5db; cursor: pointer; padding: 0 2px; line-height: 1; margin-left: auto; display: none; }
.annPC:hover .annDelBtn { display: inline; }
.annDelBtn:hover { color: #ef4444; }
.annPM { font-size: 12px; color: #9ca3af; text-align: center; padding: 8px; flex: 1 1 100%; }

/* ===== 登录 ===== */
.login-mask { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:9999; }
.login-box { background:#fff; padding:32px 40px; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,0.3); width:380px; }
.login-box h2 { margin:0 0 8px; font-size:18px; color:#1a1a2e; }
.login-tip { color:#999; font-size:12px; margin-bottom:20px; }
.login-box form { display:flex; flex-direction:column; gap:12px; }
.login-box input { padding:10px 14px; border:1px solid #dfe6e9; border-radius:8px; font-size:14px; }
.login-box button { padding:10px; background:#6c5ce7; color:#fff; border:none; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; }
.login-box button:hover { background:#5b4cd6; }
.login-error { color:#e74c3c; font-size:12px; margin-top:8px; }

/* ===== 空状态 / 工具 ===== */
.empty { text-align:center; padding:60px 20px; color:#b2bec3; font-size:14px; }
.toolbar { max-width:1280px; margin:12px auto 0; padding:0 24px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.toolbar input, .toolbar select { padding:7px 10px; border:1px solid #dfe6e9; border-radius:8px; font-size:13px; background:#fff; }
.vbtn { padding:4px 10px; border:1px solid #dfe6e9; background:#fff; border-radius:6px; font-size:12px; cursor:pointer; color:#636e72; }
.vbtn.on { background:#6c5ce7; color:#fff; border-color:#6c5ce7; }
.card canvas { max-width:60px; max-height:60px; }

/* ===== Logo 尺寸 ===== */
.card-xs .caa { width:48px; height:48px; }
.card-xs .caa img { max-width:46px; max-height:46px; }
.card-md .caa { width:60px; height:60px; }
.card-md .caa img { max-width:56px; max-height:56px; }
.card-lg .caa { width:72px; height:72px; }
.card-lg .caa img { max-width:68px; max-height:68px; }
.card-xl .caa { width:80px; height:80px; }
.card-xl .caa img { max-width:76px; max-height:76px; }

/* ===== 响应式 ===== */



/* ===== style.clean.css supplement ===== */

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #2d3436;
  padding: 0;
}
a { color: inherit; text-decoration: none; }

/* ===== 顶栏 ===== */
.topbar { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 14px 40px; position: sticky; top: 0; z-index: 100; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.topbar-logo { height: 36px; width: auto; }
.topbar h1 { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.topbar h1 small { font-size: 12px; font-weight: 400; color: #b2bec3; margin-left: 8px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: 184px; }
.topbar-nav a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; font-size: 13px;
  color: #6b7280; text-decoration: none; border-radius: 8px;
  transition: all .15s; cursor: pointer;
  position: relative;
}
/* 皇冠 - 斜着戴在 "北" 字头顶上（绝对定位） */
.topbar-nav a .nav-icon-crown {
  position: absolute;
  font-size: 20px;
  transform: rotate(-20deg) scale(1.2);
  left: 2px;
  top: -4px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
/* 给带皇冠的链接额外留出顶部空间 */
.topbar-nav a:has(.nav-icon-crown) {
  padding-top: 18px;
  margin-top: -12px;
}
.topbar-nav a:hover { background: #f1f5f9; color: #1f2937; }
.topbar-nav a.active { background: #eef2ff; color: #4f6ef7; font-weight: 600; }

/* ===== 用户菜单 ===== */
.user-menu {
  position: relative; display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 10px; transition: background .15s;
}
.user-menu:hover { background: #f1f5f9; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.user-info-mini { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.user-role { font-size: 11px; color: #6b7280; }
.caret { font-size: 10px; color: #9ca3af; margin-left: 2px; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); padding: 8px 0; z-index: 1000;
}
.dropdown.show { display: block; }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid #eef0f5; }
.dropdown-name { font-weight: 600; color: #1a1a2e; font-size: 14px; }
.dropdown-email { font-size: 12px; color: #6b7280; margin-top: 2px; }
.dropdown-role-tag {
  display: inline-block; margin-top: 6px; font-size: 11px; padding: 2px 8px;
  border-radius: 4px; background: linear-gradient(135deg,#4f6ef7,#7c3aed);
  color: #fff; font-weight: 600; letter-spacing: .5px;
}
.dropdown-items { padding: 6px 0; }
.dropdown-item {
  display: flex; align-items: center; padding: 10px 16px;
  font-size: 13px; color: #1a1a2e; cursor: pointer; transition: background .12s;
}
.dropdown-item:hover { background: #f8faff; }
.dropdown-item.danger { color: #c62828; }
.dropdown-item.danger:hover { background: #fff5f5; }
.dropdown-divider { height: 1px; background: #eef0f5; margin: 6px 0; }

/* ===== 按钮 ===== */
.btn { padding: 7px 14px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; background: #6c5ce7; color: #fff; font-weight: 500; transition: all .2s; }
.btn:hover { background: #5a4bd1; }
.btn-outline { background: transparent; border: 1px solid #dfe6e9; color: #636e72; }
.btn-outline:hover { background: #f8f9fa; border-color: #b2bec3; }
.btn-sm { padding: 4px 7px; font-size: 11px; border: 1px solid #dfe6e9; background: #fff; color: #636e72; border-radius: 6px; }
.btn-sm:hover { background: #f5f5f5; border-color: #b2bec3; }

/* ===== 统计栏 ===== */
.stats { max-width:1280px; margin:10px auto 0; padding:0 24px; display:flex; flex-wrap:wrap; gap:10px; }
.sta { background:#fff; border-radius:10px; padding:12px 18px; box-shadow:0 1px 3px rgba(0,0,0,0.05); text-align:center; min-width:120px; }
.stv { font-size:22px; font-weight:700; line-height:1.2; }
.stl { font-size:11px; color:#999; margin-top:2px; }

/* ===== 顶栏双行：公告 + 北区之星 ===== */
.top-banner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: stretch;
}

/* ===== 公告栏（驾驶舱版，黄调） ===== */
/* 驾驶舱公告栏（黄调渐变） */
/* .annBar is defined in multi-line block below */
.annBar {
  min-width: 0; margin: 0;
  display: flex; flex-direction: column;
  grid-column: 1 / 5;
}
/* 公告面板在驾驶舱内显示黄调渐变 */
.annBar > div {
  background: #fff;
  border: 1px solid #e8e8e8; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column;
}
.annBar .annPanel { display: flex !important; flex-direction: column !important; flex: 1 !important; margin: 0 !important; max-width: none !important; }
.annBar .annPL { display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; flex-wrap: nowrap !important; flex: 1 !important; }
.annBar .annPC { display: flex !important; flex-direction: column !important; justify-content: center !important; flex: 1 !important; min-width: 0 !important; border-radius: 0 !important; padding: 12px 18px !important; background: transparent !important; border-bottom: 1px solid #e5e7eb !important; box-shadow: none !important; }
.annsHead { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; border-bottom: 1px solid #fde68a;  }
.annsTitle { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.annsCount { font-size: 12px; color: #6b7280; }
.annsList { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; gap: 0; }
.annItem {
  border-radius: 0; border-left: 0; background: transparent;
  padding: 8px 18px; margin: 0; border-bottom: 1px solid #e5e7eb;
  font-size: 13px; line-height: 1.5;
}
.annItem:last-child { border-bottom: 0; }
.annItem:hover { background: rgba(255,251,235,0.5); }
.annHead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.annIcon { font-size: 12px; }
.annType { font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.annItem.ann-pub .annType { background: #ede7f6; color: #4527a0; }
.annItem.ann-notice .annType { background: #e0f7fa; color: #00838f; }
.annItem.ann-urgent .annType { background: #fee; color: #c62828; }
.annTitle-text { font-size: 14px; font-weight: 600; color: #1a1a2e; flex: 1; }
.annPin { font-size: 11px; color: #f59e0b; }
.annMeta { font-size: 12px; color: #9ca3af; }
.annDel { background: none; border: none; color: #d1d5db; font-size: 18px; cursor: pointer; padding: 0 6px; line-height: 1; }
.annDel:hover { color: #ef4444; }
.annContent { font-size: 13px; line-height: 1.5; color: #4b5563; padding-left: 22px; }

/* ===== 北区之星（驾驶舱版，黄调） ===== */
.star-section { min-width: 0; margin: 0; display: flex; flex-direction: column; grid-column: 5 / 7; }
#starList { display: flex; flex-direction: column; flex: 1; }
.star-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border: 1px solid #fde68a; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(251,191,36,0.06); overflow: hidden;
  display: flex; flex-direction: column;
  flex: 1; min-height: 300px;
}
.star-header-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 6px; 
  border-bottom: 1px solid #e5e7eb; border-radius: 10px 10px 0 0;
}
.star-header-title { font-size: 14px; font-weight: 600; color: #1f2937; display: block; }
.star-header-edit {
  font-size: 12px; color: #4f6ef7; cursor: pointer;
  padding: 6px 12px; border-radius: 6px; background: #eef2ff;
  font-weight: 500; line-height: 1;
  display: inline-block; box-sizing: border-box;
  border: 1px solid transparent;
  transition: all .15s;
}
.star-header-edit:hover {
  background: #dbeafe; border-color: #93c5fd;
}
.star-header-edit:hover { background: #dbeafe; }
.star-list { display: flex; flex-direction: column; gap: 0; padding: 0; }
.star-entry {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid #e5e7eb;
  flex: 1;
}
.star-entry:last-child { border-bottom: 0; }
.star-avatar-yellow {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.star-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.star-entry-name { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 3px; }
.star-entry-title { font-size: 11px; color: #92400e; font-weight: 400; }
.star-entry-achievement { font-size: 12px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
.star-del-btn { background: none; border: none; font-size: 14px; color: #d1d5db; cursor: pointer; padding: 2px; flex-shrink: 0; }
.star-del-btn:hover { color: #ef4444; }
.star-loader { font-size: 12px; color: #9ca3af; padding: 16px 0; text-align: center; }

/* ===== 驾驶舱主容器 ===== */
#dashboard {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px; box-sizing: border-box;
}

/* ===== KPI 6 卡行 ===== */
.kpi-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-bottom: 10px;
}
.kpi-card { background: #fff; border-radius: 10px; padding: 12px 18px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.kpi-label { font-size: 11px; color: #6b7280; font-weight: 500; margin-bottom: 4px; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi-blue .kpi-value { color: #4f6ef7; }
.kpi-green .kpi-value { color: #059669; }
.kpi-orange .kpi-value { color: #d97706; }
.kpi-red .kpi-value { color: #dc2626; }
.kpi-purple { background: linear-gradient(135deg,#f3e8ff,#e9d5ff); }
.kpi-purple .kpi-value { color: #7c3aed; }
.kpi-nra { background: linear-gradient(135deg,#f0fdf4 0%,#fff 100%); }
.kpi-nra .kpi-label { color: #166534; }
.kpi-nra .kpi-value { color: #16a34a; }

/* ===== 北区动态 + 认收进度行 ===== */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.chart-card-header { font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }

/* ===== 北区动态 feed ===== */
.feed-section { }
.feed-scroll-wrap { position: relative; overflow: hidden; height: 260px; }
.feed-scroll-inner { display: flex; flex-direction: column; will-change: transform; }

.feed-body { display: flex; flex-direction: column; gap: 2px; }
.feed-item {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 5px 8px; border-radius: 6px; font-size: 12px; line-height: 1.6; min-height: 44px;
}
.feed-dot {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; font-size: 10px; margin-top: 3px;
}
.feed-text { flex: 1; color: #374151; }
.feed-time { font-size: 10px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; margin-top: 3px; }

/* ===== 认收进度卡 ===== */
.settle-card { }
.settle-body { margin-top: 10px; }
.settle-numbers { display: flex; justify-content: space-around; margin-bottom: 12px; }
.settle-num-main { text-align: center; }
.settle-num-main .num { display: block; font-size: 28px; font-weight: 700; color: #1f2937; }
.settle-num-main .lbl { display: block; font-size: 11px; color: #9ca3af; font-weight: 400; margin-top: 2px; }
.settle-num-sub { text-align: center; }
.settle-num-sub .num { display: block; font-size: 14px; font-weight: 700; color: #374151; }
.settle-num-sub .lbl { display: block; font-size: 10px; color: #9ca3af; font-weight: 400; }
.settle-bar { height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.settle-bar-fill { height: 100%; background: linear-gradient(90deg,#10b981,#059669); border-radius: 4px; transition: width .4s ease; }

/* ===== 风险项目 + 待办双列 ===== */
.risk-todo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.risk-list { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.risk-inner { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.todo-inner { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.risk-row-header { font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
.risk-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; cursor: pointer;
}
.risk-item:last-child { border-bottom: none; }
.risk-item:hover { background: #f9fafb; }
.risk-name { color: #374151; font-weight: 500; }
.risk-meta { font-size: 10px; color: #9ca3af; }
.todo-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px;
}
.todo-item:last-child { border-bottom: none; }
.todo-body { flex: 1; }
.todo-name { font-size: 10px; color: #9ca3af; white-space: nowrap; }
.todo-text { color: #374151; line-height: 1.5; }
.todo-icon { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }
.todo-done {
  background: none; border: 1px solid #d1d5db; cursor: pointer;
  font-size: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #6b7280; margin: 0 0 0 auto; transition: all .15s; align-self: center;
}
.todo-done:hover { border-color: #10b981; color: #10b981; background: #e0f7e9; }
.todo-completed-tag { display: inline-block; font-size: 11px; color: #10b981; background: #e0f7e9; padding: 1px 6px; border-radius: 3px; margin-top: 3px; }
.todo-done-item { opacity: .6; }
.todo-done-item .todo-text { text-decoration: line-through; }

/* ===== 部门区块（项目看板） ===== */
.ds { max-width:1280px; margin:16px auto 0; padding:0 24px; }
.dh { display:flex; align-items:center; justify-content:space-between; font-size:14px; font-weight:600; color:#2d3436; padding:11px 24px; background:#e3f2fd; border-radius:12px; border:1px solid #90caf9; margin-bottom:-1px; position:relative; z-index:2; }
.dh .dc { font-size:11px; font-weight:500; color:#1976d2; padding:2px 8px; background:#fff; border:1px solid #90caf9; border-radius:10px; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap:14px; padding:14px 0; }
.card { background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow:hidden; transition:box-shadow .2s,transform .2s; position:relative; }
.card:hover { box-shadow:0 6px 20px rgba(0,0,0,0.1); transform:translateY(-2px); }
.ca { position:absolute; top:8px; right:8px; display:flex; gap:6px; opacity:0; transition:opacity .2s; z-index:10; }
body.edit-mode .ca { opacity:1; }
.bxs { width:28px; height:28px; border:none; background:rgba(245,245,245,0.9); border-radius:7px; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; color:#888; transition:all .2s; box-shadow:0 1px 3px rgba(0,0,0,0.08); }
.bxs:hover { background:#6c5ce7; color:#fff; transform:scale(1.1); }
.ch { display:flex; align-items:center; gap:12px; padding:16px 24px 12px; }
.caa { width:64px; height:64px; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.caa img, .caa svg { max-width:60px; max-height:60px; object-fit:contain; display:block; }
.af { width:56px; height:56px; border-radius:12px; background:linear-gradient(135deg,#6c5ce7,#a29bfe); color:#fff; font-size:22px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.cht { flex:1; min-width:0; padding-top:2px; }
.ct { font-size:14px; font-weight:600; line-height:1.3; color:#1a1a2e; }
.cc { font-size:11px; color:#999; margin-top:3px; }
.tag { display:inline-block; font-size:10px; font-weight:600; padding:2px 8px; border-radius:10px; white-space:nowrap; flex-shrink:0; }
.tag-blue { background:#eef3ff; color:#4f6ef7; }
.tag-red { background:#ffebee; color:#c62828; }
.tag-orange { background:#fff3e0; color:#e65100; }
.tag-green { background:#e8f5e9; color:#0d8b3e; }
.paa { display:flex; align-items:center; gap:8px; padding:10px 24px 8px; }
.pb { flex:1; height:7px; background:#f0f0f0; border-radius:4px; overflow:hidden; }
.pbf { height:100%; border-radius:4px; transition:width .4s ease; }
.pp { font-size:13px; font-weight:700; color:#2d3436; min-width:36px; text-align:right; }
.mr { display:grid; grid-template-columns:repeat(3,1fr); gap:0; padding:8px 24px 4px; }
.mrb { display:flex; flex-direction:column; align-items:center; gap:1px; border-right:1px solid #f0f0f0; }
.mrb:last-child { border-right:none; }
.mrL { font-size:9px; color:#999; letter-spacing:.5px; }
.mrV { font-size:13px; font-weight:600; color:#2d3436; }
.mrV.ma { font-size:14px; font-weight:700; color:#1a1a2e; }
.mrV.md { font-size:12px; }
.ig { display:grid; grid-template-columns:repeat(5,1fr); gap:0; padding:10px 0; border-top:1px solid #eee; background:#f7f8fa; }
.igb { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:2px 0; border-right:1px solid #eee; }
.igb:last-child { border-right:none; }
.igl { font-size:9px; color:#999; white-space:nowrap; letter-spacing:.5px; }
.igv { font-weight:700; font-size:15px; color:#2d3436; }
.rs { padding:6px 24px 16px; display:flex; flex-direction:column; gap:4px; }
.rl { display:flex; align-items:flex-start; gap:6px; padding:5px 8px; border-radius:6px; font-size:12px; line-height:1.6; background:#fafbfc; }

/* ===== 模态框 ===== */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:999; align-items:center; justify-content:center; }
.modal.show { display:flex; }
.modal-box { background:#fff; border-radius:14px; width:90%; max-width:560px; max-height:90vh; overflow-y:auto; box-shadow:0 10px 40px rgba(0,0,0,0.2); }
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 8px 10px; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #fff; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #f0f0f0; }
.modal-header h2 { font-size:16px; font-weight:600; }
.modal-close { width:28px; height:28px; border:none; background:#f5f5f5; border-radius:6px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; color:#999; }
.modal-close:hover { background:#6c5ce7; color:#fff; }
.modal-body { padding:14px 18px 18px; }
.modal-footer { padding:0 18px 14px; display:flex; gap:8px; justify-content:flex-end; }

/* ===== 我的账号页面 ===== */
.account-page { max-width: 960px; margin: 0 auto; padding: 18px 24px; }
.account-header { display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-bottom: 16px; }
.account-avatar-large { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #e8e8e8; background: #f5f6fa; flex-shrink: 0; }
.account-name { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.account-email { font-size: 13px; color: #6b7280; }
.account-role-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-top: 8px; }
.account-section { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-bottom: 16px; }
.account-section-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8; }
.account-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-form .full { grid-column: 1 / -1; }
.account-form label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; font-weight: 500; }
.account-form input, .account-form select, .account-form textarea { width: 100%; padding: 9px 11px; border: 1px solid #e8e8e8; border-radius: 8px; font-size: 13px; box-sizing: border-box; background: #fff; transition: all .15s; }
.account-form input:focus, .account-form select:focus, .account-form textarea:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.account-form input[disabled] { background: #f5f6fa; color: #9ca3af; cursor: not-allowed; }
/* ===== 兼职项目卡片 grid ===== */
.extra-projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 280px; overflow-y: auto; padding: 4px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fafbfc; }
.extra-proj-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e8e8e8; border-radius: 6px; background: #fff; cursor: pointer; transition: all .15s; }
.extra-proj-card:hover { border-color: #4f6ef7; background: #f0f4ff; }
.extra-proj-card input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.extra-proj-card:has(input:checked) { border-color: #4f6ef7; background: #eef2ff; }
.extra-proj-name { font-size: 13px; color: #1a1a2e; line-height: 1.4; word-break: break-all; }
.extra-empty { padding: 30px; color: #9ca3af; font-size: 13px; text-align: center; grid-column: 1 / -1; }

.account-form .check-row { display: flex; align-items: center; gap: 8px; }
.account-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e8e8e8; }
.account-msg { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 8px 10px; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #fff; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.modal-footer .btn { min-width:70px; }
.detail-box { max-width:780px; max-height:90vh; overflow-y:auto; }
.detail-section { padding:14px 20px; border-bottom:1px solid #f1f3f5; }
.detail-section h3 { font-size:13px; color:#636e72; margin:0 0 12px; font-weight:600; }
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px 20px; }
.detail-grid > div { display:flex; flex-direction:column; gap:2px; }
.detail-grid label { font-size:11px; color:#999; }
.detail-grid span { font-size:13px; color:#2d3436; font-weight:500; }
.customer-level { background:#fff3cd; color:#856404; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.finance-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.finance-card { padding:12px; background:#f8f9fa; border-radius:8px; }
.fc-label { font-size:11px; color:#636e72; font-weight:600; }
.fc-val { font-size:14px; color:#2d3436; font-weight:600; margin:4px 0 6px; }
.fc-bar { height:6px; background:#e9ecef; border-radius:3px; overflow:hidden; }
.fc-bar-inner { height:100%; transition:width .3s; }
.fc-pending { font-size:11px; color:#999; margin-top:4px; }
.members-list { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.member-card { display:flex; gap:10px; padding:8px; background:#f8f9fa; border-radius:8px; align-items:center; }
.mc-avatar { width:36px; height:36px; border-radius:50%; background:#6c5ce7; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; flex-shrink:0; }
.mc-info { flex:1; min-width:0; }
.mc-name { font-size:13px; font-weight:600; color:#2d3436; display:flex; gap:6px; align-items:center; }
.mc-grade { font-size:10px; background:#00b894; color:#fff; padding:1px 6px; border-radius:3px; font-weight:600; }
.mc-meta { font-size:11px; color:#999; margin-top:2px; }
.mc-loyalty { font-size:11px; color:#e17055; margin-top:2px; }
.history-list { display:flex; flex-direction:column; gap:4px; }
.hist-row { display:grid; grid-template-columns:1fr 1fr 2fr; gap:8px; padding:6px 10px; background:#f8f9fa; border-radius:4px; font-size:12px; }

/* ===== 编辑表单 ===== */
.fg { margin-bottom:8px; }
.fg label { display:block; font-size:11px; color:#636e72; margin-bottom:2px; font-weight:500; }
.fg input, .fg select { width:100%; padding:6px 10px; border:1px solid #dfe6e9; border-radius:7px; font-size:13px; transition:border-color .2s; }
.fg input:focus, .fg select:focus { outline:none; border-color:#6c5ce7; }
.fg textarea { width:100%; padding:6px 10px; border:1px solid #dfe6e9; border-radius:7px; font-size:13px; resize:vertical; font-family:inherit; line-height:1.5; transition:border-color .2s; min-height:48px; }
.fg textarea:focus { outline:none; border-color:#6c5ce7; }
.fr { display:flex; gap:8px; }
.fr .fg { flex:1; }

/* ===== 公告表单弹窗 ===== */
.annModal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 999; }
.annModalInner { background: #fff; border-radius: 14px; width: 500px; max-width: 90vw; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.annModalHead { padding: 16px 20px; border-bottom: 1px solid #eef0f5; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 16px; }
.annModalHead button { background: none; border: none; font-size: 22px; color: #9ca3af; cursor: pointer; }
.annForm { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.annForm label { font-size: 13px; font-weight: 600; color: #4b5563; }
.annForm input, .annForm select, .annForm textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; }
.annForm textarea { resize: vertical; min-height: 80px; }
.annForm input:focus, .annForm select:focus, .annForm textarea:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.annChk { display: flex; align-items: center; gap: 6px; font-weight: 400 !important; cursor: pointer; }
.annChk input { width: auto; }
.annFormBtns { display: flex; gap: 10px; margin-top: 8px; }
.annBtnPrimary { flex: 1; padding: 12px; background: #4f6ef7; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.annBtnPrimary:hover { background: #3d5dd8; }
.annBtnSecondary { flex: 1; padding: 12px; background: #f1f5f9; color: #64748b; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.annBtnSecondary:hover { background: #e2e8f0; }

/* ===== 公告面板（非驾驶舱用） ===== */
.annPanel { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 14px 18px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.annPH { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.annPT { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.annPB { font-size: 12px; color: #4f6ef7; cursor: pointer; padding: 4px 10px; border-radius: 6px; background: #eef2ff; font-weight: 500; transition: background .15s; }
.annPB:hover { background: #dbeafe; }
.annPL { display: flex; flex-wrap: wrap; gap: 10px; }
.annPC { flex: 1 1 220px; min-width: 180px; background: #fafbfc; border-radius: 10px; padding: 12px 14px; transition: background .15s; position: relative; }
.annPC:hover { background: #f0f4ff; }
.annPCT { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.annPType { font-size: 11px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.annP-pub .annPType { background: #dbeafe; color: #2563eb; }
.annP-notice .annPType { background: #d1fae5; color: #059669; }
.annP-urgent .annPType { background: #fee2e2; color: #dc2626; }
.annPC .annPCT > span:last-child:not(.annPType) { font-size: 11px; color: #f59e0b; }
.annPCTitle { font-size: 13px; color: #1f2937; font-weight: 500; margin-bottom: 6px; word-break: break-word; flex: none; }
.annPCContent { font-size: 12px; color: #6b7280; line-height: 1.5; }
.annPCM { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 6px; flex: none; }
.annDelBtn { background: none; border: none; font-size: 14px; color: #d1d5db; cursor: pointer; padding: 0 2px; line-height: 1; margin-left: auto; display: none; }
.annPC:hover .annDelBtn { display: inline; }
.annDelBtn:hover { color: #ef4444; }
.annPM { font-size: 12px; color: #9ca3af; text-align: center; padding: 8px; flex: 1 1 100%; }

/* ===== 登录 ===== */
.login-mask { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:9999; }
.login-box { background:#fff; padding:32px 40px; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,0.3); width:380px; }
.login-box h2 { margin:0 0 8px; font-size:18px; color:#1a1a2e; }
.login-tip { color:#999; font-size:12px; margin-bottom:20px; }
.login-box form { display:flex; flex-direction:column; gap:12px; }
.login-box input { padding:10px 14px; border:1px solid #dfe6e9; border-radius:8px; font-size:14px; }
.login-box button { padding:10px; background:#6c5ce7; color:#fff; border:none; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; }
.login-box button:hover { background:#5b4cd6; }
.login-error { color:#e74c3c; font-size:12px; margin-top:8px; }

/* ===== 空状态 / 工具 ===== */
.empty { text-align:center; padding:60px 20px; color:#b2bec3; font-size:14px; }
.toolbar { max-width:1280px; margin:12px auto 0; padding:0 24px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.toolbar input, .toolbar select { padding:7px 10px; border:1px solid #dfe6e9; border-radius:8px; font-size:13px; background:#fff; }
.vbtn { padding:4px 10px; border:1px solid #dfe6e9; background:#fff; border-radius:6px; font-size:12px; cursor:pointer; color:#636e72; }
.vbtn.on { background:#6c5ce7; color:#fff; border-color:#6c5ce7; }
.card canvas { max-width:60px; max-height:60px; }

/* ===== Logo 尺寸 ===== */
.card-xs .caa { width:48px; height:48px; }
.card-xs .caa img { max-width:46px; max-height:46px; }
.card-md .caa { width:60px; height:60px; }
.card-md .caa img { max-width:56px; max-height:56px; }
.card-lg .caa { width:72px; height:72px; }
.card-lg .caa img { max-width:68px; max-height:68px; }
.card-xl .caa { width:80px; height:80px; }
.card-xl .caa img { max-width:76px; max-height:76px; }

/* ===== 响应式 ===== */



/* === 人员管理卡片 === */
.personnel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; padding: 8px 0;
}
.personnel-card {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.personnel-card-top {
  display: flex; align-items: center; padding: 16px; gap: 12px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.personnel-card-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #3b82f6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.personnel-card-body { flex: 1; min-width: 0; }
.personnel-card-name {
  font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 2px;
}
.personnel-card-sub { font-size: 12px; color: #6b7280; }
.personnel-card-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 16px;
}
.personnel-card-info-item {
  display: flex; flex-direction: column;
}
.personnel-card-info-label { font-size: 11px; color: #9ca3af; margin-bottom: 1px; }
.personnel-card-info-value { font-size: 13px; color: #374151; font-weight: 500; }
/* 标签 */
.personnel-tag {
  display: inline-block; font-size: 11px; padding: 0 6px;
  border-radius: 4px; background: #f3f4f6; color: #6b7280; margin: 0 2px;
}
.personnel-tag-proj { background: #dbeafe; color: #1d4ed8; }
.personnel-tag-role { background: #fef3c7; color: #b45309; }
.personnel-tag-gender { background: #fce4ec; color: #d81b60; }
.personnel-tag-age { background: #e0f2fe; color: #0369a1; }
.personnel-tag-grade { background: #f3e8ff; color: #7c3aed; }
.personnel-tag-hc { background: #dcfce7; color: #16a34a; }
.personnel-tag-salary { background: #fef2f2; color: #dc2626; }
.personnel-card-extra { padding: 8px 16px; }
.personnel-card-edit { text-align: center; padding: 8px; border-top: 1px solid #f3f4f6; }

/* 人才市场 */
.talent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.talent-card {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.talent-avatar {
  width: 40px; height: 40px; border-radius: 8px;
  background: #6366f1; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.talent-body { }
.talent-name { font-size: 15px; font-weight: 600; color: #1f2937; }
.talent-role { font-size: 12px; color: #6b7280; margin: 2px 0 4px; }
.talent-proj { font-size: 12px; color: #3b82f6; }
.talent-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.talent-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.talent-count { font-size: 13px; color: #6b7280; }

/* 快速导航 */
.quicknav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.quicknav-card {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 20px; cursor: pointer; transition: all 0.2s;
}
.quicknav-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.quicknav-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.quicknav-title { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.quicknav-desc { font-size: 12px; color: #9ca3af; line-height: 1.5; }

/* 性格标签 */
.pt-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.personality-tag {
  display: inline-block; padding: 3px 10px; font-size: 12px;
  border-radius: 6px; background: #f3f4f6; color: #374151;
  cursor: pointer; border: 1px solid #e5e7eb; transition: all 0.2s;
  user-select: none;
}
.personality-tag.active { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; }

/* 我的账号 */
.account-header { margin-bottom: 16px; }
.account-avatar-large {
  width: 64px; height: 64px; border-radius: 50%;
  background: #3b82f6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.account-name { font-size: 18px; font-weight: 600; color: #1f2937; }
.account-email { font-size: 13px; color: #6b7280; }
.account-role-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 6px; background: #fef3c7; color: #b45309;
}
.account-section { margin-bottom: 20px; }
.account-section-title { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.account-value { font-size: 14px; color: #4b5563; }
.account-form { max-width: 400px; }
.account-actions { display: flex; gap: 8px; margin-top: 16px; }

/* 待办列表 */
.todo-list { max-height: 400px; overflow-y: auto; }

/* 额外项目 */
.extra-projects-grid { display: flex; flex-direction: column; gap: 8px; }
.extra-proj-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f9fafb; border-radius: 8px;
}
.extra-proj-name { font-size: 13px; font-weight: 500; color: #374151; }
.extra-empty { padding: 20px 0; color: #9ca3af; text-align: center; }

/* 杂项 */
.check-row { display: flex; align-items: center; gap: 8px; }
.modal-input { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.form-row { margin-bottom: 16px; }
.rl-lbl { font-size: 12px; color: #6b7280; margin-bottom: 4px; display: block; }
.rl-txt { font-size: 14px; color: #1f2937; }

/* ===== Mobile responsive (≤768px) ===== */


/* ===== Mobile 小屏 (≤480px) ===== */


/* ===== Mobile responsive v2 ===== */




/* ===== Mobile responsive v3 - Header优化 ===== */




/* ===== KPI 6 卡行修复（让 #kpiRow 也支持 grid 6 列） ===== */
#kpiRow {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-bottom: 10px;
}
@media (max-width: 1280px) {
  #kpiRow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  #kpiRow { grid-template-columns: repeat(2, 1fr); }
}
#kpiRow .kpi-label { font-size: 11px; color: #6b7280; font-weight: 500; margin-bottom: 4px; }
#kpiRow .kpi-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
#kpiRow .kpi-blue .kpi-value { color: #4f6ef7; }
#kpiRow .kpi-green .kpi-value { color: #059669; }
#kpiRow .kpi-orange .kpi-value { color: #d97706; }
#kpiRow .kpi-red .kpi-value { color: #dc2626; }
#kpiRow .kpi-purple { background: linear-gradient(135deg,#f3e8ff,#e9d5ff); }
#kpiRow .kpi-purple .kpi-value { color: #7c3aed; }
#kpiRow .kpi-nra { background: linear-gradient(135deg,#f0fdf4 0%,#fff 100%); }
#kpiRow .kpi-nra .kpi-label { color: #166534; }
#kpiRow .kpi-nra .kpi-value { color: #16a34a; }

/* ===== 风险 + 待办 两栏 ===== */
#riskRow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.risk-row-header { padding: 12px 16px; font-size: 13px; font-weight: 600; }
.risk-list, .todo-list { padding: 0 8px; background: none; border-radius: 0; box-shadow: none; }
.risk-item {
  padding: 10px 12px; margin-bottom: 4px;
  background: #f9fafb;
  border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.risk-item:hover { background: #f3f4f6; }
.risk-name { font-weight: 600; color: #ea580c; }
.risk-meta { font-size: 11px; color: #6b7280; margin-top: 2px; }
.todo-item {
  padding: 10px 12px; margin-bottom: 4px;
  background: #f9fafb; border-radius: 6px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.todo-item:hover { background: #f3f4f6; }
.todo-icon { font-size: 16px; }
.todo-name { font-size: 13px; color: #374151; }
.todo-meta { font-size: 11px; color: #9ca3af; margin-left: auto; }

/* ===== 公告 ===== */
.annBar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; margin: 8px 0;
  background: linear-gradient(90deg, #eff6ff, #f0f9ff);
  border-left: 3px solid #3b82f6; border-radius: 6px;
}
.annBar .annIcon { font-size: 16px; }
.annBar .annText { flex: 1; font-size: 13px; color: #1e40af; }
.annBar .annTime { font-size: 11px; color: #6b7280; }

/* ===== 北区之星 ===== */
.star-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.star-entry { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; }
/* .star-entry:hover { background: #f9fafb; } - 取消 hover 特效 */
.star-entry-name { font-weight: 600; color: #1f2937; }
.star-entry-title { font-size: 12px; color: #b45309; }
.star-entry-achievement { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ===== 通用 dashboard container ===== */
#dashboard { max-width: 1280px; margin: 0 auto; padding: 16px 24px; }

/* ===== hidden utility ===== */
.hidden { display: none !important; }

/* ===== 用户下拉菜单 ===== */
.user-info { position: relative; cursor: pointer; }
.user-dropdown {
  position: absolute; top: 100%; right: 0;
  margin-top: 8px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 200px;
  display: none;
  z-index: 9998;
  overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown-header {
  padding: 12px 16px; background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-bottom: 1px solid #e5e7eb;
}
.user-dropdown-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.user-dropdown-email { font-size: 12px; color: #6b7280; margin-top: 2px; }
.user-dropdown-role {
  display: inline-block; font-size: 11px; padding: 1px 8px;
  border-radius: 4px; background: #fef3c7; color: #b45309;
  margin-top: 4px;
}
.user-dropdown-menu a {
  display: block; padding: 10px 16px;
  font-size: 13px; color: #374151;
  text-decoration: none; border-bottom: 1px solid #f3f4f6;
}
.user-dropdown-menu a:last-child { border-bottom: none; }
.user-dropdown-menu a:hover { background: #f9fafb; }

/* ===== 补充缺失 class ===== */
.user-dropdown-menu { display: flex; flex-direction: column; }
#kpiRow .kpi-blue .kpi-value { color: #4f6ef7; }
#kpiRow .kpi-green .kpi-value { color: #059669; }
#kpiRow .kpi-orange .kpi-value { color: #d97706; }
#kpiRow .kpi-red .kpi-value { color: #dc2626; }
.feed-list { padding: 8px 12px; min-height: 100px; max-height: 280px; overflow: hidden; position: relative; }

/* ===== 桌面端调整：公告+北区之星顶部双列 ===== */
@media (min-width: 900px) {
  /* 公告区域和北区之星在 dashboard 顶部左右排列 */
  /* 公告占左侧，北区之星占右侧 */
}

/* ===== 公告 + 北区之星 顶部双列（对齐 KPI 6 列） ===== */
.ann-star-wrap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 1280px;
  margin: 16px auto 8px;
  padding: 0 24px;
  box-sizing: border-box;
}
.ann-star-wrap #annArea {
  grid-column: 1 / 5;
  min-width: 0;
}
.ann-star-wrap #starArea {
  grid-column: 5 / 7;
  min-width: 0;
}

/* KPI 6 列强制一行（不换行） */
#kpiRow {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

/* chart-card 高度自适应 */
.chart-card { min-height: 240px; display: flex; flex-direction: column; }
.chart-card-header { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; font-weight: 600; }
.feed-list { flex: 1; overflow: hidden; position: relative; }

/* riskRow 用和 dynamicRow 一样的 1fr 1fr grid */
#riskRow {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

/* 待办右侧 ✓ 按钮 */
.todo-done {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.todo-done:hover { border-color: #10b981; color: #10b981; }

/* ===== 2026-07-24 22:27 Daddy 要求的样式修复 ===== */

/* 1. 北区之星 - 已由 ann-star-wrap 6 列 grid 控制位置 */

/* 2. 右上角用户信息：头像右侧2行 */
.user-info {
  position: relative; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.user-details {
  display: flex; flex-direction: column;
  line-height: 1.3;
}
#userName {
  font-size: 14px; font-weight: 600; color: #1f2937;
}
#userRole {
  font-size: 11px; color: #6b7280;
}

/* 3. 风险事项 + 待办事项 - 风险项目占左列(等宽北区动态), 待办占右列(等宽认收进度) */
#riskRow {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}
#riskRow > * {
  min-width: 0;
}

/* 4. riskRow 在 dynamicRow 下面 — 已在 index.html 调换顺序 */

/* 5. 搜索框已从 index.html 删除 */

/* 6. 公告栏 + 北区之星 固定 290px */
.ann-star-wrap #annArea {
  min-width: 0;
  height: 290px;
  overflow: hidden;
}
.ann-star-wrap #starArea {
  min-width: 0;
  height: 290px;
  display: flex;
  flex-direction: column;
}
/* star-card 内部高度占满 */
#starList .star-card {
  padding: 0 14px;
  height: 100%; min-height: unset !important; display: flex; flex-direction: column;
  flex: 1;
}
#starList .star-card .star-header-wrapper {
  flex-shrink: 0;
}
#starList .star-card .star-entry {
  padding: 12px 0;
  flex-shrink: 0;
}
/* 公告面板内部填满 */
.ann-star-wrap #annArea .annPanel {
  height: 100%; display: flex; flex-direction: column;
}
/* 公告列表填满、公告项上下排列 */
.ann-star-wrap #annArea .annPL {
  display: flex; flex-direction: column;
  gap: 0; flex: 1;
}
.ann-star-wrap #annArea .annPC {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* 7. 公告栏里显示两条消息，上下排列 */
.ann-star-wrap #annArea .annPC {
  /* 每条占一行 */
  border-radius: 0;
  padding: 12px 18px;
  background: transparent;
  border-bottom: 1px solid #e5e7eb;
}
.ann-star-wrap #annArea .annPC:last-child {
  border-bottom: none;
}
.ann-star-wrap #annArea .annPC .annPCT {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.ann-star-wrap #annArea .annPC .annPCTitle {
  font-size: 13px; font-weight: 500; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ann-star-wrap #annArea .annPC .annPCContent {
  font-size: 12px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ann-star-wrap #annArea .annPC .annPCM {
  font-size: 11px; color: #9ca3af;
}

/* 公告面板的 PH 头部 + 分割线 - 用 flex 让标题和按钮对齐 */
.ann-star-wrap #annArea .annPH {
  flex-shrink: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 6px;
  font-size: 14px; line-height: 14px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 14px;
}

/* 北区之星：浅黄渐变（和公告同款样式，四周圆角可见） */
#starList .star-card {
  padding: 14px 14px 0;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}
#starList .star-header-wrapper {
  background: transparent;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 14px 8px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 6px 0;
  font-size: 14px; line-height: 14px;
  min-height: 14px;
}

/* 公告容器白底+边框 */
.ann-star-wrap #annArea .annPanel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 18px;
}

/* 公告 header */
.ann-star-wrap #annArea .annPH {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ann-star-wrap #annArea .annPT {
  font-size: 14px; font-weight: 600; color: #1f2937;
  display: block;
}
.ann-star-wrap #annArea .annPB {
  font-size: 12px; color: #4f6ef7; cursor: pointer;
  padding: 6px 12px; border-radius: 6px; background: #eef2ff;
  font-weight: 500; line-height: 1; 
  display: inline-block; box-sizing: border-box;
  border: 1px solid transparent;
  transition: all .15s;
}
.ann-star-wrap #annArea .annPB:hover {
  background: #dbeafe; border-color: #93c5fd;
}

/* A - 实心圆角（主操作）：渐变背景 + 白字 - 适用于所有按钮 */
.annPB.btn-primary, .star-header-edit.btn-primary {
  background: linear-gradient(135deg, #4f6ef7, #6366f1) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 1px 3px rgba(79,110,247,0.3);
}
.annPB.btn-primary:hover, .star-header-edit.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(79,110,247,0.4);
}

/* B - 描边风（次要操作 "查看全部"）：透明 + 蓝边 + 蓝字 */
.ann-star-wrap #annArea .annPB.btn-outline {
  background: transparent;
  color: #4f6ef7;
  border: 1px solid #4f6ef7;
}
.ann-star-wrap #annArea .annPB.btn-outline:hover {
  background: #eef2ff;
  border-color: #4338ca;
  color: #4338ca;
}

/* C - 浅灰风（辅助操作 "编辑"）：白底 + 灰边 + 灰字 */
.annPB--ghost, .star-header-edit.star-edit-ghost {
  background: #f9fafb;
  color: #6b7280;
  border-color: #e5e7eb;
}
.annPB--ghost:hover, .star-header-edit.star-edit-ghost:hover {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
}

/* 公告条目 - 每条占一行 */
.ann-star-wrap #annArea .annPC {
  padding: 10px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.ann-star-wrap #annArea .annPC:last-child {
  border-bottom: none;
}                                                                                        
.ann-star-wrap #annArea .annPC .annPCTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ann-star-wrap #annArea .annPC .annPCContent {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#starList .star-card .star-entry {
  padding: 12px 0; border-radius: 0 !important; }

/* 最后一项底部留 12px 显示圆角（等于 border-radius 值） */
#starList .star-card .star-entry:last-child {
  margin-bottom: 12px;
}


/* 北区之星标题 → 公告同款风格 */
#starList .star-header-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
}

/* 北区之星头像放大 */
#starList .star-entry .star-avatar-yellow {
  width: 48px !important;
  height: 48px !important;
  font-size: 18px !important;
}

/* 人才市场容器 */
.talent-container {
  padding: 14px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.talent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.talent-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}
.talent-count {
  font-size: 13px;
  color: #6b7280;
}
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.talent-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all .15s;
}
.talent-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* 人员管理页容器 */
#personnelPage {
  padding: 14px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.personnel-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.personnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.personnel-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.personnel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 我的账号页容器 */
#accountPage {
  padding: 14px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== 人才市场 - 完整版样式 ===== */
.talent-container { padding: 14px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }

.talent-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 12px; padding: 14px 18px;
  margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.talent-title-area { display: flex; align-items: center; gap: 12px; }
.talent-title { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.talent-count {
  font-size: 13px; color: #6b7280; background: #f3f4f6;
  padding: 3px 10px; border-radius: 12px;
}
.talent-toolbar { display: flex; gap: 6px; }
.talent-view-toggle {
  padding: 6px 14px; border: 1px solid #e5e7eb; background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 13px;
  color: #6b7280; transition: all .15s;
}
.talent-view-toggle:hover { background: #f9fafb; color: #1f2937; }
.talent-view-toggle.active {
  background: #4f6ef7; color: #fff; border-color: #4f6ef7;
}

.talent-filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
  gap: 10px; align-items: end;
  background: #fff; border-radius: 12px; padding: 14px 18px;
  margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.talent-filter-group { display: flex; flex-direction: column; gap: 4px; }
.talent-filter-group label {
  font-size: 12px; color: #6b7280; font-weight: 500;
}
.talent-filter-group input,
.talent-filter-group select {
  padding: 6px 10px; border: 1px solid #e5e7eb;
  border-radius: 6px; font-size: 13px; background: #fff;
  outline: none; transition: border-color .15s;
}
.talent-filter-group input:focus,
.talent-filter-group select:focus {
  border-color: #4f6ef7;
}
.talent-reset {
  padding: 7px 14px; background: #f3f4f6; color: #4b5563;
  border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
  white-space: nowrap;
}
.talent-reset:hover { background: #e5e7eb; }

.talent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.talent-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer; transition: all .2s;
}
.talent-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px);
  border-color: #4f6ef7;
}
.talent-card-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid #f3f4f6;
  margin-bottom: 12px;
}
.talent-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #6366f1);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.talent-card-id { flex: 1; min-width: 0; }
.talent-name { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 2px; }
.talent-role {
  font-size: 12px; color: #6b7280;
  display: flex; align-items: center; gap: 6px;
}
.talent-hc {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 600;
}
.hc-PC { background: #dbeafe; color: #2563eb; }
.hc-PY { background: #d1fae5; color: #059669; }
.hc-PO { background: #fef3c7; color: #d97706; }
.talent-grade {
  padding: 4px 10px; color: #fff; border-radius: 12px;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.talent-card-body {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
}
.talent-info-row {
  display: flex; align-items: center; gap: 6px;
}
.talent-info-label {
  color: #9ca3af; font-weight: 500; min-width: 60px;
  font-size: 11px;
}
.talent-info-value {
  color: #1f2937; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.talent-card-skills {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.talent-skill {
  padding: 2px 8px; background: #eef2ff; color: #4f6ef7;
  border-radius: 10px; font-size: 11px; font-weight: 500;
}
.talent-skill-more {
  padding: 2px 8px; background: #f3f4f6; color: #6b7280;
  border-radius: 10px; font-size: 11px;
}

.talent-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; color: #9ca3af; font-size: 14px;
}

.talent-table-wrap {
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05); overflow: hidden;
}
.talent-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.talent-table th {
  background: #f9fafb; padding: 10px 12px; text-align: left;
  font-weight: 600; color: #6b7280; border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.talent-table td {
  padding: 10px 12px; border-bottom: 1px solid #f3f4f6;
  color: #1f2937; white-space: nowrap;
}
.talent-table tr:hover td { background: #f9fafb; }
.talent-grade-mini {
  display: inline-block; padding: 1px 8px; background: #eef2ff;
  color: #4f6ef7; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.talent-table-footer {
  padding: 10px 16px; font-size: 12px; color: #6b7280;
  border-top: 1px solid #f3f4f6; text-align: right;
}

.talent-detail {
  background: #fff; padding: 20px;
  border-radius: 12px;
}
.talent-detail h3 {
  margin: 0 0 16px; font-size: 18px; color: #1f2937;
}
.talent-detail-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.talent-detail-table th {
  background: #f9fafb; padding: 8px 12px; text-align: left;
  color: #6b7280; font-weight: 500; width: 100px;
  border: 1px solid #e5e7eb;
}
.talent-detail-table td {
  padding: 8px 12px; color: #1f2937;
  border: 1px solid #e5e7eb;
}
