/* ============================================================
   标策AI 前端样式 —— 苹果风暗色设计
   设计原则：克制的留白、柔和的层次、系统级配色、圆角与微妙投影。
   ============================================================ */

:root {
  --bg: #0b0b0f;                 /* 页面底色 */
  --bg-elevated: #1c1c1e;        /* 卡片/弹窗底色 */
  --bg-elevated-2: #2c2c2e;      /* 次级面 */
  --stroke: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #9a9aa0;
  --blue: #0a84ff;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 80% -10%, #14233a 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(11, 11, 15, 0.7);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
.brand .subtitle { font-size: 11px; color: var(--text-dim); }
.logo { filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.4)); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.search-box { display: flex; gap: 8px; align-items: center; }
.search-box input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 980px;
  padding: 9px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  width: 240px;
}
.search-box input:focus { outline: none; border-color: var(--blue); }

.mini-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 980px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}
.mini-select:focus { outline: none; border-color: var(--blue); }

/* ---------------- 分类筛选工具栏 ---------------- */
.filterbar {
  max-width: 1480px;
  margin: 10px auto 0;
  padding: 10px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 12px; color: var(--text-dim); padding-left: 4px; }
.filter-group select {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  min-width: 120px;
}
.filter-group select:focus { outline: none; border-color: var(--blue); }
.filter-count {
  margin-left: 14px;
  align-self: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* 卡片 / 表格 视图切换（分段控件） */
.view-toggle {
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.vt-btn {
  font-family: var(--font);
  font-size: 13px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.vt-btn:hover { color: var(--text); }
.vt-btn.active { background: var(--blue); color: #fff; }

.btn {
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 980px;          /* 胶囊按钮 */
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--text);
}
.btn.primary { background: var(--blue); }
.btn.primary:hover { background: #2b97ff; transform: translateY(-1px); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--stroke);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- 数据概览 ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 28px 4px;
  max-width: 1480px;
  margin: 0 auto;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num { font-size: 24px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.2px; }
.accent-green { color: var(--green); }
.accent-red { color: var(--red); }

/* ---------------- 商机看板 ---------------- */
.board {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 28px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 60px 0;
}

/* 表格视图：取消网格布局，改为单列承载 table */
.board--table { display: block; }

.proj-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
.proj-table thead th {
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 12px;
  border-bottom: 1px solid var(--stroke);
}
.proj-table tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  font-size: 13px;
}
.proj-table tbody tr { cursor: pointer; transition: background 0.15s ease; }
.proj-table tbody tr:hover { background: rgba(10, 132, 255, 0.08); }
.proj-table tbody tr:last-child td { border-bottom: none; }
.proj-table .td-title {
  font-weight: 500;
  min-width: 220px;
  max-width: 360px;
}
.proj-table .td-money { color: #5fe389; font-weight: 600; white-space: nowrap; }
.proj-table .td-date { color: var(--text-dim); white-space: nowrap; }
.proj-table .td-eval { color: var(--text-dim); max-width: 140px; }
.proj-table .td-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 120px; }
.td-dim { color: var(--text-dim); }
@media (max-width: 880px) {
  .proj-table .td-eval, .proj-table thead th:nth-child(7) { display: none; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: var(--shadow);
}

.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 980px;
  white-space: nowrap;
  font-weight: 500;
}
.tag.bid { background: rgba(10, 132, 255, 0.16); color: #5ab0ff; }
.tag.win { background: rgba(48, 209, 88, 0.16); color: #5fe389; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-dim); }
.card-meta b { color: var(--text); font-weight: 600; }

/* 卡片项目信息列表（结构化键值） */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ci-row { display: flex; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.35; }
.ci-k {
  flex: 0 0 48px;
  color: var(--text-dim);
  font-size: 11px;
}
.ci-v {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-v.chips { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; overflow: visible; }

/* 资质标签 chip（参考标讯网的资质徽章） */
.qual-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 6px;
  color: #5fb0ff;
  background: rgba(10, 132, 255, 0.14);
  border: 1px solid rgba(10, 132, 255, 0.28);
  white-space: nowrap;
}

.card-badges { display: flex; gap: 6px; align-items: center; margin-top: auto; flex-wrap: wrap; }

/* 风险 / 匹配 小徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--bg-elevated-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }

/* AI 投标建议徽章 */
.badge.bid-rec { font-weight: 600; }
.badge.bid-yes { background: rgba(48,209,88,0.18); color: var(--green); }
.badge.bid-no  { background: rgba(255,69,58,0.18); color: var(--red); }
.badge.bid-maybe { background: rgba(255,159,10,0.18); color: var(--orange); }
.dot.low { background: var(--green); }
.dot.mid { background: var(--orange); }
.dot.high { background: var(--red); }

.match-ring { font-weight: 700; }
.match-ring.good { color: var(--green); }
.match-ring.mid { color: var(--orange); }
.match-ring.bad { color: var(--text-dim); }

/* 卡片上的"完善画像"提示徽章（未录入画像时替代匹配分） */
.badge.match-prompt {
  background: rgba(255,159,10,0.14);
  color: var(--orange);
  cursor: pointer;
  border: 1px solid rgba(255,159,10,0.25);
  transition: background 0.2s;
}
.badge.match-prompt:hover {
  background: rgba(255,159,10,0.22);
}

.card .analyze-tip {
  font-size: 12px;
  color: var(--orange);
  display: flex; align-items: center; gap: 6px;
}

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow);
  animation: pop 0.22s ease;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; color: var(--text-dim);
  font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 20px; margin-bottom: 8px; padding-right: 30px; }
.modal .hint { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }

/* 详情内分区块 */
.detail-section { margin-top: 22px; }
.detail-section h3 {
  font-size: 14px; color: var(--text);
  letter-spacing: 0.3px; margin-bottom: 12px; font-weight: 600;
  padding-left: 12px; position: relative;
  display: flex; align-items: center; gap: 6px;
}
/* 标题左侧渐变色条，让每个区块层次分明、更专业 */
.detail-section h3::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 15px; border-radius: 980px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}
.detail-section p { line-height: 1.7; font-size: 14px; }

/* 项目核心信息面板（参考标讯网） */
.core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px 18px;
}
.core-item { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; min-width: 0; }
.core-item.core-full { grid-column: 1 / -1; align-items: center; }
.core-k { flex: 0 0 auto; color: var(--text-dim); white-space: nowrap; }
.core-v { flex: 1; color: var(--text); font-weight: 500; word-break: break-all; }
.core-v.chips { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 500; }
@media (max-width: 560px) { .core-grid { grid-template-columns: 1fr; } }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.req-list li {
  background: var(--bg-elevated-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex; gap: 8px; align-items: flex-start;
}
.req-list li.ok::before { content: "✓"; color: var(--green); font-weight: 700; }
.req-list li.no::before { content: "✕"; color: var(--red); font-weight: 700; }

.risk-meter {
  height: 10px; border-radius: 980px; background: var(--bg-elevated-2);
  overflow: hidden; margin: 8px 0;
}
.risk-meter > span { display: block; height: 100%; border-radius: 980px; }

.raw-box {
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
  border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.7;
  color: var(--text-dim); white-space: pre-wrap;
  /* 限高 + 滚动，避免超长原文撑爆面板或溢出覆盖其他元素 */
  max-height: 360px; overflow-y: auto;
}
/* 原文滚动条美化 */
.raw-box::-webkit-scrollbar { width: 8px; }
.raw-box::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14); border-radius: 980px;
}
.raw-box::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* 公告来源：独立成栏，与原文框分隔，避免重叠 */
.raw-source { margin-top: 12px; }
.source-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid rgba(10,132,255,0.28);
  background: rgba(10,132,255,0.08);
  transition: background 0.2s;
}
.source-link:hover { background: rgba(10,132,255,0.16); text-decoration: none; }

/* ───────── 详情页 5 大模块结构 ───────── */
/* 顶部锚点导航 */
.detail-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 0; margin-bottom: 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--stroke);
}
.detail-nav .nav-item {
  font-size: 12px; color: var(--text-dim); text-decoration: none;
  padding: 6px 12px; border-radius: 980px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated-2);
  transition: all 0.2s;
  white-space: nowrap;
}
.detail-nav .nav-item:hover { color: var(--blue); border-color: var(--blue); }
.detail-nav .nav-item.active {
  color: #fff; background: var(--blue); border-color: var(--blue);
}

/* 模块卡片 */
.detail-module {
  margin-bottom: 22px; padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  scroll-margin-top: 70px; /* 锚点跳转时留出顶部导航空间 */
}
.module-header {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px dashed var(--stroke);
}
.module-header h3 {
  margin: 0; font-size: 16px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.module-header h3::before {
  content: ""; display: inline-block;
  width: 4px; height: 15px; border-radius: 980px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  margin-right: 4px;
}
.module-sub {
  font-size: 12px; color: var(--text-dim);
  flex: 1; min-width: 0;
}

/* 子卡片（深度分析模块内的 3.1/3.2/3.3...）*/
.detail-module .sub-card,
.sub-card {
  display: block;                 /* 关键：确保详情页子卡片为纵向块布局，不被订阅卡片的 flex 影响 */
  margin-top: 14px; padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
}
.detail-module .sub-card:first-child { margin-top: 0; }
.sub-card h4 {
  margin: 0 0 12px; font-size: 14px; font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  line-height: 1.4;
}
/* 3.4 投标建议卡：按结论着色左边框，强化层次 */
.sub-rec { border-left: 3px solid var(--stroke); }
.sub-rec.rec-yes   { border-left-color: var(--green); }
.sub-rec.rec-no    { border-left-color: var(--red); }
.sub-rec.rec-maybe { border-left-color: var(--orange); }
.sub-rec p { font-size: 13px; line-height: 1.7; color: var(--text-dim); margin: 0 0 4px; }
.rec-pm-grid .req-list li { font-size: 12px; }
/* 3.5 并排卡片（竞争难度 / 利润空间）去掉顶部间距以对齐 */
.sub-grid .sub-card { margin-top: 0; }
.sub-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 12px;
}
@media (max-width: 720px) { .sub-grid { grid-template-columns: 1fr; } }

/* ============ 3.6 招标文件关键要点拆解 ============ */
.sub-tender { border-left: 3px solid var(--blue); }
.sub-tender.prc-empty { border-left-color: var(--stroke); border-style: dashed; }
/* “AI 自动提取”小标签 */
.tender-tag {
  font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 980px;
  color: var(--blue); background: color-mix(in srgb, var(--blue) 16%, transparent);
}
/* 一句话总体提示 */
.tender-summary {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.6; color: var(--text);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}
/* 五个维度的两列网格；评分标准与风险跨整行（内容较多） */
.tender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tender-block {
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
}
.tb-score-block,                     /* 评分标准块（内容较多，跨整行）*/
.tb-risk-block { grid-column: 1 / -1; }
.tb-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--stroke);
}
.tb-head span { font-size: 14px; }
/* 清单：精炼一句一条 */
.tb-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.75; color: var(--text-dim); }
.tb-list li { margin-bottom: 4px; }
.tb-list li.tb-veto {                /* ★/▲ 否决项高亮 */
  color: var(--text); font-weight: 500;
  list-style: none; margin-left: -18px; padding-left: 4px;
}
/* 评分标准表格 */
.tb-score { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tb-score th {
  text-align: left; font-weight: 500; color: var(--text-dim);
  padding: 4px 8px; border-bottom: 1px solid var(--stroke); white-space: nowrap;
}
.tb-score td { padding: 6px 8px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.tb-score tr:last-child td { border-bottom: none; }
.tb-item { font-weight: 600; color: var(--text); white-space: nowrap; }
.tb-weight { color: var(--blue); font-weight: 600; white-space: nowrap; }
.tb-focus { color: var(--text-dim); line-height: 1.5; }
/* 风险清单：等级徽章 + 风险点 + 应对建议 */
.tb-risk-list { list-style: none; margin: 0; padding: 0; }
.tb-risk-list li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  font-size: 13px; line-height: 1.6; padding: 6px 0;
  border-bottom: 1px dashed var(--stroke);
}
.tb-risk-list li:last-child { border-bottom: none; }
.tb-risk-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 600;
  padding: 1px 8px; border-radius: 980px;
}
.tb-risk-badge.lvl-high { color: var(--red); background: rgba(255,69,58,0.16); }
.tb-risk-badge.lvl-mid  { color: var(--orange); background: rgba(255,159,10,0.16); }
.tb-risk-badge.lvl-low  { color: var(--green); background: rgba(48,209,88,0.16); }
.tb-risk-point { color: var(--text); font-weight: 500; }
.tb-risk-sug { color: var(--text-dim); font-size: 12.5px; }
@media (max-width: 720px) {
  .tender-grid { grid-template-columns: 1fr; }
  .tb-score-block, .tb-risk-block { grid-column: auto; }
}

/* 投标价范围卡（核心卖点，突出显示）*/
.sub-price {
  border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--blue) 12%, transparent),
    color-mix(in srgb, var(--green) 6%, transparent));
}
.sub-price.prc-empty { border-style: dashed; background: var(--bg-elevated-2); }
.prc-strategy {
  font-size: 11px; padding: 3px 10px; border-radius: 980px;
  background: color-mix(in srgb, var(--blue) 22%, transparent);
  color: var(--blue); white-space: nowrap;
}
.prc-rec { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.prc-rec b { font-size: 26px; color: var(--blue); font-weight: 800; margin: 0 2px; }
.prc-rec small { color: var(--text-dim); font-size: 12px; }
.prc-bar {
  position: relative; height: 10px; margin: 14px 0 6px;
  background: var(--bg-elevated-2); border-radius: 980px;
}
.prc-span {
  position: absolute; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 980px;
}
.prc-rec-mark {
  position: absolute; top: 50%; width: 14px; height: 14px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent);
}
.prc-floor {
  position: absolute; top: -4px; width: 2px; height: 18px;
  background: var(--red); transform: translateX(-50%);
}
.prc-labels {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--text-dim);
}
.prc-floor-label { margin-top: 4px; font-size: 11px; color: var(--red); }
.prc-meta { margin-top: 8px; font-size: 13px; color: var(--text); font-weight: 500; }
.prc-basis {
  margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--text-dim);
  padding-top: 8px; border-top: 1px dashed var(--stroke);
}

/* 中标方信息卡 */
.winner-card { padding: 16px; }
.winner-pending { padding: 14px; }

/* 标书代写 */
.draft-card { padding: 16px; }
.draft-pending { padding: 14px; }
.draft-outline .chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-section { margin-top: 10px; }
.draft-block {
  margin-top: 8px; padding: 8px 10px;
  border-radius: 8px; background: var(--bg-elevated);
  border: 1px solid var(--stroke);
}
.draft-block summary {
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text-dim); padding: 2px 0;
}
.draft-block summary:hover { color: var(--blue); }
.draft-block[open] summary { color: var(--text); margin-bottom: 8px; }
.draft-edit {
  width: 100%; min-height: 90px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--stroke); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.7;
  font-family: inherit; resize: vertical;
}
.draft-edit:focus { outline: none; border-color: var(--blue); }
.draft-block .clues { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--stroke); }
.draft-pricing { margin-top: 12px; }
.price-table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px;
}
.price-table th, .price-table td {
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid var(--stroke);
}
.price-table th { color: var(--text-dim); font-weight: 500; }
.price-table .price-total td { font-weight: 700; color: var(--blue); }
.draft-tips { margin-top: 12px; }

.engine-tag {
  display: inline-block; font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--stroke); border-radius: 980px; padding: 2px 10px;
  margin-left: 8px;
}

/* 表单 */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { font-size: 13px; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ---------------- 数据更新状态条 ---------------- */
.update-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 28px 2px; padding: 5px 14px;
  background: var(--bg-elevated); border: 1px solid var(--stroke);
  border-radius: 10px; font-size: 12px; color: var(--text-dim);
}
.update-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim);
  flex-shrink: 0;
}
.update-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.update-dot.off { background: var(--text-dim); }
.update-dot.busy { background: var(--blue); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------------- 企业画像引导条 ---------------- */
.profile-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 28px 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(10,132,255,0.14), rgba(48,209,88,0.10));
  border: 1px solid rgba(10,132,255,0.28);
  border-radius: 14px;
  animation: pb-slide-in 0.4s ease;
}
@keyframes pb-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pb-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.pb-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.pb-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pb-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.profile-banner .btn-sm {
  flex-shrink: 0;
}
.pb-close {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.pb-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
@media (max-width: 640px) {
  .profile-banner { margin: 0 16px 8px; padding: 10px 14px; gap: 10px; }
  .pb-desc { display: none; }
}

/* ---------------- 管理弹窗 ---------------- */
.admin-status {
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
  font-size: 13px; color: var(--text-dim); line-height: 1.9;
}
.admin-status b { color: var(--text); font-weight: 600; }
.admin-row { display: flex; gap: 14px; }
.admin-row .field { flex: 1; }
.adm-check {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; cursor: pointer;
}
.adm-check input { margin-top: 3px; }
.adm-check b { color: var(--text); font-size: 14px; }
.adm-check small { color: var(--text-dim); font-size: 12px; line-height: 1.6; }
.adm-cost {
  font-size: 13px; color: var(--text-dim); margin: 6px 0 14px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
}
.adm-cost.warn { color: var(--orange); border-color: var(--orange); }

/* ---------------- 商机雷达 ---------------- */
.modal-wide { max-width: 720px; }
/* 详情弹窗超大尺寸：内容多（核心信息+AI建议+深度分析+方案+合规+原文） */
.modal-xl { max-width: 1100px; padding: 36px 40px; }
.modal-xl h2 { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
.modal-xl .detail-section { margin-top: 26px; }
.modal-xl .detail-section h3 { font-size: 14px; }
.modal-xl .detail-section p { font-size: 15px; line-height: 1.75; }
.modal-xl .core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.modal-xl .core-item { padding: 12px 14px; }
.modal-xl .core-k { font-size: 11px; }
.modal-xl .core-v { font-size: 14px; margin-top: 6px; }
.modal-xl .raw-box { max-height: 440px; overflow-y: auto; font-size: 14px; line-height: 1.8; }
.modal-xl .deep-grid,
.modal-xl .prop-grid,
.modal-xl .comp-grid { gap: 22px; }
.modal-xl .deep-block h4,
.modal-xl .prop-block h4,
.modal-xl .comp-block h4 { font-size: 15px; margin-bottom: 12px; }
@media (max-width: 900px) {
  .modal-xl { max-width: 100vw; padding: 24px 20px; border-radius: 16px; }
  .modal-xl .core-grid { grid-template-columns: 1fr; }
}
.subs-list { display: flex; flex-direction: column; gap: 10px; }
/* 订阅推送列表卡片（限定在 #subs-list 内，避免覆盖详情页的 .sub-card 导致横向挤压）*/
#subs-list .sub-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px 14px;
}
#subs-list .sub-card.disabled { opacity: 0.55; }
.sub-card-main { flex: 1; min-width: 0; }
.sub-card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.sub-off {
  font-size: 11px; color: var(--text-dim); border: 1px solid var(--stroke);
  border-radius: 980px; padding: 1px 8px; margin-left: 6px;
}
.sub-card-cond { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.sub-card-chan { font-size: 12px; color: var(--blue); }
.sub-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.subs-form { margin-top: 8px; }
.divider-line { height: 1px; background: var(--stroke); margin: 4px 0 16px; }

/* ---- 商机雷达·空状态引导 ---- */
.radar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 36px;
}
.radar-graphic {
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
}
.radar-ring,
.radar-cross {
  fill: none;
  stroke: var(--stroke);
  stroke-width: 1;
}
/* 让网格线更可见一点（stroke 变量偏淡） */
.radar-ring { stroke: rgba(10, 132, 255, 0.18); }
.radar-cross { stroke: rgba(255, 255, 255, 0.06); }
/* 扫描扇形：绕圆心匀速旋转，营造“持续扫描商机”的动感 */
.radar-sweep {
  transform-origin: 60px 60px;
  animation: radar-spin 3s linear infinite;
}
/* 命中光点：呼吸闪烁，暗示“发现新商机” */
.radar-blip {
  fill: var(--blue);
  animation: radar-blip 1.6s ease-in-out infinite;
}
@keyframes radar-spin {
  to { transform: rotate(360deg); }
}
@keyframes radar-blip {
  0%, 100% { opacity: 0.15; r: 3px; }
  50%      { opacity: 1;    r: 4px; }
}
/* 尊重用户的“减少动态效果”系统偏好 */
@media (prefers-reduced-motion: reduce) {
  .radar-sweep,
  .radar-blip { animation: none; }
}
.radar-empty-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.radar-empty-sub {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 20px;
}
.filter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.filter-grid .field { margin-bottom: 14px; }
.filter-grid select[multiple] {
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 10px; color: var(--text); padding: 6px; font-size: 13px;
}
@media (max-width: 640px) { .filter-grid { grid-template-columns: 1fr; } }

/* ---------------- Toast 提示 ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 12px 22px; border-radius: 980px;
  font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ AI 分析中遮罩 ============ */
.analyzing-mask {
  position: fixed; inset: 0; z-index: 200;            /* 高于详情弹窗(100)和 toast(99) */
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.analyzing-mask[hidden] { display: none; }
.analyzing-box {
  width: min(360px, 88vw);
  padding: 32px 28px 26px;
  text-align: center;
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: analyzing-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes analyzing-pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
/* 雷达扫描图形 */
.analyzing-radar { display: flex; justify-content: center; margin-bottom: 18px; }
.ar-ring, .ar-cross {
  fill: none; stroke-width: 1.2;
  stroke: rgba(10, 132, 255, 0.22);
}
.ar-cross { stroke: rgba(255, 255, 255, 0.06); }
.ar-sweep { transform-origin: 50px 50px; animation: ar-spin 2.4s linear infinite; }
.ar-blip  { fill: var(--blue); animation: ar-blip 1.4s ease-in-out infinite; }
@keyframes ar-spin { to { transform: rotate(360deg); } }
@keyframes ar-blip { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }
.analyzing-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--text); }
.analyzing-sub   { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--text-dim); }
/* 三点跳动：表示 AI 正在"思考" */
.analyzing-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.analyzing-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  animation: ar-dots 1.2s ease-in-out infinite;
}
.analyzing-dots span:nth-child(2) { animation-delay: 0.2s; }
.analyzing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ar-dots {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40%           { opacity: 1;    transform: scale(1.15); }
}
.analyzing-tip { margin: 0; font-size: 12px; color: var(--text-dim); opacity: 0.8; }
/* 尊重"减少动态效果"系统偏好 */
@media (prefers-reduced-motion: reduce) {
  .ar-sweep, .ar-blip, .analyzing-dots span, .analyzing-box { animation: none; }
}

/* ============ 模块④：AI 标书生成与合规自检工作流 ============ */
/* 阶段标签 */
.wf-stage {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--blue); background: color-mix(in srgb, var(--blue) 16%, transparent);
  padding: 3px 10px; border-radius: 980px; margin-bottom: 12px;
}
/* 阶段一：配置区 */
.wf-config { border-left: 3px solid var(--blue); }
.wf-intro {
  font-size: 13px; line-height: 1.7; color: var(--text-dim);
  margin: 0 0 14px;
}
.wf-intro b { color: var(--text); }
.wf-asset-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.wf-asset {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 12px; border-radius: 10px;
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  font-size: 13px; color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.wf-asset:hover { border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.wf-asset input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.wf-asset:has(input:checked) {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.wf-upload {
  display: block; padding: 14px; margin-bottom: 16px;
  border: 1px dashed var(--stroke); border-radius: 10px;
  background: var(--bg-elevated-2);
}
.wf-upload-label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.wf-upload input[type="file"] { font-size: 12px; color: var(--text-dim); }
.wf-gen-btn { width: 100%; padding: 12px; font-size: 15px; }
.wf-quota { margin: 12px 0 0; }

/* 阶段三：结果区 */
.wf-result { border-left: 3px solid var(--green); }
.wf-result-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.wf-result-title { font-size: 14px; font-weight: 600; color: var(--text); }
/* 自检结果横幅 */
.wf-selfcheck {
  font-size: 13px; line-height: 1.6; padding: 10px 14px;
  border-radius: 10px; margin-bottom: 10px;
}
.wf-selfcheck.warn {
  color: var(--text); background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
}
.wf-selfcheck.warn b { color: var(--red); font-size: 15px; }
.wf-selfcheck.ok {
  color: var(--text-dim); background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.bid-gap-inline { color: var(--red); font-weight: 600; }
.wf-edit-tip { font-size: 12px; color: var(--text-dim); margin: 0 0 10px; }
.wf-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 富文本预览（可编辑）*/
.bid-preview {
  background: var(--bg); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 22px 24px;
  max-height: 520px; overflow-y: auto;
  font-size: 14px; line-height: 1.85; color: var(--text);
  outline: none;
}
.bid-preview:focus { border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
.bidp-title { font-size: 18px; font-weight: 700; text-align: center; margin: 0 0 14px; color: var(--text); }
.bidp-toc { font-size: 12.5px; color: var(--text-dim); line-height: 1.9; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--stroke); }
.bidp-h { font-size: 15px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.bidp-p { margin: 0 0 6px; text-indent: 2em; }
.bidp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.bidp-table th, .bidp-table td { border: 1px solid var(--stroke); padding: 7px 10px; text-align: left; }
.bidp-table th { background: var(--bg-elevated-2); color: var(--text-dim); font-weight: 500; }
.bidp-total td { font-weight: 600; color: var(--text); }
/* 漏项占位符高亮（核心交互）*/
.bid-gap {
  background: color-mix(in srgb, var(--red) 20%, transparent);
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 5px; padding: 1px 6px; margin: 0 1px;
  font-weight: 500; font-size: 0.95em; white-space: normal;
}
/* 「下一处漏项」定位时的闪烁高亮 */
.bid-gap.gap-flash { animation: gapFlash 1.3s ease; }
@keyframes gapFlash {
  0%, 100% { box-shadow: none; }
  25%      { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 55%, transparent); }
  60%      { box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 30%, transparent); }
}
.wf-actions { display: flex; gap: 8px; margin-top: 14px; }

/* AI 填写指引（折叠）*/
.wf-guide, .wf-compliance {
  margin-top: 14px; padding: 0; background: var(--bg-elevated-2);
  border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden;
}
.wf-guide > summary, .wf-compliance > summary {
  cursor: pointer; padding: 14px 16px; font-size: 13px; font-weight: 600;
  color: var(--text); list-style: none; user-select: none;
}
.wf-guide > summary::-webkit-details-marker,
.wf-compliance > summary::-webkit-details-marker { display: none; }
.wf-guide > summary::before, .wf-compliance > summary::before {
  content: "▸"; display: inline-block; margin-right: 8px; color: var(--text-dim);
  transition: transform 0.15s;
}
.wf-guide[open] > summary::before, .wf-compliance[open] > summary::before { transform: rotate(90deg); }
.wf-guide-sec { padding: 0 16px 14px; }
.wf-guide-sec h5 { font-size: 13px; font-weight: 600; color: var(--blue); margin: 10px 0 6px; }
.wf-compliance-body { padding: 0 14px 14px; }
.wf-compliance-body .detail-section { margin: 0; }

/* ============ 账号 / 会员 / 支付 ============ */

/* 升级按钮（金色渐变，吸引点击） */
.btn.upgrade {
  background: linear-gradient(135deg, #ffb340, #ff9f0a);
  color: #1a1300;
  font-weight: 600;
  border: none;
}
.btn.upgrade:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.block { width: 100%; display: block; }

/* 账户胶囊：显示当前用户/会员状态 */
#btn-account.is-pro {
  background: rgba(255, 159, 10, 0.16);
  border-color: rgba(255, 159, 10, 0.4);
  color: #ffcf70;
}

.modal-narrow { max-width: 420px; }

/* 登录/注册切换 */
.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-elevated-2);
  border-radius: 12px; padding: 4px; margin: 4px 0 18px;
}
.auth-tab {
  flex: 1; padding: 9px; border: none; border-radius: 9px;
  background: transparent; color: var(--text-dim);
  font-family: var(--font); font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.auth-tab.active { background: var(--blue); color: #fff; }
.auth-gift {
  margin-top: 14px; text-align: center; font-size: 13px;
  color: var(--green); background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.25); border-radius: 12px; padding: 10px;
}

/* 套餐卡片 */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 4px; }
.plan-card {
  position: relative; background: var(--bg-elevated-2);
  border: 1.5px solid var(--stroke); border-radius: 16px;
  padding: 22px 20px; cursor: pointer; transition: all 0.18s ease;
}
.plan-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.plan-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,132,255,0.25); }
.plan-card.best { border-color: rgba(255, 159, 10, 0.5); }
.plan-badge {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, #ffb340, #ff9f0a); color: #1a1300;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 980px;
}
.plan-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.plan-price { font-size: 30px; font-weight: 700; }
.plan-price .unit { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.plan-price .cur { font-size: 18px; vertical-align: top; }
.plan-desc { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
@media (max-width: 460px) { .plan-grid { grid-template-columns: 1fr; } }

/* 支付渠道 */
.pay-channel { margin-top: 22px; }
.pay-channel h3 { font-size: 14px; margin-bottom: 12px; }
.channel-btns { display: flex; gap: 12px; }
.channel-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--bg-elevated-2); color: var(--text);
  font-family: var(--font); font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.channel-btn:hover { transform: translateY(-1px); }
.channel-btn .ch-icon {
  width: 24px; height: 24px; border-radius: 6px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.channel-btn.alipay { border-color: rgba(16,150,236,0.5); }
.channel-btn.alipay .ch-icon { background: #1096eb; }
.channel-btn.wechat { border-color: rgba(7,193,96,0.5); }
.channel-btn.wechat .ch-icon { background: #07c160; }

/* 扫码支付 */
.qr-box {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 16px; padding: 16px; margin: 14px auto;
  width: 232px; height: 232px;
}
.qr-box img { width: 200px; height: 200px; display: block; }
.pay-tip { text-align: center; font-size: 13px; color: var(--text-dim); }
.pay-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 0; font-size: 14px; color: var(--text-dim);
}
.pay-status.paid { color: var(--green); font-weight: 600; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--stroke); border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 我的账户 */
.account-info { margin: 4px 0 18px; }
.account-row {
  display: flex; justify-content: space-between; padding: 11px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.account-row:last-child { border-bottom: none; }
.account-row .k { color: var(--text-dim); }
.badge-pro {
  background: rgba(255,159,10,0.16); color: #ffcf70;
  border-radius: 980px; padding: 2px 12px; font-size: 13px; font-weight: 600;
}
.badge-free {
  background: var(--bg-elevated-2); color: var(--text-dim);
  border-radius: 980px; padding: 2px 12px; font-size: 13px;
}

/* 验证码输入行 */
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; padding: 0 14px; }
.code-row .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.auth-switch a { color: var(--blue); text-decoration: none; }
.auth-mock-tip {
  margin-top: 10px; text-align: center; font-size: 12px;
  color: var(--orange); background: rgba(255,159,10,0.1);
  border: 1px solid rgba(255,159,10,0.25); border-radius: 10px; padding: 8px;
}

/* 登录框协议勾选行 */
.agreement-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 0 2px; cursor: pointer;
}
.agreement-row input[type="checkbox"] {
  flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px; accent-color: var(--blue); cursor: pointer;
}
.agreement-row span {
  flex: 1; font-size: 12px; line-height: 1.55; color: var(--text-dim);
}
.agreement-row a { color: var(--blue); text-decoration: none; }
.agreement-row a:hover { text-decoration: underline; }

/* 用户协议 / 隐私政策 弹窗正文 */
.agreement-body { font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.agreement-body h3 { font-size: 14px; color: var(--text); margin: 16px 0 6px; }
.agreement-body p { margin: 0 0 8px; }
.agreement-body h3:first-child { margin-top: 0; }
#agreement-modal .modal-actions { justify-content: center; }

/* 每日查看额度 */
.quota-box {
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 14px; margin: 8px 0 18px;
}
.quota-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.quota-num { color: var(--blue); font-weight: 600; }
.quota-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 980px; overflow: hidden; }
.quota-fill { height: 100%; background: var(--green); border-radius: 980px; transition: width 0.3s; width: 0%; }
.quota-fill.warn { background: var(--orange); }
.quota-fill.full { background: var(--red); }
.quota-tip { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ============ 账户里的企业画像摘要 ============ */
.profile-summary {
  background: var(--bg-elevated-2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 18px;
}
.profile-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.profile-empty {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 4px 0;
}
.profile-empty-tip {
  font-size: 12px;
  color: var(--blue);
  margin-top: 6px;
}
/* 完整度进度条 */
.ps-progress { margin-bottom: 14px; }
.ps-progress-head {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim); margin-bottom: 6px;
}
.ps-progress-pct { color: var(--green); font-weight: 700; }
.ps-progress-bar {
  height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 980px; overflow: hidden;
}
.ps-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 980px; transition: width 0.4s;
}
.ps-progress-tip { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.ps-progress-tip.done { color: var(--green); }
/* 信息行 */
.ps-rows { display: flex; flex-direction: column; gap: 2px; }
.ps-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ps-row:last-child { border-bottom: none; }
.ps-k { color: var(--text-dim); flex-shrink: 0; margin-right: 12px; }
.ps-v { text-align: right; word-break: break-all; }
/* 业务标签 */
.ps-tags-box { margin-top: 12px; }
.ps-tags-label {
  font-size: 12px; color: var(--text-dim);
  display: block; margin-bottom: 6px;
}
.ps-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-chip {
  background: rgba(10,132,255,0.14);
  color: #7fb8ff;
  border-radius: 980px;
  padding: 3px 10px;
  font-size: 12px;
}
.ps-chip.more { background: rgba(255,255,255,0.08); color: var(--text-dim); }

/* 邀请有礼 */
.invite-box {
  background: linear-gradient(135deg, rgba(10,132,255,0.12), rgba(48,209,88,0.1));
  border: 1px solid rgba(10,132,255,0.25);
  border-radius: 14px; padding: 16px; margin: 4px 0 18px;
}
.invite-head { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.invite-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.invite-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-code {
  flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: 18px;
  font-weight: 700; letter-spacing: 2px; color: var(--blue);
  background: var(--bg-elevated); border: 1px dashed var(--stroke);
  border-radius: 10px; padding: 10px 14px; text-align: center;
}

/* 响应式 */
@media (max-width: 720px) {
  .topbar { flex-direction: column; gap: 14px; align-items: stretch; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .actions { justify-content: center; flex-wrap: wrap; }
}

/* ============ 运营看板 ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 18px;
}
.stat-card {
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 14px; padding: 16px;
}
.stat-card .k { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.stat-card .v { font-size: 24px; font-weight: 700; }
.stat-card .v.green { color: var(--green); }
.stat-card .v.blue { color: var(--blue); }
.stat-card .v.orange { color: var(--orange); }
.stats-sub { font-size: 14px; margin: 18px 0 10px; }
.stats-growth {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.growth-bar {
  background: var(--bg-elevated-2); border: 1px solid var(--stroke);
  border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 11px;
}
.growth-bar .d { color: var(--text-dim); }
.growth-bar .r { color: var(--blue); font-weight: 600; }
.growth-bar .p { color: var(--green); font-weight: 600; }
.invite-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.invite-table th, .invite-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--stroke);
}
.invite-table th { color: var(--text-dim); font-weight: 500; }
.invite-table td.code { font-family: ui-monospace, monospace; color: var(--blue); font-weight: 600; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stats-growth { grid-template-columns: repeat(7, 1fr); } }

/* ============ AI 投标建议卡片 ============ */
.rec-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px 20px !important;
  background: var(--bg-elevated);
}
.rec-card.rec-yes   { border-left: 4px solid var(--green); }
.rec-card.rec-no    { border-left: 4px solid var(--red); }
.rec-card.rec-maybe { border-left: 4px solid var(--orange); }
.rec-card h3 { margin-top: 0; }
.rec-score-bar {
  width: 100%; height: 8px; border-radius: 4px;
  background: var(--bg-elevated-2);
  overflow: hidden; margin: 10px 0 4px;
}
.rec-score-bar span { display: block; height: 100%; transition: width .4s; }
.rec-score-num { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.rec-pm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px;
}
.rec-pm-grid > div > b { display: block; font-size: 13px; margin-bottom: 6px; }
.rec-sub { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--stroke); }
.rec-sub h4 { margin: 0 0 8px; font-size: 13px; }
@media (max-width: 640px) { .rec-pm-grid { grid-template-columns: 1fr; } }

/* 复选框行（订阅表单用） */
.checkbox-row {
  display: flex; flex-direction: row !important; align-items: center; gap: 8px;
  padding: 10px 0;
}
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.checkbox-row span { font-size: 13px; }

/* ============ 深度分析卡片 ============ */
.deep-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px 20px !important;
  background: var(--bg-elevated);
}
.deep-card.diff-low  { border-left: 4px solid var(--green); }
.deep-card.diff-mid  { border-left: 4px solid var(--orange); }
.deep-card.diff-high { border-left: 4px solid var(--red); }
.deep-card h3 { margin-top: 0; display:flex; align-items:center; gap:10px; }
.deep-pending { text-align: center; }
.deep-pending p { margin: 8px 0 14px; }

.deep-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px;
}
.deep-block { padding: 12px; background: var(--bg-elevated-2); border-radius: 10px; }
.deep-block h4 { margin: 0 0 10px; font-size: 14px; }
.deep-meter {
  width: 100%; height: 8px; border-radius: 4px;
  background: var(--bg-elevated);
  overflow: hidden; margin: 6px 0 4px;
}
.deep-meter span { display: block; height: 100%; transition: width .5s; }
.deep-meter-label { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.deep-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.deep-list .chip {
  display: inline-block; padding: 2px 8px; margin: 2px;
  background: var(--bg-elevated); border-radius: 6px; font-size: 11px;
}
.sub-list { margin: 4px 0; padding-left: 16px; font-size: 12px; color: var(--text-dim); }
.deep-reason {
  margin-top: 8px; padding: 8px 10px; font-size: 12px;
  background: var(--bg-elevated); border-radius: 6px;
  color: var(--text-dim); line-height: 1.6;
}
.deep-tip {
  margin-top: 8px; padding: 8px 10px; font-size: 12px;
  background: rgba(10,132,255,0.1); border-left: 3px solid var(--blue);
  border-radius: 4px; line-height: 1.6;
}
@media (max-width: 640px) { .deep-grid { grid-template-columns: 1fr; } }

/* 综合评分环 */
.overall-box {
  display: flex; align-items: center; gap: 20px;
  padding: 16px; background: var(--bg-elevated-2); border-radius: 10px;
  margin-bottom: 14px;
}
.overall-ring {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.overall-inner {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.overall-num { font-size: 26px; font-weight: 700; line-height: 1; }
.overall-lvl { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.overall-info { flex: 1; }
.overall-advice { font-size: 13px; line-height: 1.6; margin-bottom: 6px; }
.overall-breakdown { display: flex; gap: 12px; font-size: 11px; color: var(--text-dim); }
.overall-breakdown span {
  padding: 2px 8px; background: var(--bg-elevated); border-radius: 6px;
}

.deep-actions { margin-top: 12px; display: flex; gap: 8px; }

/* 历史列表 */
.hist-list { display: flex; flex-direction: column; gap: 8px; }
.hist-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--bg-elevated); border-radius: 10px;
  cursor: pointer; transition: background .2s;
  border: 1px solid var(--stroke);
}
.hist-item:hover { background: var(--bg-elevated-2); }
.hist-score { font-size: 22px; font-weight: 700; width: 44px; text-align: center; }
.hist-info { flex: 1; min-width: 0; }
.hist-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-meta { font-size: 11px; color: var(--text-dim); margin: 2px 0; }
.hist-advice { font-size: 12px; color: var(--text-dim); }

/* 方案与报价区块 */
.prop-card { border-left: 3px solid var(--blue); }
.prop-pending { border-left-color: var(--text-dim); }
.prop-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px;
}
.prop-block h4 { margin: 0 0 10px; font-size: 14px; }
.prop-highlight {
  background: var(--bg-elevated-2); padding: 8px 12px; border-radius: 8px;
  font-size: 12px; margin-bottom: 10px; border-left: 3px solid var(--blue);
}
.prop-sub { margin-bottom: 10px; font-size: 12px; }
.prop-sub b { display: block; margin-bottom: 4px; }

.upload-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 10px;
}
.upload-row input[type=file] {
  flex: 1; min-width: 200px; font-size: 12px;
  background: var(--bg-elevated); padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--stroke); color: var(--text-dim);
}

/* 报价区间条 */
.price-bar {
  position: relative; height: 24px; background: var(--bg-elevated-2);
  border-radius: 12px; margin: 14px 0 6px; overflow: hidden;
}
.price-range {
  position: absolute; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0.4; border-radius: 12px;
}
.price-rec {
  position: absolute; top: -4px; width: 4px; height: 32px;
  background: var(--blue); border-radius: 2px;
  box-shadow: 0 0 8px var(--blue);
}
.price-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-dim); margin-bottom: 10px;
}
@media (max-width: 640px) { .prop-grid { grid-template-columns: 1fr; } }

/* 标书合规检查 */
.comp-card { border-left: 3px solid var(--orange); }
.comp-pending { border-left-color: var(--text-dim); }
.comp-pass-box {
  display: flex; align-items: center; gap: 20px;
  padding: 16px; background: var(--bg-elevated-2); border-radius: 10px;
  margin-bottom: 14px;
}
.comp-pass-ring {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.comp-pass-inner {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.comp-pass-num { font-size: 26px; font-weight: 700; line-height: 1; }
.comp-pass-lvl { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.comp-pass-info { flex: 1; }
.comp-reason { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-top: 6px; }

.comp-critical {
  background: rgba(255, 80, 80, 0.12);
  border-left: 3px solid var(--red);
  padding: 6px 10px; border-radius: 6px;
  font-size: 12px; color: var(--red); margin-bottom: 4px;
}
.comp-critical-list { margin-bottom: 6px; }

.comp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px;
}
.comp-block h4 { margin: 0 0 10px; font-size: 14px; }

.comp-item {
  background: var(--bg-elevated-2); padding: 10px 12px; border-radius: 8px;
  margin-bottom: 8px; border-left: 3px solid var(--text-dim);
}
.comp-item.sev-high { border-left-color: var(--red); }
.comp-item.sev-mid  { border-left-color: var(--orange); }
.comp-item.sev-low  { border-left-color: var(--green); }
.comp-item-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  font-size: 11px;
}
.sev-tag {
  padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
}
.sev-tag.sev-high { background: rgba(255,80,80,0.2); color: var(--red); }
.sev-tag.sev-mid  { background: rgba(255,165,0,0.2); color: var(--orange); }
.sev-tag.sev-low  { background: rgba(80,200,120,0.2); color: var(--green); }
.comp-loc { color: var(--text-dim); }
.comp-item-body { font-size: 12px; line-height: 1.5; }
.comp-fix { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 640px) { .comp-grid { grid-template-columns: 1fr; } }

/* 企业画像表单 - 硬资质 */
.pf-upload-box {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; background: var(--bg-elevated-2);
  border-radius: 10px; margin-bottom: 14px;
  border: 1px dashed var(--stroke);
}
.pf-upload-box .hint { flex: 1; font-size: 11px; }
.pf-section-title {
  font-size: 14px; margin: 18px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--stroke);
  color: var(--text-dim);
}
.pf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pf-check-row { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr; } }

/* ============ OCR 结果确认对话框 ============ */
#ocr-confirm-modal {
  width: 720px;
  max-width: 92vw;
}
#ocr-confirm-modal .pf-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
#ocr-confirm-modal textarea {
  width: 100%;
  font-family: inherit;
  resize: vertical;
}
.ocr-confirm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  gap: 12px;
}
.ocr-confirm-actions > div {
  display: flex;
  gap: 8px;
}
@media (max-width: 640px) {
  #ocr-confirm-modal { width: 96vw; }
  #ocr-confirm-modal .pf-grid { grid-template-columns: 1fr; }
  .ocr-confirm-actions { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════════════════════════════
   移动端体验精修（为微信小程序 / App 化打底，原生级触感）
   ═══════════════════════════════════════════════════════════════ */

/* 全局触摸体验：去掉点击灰块高亮、禁止字体被系统放大、滚动惯性 */
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
.modal, .board, .raw-box, .detail-nav { -webkit-overflow-scrolling: touch; }

/* 触摸设备（无悬停）：移除桌面 hover 抬升效果，避免"点一下卡住高亮" */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--stroke); }
  .card:active { transform: scale(0.985); transition: transform .12s ease; }
}

/* 手机竖屏（≤600px）：整体重排为单列 + 弹窗全屏 + 安全区适配 */
@media (max-width: 600px) {
  /* 顶栏纵向堆叠，按钮换行、放大触摸目标 */
  .topbar {
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top));
    position: sticky; top: 0; z-index: 40;
  }
  .topbar .brand { justify-content: flex-start; }
  .actions { flex-wrap: wrap; gap: 8px; }
  .search-box { width: 100%; display: flex; }
  .search-box input { flex: 1; min-width: 0; }
  .actions > .btn { flex: 1 1 40%; min-height: 42px; }

  /* 状态条 / 引导条留白收紧 */
  .update-bar, .profile-banner { margin-left: 12px; margin-right: 12px; }

  /* 概览卡两列、筛选项换行 */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
  .filterbar { gap: 8px; padding: 0 12px; }
  .filter-group { flex: 1 1 45%; }
  .view-toggle { width: 100%; }
  .view-toggle .vt-btn { flex: 1; min-height: 40px; }

  /* 商机卡片单列、底部留出安全区 */
  .board {
    grid-template-columns: 1fr; gap: 12px;
    padding: 12px 14px calc(24px + env(safe-area-inset-bottom));
  }

  /* —— 弹窗全屏化（手机上像原生页面）—— */
  .modal-mask { padding: 0; align-items: stretch; justify-content: stretch; }
  .modal,
  .modal-wide,
  .modal-xl,
  .modal-narrow {
    width: 100%; max-width: 100%;
    min-height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: none;
    overflow-y: auto;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    padding-top: calc(18px + env(safe-area-inset-top));
    animation: slideUp .25s ease;
  }
  .modal-close {
    top: calc(10px + env(safe-area-inset-top)); right: 12px;
    width: 40px; height: 40px; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
  }
  .modal h2 { font-size: 19px; }

  /* 详情顶部锚点导航：横向滚动不换行 */
  .detail-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 8px; }
  .detail-nav .nav-item { flex: 0 0 auto; }

  /* 触摸目标统一放大；操作区按钮平铺 */
  .btn { min-height: 42px; }
  .btn-sm { min-height: 34px; }
  .modal-actions { flex-wrap: wrap; gap: 10px; }
  .modal-actions .btn { flex: 1 1 auto; }

  /* 核心信息 / 各类网格统一单列，避免横向挤压 */
  .core-grid, .pf-grid, .filter-grid { grid-template-columns: 1fr !important; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════
   速览 · 滑动卡片（左滑忽略 / 右滑收藏，小红书 / Tinder 风）
   ═══════════════════════════════════════════════════════════════ */
.board--swipe { display: block; padding: 8px 16px 48px; }
.swipe-wrap {
  max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.swipe-deck { position: relative; width: 100%; height: 440px; margin-top: 6px; }

.swipe-card {
  position: absolute; inset: 0;
  background: var(--bg-elevated); border: 1px solid var(--stroke);
  border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
  cursor: grab; user-select: none;
  touch-action: none;            /* 自行处理横向拖拽，避免页面跟着滚 */
  will-change: transform;
  overflow: hidden;
}
.swipe-card:active { cursor: grabbing; }
/* 叠层立体感：第 2/3 张缩放下沉 */
.swipe-card[data-depth="0"] { z-index: 3; }
.swipe-card[data-depth="1"] { z-index: 2; transform: scale(0.95) translateY(14px); }
.swipe-card[data-depth="2"] { z-index: 1; transform: scale(0.90) translateY(28px); }
.swipe-card[data-depth="1"],
.swipe-card[data-depth="2"] { pointer-events: none; filter: brightness(0.92); }

/* 滑动方向印章 */
.sc-stamp {
  position: absolute; top: 22px; z-index: 5;
  font-size: 24px; font-weight: 800; letter-spacing: 4px;
  padding: 4px 14px; border-radius: 12px; border: 3px solid;
  opacity: 0; pointer-events: none;
}
.sc-stamp-like { right: 18px; color: var(--green); border-color: var(--green); transform: rotate(14deg); }
.sc-stamp-nope { left: 18px; color: var(--red); border-color: var(--red); transform: rotate(-14deg); }

.swipe-card .sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.swipe-card .sc-title {
  font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--text);
  max-height: 5.6em; overflow: hidden;
}
.swipe-card .sc-budget { font-size: 22px; font-weight: 700; color: var(--blue); }
.swipe-card .sc-rows { display: flex; flex-direction: column; gap: 8px; }
.swipe-card .sc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-dim); }
.swipe-card .sc-row b { color: var(--text); font-weight: 500; text-align: right; max-width: 62%; }
.swipe-card .sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* 底部操作按钮 */
.swipe-controls { display: flex; gap: 18px; margin-top: 26px; align-items: center; }
.swipe-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--stroke); background: var(--bg-elevated);
  color: var(--text); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.swipe-btn:hover { box-shadow: var(--shadow); }
.swipe-btn:active { transform: scale(0.88); }
.swipe-btn.sb-undo, .swipe-btn.sb-detail { width: 46px; height: 46px; font-size: 18px; color: var(--text-dim); }
.swipe-btn.sb-nope { color: var(--red); border-color: rgba(255, 69, 58, 0.5); }
.swipe-btn.sb-like { color: var(--green); border-color: rgba(48, 209, 88, 0.5); }

.swipe-hint { color: var(--text-dim); font-size: 13px; margin-top: 16px; text-align: center; }

/* 全部筛完的空状态 */
.swipe-done {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  border: 1px dashed var(--stroke); border-radius: 22px; color: var(--text-dim);
}
.swipe-done-icon { font-size: 44px; }

/* ═══════════════════════════════════════════════════════════════
   分页栏（每页 50 条，页底上一页 / 下一页）
   ═══════════════════════════════════════════════════════════════ */
.pager {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 22px 0 8px;
  margin-top: 8px;
  border-top: 1px solid var(--stroke);
}
.pg-btn {
  min-width: 92px; height: 40px; padding: 0 16px;
  border-radius: 980px; border: 1px solid var(--stroke);
  background: var(--bg-elevated); color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.18s ease;
}
.pg-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pg-btn:active:not(:disabled) { transform: scale(0.97); }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pg-info {
  font-size: 13px; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  justify-content: center;
}
.pg-info input {
  width: 54px; height: 32px; text-align: center;
  border: 1px solid var(--stroke); border-radius: 8px;
  background: var(--bg-elevated); color: var(--text);
  font-size: 14px;
}
.pg-info input:focus { outline: none; border-color: var(--blue); }
.pg-count { font-size: 12px; opacity: 0.7; }

/* 手机端：分页按钮平铺、触摸目标放大 */
@media (max-width: 600px) {
  .pager { flex-wrap: wrap; gap: 10px; padding: 18px 0 4px; }
  .pg-btn { flex: 1 1 40%; min-width: 0; min-height: 42px; }
  .pg-info { order: -1; width: 100%; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   骨架屏（数据加载中的灰色占位卡，提升感知速度）
   ═══════════════════════════════════════════════════════════════ */
.skeleton-card {
  pointer-events: none;
  border-color: var(--stroke);
}
.sk-line {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, var(--bg-elevated-2) 25%, var(--stroke) 50%, var(--bg-elevated-2) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
  margin-bottom: 12px;
}
.sk-line:last-child { margin-bottom: 0; }
.sk-w30 { width: 30%; }
.sk-w40 { width: 40%; }
.sk-w60 { width: 60%; }
.sk-w70 { width: 70%; }
.sk-w90 { width: 90%; }
@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 手机端：卡片高度略降，更贴合小屏 */
@media (max-width: 600px) {
  .swipe-deck { height: 60vh; min-height: 380px; }
  .swipe-card .sc-title { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   速览（滑动卡片）：左滑忽略 / 右滑收藏，小红书 / Tinder 风
   ═══════════════════════════════════════════════════════════════ */
.board--swipe {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
}
.swipe-wrap { width: 100%; max-width: 420px; padding: 8px 0; }

/* 叠层容器：卡片绝对定位堆叠在此 */
.swipe-deck {
  position: relative;
  height: 460px;
  margin: 0 auto;
}

/* 单张卡片：绝对定位铺满容器，靠 data-depth 做立体叠层 */
.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  user-select: none;
  will-change: transform;
}
.swipe-card[data-depth='0'] { transform: none; z-index: 3; cursor: grab; touch-action: none; }
.swipe-card[data-depth='0']:active { cursor: grabbing; }
.swipe-card[data-depth='1'] { transform: scale(0.94) translateY(16px); z-index: 2; opacity: 0.9; }
.swipe-card[data-depth='2'] { transform: scale(0.88) translateY(32px); z-index: 1; opacity: 0.75; }

/* 卡片内容 */
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sc-title { font-size: 18px; line-height: 1.45; font-weight: 600; margin: 2px 0; }
.sc-budget { font-size: 22px; font-weight: 700; color: var(--green); }
.sc-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.sc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sc-row span { color: var(--text-dim); }
.sc-row b { color: var(--text); font-weight: 600; text-align: right; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* 拖拽时显示的"收藏 / 忽略"印章 */
.sc-stamp {
  position: absolute; top: 22px;
  font-size: 26px; font-weight: 800; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 12px;
  border: 3px solid currentColor; opacity: 0;
  pointer-events: none; z-index: 5;
}
.sc-stamp-like { right: 20px; color: var(--green); transform: rotate(14deg); }
.sc-stamp-nope { left: 20px; color: var(--red); transform: rotate(-14deg); }

/* 底部操作按钮 */
.swipe-controls {
  display: flex; justify-content: center; align-items: center;
  gap: 18px; margin-top: 22px;
}
.swipe-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--stroke); background: var(--bg-elevated);
  font-size: 24px; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.swipe-btn:active { transform: scale(0.9); }
.sb-undo, .sb-detail { width: 48px; height: 48px; font-size: 20px; color: var(--text-dim); }
.sb-nope { color: var(--red); border-color: rgba(255,69,58,.4); }
.sb-like { color: var(--green); border-color: rgba(48,209,88,.4); }
@media (hover: hover) {
  .sb-nope:hover { box-shadow: 0 0 0 4px rgba(255,69,58,.12); }
  .sb-like:hover { box-shadow: 0 0 0 4px rgba(48,209,88,.12); }
}
.swipe-hint { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 16px; }

/* 全部筛完的空状态 */
.swipe-done {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-dim);
  border: 1px dashed var(--stroke); border-radius: 22px;
}
.swipe-done-icon { font-size: 44px; }

/* 手机端：卡片堆略矮一点，避免被底部按钮挤压 */
@media (max-width: 600px) {
  .swipe-deck { height: 56vh; min-height: 380px; }
  .swipe-wrap { max-width: 100%; }
}

/* ============================================================
   政府项目 AI 申报助手
   ============================================================ */
/* 该弹窗信息密度高，单独放宽到接近全屏宽度 */
#gov-modal {
  max-width: 1080px;
  width: 94vw;
  max-height: 90vh;
}

.gov-loading,
.gov-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.gov-empty { grid-column: 1 / -1; padding: 36px 0; }

/* 顶部状态/引导条 */
.gov-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}
.gov-banner.tip { justify-content: space-between; }
.gov-banner.tip > div { flex: 1; min-width: 240px; line-height: 1.6; color: var(--text-dim); }
.gov-banner-hint { color: var(--text-dim); font-size: 12px; width: 100%; }

/* 汇总数据：大数字 + 标签，层次更清晰 */
.gov-banner-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.gov-bstat { display: flex; flex-direction: column; line-height: 1.2; }
.gov-bstat b { font-size: 26px; font-weight: 700; color: var(--text); }
.gov-bstat span { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.gov-bstat.ok b { color: var(--green); }
.gov-bstat.near b { color: var(--orange); }

/* 筛选条 */
.gov-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.gov-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gov-chip {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gov-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.gov-chip.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}

/* 政策卡片网格：宽屏自动两列，窄屏单列 */
.gov-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gov-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.gov-card[open] { border-color: rgba(255, 255, 255, 0.18); }
.gov-card.lvl-ok { border-left: 3px solid var(--green); }
.gov-card.lvl-near { border-left: 3px solid var(--orange); }
.gov-card.lvl-todo { border-left: 3px solid var(--blue); }
.gov-card.lvl-no { border-left: 3px solid var(--red); }

.gov-card summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.gov-card summary::-webkit-details-marker { display: none; }
.gov-card summary:hover { background: rgba(255, 255, 255, 0.03); }

.gov-card-main { flex: 1; min-width: 0; }
.gov-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.gov-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--bg-elevated-2);
  color: var(--text-dim);
}
.gov-tag.cat { background: rgba(10, 132, 255, 0.16); color: var(--blue); }
.gov-tag.region { background: rgba(48, 209, 88, 0.14); color: var(--green); }
.gov-card-sum {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* 达标档位徽标 */
.gov-verdict {
  flex: 0 0 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 76px;
}
.gov-verdict small { font-size: 10px; font-weight: 500; opacity: 0.85; }
.gov-verdict.ok { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.gov-verdict.near { background: rgba(255, 159, 10, 0.16); color: var(--orange); }
.gov-verdict.todo { background: rgba(10, 132, 255, 0.16); color: var(--blue); }
.gov-verdict.no { background: rgba(255, 69, 58, 0.14); color: var(--red); }

/* 展开详情区 */
.gov-detail {
  padding: 4px 16px 18px;
  border-top: 1px solid var(--border);
}
.gov-benefit {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(48, 209, 88, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.gov-section-h {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-dim);
}

/* 逐条诊断清单 */
.gov-criteria { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gov-c { display: flex; gap: 10px; align-items: flex-start; }
.gov-c-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.gov-c.pass .gov-c-icon { background: rgba(48, 209, 88, 0.18); color: var(--green); }
.gov-c.fail .gov-c-icon { background: rgba(255, 69, 58, 0.18); color: var(--red); }
.gov-c.unknown .gov-c-icon { background: rgba(255, 159, 10, 0.18); color: var(--orange); }
.gov-c.manual .gov-c-icon { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }
.gov-c-body { flex: 1; }
.gov-c-label {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gov-req {
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 0 4px;
}
.gov-c-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; line-height: 1.5; }

/* 差距提升建议 */
.gov-advice {
  margin-top: 12px;
  background: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}
.gov-advice.ok {
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.3);
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.gov-advice-h { font-size: 13px; font-weight: 600; color: var(--orange); margin-bottom: 6px; }
.gov-advice ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.gov-advice li { font-size: 12.5px; line-height: 1.5; }
.gov-advice li.gap { color: var(--red); }
.gov-advice li.unk { color: var(--text-dim); }

.gov-meta { margin-top: 12px; font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* 材料标签 */
.gov-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.gov-mat {
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--bg-elevated-2);
  border-radius: 6px;
  padding: 3px 8px;
}
.gov-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
}
.gov-link:hover { text-decoration: underline; }

.gov-disclaimer {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.6;
  opacity: 0.85;
}

/* 手机端：卡片头部纵向堆叠 */
@media (max-width: 600px) {
  .gov-card summary { flex-wrap: wrap; }
  .gov-verdict { order: 3; width: 100%; flex-direction: row; justify-content: center; }
}

/* ============================================================
   订阅字段内的「如何获取？」帮助链接 + 机器人指引弹窗
   ============================================================ */
.field-help {
  margin-left: 8px;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.field-help:hover { text-decoration: underline; }

/* 机器人 Webhook 获取指引步骤列表 */
.bothelp-steps {
  margin: 8px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bothelp-steps li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  padding-left: 4px;
}
.bothelp-steps li::marker {
  color: var(--blue);
  font-weight: 700;
}
.bothelp-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
