
* { 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 24px; position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: 1280px; margin: 0 auto; 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; }
.topbar-nav a {
  display: inline-block; padding: 6px 14px; font-size: 13px;
  color: #6b7280; text-decoration: none; border-radius: 8px;
  transition: all .15s; cursor: pointer;
}
.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 rgba(0,0,0,0.04) !important; box-shadow: none !important; }
.annsHead { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; border-bottom: 1px solid #fde68a; background: rgba(255,251,235,0.6); }
.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 rgba(0,0,0,0.04);
  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; background: rgba(255,251,235,0.6);
  border-bottom: 1px solid #fef3c7; border-radius: 10px 10px 0 0;
}
.star-header-title { font-size: 13px; font-weight: 700; color: #1a1a2e; }
.star-header-edit {
  background: none; border: 1px solid #fcd34d; color: #92400e;
  font-size: 11px; padding: 2px 10px; border-radius: 4px; cursor: pointer; transition: all .15s;
}
.star-header-edit:hover { background: #fef3c7; }
.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 #fef3c7;
  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; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .risk-todo-wrap { grid-template-columns: 1fr; }
  .user-info-mini { display: none; }
  .top-banner { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .user-avatar { width: 32px; height: 32px; font-size: 13px; }
}

