/* ============================================================
   工程建设招标信息查询 —— 商业化企业级界面（v2）
   设计语言：企业级招投标情报平台
   · 主色：深海蓝（信赖/稳重） + 细金强调（专业/质感）
   · 渐变顶栏 + 分段式 Tab + 统一阴影/描边体系 + 微交互动效
   · 保留全部类名与 DOM 结构，仅重设计视觉层（JS 零改动）
   ============================================================ */

:root {
  /* 主色系 —— 参考千里马（品牌红）：ca433d 主红 / c5021b 深红 / ff973b 橙 / 17181a 近黑 */
  --primary: #ca433d;
  --primary-dark: #a52f2a;
  --primary-darker: #7d211d;
  --primary-light: #fbecec;
  --primary-grad: linear-gradient(135deg, #8e211c 0%, #c8342f 45%, #e05a52 100%);

  /* 辅助/强调 */
  --warn: #e08a2e;
  --gold: #f0a500;
  --accent: #c62828;           /* 强调色：深红（招标/金额语义） */
  --accent-bg: #fdecec;
  --green: #1d8a5f;
  --green-bg: #e9f6ef;

  /* 背景与表面 */
  --bg: #f5f5f6;
  --bg-soft: #fafafa;
  --card: #ffffff;
  --text: #1c1e21;
  --text-sub: #5f6672;
  --text-faint: #8d949e;
  --border: #e6e7e9;
  --border-strong: #d4d6da;

  /* 形状与投影 */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(60,15,12,.05), 0 6px 20px rgba(60,15,12,.06);
  --shadow-hover: 0 4px 10px rgba(60,15,12,.10), 0 14px 34px rgba(60,15,12,.12);

  /* 标签色（工程=蓝为数据语义色，保留） */
  --tag-blue: #dcebfa;
  --tag-blue-t: #1d5ea0;
  --gray-bg: #eef1f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 强制 HTML hidden 属性优先级（弹窗/面板显隐依赖，禁止覆盖） */
[hidden] { display: none !important; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Roboto, sans-serif;
  background:
    linear-gradient(180deg, #f7efee 0%, var(--bg) 220px);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ============ 顶部导航（企业级渐变头） ============ */
.topbar {
  background: var(--primary-grad);
  color: #fff;
  padding: 15px 22px;
  box-shadow: 0 3px 14px rgba(70,16,14,.28);
  position: relative;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #f4c96b, #e6b04e 40%, transparent 75%);
  opacity: .9;
}
.topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #fff, #e7effb);
  color: var(--primary-dark);
  font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(80,20,16,.35), inset 0 0 0 1px rgba(255,255,255,.7);
}
.brand-text h1 { font-size: 20px; font-weight: 700; letter-spacing: .5px; line-height: 1.25; }
.brand-text p { font-size: 12px; opacity: .8; margin-top: 2px; }

/* 顶部右侧：地区切换 + 刷新 + 登录态 */
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* 顶部「会员中心」入口（未登录也可见） */
.member-top {
  cursor: pointer; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14);
  color: #fff; border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: background .2s, transform .15s;
}
.member-top:hover { background: rgba(255,255,255,.28); }
.member-top:active { transform: scale(.96); }
.region-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.13);
  color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 34px 8px 15px; border-radius: 20px; cursor: pointer;
  max-width: 230px; transition: background .2s, border-color .2s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.region-select:hover { background-color: rgba(255,255,255,.22); border-color: rgba(255,255,255,.55); }
.region-select:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.region-select option { color: var(--text); background: #fff; font-weight: 500; }

/* ============ 统计速览（KPI 卡） ============ */
.stats-bar {
  max-width: 1280px; margin: 14px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.stat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; border-top: 4px solid var(--primary);
  border: 1px solid var(--border); border-top: 4px solid var(--primary);
  position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-card::before {
  content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px;
  border-radius: 50%; background: radial-gradient(circle, rgba(202,67,61,.06), transparent 70%);
}
.stat-card:nth-child(2) { border-top-color: #d9574f; }
.stat-card:nth-child(3) { border-top-color: #7d8aa5; }
.stat-card:nth-child(4) { border-top-color: var(--accent); }
.stat-card:nth-child(5) { border-top-color: var(--green); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.stat-card:nth-child(4) .stat-num { color: var(--accent); }
.stat-card:nth-child(5) .stat-num { color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-sub); margin-top: 3px; font-weight: 500; }

/* ============ 项目分布（饼图面板） ============ */
.dist-panel {
  max-width: 1280px; margin: 14px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.dist-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px 12px; border: 1px solid var(--border);
}
.dist-title { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.dist-body { display: flex; align-items: center; gap: 18px; }
.pie-box { flex-shrink: 0; }
.pie-box svg { display: block; }
.pie-empty { color: var(--text-sub); font-size: 13px; padding: 20px 0; text-align: center; }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.legend-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  padding: 4px 8px; border-radius: 6px; transition: background .15s;
}
.legend-item:hover { background: var(--bg-soft); }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-num { margin-left: auto; color: var(--text-sub); font-variant-numeric: tabular-nums; flex-shrink: 0; }
@media (max-width: 860px) {
  .dist-panel { grid-template-columns: 1fr; }
  .dist-body { flex-direction: column; align-items: flex-start; }
  .legend { width: 100%; }
}

/* ============ 全国总览卡片 ============ */
.region-cards { max-width: 1280px; margin: 14px auto 0; padding: 0 20px; }
.region-cards-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.rc-title { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.rc-hint { font-size: 12px; color: var(--text-sub); }
.region-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 13px;
}
.region-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; cursor: pointer; border: 1px solid var(--border);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.region-card:hover {
  transform: translateY(-3px); border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.rc-name { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.rc-count { font-size: 24px; font-weight: 700; color: var(--primary-dark); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.rc-count span { font-size: 12px; font-weight: 500; color: var(--text-sub); }
.rc-bar {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eef1f5;
  margin-bottom: 8px;
}
.rc-bar-seg { height: 100%; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px;
  color: var(--text-sub); background: var(--bg-soft); padding: 2px 8px; border-radius: 10px;
}
.rc-tag i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ============ Tab 导航（查询 / 数据分析）—— 分段式胶囊 ============ */
.tabnav {
  max-width: 1280px; margin: 16px auto 0; padding: 0 20px;
  display: flex; gap: 6px;
}
.tab-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 26px; border-radius: 22px; box-shadow: var(--shadow);
  transition: all .2s;
}
.tab-btn:hover { color: var(--primary); border-color: var(--primary); }
.tab-btn.active {
  color: #fff; background: var(--primary-grad); border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(202,67,61,.32);
}
.tab-panel .stats-bar, .tab-panel .region-cards, .tab-panel .analytics-grid { padding-left: 0; padding-right: 0; }

/* ============ 数据分析：子视图导航（胶囊分段） ============ */
.analytics-subnav {
  max-width: 1280px; margin: 16px auto 0; padding: 0 20px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.subnav-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 16px; border-radius: 18px; transition: all .18s;
}
.subnav-btn:hover { color: var(--primary); border-color: var(--primary); }
.subnav-btn.active { color: #fff; background: var(--primary-grad); border-color: var(--primary); box-shadow: 0 3px 10px rgba(202,67,61,.25); }
.chart-card.is-hidden { display: none !important; }
.region-cards.is-hidden { display: none !important; }

/* 数据更新时间 */
.data-fresh {
  max-width: 1280px; margin: 8px auto 0; padding: 0 20px;
  font-size: 12px; color: var(--text-sub);
}
.data-fresh b { color: var(--primary-dark); }
.analytics-export { max-width: 1280px; margin: 8px auto 0; padding: 0 20px; }
.analytics-export .btn-export { padding: 7px 16px; }
.col-chart-wrap { flex-basis: 100%; margin-top: 10px; }
.mini-title { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }

/* ============ 数据分析：图表网格 ============ */
.analytics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 14px;
}
.chart-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px 16px; border: 1px solid var(--border);
  transition: box-shadow .18s;
}
.chart-card:hover { box-shadow: var(--shadow-hover); }
.chart-card.full-width { grid-column: 1 / -1; }
.chart-body-col { flex-direction: column; align-items: stretch; }
.chart-title {
  font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chart-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.line-box, .bar-box, .stack-box { width: 100%; min-height: 180px; }
.line-box svg, .bar-box svg, .stack-box svg { display: block; width: 100%; height: auto; }
.chart-note { font-size: 11.5px; color: var(--text-sub); margin-top: 6px; line-height: 1.5; flex-basis: 100%; }
#cardTypeRegion .chart-body { flex-wrap: nowrap; }
@media (max-width: 860px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .chart-body { flex-direction: column; align-items: flex-start; }
  .chart-body .legend { width: 100%; }
}

/* 横向条形 */
.bar-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.bar-name { width: 72px; flex-shrink: 0; font-size: 12.5px; color: var(--text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; background: #eef1f5; border-radius: 4px; height: 16px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #ca433d, #e0625a); border-radius: 4px; }
.bar-num { width: 60px; flex-shrink: 0; text-align: right; font-size: 12.5px; color: var(--text-sub); font-variant-numeric: tabular-nums; }

/* 堆叠条形 */
.st-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.st-name { width: 72px; flex-shrink: 0; font-size: 12.5px; color: var(--text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-track { flex: 1; background: #eef1f5; border-radius: 4px; height: 18px; overflow: hidden; }
.st-segs { display: flex; width: 100%; height: 100%; }
.st-seg { height: 100%; }
.st-num { width: 60px; flex-shrink: 0; text-align: right; font-size: 12.5px; color: var(--text-sub); font-variant-numeric: tabular-nums; }

/* 热度矩阵 */
.heat-wrap { width: 100%; }
.heat-box { width: 100%; overflow-x: auto; padding-bottom: 4px; }
.heatmap { min-width: 720px; }
.hm-grid { display: table; width: 100%; border-collapse: separate; border-spacing: 3px; }
.hm-head { display: table-row; }
.hm-corner { display: table-cell; font-size: 11.5px; color: var(--text-sub); white-space: nowrap; text-align: right; padding-right: 6px; min-width: 88px; }
.hm-col { display: table-cell; font-size: 11.5px; color: var(--text-sub); text-align: center; white-space: nowrap; padding: 2px 6px; min-width: 58px; }
.hm-row { display: table-row; }
.hm-name { display: table-cell; font-size: 12px; color: var(--text); text-align: right; white-space: nowrap; padding-right: 6px; min-width: 88px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.hm-cell { display: table-cell; text-align: center; font-size: 11px; color: var(--primary-dark); min-width: 48px; padding: 6px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.hm-summary { margin-top: 8px; font-size: 12px; color: var(--text-sub); }
.lq-legend { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--text-sub); flex-wrap: wrap; }
.lq-legend-label { white-space: nowrap; }
.lq-bar { display: inline-block; width: 160px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(180,178,169,0.55), rgba(202,67,61,0.35), rgba(202,67,61,0.85)); }
.lq-legend-note { color: var(--text-sub); }

/* 排行榜表格 */
.rank-table { width: 100%; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; transition: background .15s; }
.rank-row:hover { background: #f7efee; }
.rank-idx { width: 22px; flex-shrink: 0; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--primary-grad); border-radius: 50%; height: 20px; line-height: 20px; }
.rank-row:nth-child(n+4) .rank-idx { background: #9fb3c8; }
.rank-name { flex: 1; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-num { width: 64px; flex-shrink: 0; text-align: right; font-size: 12.5px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.rank-sub { font-size: 11.5px; color: var(--text-sub); flex-shrink: 0; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 招标计划前瞻 */
.plan-stat { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.plan-stat b { color: var(--primary); font-size: 16px; }

/* 垂直柱状图 */
.col-chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 4px 2px 0; }
.col-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.col-num { font-size: 11.5px; color: var(--text-sub); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.col-track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: #eef1f5; border-radius: 4px 4px 0 0; }
.col-fill { display: block; width: 100%; background: linear-gradient(180deg, #e0625a, #ca433d); border-radius: 4px 4px 0 0; min-height: 2px; }
.col-name { font-size: 11px; color: var(--text-sub); margin-top: 5px; white-space: nowrap; }

/* 漏斗图 */
.funnel-box { width: 100%; }
.fn-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.fn-name { width: 72px; flex-shrink: 0; font-size: 12.5px; color: var(--text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-track { flex: 1; background: #eef1f5; border-radius: 4px; height: 22px; overflow: hidden; }
.fn-fill { display: block; height: 100%; background: linear-gradient(90deg, #ca433d, #e0625a); border-radius: 4px; }
.fn-num { width: 160px; flex-shrink: 0; text-align: right; font-size: 12px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.fn-rate { color: var(--text-sub); opacity: .8; }

/* ============ 主容器 / 筛选面板 ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 18px 20px 24px; }

.filter-panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px 14px; border: 1px solid var(--border);
}
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; }
.filter-item { display: flex; flex-direction: column; gap: 5px; }
.filter-item label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.filter-item input, .filter-item select {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px;
  font-size: 13px; color: var(--text); background: #fff; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.filter-item input:hover, .filter-item select:hover { border-color: var(--border-strong); }
.filter-item input:focus, .filter-item select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(202,67,61,.14);
}
.date-range, .amt-range { display: flex; align-items: center; gap: 6px; }
.date-range span, .amt-range span { color: var(--text-sub); font-size: 12px; flex-shrink: 0; }
.filter-kw input { padding: 9px 12px; }

.filter-actions {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.btn { border: none; border-radius: 8px; padding: 9px 26px; font-size: 14px; cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-primary { background: var(--primary-grad); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(202,67,61,.28); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(202,67,61,.34); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text-sub); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-export { background: #fff; border: 1px solid var(--primary); color: var(--primary); font-weight: 600; padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-export:hover { background: var(--primary-light); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.result-count { margin-left: auto; color: var(--text-sub); font-size: 13px; }

/* ============ 列表面板 ============ */
.list-panel { margin-top: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 16px; border: 1px solid var(--border); }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.list-title { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.list-tools { display: flex; align-items: center; gap: 12px; }
.view-toggle { font-size: 13px; color: var(--primary); cursor: pointer; user-select: none; font-weight: 600; }
.view-toggle:hover { text-decoration: underline; }
.list-tools select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--text); background: #fff; }

.state-box { text-align: center; padding: 26px 0; color: var(--text-sub); }
.state-loading::before { content: ""; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-error { color: var(--accent); }
.state-empty { font-size: 15px; }

/* ============ 表格视图（桌面端） ============ */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.data-table thead th {
  background: linear-gradient(180deg, #fdf1f0, #fbecec); color: var(--primary-dark); font-size: 12.5px; font-weight: 700;
  padding: 11px 12px; text-align: left; white-space: nowrap; border-bottom: 2px solid #f2cfcc;
  letter-spacing: .2px;
}
.data-table thead th.sortable { cursor: pointer; user-select: none; }
.data-table thead th.sortable:hover { background: #f7dedc; }
.sort-icon { display: inline-block; width: 0; height: 0; margin-left: 4px; border-left: 4px solid transparent; border-right: 4px solid transparent; vertical-align: middle; }
th.sort-asc .sort-icon { border-bottom: 5px solid var(--primary); }
th.sort-desc .sort-icon { border-top: 5px solid var(--primary); }
.data-table tbody td { padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:nth-child(even) { background: #fbfcfe; }
.data-table tbody tr:hover { background: #fdf0ef; }
.td-title { max-width: 380px; }
.td-title .t-name { font-weight: 600; color: var(--primary-dark); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-title .t-code { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.td-amount { font-weight: 700; color: var(--accent); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.td-amount .amt-empty { color: var(--text-sub); font-weight: 400; }
.td-date { font-size: 12.5px; color: var(--text); white-space: nowrap; }
.td-date .dl-none { color: var(--text-sub); }

/* 标签 */
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; white-space: nowrap; font-weight: 500; }
.tag-type-工程 { background: var(--tag-blue); color: var(--tag-blue-t); }
.tag-type-货物 { background: #fdeeda; color: #b0711c; }
.tag-type-服务 { background: var(--green-bg); color: var(--green); }
.tag-type-其他 { background: var(--gray-bg); color: var(--text-sub); }
.tag-district { background: var(--gray-bg); color: var(--text-sub); }
.tag-section { background: var(--accent-bg); color: var(--accent); }
.tag-overdue { background: var(--accent-bg); color: var(--accent); font-size: 11px; padding: 1px 8px; }

.btn-detail {
  background: #fff; border: 1px solid var(--primary); color: var(--primary);
  border-radius: 8px; padding: 4px 14px; font-size: 12.5px; cursor: pointer; transition: all .2s;
}
.btn-detail:hover { background: var(--primary); color: #fff; }

/* ============ 卡片视图（移动端） ============ */
.card-list { display: flex; flex-direction: column; gap: 12px; }
.t-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  background: #fff; cursor: pointer; transition: box-shadow .2s, border-color .2s;
}
.t-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.t-card .c-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.t-card .c-title { font-weight: 600; color: var(--primary-dark); font-size: 14px; }
.t-card .c-tags { display: flex; gap: 6px; flex-shrink: 0; }
.t-card .c-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; color: var(--text-sub); }
.t-card .c-meta b { color: var(--text); font-weight: 600; }
.t-card .c-amt { color: var(--accent); font-weight: 600; }

/* ============ 分页 ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.page-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 16px;
  font-size: 13px; cursor: pointer; color: var(--text); transition: all .2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-nums { display: flex; gap: 6px; }
.page-num {
  min-width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; color: var(--text);
  transition: all .15s;
}
.page-num:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.page-num.active { background: var(--primary-grad); border-color: var(--primary); color: #fff; font-weight: 600; }
.page-num.ellipsis { border: none; cursor: default; }

/* ============ 详情弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(9, 24, 48, .58); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 14px; width: min(880px, 100%); max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: 0 18px 60px rgba(70,16,14,.35); animation: modalIn .22s ease;
  border: 1px solid rgba(255,255,255,.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fdf1f0, #fbecec);
  border-radius: 14px 14px 0 0;
}
.modal-head h2 { font-size: 17px; color: var(--primary-dark); flex: 1; font-weight: 700; }
.modal-close {
  border: none; background: #fff; width: 32px; height: 32px; border-radius: 50%;
  font-size: 15px; cursor: pointer; color: var(--text-sub); box-shadow: var(--shadow); flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.modal-close:hover { color: var(--accent); transform: rotate(90deg); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-loading { text-align: center; padding: 50px 0; color: var(--text-sub); }

.detail-head { margin-bottom: 16px; }
.detail-title { font-size: 19px; font-weight: 700; color: var(--primary-dark); line-height: 1.5; }
.detail-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-link {
  display: inline-block; background: var(--primary-grad); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 8px 18px; font-size: 13px; transition: background .2s; box-shadow: 0 3px 10px rgba(202,67,61,.25);
}
.btn-link:hover { filter: brightness(1.08); }
.btn-link-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-link-outline:hover { background: var(--primary-light); filter: none; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-bottom: 18px; }
.detail-field { border-bottom: 1px dashed var(--border); padding: 7px 0; display: flex; gap: 10px; }
.detail-field .k { color: var(--text-sub); font-size: 12.5px; flex-shrink: 0; min-width: 88px; font-weight: 600; }
.detail-field .v { color: var(--text); font-size: 13.5px; word-break: break-all; }
.detail-field .v.full { grid-column: 1 / -1; }

.detail-section { margin-bottom: 16px; }
.detail-section h3 {
  font-size: 14px; color: var(--primary); margin-bottom: 8px; padding-left: 9px;
  border-left: 3px solid var(--primary);
}
/* 项目全周期时间轴 */
.timeline { list-style: none; position: relative; margin: 4px 0 0; padding: 0 0 0 18px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 14px 14px; }
.tl-node {
  position: absolute; left: -18px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); box-sizing: border-box;
}
.tl-item.stage-中标公告 .tl-node { border-color: #1d8a5f; }
.tl-item.stage-变更\/答疑 .tl-node { border-color: #c98a2d; }
.tl-item.stage-招标计划 .tl-node { border-color: #7d5ba6; }
.tl-item.tl-self .tl-node { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.tl-body { background: #fbfcfe; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.tl-item.tl-self .tl-body { border-color: var(--primary); background: var(--primary-light); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-date { font-size: 12px; color: var(--text-sub); }
.tl-title { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.tl-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--text-sub); }
/* 实体画像弹窗 */
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 4px; }
.profile-stats .stat-card { padding: 10px 8px; }
.profile-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.profile-cols .detail-section { margin-bottom: 0; }
.profile-list { list-style: none; }
.profile-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.profile-list .pl-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.profile-list .pl-num { color: var(--primary); font-weight: 600; }
.detail-section .body-box {
  background: #fbfcfe; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-size: 13px; color: var(--text); white-space: pre-wrap;
  max-height: 320px; overflow-y: auto; line-height: 1.75;
}
.attach-list { list-style: none; }
.attach-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.attach-list a { color: var(--primary); text-decoration: none; }
.attach-list a:hover { text-decoration: underline; }
.ext-badge {
  display: inline-block; min-width: 34px; text-align: center; font-size: 10px; font-weight: 700;
  color: #fff; background: #7a8aa0; border-radius: 4px; padding: 1px 5px; margin-right: 6px;
  vertical-align: middle; letter-spacing: .3px;
}

/* 详情页：同地区即将招标的前瞻商机区块 */
.prospect-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prospect-item {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  background: linear-gradient(180deg, #fdf2f1, #fbecec);
}
.prospect-title { font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.badge-same {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600; color: #fff;
  background: var(--primary); border-radius: 4px; padding: 1px 6px; vertical-align: middle;
}
.prospect-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-sub); margin: 4px 0; }
.prospect-owner { font-size: 12px; color: var(--text-sub); }
.prospect-src { font-size: 11px; color: var(--text-sub); }

/* ============ 页脚 ============ */
.footer {
  text-align: center; color: var(--text-sub); font-size: 12px; margin-top: 34px;
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* ============ Toast 操作提示 ============ */
.toast {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--primary-grad); color: #fff; padding: 10px 22px; border-radius: 10px;
  font-size: 13.5px; box-shadow: 0 8px 26px rgba(70,16,14,.35); z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  max-width: min(92vw, 640px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: linear-gradient(135deg, #b03a2c, #d2402f); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .filter-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  /* 移动端顶栏：品牌一行 + 控件整行换行（紧凑化，避免控件被挤成多行碎片） */
  .topbar { padding: 10px 14px 12px; }
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .brand { gap: 10px; }
  .brand-logo { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
  .brand-text h1 { font-size: 15px; }
  .brand-text p { display: none; }
  .region-select { max-width: 150px; padding: 6px 30px 6px 11px; font-size: 13px; }
  .topbar-right { justify-content: flex-start; gap: 8px; }
  .member-top { padding: 6px 12px; font-size: 12.5px; }
  .login-status { margin-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .t-card .c-meta { grid-template-columns: 1fr; }
}

/* ============ 我的关注（Watch） ============ */
.watch-btn {
  display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none;
  font-size: 13px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.32);
  border-radius: 20px; padding: 6px 13px; white-space: nowrap; transition: background .2s;
}
.watch-btn:hover { border-color: var(--warn); color: #ffe2ad; background: rgba(255,255,255,.2); }
.watch-badge {
  min-width: 18px; text-align: center; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--gold); border-radius: 9px; padding: 0 5px;
}
.watch-panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(680px, 92vw); max-height: 82vh; overflow-y: auto; z-index: 130;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .42); padding: 16px 20px;
}
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 120; }
.modal-mask[hidden] { display: none; }
.watch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.watch-title { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.watch-hint { font-size: 12px; color: var(--text-sub); }
.watch-close {
  margin-left: auto; cursor: pointer; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; padding: 4px 12px; font-size: 13px; color: var(--text-sub);
}
.watch-close:hover { border-color: var(--primary); color: var(--primary); }
.watch-add { display: flex; gap: 8px; margin-bottom: 12px; }
.watch-add input {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; font-size: 13px; color: var(--text);
}
.watch-list { display: flex; flex-direction: column; gap: 8px; }
.watch-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #fbfcfe;
  border: 1px solid var(--border); border-radius: 8px;
}
.watch-kw { flex: 1; font-size: 13.5px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-count { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.watch-new { color: var(--green); font-weight: 700; margin-left: 6px; }
.watch-static { color: var(--text-sub); margin-left: 6px; }
.watch-go {
  cursor: pointer; border: 1px solid var(--primary); background: #fff; color: var(--primary);
  border-radius: 8px; padding: 4px 12px; font-size: 12px;
}
.watch-go:hover { background: var(--primary-light); }
.watch-del {
  cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  border-radius: 8px; padding: 4px 9px; font-size: 12px;
}
.watch-del:hover { border-color: var(--accent); color: var(--accent); }

/* ============ 关系图谱 ============ */
.rel-graph-wrap { width: 100%; }
.rel-graph {
  width: 100%; max-width: 820px; height: auto; display: block; margin: 0 auto;
  background: var(--bg-soft, #f7f9fc); border-radius: 10px; border: 1px solid var(--border);
  touch-action: none; cursor: grab;
}
.rel-graph:active { cursor: grabbing; }
.rel-legend {
  margin: 10px 2px 0; font-size: 12px; color: var(--text-sub); display: flex;
  flex-wrap: wrap; gap: 8px; align-items: center;
}
.rel-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.rel-tenderer { background: #3b6ea5; }
.rel-agency { background: #e0922f; }
.rel-winner { background: #2e9e6b; }
.rel-sep { color: var(--border); }
.rel-line { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin: 0 3px 0 10px; border-radius: 2px; }
.rel-line-ta { background: #3b6ea5; opacity: .5; }
.rel-line-tw { background: #2e9e6b; opacity: .5; }
.rel-line-aw { background: #e0922f; opacity: .5; }
.rel-edge-ta { stroke: #3b6ea5; opacity: .35; }
.rel-edge-tw { stroke: #2e9e6b; opacity: .35; }
.rel-edge-aw { stroke: #e0922f; opacity: .35; }
.rel-node .rel-label { font-size: 10px; fill: var(--text-sub); pointer-events: none; }
.rel-node circle { stroke: #fff; stroke-width: 1.5; transition: opacity .15s; }
.rel-node:hover circle { opacity: .85; }
.rel-tip { font-size: 11px; fill: var(--text); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }

/* ============ 竞争对手对比台 ============ */
.compete-input { display: flex; gap: 8px; margin-bottom: 12px; }
.compete-input input {
  flex: 1; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; background: var(--bg-soft, #fff); color: var(--text);
}
.compete-input .btn-sm { padding: 8px 16px; font-size: 13px; }
.cmp-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.cmp-table th, .cmp-table td {
  border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top;
}
.cmp-table thead th { background: var(--primary-light, #eef3fa); color: var(--primary, #ca433d); font-weight: 600; }
.cmp-table .cmp-k { background: var(--bg-soft, #f7f9fc); color: var(--text-sub); font-weight: 600; white-space: nowrap; }
.cmp-table .cmp-best { box-shadow: inset 0 0 0 2px var(--gold, #c9a24b); }
.cmp-recent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cmp-recent { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--bg-soft, #f7f9fc); }
.cmp-recent-name { font-weight: 600; color: var(--primary, #ca433d); margin-bottom: 4px; font-size: 13px; }
.cmp-recent-item { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* 竞争对手对比台 — 行业重合度 */
.competew-overlap, .compete-overlap { margin-top: 14px; }
.ov-title { font-weight: 600; font-size: 14px; color: var(--text, #1d2733); margin-bottom: 8px; }
.ov-sub { font-weight: 400; font-size: 12px; color: var(--text-sub); }
.ov-venn { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto; }
.ov-co { font-size: 13px; font-weight: 600; fill: var(--text, #1d2733); }
.ov-mid { font-size: 18px; font-weight: 700; fill: #1d2733; }
.ov-legend3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.ov-cell { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--text-sub); }
.ov-cell b { color: var(--text, #1d2733); }
.ov-a { border-left: 3px solid #ca433d; }
.ov-b { border-left: 3px solid #1d8a5f; }
.ov-ab { border-left: 3px solid #7d5ba6; }
.ov-matrix-wrap { overflow-x: auto; }
.ov-matrix { border-collapse: collapse; margin: 4px 0; font-size: 12px; }
.ov-th { background: var(--bg-soft, #f7f9fc); padding: 6px 10px; font-weight: 600; color: var(--text-sub); white-space: nowrap; text-align: left; }
.ov-td { width: 46px; height: 38px; text-align: center; font-weight: 600; border: 1px solid #fff; }
.ov-bar { font-size: 11px; color: var(--text-sub); margin-bottom: 8px; }
.ov-common { margin-top: 10px; }
.ov-common-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text, #1d2733); }
.ov-common ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ov-common li { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.6; color: var(--text-sub); }
.ov-common b { color: var(--text, #1d2733); }
.ov-jac { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #ca433d; color: #fff; font-size: 11px; font-weight: 600; }
.ov-nocommon { font-size: 12px; color: var(--text-sub); padding: 8px 0; }

/* 关系图谱标题的放大按钮 */
.rel-expand { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 10px; white-space: nowrap; }

/* ==================== 登录门禁（短信验证码登录） ==================== */
.login-gate {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(202,67,61,.28), transparent 60%),
    linear-gradient(160deg, #fbecec, #f2cfcc); padding: 20px;
}
.login-gate[hidden] { display: none; }
.login-card {
  width: min(92vw, 380px); background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 28px; box-shadow: 0 24px 70px rgba(16,40,80,.25);
}
.login-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.login-header .login-brand { margin-bottom: 0; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.login-brand .brand-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 3px 8px rgba(202,67,61,.3); }
.login-brand h2 { font-size: 18px; margin: 0; color: var(--primary-dark); font-weight: 700; }
.login-sub { color: var(--text-sub); font-size: 13px; margin: 2px 0 20px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 6px; font-weight: 600; }
.login-field input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; color: var(--text); outline: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.login-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(202,67,61,.14); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { white-space: nowrap; }
.login-submit { width: 100%; margin-top: 4px; padding: 11px; font-size: 15px; font-weight: 600; }
.login-msg { font-size: 13px; min-height: 18px; margin: 10px 0 0; }
.login-msg.ok { color: #1a8a3c; }
.login-msg.err { color: #d23b3b; }
.login-tip { font-size: 12px; color: var(--text-sub); margin-top: 12px; text-align: center; }
.login-status { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.login-phone { font-size: 13px; color: #fbe9e7; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: 5px 14px; white-space: nowrap; }

/* ==================== 会员中心（免费/专业/企业） ==================== */
.member-badge {
  cursor: pointer; border: 1px solid rgba(255,255,255,.4); background: linear-gradient(135deg, #e05a52, #ca433d);
  color: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: filter .2s;
}
.member-badge:hover { filter: brightness(1.12); }
.modal-member { width: min(720px, 100%); }
.member-status { font-size: 14px; color: var(--text); padding: 10px 14px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 12px; }
.member-status.member-active { background: var(--primary-light); border-color: var(--primary); }
.member-status b { color: var(--primary-dark); }
.member-notice { font-size: 13px; color: var(--accent); background: var(--accent-bg); border: 1px solid #f3c7c3; padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; }
.member-trial { margin-bottom: 12px; }
.member-trial .btn { width: 100%; }
.member-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 4px 0 12px; }
.plan-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; background: #fff; transition: box-shadow .18s, border-color .18s;
}
.plan-card:hover { box-shadow: var(--shadow-hover); }
.plan-card.plan-current { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(202,67,61,.14); }
.plan-name { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.plan-price { font-size: 26px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--text-sub); }
.plan-desc { font-size: 12.5px; color: var(--text-sub); line-height: 1.6; flex: 1; }
.plan-card .btn { width: 100%; }
.member-tip { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
@media (max-width: 640px) {
  .member-plans { grid-template-columns: 1fr; }
}

/* ==================== 订阅提醒（P1） ==================== */
.sub-add { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-add input[type=text] { flex: 1.5; min-width: 180px; }
.sub-add input[type=email] { flex: 1; min-width: 150px; }
.sub-add select { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; color: var(--text); }

/* 订阅今日新增角标 */
.sub-badge {
  display: inline-block; min-width: 18px; text-align: center; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: 9px; padding: 0 5px; margin-left: 5px;
  vertical-align: middle;
}

/* ==================== 前瞻商机付费墙（免费版仅预览） ==================== */
.badge-lock { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9px;
  font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #e0a63c, #d98a2b); vertical-align: middle; }
.prospect-lock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.prospect-lock { background: linear-gradient(135deg, #8e211c, #c8342f 55%, #e05a52); color: #fff; }

/* ==================== 企业版子账号 ==================== */
.member-subs { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 12px; background: var(--bg-soft); }
.sub-head { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.sub-quota { font-size: 12px; color: var(--text-sub); font-weight: 500; }
.sub-add { display: flex; gap: 8px; margin-bottom: 10px; }
.sub-add input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.sub-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.sub-item:last-child { border-bottom: none; }
.sub-phone { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sub-meta { color: var(--text-faint); font-size: 12px; flex: 1; }

/* 管理端：子账号标记 */
.sub-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 7px; font-size: 11px;
  color: #5a6b83; background: #eef2f8; border: 1px solid #e3eaf3; vertical-align: middle; }

/* ==================== 品牌 Slogan 露出（栗马标讯，立马领先） ==================== */
.slogan-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 13px 18px; border-radius: 12px; position: relative;
  background: linear-gradient(135deg, #8e211c, #c8342f 55%, #e05a52);
  color: #fff; box-shadow: var(--shadow);
}
.slogan-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #f4c96b, #e6b04e 40%, transparent 75%); }
.slogan-mark { font-weight: 800; font-size: 15px; letter-spacing: 1px; background: rgba(255,255,255,.16);
  padding: 3px 12px; border-radius: 14px; white-space: nowrap; }
.slogan-text { font-size: 17px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.slogan-sub { font-size: 12.5px; opacity: .88; }
.brand-slogan { font-size: 12px; font-weight: 600; color: #f4c96b; letter-spacing: .3px;
  margin-left: 8px; opacity: .95; white-space: nowrap; vertical-align: middle; }
@media (max-width: 640px) {
  .slogan-text { font-size: 15px; }
  .slogan-sub { width: 100%; text-align: center; }
  .brand-slogan { display: none; }   /* 移动端由 slogan-bar 承担，避免顶栏过高 */
}

/* ==================== AI 标讯解读 ==================== */
#aiInterpretBox .ai-loading { display: flex; align-items: center; gap: 8px; color: var(--text-sub); font-size: 13px; padding: 6px 0; }
.ai-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7a4fbf, #9b6fe0); }
.ai-card { border: 1px solid #e6ddf5; border-radius: 12px; padding: 16px 18px; background: #fbf9ff; }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; color: #4a2f7a; font-size: 14px; }
.ai-quota { margin-left: auto; font-size: 12px; color: var(--text-faint); font-weight: 400; }
.ai-summary { font-size: 14px; line-height: 1.7; color: var(--text); }
.ai-points { margin: 10px 0 6px; padding-left: 20px; color: var(--text); line-height: 1.8; font-size: 13px; }
.ai-item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e4dcf2; }
.ai-item b { display: block; color: #4a2f7a; font-size: 12px; margin-bottom: 4px; }
.ai-item p { margin: 0; color: var(--text-sub); line-height: 1.7; font-size: 13px; }
.ai-locked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-sub); font-size: 13px; padding: 6px 0; }
.ai-note { color: var(--text-sub); font-size: 13px; padding: 6px 0; }

/* ==================== AI 商机推荐 ==================== */
.ai-reco { margin: 0 0 16px; border: 1px solid #e6ddf5; border-radius: 12px; background: #fbf9ff; padding: 14px 16px; }
.ai-reco-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; color: #4a2f7a; font-size: 14px; }
.ai-reco-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 860px) { .ai-reco-list { grid-template-columns: 1fr; } }
.reco-item { border: 1px solid #eef0f5; border-radius: 10px; padding: 11px 13px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.reco-item:hover { border-color: #c9b8ec; box-shadow: 0 2px 8px rgba(90,60,150,.10); }
.reco-title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reco-meta { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.reco-reason { font-size: 12px; color: #6b5aa8; margin-top: 6px; line-height: 1.6; }

/* ==================== 品牌 Logo 图片版（栗马徽章） ==================== */
.brand-logo-img { display: block; width: 46px; height: 46px; border-radius: 12px; object-fit: contain;
  background: #fff; box-shadow: 0 3px 10px rgba(80,20,16,.35), inset 0 0 0 1px rgba(255,255,255,.7); flex: none; }
.login-brand .brand-logo-img { width: 34px; height: 34px; border-radius: 9px; }
@media (max-width: 640px) {
  .brand-logo-img { width: 34px; height: 34px; border-radius: 9px; }
}

/* 管理端：支付方式标签 */
.pm-tag { display: inline-block; padding: 1px 8px; border-radius: 7px; font-size: 12px;
  color: #1d6f42; background: #e8f6ee; border: 1px solid #d3ecdd; }

/* ==================== 投标决策字段（6 项） ==================== */
.decision-sec { border: 1px solid #f3e3da; background: #fffaf6; }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 640px) { .decision-grid { grid-template-columns: 1fr; } }
.decision-item { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px;
  background: #fff; border: 1px solid #f2e4da; border-radius: 9px; }
.decision-item .k { font-size: 11.5px; color: #a05c34; font-weight: 700; }
.decision-item .v { font-size: 13px; color: var(--text); line-height: 1.6; }
.decision-item .v-lock { font-size: 13px; color: #c8342f; font-weight: 600; }
.decision-item.locked { background: #fdf5ee; border-style: dashed; }
.decision-lock-row { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #e8d5c6; font-size: 12.5px; color: var(--text-sub); }

/* ==================== 到期前提醒续费横幅 ==================== */
.expiry-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 0; padding: 11px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #7a1f1b, #a32d2d 55%, #c0504a);
  color: #fff; font-size: 13.5px; box-shadow: var(--shadow); }
.expiry-ico { display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: #f4c96b; color: #7a1f1b;
  font-weight: 800; font-size: 13px; flex: none; }
.expiry-txt { flex: 1; min-width: 220px; line-height: 1.6; }
.expiry-txt b { color: #f4c96b; }
.expiry-close { background: rgba(255,255,255,.16); border: none; color: #fff;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 12px; flex: none; }
.expiry-close:hover { background: rgba(255,255,255,.3); }

/* 管理端：即将到期标签 */
.exp-tag { display: inline-block; margin-left: 5px; padding: 1px 8px; border-radius: 7px; font-size: 11px;
  color: #fff; background: #c8342f; vertical-align: middle; }

/* 联系方式付费墙 */
.contact-lock { display: inline-flex; align-items: center; gap: 4px; color: #c8342f; font-size: 13px; }
.contact-lock a { color: #c8342f; font-weight: 600; text-decoration: underline; cursor: pointer; }
.contact-lock a:hover { color: #8e211c; }

/* 公告正文付费墙 */
.body-lock { padding: 26px 16px; text-align: center; background: #fdf7f3; border: 1px dashed #e5c9b8; border-radius: 10px; }
.body-lock a { color: #c8342f; font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
.body-lock a:hover { color: #8e211c; }
.body-lock-tip { display: block; margin-top: 6px; font-size: 12px; color: #a08d80; }
