:root {
  --primary: #3b82c4;
  --primary-dark: #2563b0;
  --primary-light: #eef5fc;
  --primary-gradient: linear-gradient(135deg, #3b82c4 0%, #60a5fa 100%);
  --accent-teal: #14b8a6;
  --accent-teal-bg: #e6f7f5;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0f8 0%, #f0f5fa 50%, #e6eef6 100%);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.04);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(59,130,196,.25);
}
.login-brand h1 { font-size: 22px; font-weight: 600; margin-bottom: 6px; letter-spacing: .5px; }
.login-brand p { color: var(--text-2); font-size: 13px; letter-spacing: .3px; }
.login-form label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; letter-spacing: .3px; }
.login-form input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; margin-bottom: 16px;
  outline: none; transition: all .2s;
}
.login-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,196,.1); }
.login-tip { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 16px; letter-spacing: .3px; }

/* ============ 按钮 ============ */
.btn-primary {
  background: var(--primary-gradient); color: #fff;
  border: none; padding: 11px 20px; border-radius: 10px;
  font-size: 14px; cursor: pointer; font-weight: 500;
  transition: all .2s; box-shadow: 0 2px 8px rgba(59,130,196,.25);
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(59,130,196,.35); }
.btn-block { width: 100%; }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 9px 16px; border-radius: 10px;
  font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #fff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; transition: transform .25s;
  box-shadow: 4px 0 20px rgba(0,0,0,.03);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo { width: 44px; height: 34px; font-size: 12px; letter-spacing: .5px; margin: 0; border-radius: 10px; }
.sidebar-brand span { font-size: 15px; font-weight: 600; }
.menu { flex: 1; overflow-y: auto; padding: 16px 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; cursor: pointer;
  color: var(--text-2); font-size: 14px;
  border-left: 3px solid transparent;
  transition: all .2s; border-radius: 0 10px 10px 0;
  margin-right: 12px; position: relative;
}
.menu-item:hover { background: var(--bg); color: var(--text); }
.menu-item.active {
  background: var(--primary-light); color: var(--primary);
  border-left-color: var(--primary); font-weight: 500;
}
.menu-item .ico { font-size: 18px; width: 22px; text-align: center; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(59,130,196,.2);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 14px; font-weight: 500; }
.user-role { font-size: 12px; color: var(--text-2); }
.logout-btn { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 12px; }
.logout-btn:hover { color: var(--danger); }

.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-2); }
.topbar-title { font-size: 16px; font-weight: 600; flex: 1; letter-spacing: .3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.notif-btn { position: relative; background: none; border: none; cursor: pointer; font-size: 18px; }
.notif-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--danger); color: #fff;
  font-size: 10px; padding: 1px 5px; border-radius: 10px;
}
.content { padding: 24px; flex: 1; }

/* ============ 卡片/看板 ============ */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
@media (min-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
.kpi-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: all .25s; border: 1px solid rgba(0,0,0,.03);
}
.kpi-card:hover { box-shadow: var(--shadow-hover); }
.kpi-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-light); opacity: .75;
  transform: translate(30%, -30%);
}
.kpi-card:nth-child(2)::before { background: var(--success-bg); opacity: .75; }
.kpi-card:nth-child(3)::before { background: var(--warning-bg); opacity: .75; }
.kpi-card:nth-child(4)::before { background: var(--purple-bg); opacity: .75; }
.kpi-card:nth-child(5)::before { background: var(--accent-teal-bg); opacity: .75; }
.kpi-label { font-size: 13px; color: var(--text-2); margin-bottom: 10px; letter-spacing: .3px; }
.kpi-value { font-size: 32px; font-weight: 700; line-height: 1.1; }
.kpi-value.accent { color: var(--primary); }
.kpi-value.success { color: var(--success); }
.kpi-value.warning { color: var(--warning); }
.kpi-value.purple { color: var(--purple); }
.kpi-value.teal { color: var(--accent-teal); }
.kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }

.panel {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,.03);
}
.panel-head {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.panel-title { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.panel-body { padding: 24px; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--bg); color: var(--text-2); font-weight: 600; font-size: 12px; letter-spacing: .3px; }
tr:hover td { background: var(--primary-light); }
td .cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ 标签/徽章 ============ */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-orange { background: var(--warning-bg); color: var(--warning); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-purple { background: var(--purple-bg); color: var(--purple); }
.tag-gray { background: var(--bg); color: var(--text-2); }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; font-family: inherit;
  transition: all .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,196,.1); }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ============ 搜索栏 ============ */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
}
.toolbar input, .toolbar select {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; outline: none;
  transition: all .2s;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,196,.1); }
.toolbar .grow { flex: 1; min-width: 160px; }

/* ============ 漏斗 ============ */
.funnel { display: flex; gap: 0; flex-wrap: wrap; position: relative; }
.funnel-step {
  flex: 1; min-width: 90px; text-align: center;
  padding: 18px 10px; border-radius: 0; cursor: pointer;
  border: 1px solid var(--border); transition: all .2s;
  background: var(--surface); position: relative;
  margin-right: -1px;
}
.funnel-step:first-child { border-radius: 12px 0 0 12px; }
.funnel-step:last-child { border-radius: 0 12px 12px 0; margin-right: 0; }
@media (max-width: 768px) {
  .funnel-step { border-radius: 0; margin-right: 0; margin-bottom: -1px; }
  .funnel-step:first-child { border-radius: 12px 12px 0 0; }
  .funnel-step:last-child { border-radius: 0 0 12px 12px; margin-bottom: 0; }
}
.funnel-step:hover { border-color: var(--primary); z-index: 2; box-shadow: 0 4px 12px rgba(59,130,196,.12); }
.funnel-step.active { background: var(--primary-gradient); border-color: transparent; color: #fff; z-index: 2; box-shadow: 0 4px 16px rgba(59,130,196,.25); }
.funnel-step.active .num { color: #fff; }
.funnel-step.active .lbl { color: rgba(255,255,255,.85); }
.funnel-step .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.funnel-step.active .num { color: #fff; }
.funnel-step .lbl { font-size: 12px; color: var(--text-2); margin-top: 6px; font-weight: 500; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.modal-box h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; letter-spacing: .3px; }

/* ============ 通知面板 ============ */
.notif-panel {
  position: fixed; top: 60px; right: 16px;
  width: 320px; max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 150; border: 1px solid rgba(0,0,0,.04);
}
.notif-item { padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.notif-item.unread { background: var(--primary-light); }
.notif-item:hover { background: var(--bg); }
.notif-item .n-title { font-size: 13px; font-weight: 600; }
.notif-item .n-content { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.notif-item .n-time { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.notif-empty { padding: 36px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ============ 空状态 ============ */
.empty { text-align: center; color: var(--text-3); padding: 48px 20px; font-size: 13px; }

/* ============ 提示 ============ */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; padding: 12px 24px;
  border-radius: 10px; z-index: 300; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ============ 明细列表 ============ */
.detail-list { display: flex; flex-direction: column; gap: 10px; }
.detail-item { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: all .2s; }
.detail-item:hover { box-shadow: var(--shadow); }
.detail-item .d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.detail-item .d-name { font-weight: 600; }
.detail-item .d-body { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ============ 项目管理 ============ */
/* 进度条 */
.prog-wrap { display: flex; align-items: center; gap: 10px; }
.prog-bar { flex: 1; height: 8px; min-width: 60px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; width: 0; border-radius: 99px; background: var(--primary-gradient); transition: width .4s ease; }
.prog-fill.is-doing { background: linear-gradient(90deg, #3b82c4 0%, #60a5fa 100%); }
.prog-fill.is-done { background: linear-gradient(90deg, #0f9d58 0%, #34c759 100%); }
.prog-num { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 38px; text-align: right; }
.prog-lg .prog-bar { height: 14px; }
.prog-lg .prog-num { font-size: 18px; min-width: 52px; }

/* 项目概况 */
.pj-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.pj-info > div { display: flex; flex-direction: column; gap: 4px; }
.pj-info label { font-size: 12px; color: var(--text-3); }
.pj-info b { font-size: 15px; font-weight: 600; }
.pj-remark { margin-top: 14px; padding: 12px 14px; background: var(--warning-bg); border-radius: 10px; font-size: 13px; color: #92620a; }
.pj-progress { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); }
.pj-progress-label { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }

/* 阶段列表 */
.stage-list { display: flex; flex-direction: column; gap: 12px; }
.stage-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.stage-item:hover { box-shadow: var(--shadow); }
.stage-item.doing { border-color: #93c5fd; background: #f7fbff; }
.stage-item.done { background: #fafefb; border-color: #bbf7d0; }
.stage-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-idx { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.stage-item.doing .stage-idx { background: var(--primary); color: #fff; }
.stage-item.done .stage-idx { background: var(--success); color: #fff; }
.stage-name { font-size: 15px; font-weight: 600; min-width: 90px; }
.stage-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.stage-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* 阶段内的细分进度 */
.stage-sub { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: var(--purple-bg); border-radius: 10px; flex-wrap: wrap; }
.stage-sub-label { font-size: 12px; color: var(--purple); font-weight: 600; }
.stage-sub-select { width: 88px; padding: 5px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* 阶段说明输入 */
.stage-note-row { display: flex; gap: 8px; margin-top: 12px; }
.stage-note { flex: 1; padding: 8px 12px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; }
.stage-note:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,196,.1); background: #fff; }

/* 进度日志 */
.plog-list { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; }
.plog { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.plog:nth-child(odd) { background: #f8fafc; }
.plog-user { font-weight: 600; color: var(--primary); min-width: 56px; }
.plog-act { color: var(--text); }
.plog-content { color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plog-time { margin-left: auto; font-size: 12px; color: var(--text-3); flex: none; }

/* 业绩弹窗内的联动开关 */
.perf-link { margin-top: 4px; padding: 12px 14px; background: var(--accent-teal-bg); border-radius: 10px; }
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; color: #0f766e; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--accent-teal); cursor: pointer; }
#perfProjectBox { margin-top: 12px; }
.hint-text { margin-top: 8px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ============ AI 实测留痕 ============ */
.geo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.geo-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.geo-stat { background: var(--bg); border-radius: 10px; padding: 10px 16px; min-width: 158px; }
.geo-stat-label { font-size: 12px; color: var(--text-2); }
.geo-stat-val { font-size: 17px; font-weight: 600; margin-top: 2px; }
.geo-stat-rate { font-size: 13px; color: var(--success); margin-left: 6px; font-weight: 500; }
.geo-stat-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.geo-industry { display: flex; align-items: center; gap: 8px; }
.geo-industry label { font-size: 13px; color: var(--text-2); }
.geo-industry input { width: 160px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; }
.geo-tip { background: var(--warning-bg); border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #92400e; line-height: 1.65; margin-bottom: 16px; }
.geo-gen { background: var(--primary-light); border: 1px solid #d7e7f7; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.geo-gen-head { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.geo-gen-head span { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.geo-gen-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.geo-gen-row select, .geo-gen-row input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--surface); }
.geo-gen-row select { width: 200px; }
.geo-gen-row input { width: 118px; }
.geo-gen-row select:focus, .geo-gen-row input:focus { outline: none; border-color: var(--primary); }
.geo-gen-hint { margin-top: 9px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.geo-gen-hint b { color: var(--text-2); font-weight: 600; }
.geo-round { margin-top: 20px; }
.geo-round-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.geo-round-title { font-size: 14px; font-weight: 600; }
.geo-round-meta { flex: 1; font-size: 12px; color: var(--text-3); }
.geo-done { font-size: 12px; color: var(--success); }
.geo-table td { vertical-align: middle; }
.geo-idx { color: var(--text-3); font-size: 13px; text-align: center; }
.geo-q-input { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; }
.geo-q-input:focus { outline: none; border-color: var(--primary); }
.geo-q-text { font-size: 13px; line-height: 1.6; padding: 4px 0; }
.geo-q-text.is-empty { color: var(--text-3); font-size: 12px; }
.geo-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.geo-shot { position: relative; display: inline-block; }
.geo-shot img { width: 152px; height: 50px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; display: block; }
.geo-shot-del { position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; border-radius: 50%; background: var(--danger); color: #fff; border: none; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.geo-up { display: inline-flex; align-items: center; justify-content: center; width: 152px; height: 50px; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-3); font-size: 13px; cursor: pointer; transition: .15s; }
.geo-up input { display: none; }
.geo-up:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.geo-hit { width: 152px; font-size: 12px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; background: var(--surface); }
.geo-todo { color: var(--text-3); font-size: 12px; }

/* 服务前后效果对比图 */
.geocmp-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; background: var(--surface); }
.geocmp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 12px; }
.geocmp-name { font-size: 16px; font-weight: 600; }
.geocmp-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.geocmp-rate { font-size: 26px; font-weight: 600; white-space: nowrap; }
.geocmp-rate-old { color: var(--text-3); }
.geocmp-arrow2 { color: var(--text-3); margin: 0 8px; font-size: 20px; }
.geocmp-rate-new { color: #0f6e56; }
.geocmp-group { margin-top: 18px; }
.geocmp-group:first-child { margin-top: 4px; }
.geocmp-grouphead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 2px solid var(--border); }
.geocmp-platname { font-size: 14px; font-weight: 600; }
.geocmp-item { padding: 13px 0; border-bottom: 1px solid var(--border); }
.geocmp-item:last-child { border-bottom: none; }
.geocmp-q { font-size: 13px; line-height: 1.6; margin-bottom: 9px; }
.geocmp-pair { display: flex; gap: 14px; align-items: flex-start; }
.geocmp-side { flex: 1; min-width: 0; text-align: center; }
.geocmp-tag { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.geocmp-shot { display: block; text-decoration: none; }
.geocmp-shot img { width: 100%; max-height: 240px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); display: block; }
.geocmp-shot:hover img { border-color: var(--primary); }
.geocmp-noshot { border: 1px dashed var(--border); border-radius: 8px; padding: 34px 0; color: var(--text-3); font-size: 12px; background: var(--bg); }
.geocmp-mid { align-self: center; flex: 0 0 22px; text-align: center; color: var(--text-3); font-size: 17px; }
.geocmp-badge { margin-top: 8px; }
.geocmp-foot { font-size: 12px; color: var(--text-3); margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); line-height: 1.7; }
.geo-badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.geo-badge.is-hit { background: var(--accent-teal-bg); color: #0f766e; }
.geo-badge.is-miss { background: #f1efe8; color: #5f5e5a; }
.geo-badge.is-none { background: var(--bg); color: var(--text-3); }

/* 主管待办清单 */
.geo-pending-hint { font-size: 12px; color: var(--text-3); margin-left: 10px; }
.geo-pending-group { margin-bottom: 14px; }
.geo-pending-group:last-child { margin-bottom: 0; }
.geo-pending-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.geo-pending-title span { font-size: 12px; font-weight: 500; color: var(--warning); background: var(--warning-bg); border-radius: 10px; padding: 0 8px; }
.geo-pending-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--bg); margin-bottom: 6px; }
.geo-pending-item b { font-size: 13px; }
.geo-pending-meta { font-size: 12px; color: var(--text-2); }
.geo-pending-tip { flex: 1; font-size: 12px; color: var(--text-3); }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 24px; }
  .content { padding: 16px; }
  .modal-box { padding: 20px; }
  .pj-info { grid-template-columns: 1fr 1fr; }
  .stage-actions { margin-left: 0; width: 100%; }
  .stage-meta { width: 100%; }
  .geo-top { flex-direction: column; align-items: stretch; }
  .geocmp-pair { gap: 8px; }
  .geocmp-mid { flex: 0 0 16px; font-size: 15px; }
  .geo-gen-row select, .geo-gen-row input { width: 100%; }
  .geo-pending-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
