/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* 主色 - 蓝紫渐变体系 */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;

  /* 语义色 */
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;

  /* 中性灰 - 冷灰调 */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* 布局 */
  --sidebar-w: 230px;
  --topbar-h: 56px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);

  /* 过渡 */
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}
html, body { height: 100%; font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; color: var(--gray-800); background: var(--gray-50); -webkit-font-smoothing: antialiased; }

/* ===== 侧边栏 ===== */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  display: flex; flex-direction: column;
  z-index: 100; transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin .3s;
}

/* Logo区 */
.sidebar-logo {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 12px;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
}
.logo-text { color: #f1f5f9; font-weight: 600; font-size: 14.5px; letter-spacing: .3px; }
.logo-badge {
  margin-left: auto; background: rgba(99,102,241,.3); color: #a5b4fc;
  font-size: 9px; padding: 2px 7px; border-radius: 10px; font-weight: 600;
  letter-spacing: .5px;
}

/* 导航 */
.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.nav-group { margin-bottom: 4px; }
.nav-group-title {
  font-size: 10.5px; color: rgba(148,163,184,.6); padding: 14px 18px 6px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; color: rgba(148,163,184,.85);
  text-decoration: none; cursor: pointer;
  transition: var(--transition); border-left: 3px solid transparent;
  font-size: 13px; position: relative; margin: 1px 0;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.nav-item.active {
  background: rgba(79,70,229,.2); color: #fff;
  border-left-color: var(--primary-500);
}
.nav-item.active .nav-icon { filter: none; }
.nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--primary-500); color: #fff;
  font-size: 9.5px; padding: 1px 7px; border-radius: 10px; font-weight: 600;
}

/* 底部状态 */
.sidebar-footer {
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.06);
}
.ai-status { display: flex; align-items: center; gap: 7px; color: rgba(148,163,184,.8); font-size: 11.5px; margin-bottom: 5px; }
.ai-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.data-status { font-size: 10.5px; color: #ffffff; }

/* ===== Topbar ===== */
.topbar {
  height: var(--topbar-h); background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--gray-500); padding: 4px; }
.breadcrumb { font-weight: 600; font-size: 15px; color: var(--gray-800); }
.data-date { font-size: 12px; color: var(--gray-400); background: var(--gray-100); padding: 4px 10px; border-radius: 6px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 12px;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.page-content { flex: 1; padding: 28px; }

/* ===== 卡片 ===== */
.card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
}
.card-title { font-weight: 600; font-size: 14px; color: var(--gray-800); display: flex; align-items: center; gap: 6px; }
.card-body { padding: 18px 20px; }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-100); padding: 18px 20px;
  box-shadow: var(--shadow-xs); transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
  opacity: 0; transition: opacity .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.stat-card:nth-child(1):hover::before, .stat-card:nth-child(2):hover::before,
.stat-card:nth-child(3):hover::before, .stat-card:nth-child(4):hover::before { opacity: 1; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--gray-900); letter-spacing: -.5px; }
.stat-sub { font-size: 11.5px; color: var(--gray-400); margin-top: 6px; }
.stat-icon {
  position: absolute; right: 16px; top: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.stat-card:nth-child(1) .stat-icon { background: var(--primary-50); }
.stat-card:nth-child(2) .stat-icon { background: var(--success-light); }
.stat-card:nth-child(3) .stat-icon { background: var(--warning-light); }
.stat-card:nth-child(4) .stat-icon { background: var(--danger-light); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: var(--transition); text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(79,70,229,.4);
  transform: translateY(-1px);
}
.btn-outline { background: #fff; color: var(--primary-600); border: 1px solid var(--gray-200); }
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary-200); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-gray { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-gray:hover { background: var(--gray-200); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 10px 22px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  background: var(--gray-50); color: var(--gray-500); font-weight: 600;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-200);
  white-space: nowrap; font-size: 12px; letter-spacing: .3px;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:hover td { background: var(--gray-50); }
.td-title { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-600); cursor: pointer; font-weight: 500; }
.td-title:hover { color: var(--primary-700); }

/* ===== 标签 ===== */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11.5px; font-weight: 500;
  letter-spacing: .2px;
}
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-green { background: #d1fae5; color: #047857; }
.tag-orange { background: #fed7aa; color: #c2410c; }
.tag-purple { background: #ede9fe; color: #6d28d9; }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-yellow { background: #fef3c7; color: #92400e; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--gray-800);
  transition: var(--transition); background: #fff;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* ===== 搜索栏 ===== */
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap input { padding-left: 36px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }


/* ===== 高级筛选面板（招标信息平台风格） ===== */
.proj-filter-panel {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 16px; overflow: hidden;
}
.proj-filter-row {
  display: flex; align-items: flex-start; padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.proj-filter-row:last-child { border-bottom: none; }
.proj-filter-label {
  width: 72px; flex-shrink: 0; color: var(--gray-700); font-weight: 500;
  line-height: 28px; white-space: nowrap;
}
.proj-filter-options {
  flex: 1; display: flex; flex-wrap: wrap; gap: 0; line-height: 28px;
}
.proj-filter-options .pf-opt {
  padding: 0 12px; cursor: pointer; color: var(--gray-600); transition: var(--transition);
  white-space: nowrap; border-radius: 4px;
}
.proj-filter-options .pf-opt:hover { color: var(--primary); background: var(--primary-50); }
.proj-filter-options .pf-opt.active { color: var(--primary); font-weight: 500; background: var(--primary-50); }
.proj-filter-options .pf-more {
  color: var(--primary); cursor: pointer; padding: 0 8px; transition: var(--transition);
  white-space: nowrap;
}
.proj-filter-options .pf-more:hover { color: var(--primary-dark); }
.proj-filter-options .pf-opt-wrap.hidden { display: none; }

/* 地区二级联动 - 复选框样式 */
.pf-check {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 0 10px; height: 28px; border-radius: 4px; transition: var(--transition);
  white-space: nowrap; vertical-align: middle; user-select: none;
}
.pf-check:hover { background: var(--primary-50); }
.pf-check-input {
  width: 14px; height: 14px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0; margin: 0;
}
.pf-check-label {
  font-size: 13px; color: var(--gray-600); line-height: 28px; transition: var(--transition);
}
.pf-check input:checked + .pf-check-label {
  color: var(--primary); font-weight: 500;
}
.pf-check.hidden { display: none; }

/* 城市行 */
.proj-filter-cities {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  animation: fadeSlideDown .15s ease;
}
.proj-filter-cities .proj-filter-label {
  color: var(--gray-400);
}
.proj-filter-cities .pf-check-label {
  font-size: 12px;
  color: var(--gray-500);
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 自定义日期下拉（嵌在筛选行内） */
.pf-date-group { display: inline-flex; align-items: center; gap: 0; }
.pf-date-group .pf-opt { position: relative; }
.pf-date-group .pf-opt:not(:last-child)::after {
  content: '/'; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--gray-300);
}
.pf-custom-wrap { position: relative; display: inline-flex; margin-left: 4px; }
.pf-custom-btn {
  padding: 2px 10px; font-size: 12px; color: var(--gray-500); cursor: pointer;
  border: 1px solid var(--gray-200); border-radius: 4px; background: #fff;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 3px;
}
.pf-custom-btn:hover { border-color: var(--primary-500); color: var(--primary); }
.pf-custom-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.pf-custom-btn .pf-arrow { font-size: 9px; transition: transform .2s; }
.pf-custom-btn.active .pf-arrow { transform: rotate(180deg); }
.pf-custom-panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 50;
  background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 14px; min-width: 260px;
}
.pf-custom-panel.show { display: block; animation: fadeSlideDown .2s ease; }
.pf-custom-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pf-custom-panel-header span { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.pf-custom-panel-header button {
  font-size: 12px; color: var(--primary); cursor: pointer; background: none; border: none; padding: 2px 6px; border-radius: 4px;
}
.pf-custom-panel-header button:hover { background: var(--primary-50); }
.pf-custom-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pf-custom-row label { font-size: 12px; color: var(--gray-500); white-space: nowrap; width: 32px; }
.pf-custom-row input[type="date"] {
  flex: 1; padding: 5px 10px; border: 1px solid var(--gray-200); border-radius: 6px;
  font-size: 13px; color: var(--gray-800); outline: none; transition: var(--transition);
}
.pf-custom-row input[type="date"]:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.pf-custom-footer { display: flex; justify-content: flex-end; gap: 8px; }
.pf-custom-footer button { padding: 4px 14px; font-size: 13px; border-radius: 6px; cursor: pointer; border: none; transition: var(--transition); }
.pf-custom-footer .pf-cancel { background: var(--gray-100); color: var(--gray-600); }
.pf-custom-footer .pf-cancel:hover { background: var(--gray-200); }
.pf-custom-footer .pf-confirm { background: var(--primary); color: #fff; }
.pf-custom-footer .pf-confirm:hover { background: var(--primary-dark); }

/* 搜索栏 */
.proj-search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.proj-search-wrap { position: relative; flex: 1; }
.proj-search-wrap input { padding-left: 36px; width: 100%; }

@keyframes fadeSlideDown { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== AI 输出区 ===== */
.ai-output {
  background: linear-gradient(135deg, var(--primary-50) 0%, #faf5ff 100%);
  border: 1px solid var(--primary-100); border-radius: var(--radius-sm);
  padding: 20px; min-height: 80px;
}
.ai-thinking {
  display: flex; align-items: center; gap: 10px;
  color: var(--primary-600); font-size: 13px;
}
.ai-thinking-dots span {
  display: inline-block; width: 5px; height: 5px;
  background: var(--primary-500); border-radius: 50%;
  animation: dot-bounce .8s ease-in-out infinite;
}
.ai-thinking-dots span:nth-child(2) { animation-delay: .15s; }
.ai-thinking-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%,80%,100%{transform:scale(.6)} 40%{transform:scale(1)} }
.ai-result { line-height: 1.75; font-size: 13.5px; }
.ai-result h1,.ai-result h2,.ai-result h3 { color: var(--gray-800); margin: 14px 0 6px; font-weight: 600; }
.ai-result ul,.ai-result ol { padding-left: 20px; margin: 6px 0; }
.ai-result li { margin-bottom: 4px; }
.ai-result strong { color: var(--primary-700); }
.ai-result code { background: var(--gray-100); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ===== 进度条 ===== */
.progress-bar { background: var(--gray-200); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.progress-fill-blue { background: linear-gradient(90deg, var(--primary-500), var(--primary-600)); }
.progress-fill-green { background: linear-gradient(90deg, #059669, #34d399); }
.progress-fill-orange { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* ===== 仪表盘概率 ===== */
.gauge-wrap { text-align: center; padding: 20px 0; }
.gauge-circle {
  width: 140px; height: 140px; border-radius: 50%;
  background: conic-gradient(var(--primary) 0%, var(--primary) var(--pct), var(--gray-200) var(--pct));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 0 0 8px var(--gray-100);
}
.gauge-inner {
  width: 110px; height: 110px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-value { font-size: 28px; font-weight: 700; color: var(--gray-900); letter-spacing: -.5px; }
.gauge-label { font-size: 12px; color: var(--gray-400); }

/* ===== 雷达/分数 ===== */
.score-list { display: flex; flex-direction: column; gap: 10px; }
.score-row { display: flex; align-items: center; gap: 10px; }
.score-name { width: 100px; font-size: 13px; color: var(--gray-600); }
.score-bar { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary-500), var(--primary-600)); transition: width .6s cubic-bezier(.4,0,.2,1); }
.score-num { width: 36px; text-align: right; font-size: 13px; font-weight: 600; color: var(--gray-700); }

/* ===== 决策徽章 ===== */
.decision-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 20px; font-size: 15px; font-weight: 700;
}
.decision-go { background: #dcfce7; color: #15803d; border: 2px solid #86efac; }
.decision-caution { background: #fef9c3; color: #854d0e; border: 2px solid #fde047; }
.decision-stop { background: #fee2e2; color: #b91c1c; border: 2px solid #fca5a5; }

/* ===== 加载 ===== */
.loading-screen { text-align: center; padding: 100px 20px; }
.loading-logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  font-size: 18px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; animation: pulse-logo 1.5s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(79,70,229,.3);
}
@keyframes pulse-logo { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
.loading-text { color: var(--gray-400); margin-bottom: 16px; font-size: 13px; }
.loading-bar { width: 180px; height: 3px; background: var(--gray-200); border-radius: 2px; margin: 0 auto; overflow: hidden; }
.loading-progress { height: 100%; background: linear-gradient(90deg, var(--primary-500), var(--primary-600)); border-radius: 2px; animation: load-anim 1.5s ease-in-out infinite; }
@keyframes load-anim { 0%{width:0;margin-left:0} 50%{width:60%;margin-left:20%} 100%{width:0;margin-left:100%} }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  animation: fade-in .2s;
}
@keyframes fade-in { from{opacity:0} to{opacity:1} }
.modal {
  background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.2);
  max-width: 640px; width: 95%; max-height: 80vh; overflow-y: auto;
  animation: slide-up .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slide-up { from{transform:translateY(16px) scale(.98);opacity:0} to{transform:translateY(0) scale(1);opacity:1} }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--gray-100);
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.modal-close { background: var(--gray-100); border: none; font-size: 14px; cursor: pointer; color: var(--gray-500); width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }
.modal-body { padding: 24px; }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== 招标全文 ===== */
.fulltext-content { word-break: break-word; }
.fulltext-content p { margin: 6px 0; }
.fulltext-content strong, .fulltext-content b { color: var(--gray-900); }
.fulltext-content a { color: var(--primary); text-decoration: underline; }
.fulltext-content ul, .fulltext-content ol { padding-left: 20px; margin: 6px 0; }
.fulltext-content li { margin: 3px 0; }
.fulltext-content h1,.fulltext-content h2,.fulltext-content h3,.fulltext-content h4 { margin: 14px 0 6px; color: var(--gray-900); }

/* ===== 空态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-text { font-size: 14px; }

/* ===== 页面标题 ===== */
.page-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; letter-spacing: -.3px; }
.page-subtitle { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }

/* ===== 网格布局 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.gap-16 { gap: 16px; }

/* ===== 图表区标题装饰 ===== */
.chart-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--gray-800);
}
.chart-card-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== 工作台增强模块 ===== */
/* AI提醒条 */
.dash-ai-alert {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary-50), #f5f3ff);
  border: 1px solid var(--primary-100); border-radius: var(--radius); margin-bottom: 20px;
}
.dash-ai-alert .ai-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-500), #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.dash-ai-alert .ai-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.dash-ai-alert .ai-text strong { color: var(--primary-600); }

/* 骨架屏加载动画 */
.skeleton-inline {
  display: inline-block;
  height: 14px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 今日待办统计 */
.dash-todo-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}
.dash-todo-card {
  background: #fff; border-radius: var(--radius); padding: 18px;
  border: 1px solid var(--gray-100); transition: var(--transition);
}
.dash-todo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-todo-label { font-size: 12.5px; color: var(--gray-400); margin-bottom: 8px; }
.dash-todo-value { font-size: 26px; font-weight: 700; color: var(--gray-800); }
.dash-todo-change { font-size: 11.5px; margin-top: 6px; }
.dash-todo-change.up { color: var(--success); }
.dash-todo-change.down { color: var(--danger); }

/* 投标进度看板 */
.dash-pipeline { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.dash-pipeline-col {
  min-width: 180px; flex: 1; background: var(--gray-50);
  border-radius: var(--radius); padding: 12px; border: 1px solid var(--gray-100);
}
.dash-pipeline-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200);
}
.dash-pipeline-col-title { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dash-pipeline-col-count {
  font-size: 11px; background: var(--gray-200); color: var(--gray-500);
  padding: 1px 7px; border-radius: 10px; font-weight: 600;
}
.dash-pipeline-card {
  background: #fff; border-radius: var(--radius-sm); padding: 10px 12px;
  border: 1px solid var(--gray-100); margin-bottom: 8px; cursor: pointer;
  transition: var(--transition); font-size: 12px;
}
.dash-pipeline-card:hover { box-shadow: var(--shadow); border-color: var(--primary-200); }
.dash-pipeline-card .pc-title { font-weight: 600; color: var(--gray-700); margin-bottom: 4px; font-size: 12.5px; }
.dash-pipeline-card .pc-meta { color: var(--gray-400); font-size: 11px; }

/* ===== 用户中心项目管理样式（首页复用） ===== */
.uc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uc-table th {
  text-align: left; padding: 10px 14px; background: var(--gray-50);
  font-weight: 600; color: var(--gray-500); font-size: 12px;
  border-bottom: 1px solid var(--gray-100); white-space: nowrap;
}
.uc-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.uc-table tr:hover td { background: var(--gray-50); }
.uc-table .td-title {
  font-weight: 500; color: var(--gray-700); cursor: pointer;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-table .td-title:hover { text-decoration: underline; }

.uc-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.uc-tag-gray { background: var(--gray-100); color: var(--gray-500); }
.uc-tag-blue { background: #eff6ff; color: #3b82f6; }
.uc-tag-green { background: #f0fdf4; color: #16a34a; }
.uc-tag-orange { background: #fff7ed; color: #ea580c; }
.uc-tag-red { background: #fef2f2; color: #dc2626; }

.uc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition); border: 1px solid transparent; white-space: nowrap;
}
.uc-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.uc-btn-primary:hover { background: var(--primary-600); }
.uc-btn-outline { background: #fff; color: var(--gray-600); border-color: var(--gray-200); }
.uc-btn-outline:hover { border-color: var(--primary-300); color: var(--primary-600); }
.uc-btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.uc-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.uc-form-input {
  padding: 8px 12px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 13px; transition: var(--transition);
  background: #fff; color: var(--gray-800);
}
.uc-form-input:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.uc-form-input::placeholder { color: var(--gray-300); }

.uc-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); }
.uc-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.uc-card-title { font-size: 14px; font-weight: 600; color: var(--gray-700); display: flex; align-items: center; gap: 8px; }
.uc-card-title .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.uc-empty { text-align: center; padding: 40px 20px; color: var(--gray-400); }
.uc-empty-text { font-size: 13px; }

/* 用户中心看板 */
.uc-pipeline { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.uc-pipeline-col {
  min-width: 200px; flex: 1; background: var(--gray-50);
  border-radius: var(--radius); padding: 12px; border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; max-height: calc(100vh - 220px);
}
.uc-pipeline-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.uc-pipeline-col-body {
  overflow-y: auto; flex: 1; padding-right: 4px;
}
/* 自定义滚动条样式 */
.uc-pipeline-col-body::-webkit-scrollbar { width: 4px; }
.uc-pipeline-col-body::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.uc-pipeline-col-body::-webkit-scrollbar-track { background: transparent; }
.uc-pipeline-col-title { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.uc-pipeline-col-count {
  font-size: 11px; background: var(--gray-200); color: var(--gray-500);
  padding: 1px 7px; border-radius: 10px; font-weight: 600;
}
.uc-pipeline-card {
  background: #fff; border-radius: var(--radius-sm); padding: 10px 12px;
  border: 1px solid var(--gray-100); margin-bottom: 8px; cursor: pointer;
  transition: var(--transition); font-size: 12px;
}
.uc-pipeline-card:hover { box-shadow: var(--shadow); border-color: var(--primary-200); }
.uc-pipeline-card .pc-title { font-weight: 600; color: var(--gray-700); margin-bottom: 4px; font-size: 12.5px; }
.uc-pipeline-card .pc-meta { color: var(--gray-400); font-size: 11px; }

/* 用户中心项目详情弹窗 */
.uc-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15,23,42,.45); backdrop-filter: blur(4px);
  z-index: 999999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.uc-modal-overlay.active { opacity: 1; pointer-events: auto; }
.uc-modal {
  background: #fff; border-radius: 16px; width: 680px; max-width: 92vw; max-height: 85vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  transform: translateY(20px) scale(.97); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.uc-modal-overlay.active .uc-modal { transform: translateY(0) scale(1); }
.uc-modal-header {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.uc-modal-header .mh-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-500), #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.uc-modal-header .mh-info { flex: 1; min-width: 0; }
.uc-modal-header .mh-title { font-size: 17px; font-weight: 700; color: var(--gray-800); line-height: 1.5; }
.uc-modal-header .mh-meta { font-size: 12px; color: var(--gray-400); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.uc-modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--gray-50); color: var(--gray-400); font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .2s;
}
.uc-modal-close:hover { background: var(--gray-100); color: var(--gray-600); }
.uc-modal-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.uc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.uc-detail-item { }
.uc-detail-label { font-size: 11.5px; color: var(--gray-400); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.uc-detail-value { font-size: 14px; color: var(--gray-700); font-weight: 500; line-height: 1.5; }
.uc-detail-value.highlight { color: var(--primary-600); font-weight: 700; font-size: 18px; }
.uc-detail-value.price { color: var(--warning); font-weight: 700; }
.uc-detail-value.low-prob { color: var(--danger); }
.uc-detail-value.high-prob { color: var(--success); }
.uc-detail-value.mid-prob { color: var(--warning); }
.uc-detail-full { grid-column: 1 / -1; }
.uc-detail-divider { grid-column: 1 / -1; height: 1px; background: var(--gray-100); margin: 4px 0; }
.uc-modal-footer {
  padding: 16px 28px; border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--gray-50);
}

/* 用户中心页面标题 */
.uc-page-title { font-size: 18px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.uc-page-desc { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  
  /* 移动端侧边栏遮罩 */
  .sidebar-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 90;
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  }
  .sidebar-overlay.open {
    pointer-events: auto; opacity: 1;
  }
  
  .main { margin-left: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .dash-todo-stats { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
  .uc-detail-grid { grid-template-columns: 1fr; }
  .uc-modal { width: 96vw; max-height: 90vh; }
}


/* 侧边栏二维码 */
.sidebar-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px 10px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-qrcode-img {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.sidebar-qrcode-label {
  font-size: 11px;
  color: #ffffff;
  margin-top: 6px;
}