/* ============================================================
   中标查询页样式（暗蓝 + 奶油金 / 青，与厂商图谱一致）
   ============================================================ */
: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;
  --amber: #ffce6e;
}
* { 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;
}
.bid-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- 头部 ---------- */
.bid-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.bid-brand { display: flex; align-items: center; gap: 14px; }
.bid-tai { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(250,245,203,.35)); }
.bid-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);
}
.bid-brand-txt p { margin: 3px 0 0; font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.bid-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;
}
.bid-back:hover { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }

/* ---------- 查询条件 ---------- */
.bid-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);
}
.bid-search-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bid-field { display: flex; flex-direction: column; gap: 7px; }
.bid-field > span {
  font-size: 12.5px; color: var(--gold-deep); letter-spacing: 0.12em;
}
.bid-field input {
  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;
}
.bid-field input::placeholder { color: #5a637c; }
.bid-field input:focus {
  border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(236,224,173,.12);
}
.bid-search-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.bid-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;
}
.bid-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);
}
.bid-btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bid-btn.ghost { background: transparent; color: var(--gold-deep); border-color: var(--line); }
.bid-btn.ghost:hover { background: rgba(236,224,173,.08); border-color: var(--line-strong); }
.bid-count { margin-left: auto; font-size: 13px; color: var(--faint); }
.bid-count b { color: var(--gold); font-weight: 600; }

/* ---------- 类型筛选 subnav ---------- */
.bid-subnav {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px;
}
.bid-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;
}
.bid-cat:hover { border-color: var(--line-strong); color: var(--gold-bright); background: rgba(236,224,173,.08); }
.bid-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);
}

/* ---------- 结果区 ---------- */
.bid-results { display: flex; flex-direction: column; gap: 18px; }
.bid-hint, .bid-empty, .bid-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);
}
.bid-error { color: #ff9b9b; border-color: rgba(255,120,120,.3); }
.bid-loading { text-align: center; padding: 50px 20px; color: var(--gold-deep); font-size: 15px; }
.bid-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: bidSpin .8s linear infinite; vertical-align: -2px;
}
@keyframes bidSpin { to { transform: rotate(360deg); } }

/* ---------- 中标卡片 ---------- */
.bid-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);
}
.bid-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 6px; }
.bid-card-head h2 {
  margin: 0; font-size: 19px; font-weight: 600; color: var(--gold-bright);
  letter-spacing: 0.02em; line-height: 1.4;
}
.bid-type {
  font-size: 12px; color: #0c1a18; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), #f0b34a);
}
.bid-card-sub { font-size: 13px; color: var(--faint); margin: 2px 0 14px; }
.bid-card-sub .bid-customer { color: var(--text); }
.bid-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.bid-info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bid-info-item .k { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.bid-info-item .v { font-size: 14.5px; color: var(--text); word-break: break-word; line-height: 1.5; }
.bid-info-item .v.amount { color: var(--amber); font-weight: 600; }
.bid-info-item .v a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(110,168,255,.5); }
.bid-info-item .v a:hover { color: #a9ccff; }
.bid-span-2 { grid-column: 1 / -1; }

.bid-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--faint);
}
.bid-foot a { color: var(--accent); text-decoration: none; }
.bid-foot a:hover { color: #a9ccff; }

/* ---------- 分页 ---------- */
.bid-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.bid-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;
}
.bid-page-btn:hover:not(:disabled) { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }
.bid-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.bid-page-info { font-size: 13.5px; color: var(--faint); }
.bid-page-info b { color: var(--gold); }

.bid-foot-note {
  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;
}

/* ---------- 采购人/中标人 跳转链接 ---------- */
.bid-link {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px dashed rgba(230, 214, 159, 0.55);
  cursor: pointer;
}
.bid-link:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.bid-customer .bid-link, .bid-info-item .bid-link { font-weight: 600; }

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