/* ============================================
   晋招汇 - SaaS Design System
   现代极简 / 商务专业 / 数据可视化
   ============================================ */

/* ========== 0. Design Tokens ========== */
:root {
  /* --- 主色调 --- */
  --primary: #0F4C81;
  --primary-dark: #0A3A64;
  --primary-light: #1A5A99;
  --primary-lighter: #E8F0F8;
  --primary-50: #F0F6FC;

  /* --- 背景色 --- */
  --bg-page: #F7F9FC;
  --bg-card: #FFFFFF;
  --bg-hover: #F3F5F9;
  --bg-stripe: #FAFBFD;
  --bg-sidebar: #0F4C81;

  /* --- 文字色 --- */
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-primary: #FFFFFF;
  --text-sidebar: #C5D5E8;
  --text-sidebar-active: #FFFFFF;

  /* --- 功能色 --- */
  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --info: #3B82F6;
  --info-light: #EFF6FF;

  /* --- 边框 --- */
  --border-base: #E5E7EB;
  --border-light: #F0F1F4;
  --border-dark: #D1D5DB;

  /* --- 阴影 --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  /* --- 圆角 --- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* --- 字体 --- */
  --font-sans: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-num: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Roboto Mono', 'Consolas', monospace;

  /* --- 过渡 --- */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 1. Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
}

/* 数字使用等宽字体 */
.num, .col-budget, .stat-value, .priority-amount { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ========== 2. Layout ========== */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* ========== 3. Sidebar ========== */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; }

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sidebar);
  margin-top: 2px;
  letter-spacing: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.nav-section { margin-bottom: 20px; }

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-sidebar);
  font-size: 13px;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-align: left;
  margin-bottom: 2px;
}
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 24px;
  background: #fff;
  border-radius: 0 3px 3px 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); }
.nav-item span { flex: 1; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: var(--text-sidebar-active);
  font-weight: 500;
}
.nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}
.nav-item.active svg {
  transform: scale(1.05);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  font-family: var(--font-num);
}
.nav-item.active .nav-badge { background: var(--primary); color: #fff; }

.sidebar-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* 我的工作台入口：玻璃质感卡片 + 左侧强调条 */
.user-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(15,76,129,0.10));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.user-card::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  width: 3px; height: 72%;
  border-radius: 3px;
  background: linear-gradient(180deg, #3B82F6, #0F4C81);
  transition: height var(--transition), top var(--transition);
}
.user-card:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.30), rgba(15,76,129,0.18));
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
}
.user-card:hover::before { top: 8%; height: 84%; }

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3B82F6, #0F4C81);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15,76,129,0.35);
}
.user-avatar svg { width: 20px; height: 20px; }

.user-info { flex: 1; min-width: 0; line-height: 1.25; }
.user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.user-role {
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(197,213,232,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-arrow {
  width: 16px;
  height: 16px;
  color: rgba(197,213,232,0.7);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}
.user-card:hover .user-card-arrow { color: #fff; transform: translate(2px, -2px); }

/* ========== 4. Main Content ========== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 5. Topbar ========== */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-card);
  border-bottom: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
  flex-shrink: 0;
  z-index: 50;
  position: relative;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.topbar-breadcrumb span:last-child { color: var(--text-primary); font-weight: 600; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  background: var(--bg-page);
  border: 1.5px solid transparent;
  border-radius: 24px;
  padding: 0 14px;
  height: 38px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.07), 0 2px 8px rgba(15, 76, 129, 0.06);
  background: var(--bg-card);
}
.search-box svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.search-box input::placeholder { color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-base);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  position: relative;
  transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.icon-btn svg { width: 18px; height: 18px; }

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* ========== 6. Content Area ========== */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Page Views */
.page-view { display: none; animation: pageEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.page-view.active { display: block; }

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== 7. Cards ========== */
.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 24px; }
.card-body.no-padding { padding: 0; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

/* ========== 8. Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stat-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  opacity: 0.2;
  z-index: 0;
  transition: opacity 0.25s ease;
}
.stat-card:hover .stat-icon::after { opacity: 0.35; }
.stat-icon svg { width: 20px; height: 20px; position: relative; z-index: 1; }

.stat-trend {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-num);
  padding: 2px 8px;
  border-radius: 4px;
}
.stat-trend.up { color: var(--success); background: var(--success-light); }
.stat-trend.down { color: var(--danger); background: var(--danger-light); }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-family: var(--font-num);
}
.stat-value .unit { font-size: 14px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; font-weight: 500; }

/* mini sparkline */
.stat-spark { margin-top: 8px; height: 28px; }

/* ========== 9. Chart Grid ========== */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.chart-grid.full { grid-template-columns: 1fr; }

.chart-container { height: 280px; }
.chart-container.tall { height: 340px; }
.chart-container.short { height: 200px; }

/* ========== 10. Data Table ========== */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.data-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table thead th {
  background: #F8FAFC;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-base);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.data-table tbody tr:nth-child(even) { background: rgba(247, 249, 252, 0.4); }
.data-table tbody tr {
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}
.data-table tbody tr::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.data-table tbody tr:hover {
  background: var(--primary-50);
}
.data-table tbody tr:hover::after {
  transform: scaleY(1);
}

.data-table .col-spec {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
}
/* 标题列：限宽 + 省略号 + 悬停显示全文 */
.data-table .col-title {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 500;
}
/* 通用长文本省略列（行业名/供应商/地区等） */
.data-table .col-ellipsis {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table .col-budget {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  font-family: var(--font-num);
}
.data-table .col-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table .col-pubdate {
  font-size: 12px;
  white-space: nowrap;
  color: var(--text-tertiary);
}
.data-table .col-action {
  text-align: center;
  white-space: nowrap;
}

/* ========== 11. Tags & Badges ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.5;
}
.tag-industry { background: var(--primary-lighter); color: var(--primary); }
.tag-type { background: var(--info-light); color: var(--info); }
.tag-success { background: var(--success-light); color: var(--success); }
.tag-warning { background: var(--warning-light); color: #B45309; }
.tag-danger { background: var(--danger-light); color: var(--danger); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.5;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.status-publishing { background: var(--info-light); color: var(--info); }
.status-publishing::before { background: var(--info); }
.status-preview { background: var(--primary-lighter); color: var(--primary); }
.status-preview::before { background: var(--primary); }
.status-closing { background: var(--warning-light); color: #B45309; }
.status-closing::before { background: var(--warning); }
.status-ended { background: #F3F4F6; color: var(--text-muted); }
.status-ended::before { background: var(--text-muted); }
.status-awarded { background: var(--success-light); color: var(--success); }
.status-awarded::before { background: var(--success); }
.status-cancelled { background: var(--danger-light); color: var(--danger); }
.status-cancelled::before { background: var(--danger); }
.status-terminated { background: #F3F4F6; color: var(--text-muted); }
.status-terminated::before { background: var(--text-muted); }

/* ========== 12. Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 76, 129, 0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(15, 76, 129, 0.3);
  transform: translateY(-1px);
}
.btn-outline { background: var(--bg-card); border-color: var(--border-dark); color: var(--text-secondary); }
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.08);
}
.btn-ghost { background: transparent; color: var(--text-tertiary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ========== 今日开标快捷筛选按钮 ========== */
.today-bids-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 16px;
  border: 2px solid #FDE68A;
  background: #FFFBEB;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #92400E;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  letter-spacing: 0.01em;
}
.today-bids-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #D97706;
  transition: transform 0.35s ease, color 0.22s ease;
}
.today-bids-btn:hover {
  background: #FEF3C7;
  border-color: #FBBF24;
  color: #78350F;
  box-shadow: 0 3px 14px rgba(245, 158, 11, 0.16);
  transform: translateY(-1px);
}
.today-bids-btn:hover svg {
  color: #EA580C;
}
.today-bids-btn:active {
  transform: translateY(0);
  transition: transform 0.08s ease;
}

.today-bids-btn.active {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  border-color: #D97706;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 18px rgba(245, 158, 11, 0.32), 0 0 0 3px rgba(245, 158, 11, 0.1);
  transform: none;
}
.today-bids-btn.active svg {
  color: #fff;
}
.today-bids-btn.active:hover {
  background: linear-gradient(135deg, #D97706 0%, #C2410C 100%);
  border-color: #B45309;
  color: #fff;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.38), 0 0 0 4px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

/* 标签文字 */
.today-bids-label {
  line-height: 1;
}

/* 计数 Badge */
.today-bids-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-num);
  background: #FDE68A;
  color: #92400E;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}
.today-bids-btn:hover .today-bids-count {
  background: #FCD34D;
}
.today-bids-btn.active .today-bids-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ========== 13. Filter Bar ========== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.filter-select {
  height: 34px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--border-base);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s ease;
}
.filter-select:hover { border-color: var(--border-dark); background: var(--bg-hover); }
.filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,0.08); }

/* ========== 13.1 Advanced Filter Tags ========== */
.filter-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
  transition: all var(--transition);
}
.filter-tags.collapsed { max-height: 0; margin-top: 0; padding-top: 0; border-top: 0; }
.filter-tags.expanded { max-height: 100px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light); }

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-lighter);
  color: var(--primary);
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.filter-tag-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  cursor: pointer;
  color: var(--primary);
  opacity: 0.6;
  transition: all var(--transition);
}
.filter-tag-close:hover { background: var(--primary-lighter); opacity: 1; }
.filter-tag-close svg { width: 12px; height: 12px; }

.filter-clear-all {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.filter-clear-all:hover { color: var(--danger); background: var(--danger-light); }

/* ========== 14. Industry Selector ========== */
.industry-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-base);
  background: var(--bg-card);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.industry-chip:hover { border-color: var(--primary); color: var(--primary); }
.industry-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ========== 15. View Toggle ========== */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-page);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  padding: 2px;
}
.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.view-toggle-btn svg { width: 16px; height: 16px; }
.view-toggle-btn.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-xs); }

/* ========== 16. Bid List (Card View) ========== */
.bid-list { display: flex; flex-direction: column; gap: 10px; }

.bid-item {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.bid-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }

.bid-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bid-item-id { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 4px; }
.bid-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.5; }
.bid-item-desc { font-size: 13px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 10px; }

.bid-item-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.bid-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.bid-meta-item svg { width: 14px; height: 14px; }
.bid-meta-item.budget { color: var(--primary); font-weight: 600; font-family: var(--font-num); }
.bid-meta-item.deadline.urgent { color: var(--danger); font-weight: 600; }

.bid-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bid-item-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========== 17. Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--border-base);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-num);
  transition: all 0.2s ease;
}
.page-btn:hover:not(.active):not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.25);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { color: var(--text-muted); padding: 0 4px; }

/* ========== 18. Priority Cards ========== */
#key-projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
}

.priority-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all var(--transition);
  border-left: 3px solid var(--danger);
}
.priority-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.priority-card.priority-medium { border-left-color: var(--warning); }

.priority-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.priority-title { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.5; }

.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}
.priority-badge.high { background: var(--danger-light); color: var(--danger); }
.priority-badge.medium { background: var(--warning-light); color: #B45309; }

.priority-amount { font-size: 20px; font-weight: 700; color: var(--primary); margin: 8px 0; }

.priority-note {
  background: var(--bg-stripe);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 10px 0;
}
.priority-note strong { color: var(--text-secondary); }

.priority-meta { display: flex; align-items: center; gap: 8px; }

/* ========== 19. Filter Tabs ========== */
.filter-tabs { display: flex; gap: 2px; background: var(--bg-page); padding: 2px; border-radius: var(--radius-sm); }
.filter-tab {
  padding: 4px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}
.filter-tab.active { background: var(--bg-card); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-xs); }
.filter-tab:hover:not(.active) { color: var(--text-secondary); }

/* ========== 20. Empty State ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ========== 21. Skeleton Loading ========== */
.skeleton {
  background: linear-gradient(90deg, #F0F1F4 25%, #E5E7EB 50%, #F0F1F4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-card { height: 120px; }

/* ========== 22. Table Row Hover Actions ========== */
.row-actions {
  display: flex;
  gap: 2px;
  justify-content: center;
}
.row-action-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-base);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.row-action-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}
.row-action-btn svg { width: 15px; height: 15px; }
.row-action-btn.danger:hover { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }

/* 通用搜索输入（标讯信息与标的清单内联搜索统一外观） */
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-base);
  border-radius: 20px;
  transition: all 0.2s ease;
}
.search-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,129,0.08);
  background: var(--bg-card);
}
.search-input svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.search-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.search-input input::placeholder { color: var(--text-muted); }

/* 来源链接样式 */
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--primary-lighter);
  background: var(--primary-50);
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}
.source-link svg { width: 12px; height: 12px; flex-shrink: 0; }
.source-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.2);
}

/* ========== 23. Toast ========== */
.toast {
  position: fixed;
  top: 72px;
  right: 24px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
}
.toast.success { background: linear-gradient(135deg, #059669, #10B981); }
.toast.warning { background: linear-gradient(135deg, #D97706, #F59E0B); }
.toast.error { background: linear-gradient(135deg, #DC2626, #EF4444); }
@keyframes toastSlideIn {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ========== 返回顶部 FAB ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.3);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(15, 76, 129, 0.4);
  transform: translateY(-2px) scale(1.05);
}
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ========== 24. 政法标局 ========== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.report-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid var(--border-light);
}
.report-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-lighter);
}

.report-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 16px 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  flex-shrink: 0;
}
.report-card-month {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.05em;
}
.report-card-day {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-num);
  line-height: 1.1;
  margin: 2px 0;
}
.report-card-weekday {
  font-size: 11px;
  opacity: 0.7;
}

.report-card-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.report-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.report-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.report-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.report-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}
.report-card:hover .report-card-action {
  gap: 6px;
}

/* ========== 25. 网站设置 ========== */
.settings-section {
  margin-bottom: 24px;
}
.settings-section:last-child { margin-bottom: 0; }

.settings-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.settings-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.city-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.city-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: var(--bg-card);
}
.city-check-item:hover { border-color: var(--primary-light); background: var(--primary-50); }
.city-check-item.active {
  border-color: var(--primary);
  background: var(--primary-lighter);
  color: var(--primary);
  font-weight: 500;
}
.city-check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ========== 25. 数据加载状态 ========== */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot-anim 1.2s ease-in-out infinite;
}
@keyframes pulse-dot-anim {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.data-loading .content-area { opacity: 0.6; pointer-events: none; transition: opacity 0.3s; }

/* 数据更新时间 */
.data-update-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  padding: 0 8px; white-space: nowrap;
}
.data-update-info svg { width: 14px; height: 14px; flex-shrink: 0; }

/* 数据来源 */
.data-source-info {
  display: flex; align-items: center;
  font-size: 12px; color: var(--text-muted);
  padding: 0 8px; white-space: nowrap;
}

/* 访问人数统计（默认隐藏，元素保留不删除） */
.visitor-info {
  display: none; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  padding: 0 10px; height: 28px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-full, 999px);
  background: var(--bg-page);
  white-space: nowrap;
}
.visitor-info svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); }
.visitor-text { line-height: 1; }
.visitor-text b { color: var(--primary); font-weight: 700; font-family: var(--font-num); }

/* 网站底部备案 */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  padding: 16px 24px;
  margin-top: auto;
}
.footer-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 12px; color: var(--text-tertiary);
}
.footer-copy { white-space: nowrap; }
.footer-beian {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.footer-beian:hover {
  color: var(--primary);
  border-color: var(--primary-lighter);
  background: var(--primary-50);
}

/* 错误状态 */
.error-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center;
  min-height: 400px;
}
.error-state .error-icon { width: 56px; height: 56px; color: var(--warning); margin-bottom: 20px; opacity: 0.8; }
.error-state h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.error-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; max-width: 400px; line-height: 1.6; }
.error-state .error-actions { display: flex; gap: 12px; }
.error-state .error-actions .btn svg { width: 16px; height: 16px; }

/* skeleton 加载占位 */
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.skeleton-block {
  background: linear-gradient(90deg, var(--bg-page) 0px, var(--bg-card) 40px, var(--bg-page) 80px);
  background-size: 200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ========== 25. 汉堡菜单按钮 ========== */
.hamburger-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border-base);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.hamburger-btn:hover { border-color: var(--primary); color: var(--primary); }
.hamburger-btn svg { width: 20px; height: 20px; }

/* 侧边栏遮罩层 */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ========== 26. Responsive — 平板横屏 (769px - 1024px) ========== */
@media (max-width: 1024px) {
  /* 侧边栏折叠为图标模式 */
  .sidebar { width: 64px; min-width: 64px; }
  .sidebar .logo-text,
  .sidebar .nav-item span:not(.nav-badge),
  .sidebar .nav-section-title,
  .sidebar .user-info { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 10px; }
  .sidebar-logo { justify-content: center; padding: 16px 8px; }
  .sidebar-footer { padding: 10px 8px; }
  .user-card { justify-content: center; padding: 5px; }
  .user-card::before { display: none; }
  .user-card-arrow { display: none; }

  /* 统计卡片：每行3个 */
  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  /* 图表全宽 */
  .chart-grid { grid-template-columns: 1fr; }

  /* 重点跟踪 */
  #key-projects-list { grid-template-columns: 1fr; }

  /* 表格可横滚 */
  .data-table { min-width: 900px; font-size: 12px; }

  /* 顶部栏紧凑 */
  .topbar { gap: 10px; padding: 0 16px; }
  .search-box { max-width: 300px; }
  .topbar-actions .btn-outline { display: none; }

  /* 内容区域 */
  .content-area { padding: 16px; }
}

/* ========== 27. Responsive — 手机竖屏 (< 768px) ========== */
@media (max-width: 768px) {
  html { font-size: 13px; }

  /* ——— 汉堡按钮 ——— */
  .hamburger-btn { display: flex; }

  /* ——— 访问人数（移动端隐藏，避免顶栏拥挤） ——— */
  .visitor-info { display: none; }

  /* ——— 底部备案 ——— */
  .site-footer { padding: 12px 16px; }
  .footer-inner { gap: 8px; flex-direction: column; text-align: center; }

  /* ——— 侧边栏：默认隐藏，点击弹出 ——— */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    min-width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .logo-text,
  .sidebar .nav-item span:not(.nav-badge),
  .sidebar .nav-section-title,
  .sidebar .user-info { display: initial; }
  .sidebar .nav-item { justify-content: flex-start; padding: 9px 12px; }
  .sidebar-logo { justify-content: flex-start; padding: 20px 18px; }
  .sidebar-footer { padding: 12px 14px; }
  .user-card { justify-content: flex-start; padding: 12px 14px; }

  /* 遮罩层 */
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  /* ——— 顶部栏 ——— */
  .topbar {
    height: 52px;
    padding: 0 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .topbar-breadcrumb { display: none; }
  .search-box { flex: 1; min-width: 0; max-width: none; height: 34px; }
  .search-box input { font-size: 12px; }
  .data-update-info { display: none; }
  .data-source-info { display: none; }
  .topbar-actions { gap: 4px; }
  .topbar-actions .btn-outline { display: none; }
  .icon-btn { width: 32px; height: 32px; }

  /* ——— 内容区域 ——— */
  .content-area { padding: 12px 10px; }

  /* ——— 统计卡片：每行2个 ——— */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 22px; }
  .stat-header { margin-bottom: 8px; }
  .stat-icon { width: 30px; height: 30px; }

  /* ——— 图表 ——— */
  .chart-grid { grid-template-columns: 1fr; gap: 12px; }
  .chart-container { height: 220px; }
  .chart-container.tall { height: 260px; }
  .chart-container.short { height: 160px; }
  .card-header { padding: 12px 14px; }
  .card-body { padding: 12px; }

  /* ——— 筛选栏 ——— */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
  }
  .filter-group { width: 100%; flex-wrap: wrap; }
  .filter-select { flex: 1; min-width: 0; font-size: 12px; }
  .today-bids-btn { height: 34px; font-size: 13px; padding: 0 6px 0 12px; align-self: flex-start; border-radius: 8px; }
  .today-bids-btn svg { width: 15px; height: 15px; }
  .today-bids-count { min-width: 22px; height: 22px; font-size: 11px; padding: 0 6px; }
  .filter-bar [style*="margin-left: auto"] {
    margin-left: 0 !important;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  /* ——— 行业选择器 ——— */
  .industry-selector {
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .industry-chip {
    font-size: 12px;
    padding: 5px 12px;
    flex-shrink: 0;
  }

  /* ——— 表格 ——— */
  .data-table { min-width: 750px; font-size: 12px; }
  .data-table thead th { padding: 8px 10px; font-size: 10px; }
  .data-table tbody td { padding: 8px 10px; }
  .data-table .col-spec { max-width: 160px; }
  .data-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
  .card-body.no-padding { border-radius: var(--radius-md); }

  /* ——— 卡片视图 ——— */
  .bid-item { padding: 14px 16px; }
  .bid-item-title { font-size: 13px; }
  .bid-item-meta { gap: 8px; }
  .bid-meta-item { font-size: 11px; }

  /* ——— 视图切换 ——— */
  .view-toggle { display: none; }

  /* ——— 分页 ——— */
  .pagination { gap: 2px; margin-top: 16px; flex-wrap: wrap; }
  .page-btn { min-width: 28px; height: 28px; font-size: 12px; padding: 0 6px; }

  /* ——— 重点跟踪卡片 ——— */
  #key-projects-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .priority-card { padding: 14px 16px; border-left-width: 3px; }
  .priority-title { font-size: 13px; }
  .priority-amount { font-size: 16px; }
  .priority-note { font-size: 11px; padding: 8px 12px; }

  /* ——— 设置页 ——— */
  .city-check-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .city-check-item { padding: 8px 10px; font-size: 11px; }

  /* ——— Toast ——— */
  .toast {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
    justify-content: center;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
  }

  /* ——— 弹窗/详情页适配 ——— */
  .bid-detail-overlay { padding: 0; align-items: flex-end; }
  .bid-detail-panel {
    width: 100%;
    max-width: 100%;
    height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    max-height: 92vh;
  }
  .bid-detail-header { padding: 14px 16px; flex-direction: column; }
  .bid-detail-body { padding: 14px 16px; }
  .detail-info-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .detail-info-item { font-size: 12px; padding: 10px !important; }

  /* ——— 设置页通知设置 ——— */
  .settings-section .btn { height: 32px; font-size: 12px; }
  .settings-heading { font-size: 14px; }
  .settings-desc { font-size: 12px; }

  /* ——— 错误状态 ——— */
  .error-state { padding: 48px 16px; min-height: 300px; }
  .error-state h3 { font-size: 16px; }
  .error-state .error-icon { width: 44px; height: 44px; }

  /* ——— 空状态 ——— */
  .empty-state { padding: 40px 16px; }
  .empty-state svg { width: 40px; height: 40px; }

  /* ——— 政法标局 ——— */
  .report-grid { grid-template-columns: 1fr; gap: 12px; }
  .report-card-date { min-width: 68px; padding: 12px 8px; }
  .report-card-day { font-size: 24px; }
}

/* ========== 28. Responsive — 小屏手机 (< 400px) ========== */
@media (max-width: 400px) {
  html { font-size: 12px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 10px 12px; }
  .stat-value { font-size: 20px; }
  .stat-icon { width: 28px; height: 28px; }

  .topbar { height: 48px; padding: 0 8px; gap: 6px; }
  .search-box { height: 30px; }
  .icon-btn { width: 28px; height: 28px; }
  .icon-btn svg { width: 16px; height: 16px; }

  .content-area { padding: 8px 6px; }
  .card-header { padding: 10px 12px; }
  .card-body { padding: 10px; }

  .filter-bar { padding: 8px 10px; gap: 6px; }
  .filter-select { height: 30px; font-size: 11px; }

  .data-table { min-width: 650px; font-size: 11px; }
  .data-table tbody td { padding: 6px 8px; }

  .page-btn { min-width: 26px; height: 26px; font-size: 11px; }

  .city-check-grid { grid-template-columns: repeat(2, 1fr); }
}
