/* ============================================================
   厂商图谱查询页样式（暗蓝 + 奶油金 / 青，与主页一致）
   ============================================================ */
:root {
  --bg: #070d1d;
  --bg-2: #04070f;
  --panel: rgba(16, 25, 48, 0.72);
  --panel-2: rgba(7, 12, 26, 0.82);
  --gold: #faf5cb;
  --gold-bright: #fffef9;
  --gold-deep: #e6d69f;
  --gold-glow: rgba(250, 245, 203, 0.55);
  --line: rgba(236, 224, 173, 0.18);
  --line-strong: rgba(236, 224, 173, 0.4);
  --text: #e8ecf6;
  --faint: #8a93ad;
  --accent: #6ea8ff;
  --teal: #5fd6c6;
  --teal-deep: #3fb3a3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px circle at 50% -10%, rgba(250, 245, 203, 0.08), transparent 60%),
    radial-gradient(800px circle at 80% 110%, rgba(95, 214, 198, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.vend-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- 头部 ---------- */
.vend-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.vend-brand { display: flex; align-items: center; gap: 14px; }
.vend-tai { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(250,245,203,.35)); }
.vend-brand-txt h1 {
  margin: 0; font-size: 24px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--gold); text-shadow: 0 0 18px var(--gold-glow);
}
.vend-brand-txt p { margin: 3px 0 0; font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.vend-back {
  text-decoration: none; color: var(--gold-deep); font-size: 14px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: all .25s; white-space: nowrap;
}
.vend-back:hover { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }

/* ---------- 查询条件 ---------- */
.vend-search {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 18px; margin-bottom: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.vend-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vend-field { display: flex; flex-direction: column; gap: 7px; }
.vend-field > span {
  font-size: 12.5px; color: var(--gold-deep); letter-spacing: 0.12em;
}
.vend-field input, .vend-field select {
  width: 100%; padding: 11px 13px; font-size: 14.5px; color: var(--text);
  background: rgba(4, 8, 18, 0.7); border: 1px solid var(--line); border-radius: 10px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.vend-field input::placeholder { color: #5a637c; }
.vend-field input:focus, .vend-field select:focus {
  border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(236,224,173,.12);
}
.vend-field select option { background: #0b1224; color: var(--text); }
.vend-search-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.vend-btn {
  cursor: pointer; font-family: inherit; font-size: 14.5px; letter-spacing: 0.06em;
  padding: 10px 26px; border-radius: 10px; border: 1px solid transparent; transition: all .22s;
}
.vend-btn.primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1407; font-weight: 600;
  box-shadow: 0 8px 22px rgba(236,224,173,.25);
}
.vend-btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.vend-btn.ghost { background: transparent; color: var(--gold-deep); border-color: var(--line); }
.vend-btn.ghost:hover { background: rgba(236,224,173,.08); border-color: var(--line-strong); }
.vend-count { margin-left: auto; font-size: 13px; color: var(--faint); }
.vend-count b { color: var(--gold); font-weight: 600; }

/* ---------- 领域筛选 subnav（厂商图谱） ---------- */
.vend-subnav {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px;
}
.vend-cat {
  cursor: pointer; font-family: inherit; font-size: 13.5px; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: 999px;
  color: var(--gold-deep); border: 1px solid var(--line); background: rgba(7,12,26,.5);
  transition: all .2s;
}
.vend-cat:hover { border-color: var(--line-strong); color: var(--gold-bright); background: rgba(236,224,173,.08); }
.vend-cat.active {
  color: #0c1a18; font-weight: 600;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-color: transparent; box-shadow: 0 6px 18px rgba(95,214,198,.25);
}

/* ---------- 结果区 ---------- */
.vend-results { display: flex; flex-direction: column; gap: 20px; }
.vend-hint, .vend-empty, .vend-error {
  text-align: center; color: var(--faint); font-size: 15px; padding: 60px 20px;
  border: 1px dashed var(--line); border-radius: 16px; background: rgba(7,12,26,.4);
}
.vend-error { color: #ff9b9b; border-color: rgba(255,120,120,.3); }
.vend-loading { text-align: center; padding: 50px 20px; color: var(--gold-deep); font-size: 15px; }
.vend-loading::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px;
  border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%;
  animation: vendSpin .8s linear infinite; vertical-align: -2px;
}
@keyframes vendSpin { to { transform: rotate(360deg); } }

/* ---------- 厂商卡片 ---------- */
.vend-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}
.vend-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; }
.vend-card-head h2 {
  margin: 0; font-size: 20px; font-weight: 600; color: var(--gold-bright);
  letter-spacing: 0.04em; text-shadow: 0 0 14px var(--gold-glow);
}
.vend-tag {
  font-size: 11.5px; color: var(--faint); padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(236,224,173,.05);
}
.vend-intro {
  margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: var(--text);
  border-left: 3px solid var(--teal); padding: 2px 0 2px 14px;
}
.vend-intro.vend-empty { color: #55607a; font-style: italic; border-left-color: var(--line); }

.vend-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.vend-info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vend-info-item .k { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.vend-info-item .v { font-size: 14.5px; color: var(--text); word-break: break-word; line-height: 1.5; }
.vend-info-item .v a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(110,168,255,.5); }
.vend-info-item .v a:hover { color: #a9ccff; }
.vend-span-2 { grid-column: 1 / -1; }

.vend-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.vend-chip {
  font-size: 12px; color: var(--teal); padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(95,214,198,.35); background: rgba(95,214,198,.1);
}

/* ---------- 分页 ---------- */
.vend-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.vend-page-btn {
  cursor: pointer; font-family: inherit; font-size: 14px; color: var(--gold-deep);
  padding: 9px 22px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  transition: all .22s;
}
.vend-page-btn:hover:not(:disabled) { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }
.vend-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.vend-page-info { font-size: 13.5px; color: var(--faint); }
.vend-page-info b { color: var(--gold); }

.vend-foot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: #5d6b86; line-height: 1.7; text-align: center;
}

/* ---------- 厂商类型徽标（生产/贸易） ---------- */
.vend-type {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap;
  border: 1px solid transparent; vertical-align: middle;
}
.vend-type--prod {
  color: #bfe9ff; background: rgba(110, 168, 255, 0.12);
  border-color: rgba(110, 168, 255, 0.45);
}
.vend-type--trade {
  color: #ffd9a8; background: rgba(255, 206, 110, 0.12);
  border-color: rgba(255, 206, 110, 0.45);
}

/* ---------- 厂商类型筛选 ---------- */
.vend-type-subnav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.vend-type-cat {
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  font-size: 13px; color: var(--faint);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  transition: all .15s ease;
}
.vend-type-cat:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.vend-type-cat.active {
  color: #070d1d; background: var(--gold-deep); border-color: var(--gold-deep);
  font-weight: 700;
}

.vend-backlink {
  color: var(--gold-deep); text-decoration: none; font-size: 14px;
  border-bottom: 1px dashed rgba(230, 214, 159, 0.5);
}
.vend-backlink:hover { color: var(--gold-bright); }

/* ---------- 累计中标额 + 中标记录入口 ---------- */
.vend-bidstat {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.vend-bidstat-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.vend-bidstat-k {
  font-size: 12.5px; color: var(--gold-deep); letter-spacing: 0.1em;
}
.vend-bidstat-v {
  font-size: 18px; font-weight: 700; color: var(--gold-bright);
  text-shadow: 0 0 12px var(--gold-glow);
  font-variant-numeric: tabular-nums;
}
.vend-bidnote {
  margin-top: 4px; font-size: 12px; color: #6f7a96; line-height: 1.6;
}
.vend-bids-btn {
  margin-top: 10px; cursor: pointer; font-family: inherit; font-size: 13.5px;
  color: var(--teal); background: rgba(95, 214, 198, 0.08);
  border: 1px solid rgba(95, 214, 198, 0.35); border-radius: 999px;
  padding: 6px 16px; transition: all .2s;
}
.vend-bids-btn:hover:not(:disabled) {
  background: rgba(95, 214, 198, 0.16); border-color: var(--teal);
  color: var(--teal-deep);
}
.vend-bids-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 中标记录弹窗 ---------- */
.vend-bid-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 5, 12, 0.72); backdrop-filter: blur(3px);
  padding: 20px;
}
.vend-bid-modal {
  width: min(760px, 100%); max-height: 82vh; display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.vend-bid-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.vend-bid-modal-title {
  font-size: 16px; font-weight: 600; color: var(--gold); letter-spacing: 0.04em;
}
.vend-bid-modal-close {
  cursor: pointer; font-size: 22px; line-height: 1; color: var(--faint);
  background: transparent; border: none; padding: 0 4px; transition: color .2s;
}
.vend-bid-modal-close:hover { color: var(--gold-bright); }
.vend-bid-modal-body { padding: 14px 20px 20px; overflow-y: auto; }
.vend-bid-loading, .vend-bid-empty {
  text-align: center; padding: 40px 16px; color: var(--faint); font-size: 14.5px;
}
.vend-bid-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vend-bid-item {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(7, 12, 26, 0.5);
}
.vend-bid-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vend-bid-proj {
  color: var(--gold-bright); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.vend-bid-proj:hover { color: var(--gold); text-decoration: underline; }
.vend-bid-type {
  font-size: 11.5px; color: var(--teal); padding: 2px 9px; border-radius: 999px;
  border: 1px solid rgba(95, 214, 198, .35); background: rgba(95, 214, 198, .1);
}
.vend-bid-item-meta { margin-top: 6px; font-size: 13px; color: var(--text); line-height: 1.65; }
.vend-bid-item-meta a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(110, 168, 255, .5); }
.vend-bid-item-meta a:hover { color: #a9ccff; }
.vend-bid-item-src { margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.vend-bid-item-src a { color: var(--teal); text-decoration: none; }
.vend-bid-item-src a:hover { color: var(--teal-deep); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .vend-shell { padding: 20px 14px 40px; }
  .vend-search-row { grid-template-columns: 1fr; }
  .vend-info-grid { grid-template-columns: 1fr; }
  .vend-card-head h2 { font-size: 18px; }
}
