/* ============================================================
   Power AI — 招标信息页 · tenders.css v2
   复用 main.css 设计变量与 metrics 暗色横带范式
   亮 hero → 亮维度卡 → 暗色情报控制台
   ============================================================ */

/* ---------- Hero 搜索 ---------- */
.t-hero-search {
  max-width: 660px;
  margin: 44px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-pure);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  box-shadow: var(--shadow-card);
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.t-hero-search:focus-within {
  border-color: var(--energy);
  box-shadow: 0 0 0 4px var(--energy-glow), var(--shadow-lift);
}
.t-hero-search svg { color: var(--ink-faint); flex: none; }
.t-hero-search input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: none;
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 4px;
}
.t-hero-search input::placeholder { color: var(--ink-faint); }
.t-hero-search .t-clear {
  border: none; background: none; cursor: pointer;
  color: var(--ink-faint); font-size: 17px; line-height: 1;
  padding: 4px 8px; display: none;
}
.t-hero-search .t-clear.show { display: block; }
.t-hero-search button[type="submit"] {
  flex: none;
  border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--energy-deep), var(--energy));
  color: #fff;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 30px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 194, 209, .35);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.t-hero-search button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 194, 209, .5);
}

.t-hints {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}
.t-hints button {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: inherit; font-size: 12.5px;
  padding: 5px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.t-hints button:hover {
  border-color: var(--energy);
  color: var(--energy-deep);
  background: var(--energy-glow);
}

.t-updated {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.t-updated .t-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--save);
  animation: t-pulse 2s infinite;
}
@keyframes t-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 185, 129, .45); }
  70% { box-shadow: 0 0 0 8px rgba(15, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 185, 129, 0); }
}

/* ---------- 01 盯标维度（亮卡 · metrics 单元气质）---------- */
.t-scope {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.t-scope-card {
  position: relative;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  display: flex; flex-direction: column;
}
.t-scope-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--energy-deep), var(--energy), transparent 85%);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.t-scope-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0, 194, 209, .4);
}
.t-scope-card:hover::before { opacity: 1; }
.t-scope-card.selected {
  border-color: var(--energy);
  box-shadow: 0 0 0 3px var(--energy-glow), var(--shadow-lift);
}
.t-scope-card.selected::before { opacity: 1; }
.t-scope-card .tsc-en {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .3em;
  color: var(--energy-deep); font-weight: 600;
}
.t-scope-card h3 { font-size: 17px; font-weight: 700; margin: 12px 0 8px; color: var(--ink); }
.t-scope-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.t-scope-card .tsc-kw {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px;
}
.t-scope-card .tsc-kw span {
  font-size: 11px; color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px;
}
.t-scope-card .tsc-count {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
  color: var(--energy-deep); font-family: var(--font-mono);
}

/* ============================================================
   02 情报控制台（暗色横带 · 复用 metrics 渐变范式）
   ============================================================ */
.t-console {
  --d-ink: #FFFFFF;
  --d-soft: rgba(255, 255, 255, .74);
  --d-faint: rgba(255, 255, 255, .46);
  --d-line: rgba(127, 233, 242, .14);
  --d-line2: rgba(255, 255, 255, .08);
  --d-cyan: #39E6F5;
  --d-pale: #7FE9F2;
  position: relative;
  background: linear-gradient(135deg, #0B2B45 0%, #0E3D60 60%, #0A4A5E 100%);
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  overflow: hidden;
}
.t-console::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: min(90vw, 1000px); aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 194, 209, .16) 0%, transparent 65%);
  pointer-events: none;
}
.t-console .sec-index { color: var(--d-pale); }
.t-console .sec-index::before { background: var(--d-cyan); }
.t-console .sec-title,
.t-console h2 { color: #fff; }
.t-console .lead { color: var(--d-soft); }
.t-console .container { position: relative; }

/* ---------- 读数条 ---------- */
.t-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--d-line2);
  border: 1px solid var(--d-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.t-read {
  background: rgba(11, 43, 69, .55);
  padding: 24px 20px 20px;
  position: relative;
  transition: background .3s;
}
.t-read:hover { background: rgba(14, 61, 96, .85); }
.t-read b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: var(--d-cyan);
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(57, 230, 245, .35);
}
.t-read b i { font-style: normal; font-size: .52em; color: var(--d-pale); margin-left: 2px; }
.t-read span { font-size: 13px; color: var(--d-soft); display: block; margin-top: 6px; }
.t-read em {
  display: block; font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .3em;
  color: var(--d-faint); margin-top: 3px;
}

/* ---------- 控制台面板 ---------- */
.t-panel {
  background: rgba(7, 32, 47, .45);
  border: 1px solid var(--d-line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.t-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(255, 255, 255, .04);
}
.t-search-inline {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 230px;
  background: rgba(7, 32, 47, .6);
  border: 1px solid var(--d-line2);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.t-search-inline:focus-within {
  border-color: var(--d-cyan);
  box-shadow: 0 0 0 3px rgba(57, 230, 245, .15);
}
.t-search-inline svg { color: var(--d-faint); flex: none; }
.t-search-inline input {
  flex: 1; min-width: 0; border: none; outline: none;
  background: none; font: inherit; font-size: 14px; color: var(--d-ink);
}
.t-search-inline input::placeholder { color: var(--d-faint); }
.t-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(7, 32, 47, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237FE9F2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--d-line2);
  border-radius: var(--radius-sm);
  padding: 9px 32px 9px 14px;
  font: inherit; font-size: 13px; color: var(--d-ink);
  cursor: pointer;
  transition: border-color .2s var(--ease-out);
}
.t-select:hover, .t-select:focus { border-color: var(--d-cyan); outline: none; }
.t-select option { color: #0B2B45; background: #fff; }

.t-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.t-chip {
  font: inherit; font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--d-line2);
  background: rgba(255, 255, 255, .05);
  color: var(--d-soft);
  transition: all .18s var(--ease-out);
}
.t-chip:hover { border-color: var(--d-cyan); color: var(--d-pale); }
.t-chip.on {
  background: linear-gradient(120deg, var(--energy-deep), var(--energy));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 2px 14px rgba(0, 194, 209, .4);
}
.t-chip .n { opacity: .7; font-size: 11px; margin-left: 3px; font-family: var(--font-mono); }
.t-chip.star-chip { border-style: dashed; }
.t-chip.star-chip.on { background: linear-gradient(120deg, #B45309, #F59E0B); box-shadow: 0 2px 14px rgba(245, 158, 11, .4); }

/* ---------- 结果统计行 ---------- */
.t-meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--d-line);
  font-size: 13px; color: var(--d-soft);
}
.t-meta b { color: #fff; font-family: var(--font-mono); }
.t-meta .t-sum { color: var(--d-cyan); font-weight: 600; font-family: var(--font-mono); }
.t-meta-right { display: flex; gap: 8px; }
.t-btn-sm {
  border: 1px solid var(--d-line2);
  background: rgba(255, 255, 255, .05);
  color: var(--d-soft);
  font: inherit; font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s var(--ease-out);
  display: none;
}
.t-btn-sm.show { display: inline-block; }
.t-btn-sm:hover { border-color: var(--d-cyan); color: var(--d-pale); }
.t-btn-sm.export { display: inline-block; border-style: dashed; }

/* ---------- 结果表（暗色）---------- */
.t-row {
  display: grid;
  grid-template-columns: minmax(230px, 2.6fr) 96px 1.4fr 88px 118px 92px 132px 44px 26px;
  gap: 12px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--d-line2);
  transition: background .15s;
  color: inherit;
}
.t-row:hover { background: rgba(0, 194, 209, .07); }
.t-row.t-head {
  font-size: 11px; color: var(--d-faint); font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  padding: 0 20px 11px;
  background: none;
  border-bottom: 1px solid var(--d-line);
}
.t-row .t-name {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; line-height: 1.45;
  color: var(--d-ink); font-weight: 500;
}
.t-pill {
  font-size: 10px; font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px; flex: none; margin-top: 3px;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.t-pill.hp { background: rgba(0, 194, 209, .16); color: #7FE9F2; border-color: rgba(0, 194, 209, .3); }
.t-pill.emc { background: rgba(57, 230, 245, .1); color: #A9F6FB; border-color: rgba(57, 230, 245, .28); }
.t-pill.dh { background: rgba(255, 255, 255, .1); color: #CFE3F5; border-color: rgba(255, 255, 255, .18); }
.t-row .t-cell { font-size: 13px; color: var(--d-soft); line-height: 1.45; }
.t-row .t-budget {
  font-size: 14px; font-weight: 700;
  color: var(--d-cyan);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.t-row .t-budget.na { color: var(--d-faint); font-weight: 400; }
.t-row .t-ext {
  display: flex; align-items: center; justify-content: center;
  color: var(--d-faint); transition: color .15s;
}
.t-row:hover .t-ext { color: var(--d-cyan); }

.t-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.t-status .sd { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.t-status.live { color: #34D399; }
.t-status.live .sd { background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.t-status.urgent { color: #FBBF24; }
.t-status.urgent .sd { background: #FBBF24; box-shadow: 0 0 8px rgba(251, 191, 36, .8); }
.t-status.today { color: #F87171; }
.t-status.today .sd { background: #F87171; box-shadow: 0 0 8px rgba(248, 113, 113, .9); }
.t-status.done { color: var(--d-faint); }
.t-status.done .sd { background: rgba(255, 255, 255, .22); }
.t-status.plan { color: #FBBF24; }
.t-status.plan .sd { background: #FBBF24; }
.t-status .t-days {
  font-family: var(--font-mono);
  font-size: 11px; opacity: .85;
  margin-left: 2px;
}

/* 截止列：状态行 + 原始日期 */
.t-dl { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.t-dl-raw {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-faint);
  letter-spacing: .02em;
}

/* 收藏星 */
.t-star {
  border: none; background: none; cursor: pointer;
  color: var(--d-faint);
  font-size: 16px; line-height: 1;
  padding: 4px;
  transition: color .2s, transform .2s;
}
.t-star:hover { color: #FBBF24; transform: scale(1.15); }
.t-star.on { color: #FBBF24; text-shadow: 0 0 10px rgba(251, 191, 36, .55); }

.t-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--d-faint);
}
.t-empty .e-icon { font-size: 34px; margin-bottom: 14px; opacity: .55; }
.t-empty h4 { color: var(--d-soft); font-size: 16px; margin-bottom: 6px; }
.t-empty p { font-size: 13px; }

.t-note {
  padding: 14px 20px;
  font-size: 12px; color: var(--d-faint); line-height: 1.7;
  border-top: 1px solid var(--d-line);
  background: rgba(7, 32, 47, .35);
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .t-scope { grid-template-columns: repeat(2, 1fr); }
  .t-readout { grid-template-columns: repeat(2, 1fr); }
  .t-row.t-head { display: none; }
  .t-row {
    grid-template-columns: 1fr; gap: 4px;
    padding: 16px;
  }
  .t-row .t-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; padding-right: 34px; position: relative; }
  .t-row .t-name .t-star { position: absolute; right: 0; top: 0; }
  .t-row .t-cell, .t-row .t-budget {
    display: flex; justify-content: space-between; gap: 12px;
    text-align: right; font-size: 13px;
  }
  .t-row .t-cell::before {
    content: attr(data-label);
    color: var(--d-faint); font-size: 12px; font-weight: 400;
  }
  .t-row .t-budget::before {
    content: attr(data-label);
    color: var(--d-faint); font-size: 12px; font-weight: 400;
    font-family: var(--font-sans);
  }
  .t-row .t-dl { align-items: flex-end; text-align: right; }
  .t-row .t-ext { display: none; }
}
@media (max-width: 560px) {
  .t-scope { grid-template-columns: 1fr; }
  .t-hero-search { flex-wrap: wrap; border-radius: var(--radius); padding: 10px; }
  .t-hero-search input { flex: 1 1 100%; order: 1; }
  .t-hero-search svg { order: 0; }
  .t-hero-search .t-clear { order: 2; }
  .t-hero-search button[type="submit"] { order: 3; width: 100%; }
  .t-readout { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   v3 增补：研判行 / 跟进等级 / 中标情报 / 趋势图 / 订阅
   ============================================================ */

/* 研判行（名称下方小字）*/
.t-name-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t-note-line {
  font-size: 12px; font-weight: 400;
  color: var(--d-faint);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 跟进等级徽标 */
.t-grade {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  border-radius: 5px;
  padding: 2px 6px; flex: none; margin-top: 3px;
  letter-spacing: .04em;
}
.t-grade.gA { background: rgba(57, 230, 245, .18); color: #7FE9F2; border: 1px solid rgba(57, 230, 245, .45); }
.t-grade.gB { background: rgba(251, 191, 36, .12); color: #FBBF24; border: 1px solid rgba(251, 191, 36, .35); }

/* 前置信号 pill */
.t-pill.pre { background: rgba(8, 145, 178, .2); color: #A5F3FC; border-color: rgba(8, 145, 178, .4); }

/* 招标↔中标配对标识 */
.t-pair {
  font-size: 10px; font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px; flex: none; margin-top: 3px;
  background: rgba(251, 191, 36, .14);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, .4);
  cursor: pointer;
  transition: background .2s var(--ease-out);
}
.t-pair:hover { background: rgba(251, 191, 36, .28); }
.aw-pair {
  font-size: 11px; color: var(--energy-deep);
  cursor: pointer; white-space: nowrap;
}
.aw-pair:hover { text-decoration: underline; }

/* ---------- 月度趋势（纯 CSS 柱图：文字不参与拉伸，任何宽度下不变形）---------- */
.t-trend-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px; align-items: center;
  background: rgba(7, 32, 47, .45);
  border: 1px solid var(--d-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 26px;
}
.t-trend-label .ttl-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; color: var(--d-faint); }
.t-trend-label .ttl-cn { font-size: 15px; font-weight: 700; color: #fff; margin-top: 4px; }
.t-trend-label .ttl-cap { font-size: 11px; color: var(--d-faint); margin-top: 4px; line-height: 1.5; }
#tTrend {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 20px);
  height: 128px;
}
.tt-col {
  flex: 1; min-width: 0; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 4px;
}
.tt-n {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: #A9F6FB;
  min-height: 15px; line-height: 15px;
}
.tt-bar {
  width: 100%; max-width: 46px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #39E6F5 0%, rgba(8, 145, 178, .35) 100%);
  box-shadow: 0 0 12px rgba(57, 230, 245, .25);
  transition: filter .2s var(--ease-out);
}
.tt-col:hover .tt-bar { filter: brightness(1.3); }
.tt-bar.empty { background: rgba(127, 233, 242, .12); box-shadow: none; }
.tt-m {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}
.tt-b {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(57, 230, 245, .75);
  min-height: 12px; line-height: 12px;
  white-space: nowrap;
}
@media (max-width: 720px) { .t-trend-wrap { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- 中标情报（亮色区）---------- */
.aw-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-left: 3px solid var(--energy);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: inherit;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.aw-row + .aw-row { margin-top: 12px; }
.aw-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--energy-deep);
  color: inherit;
}
.aw-main { min-width: 0; flex: 1; }
.aw-title {
  font-size: 15px; font-weight: 600; color: var(--ink);
  line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
}
.aw-winner {
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--energy-deep), var(--energy));
  border-radius: 5px; padding: 2px 9px;
  flex: none; margin-top: 3px;
  white-space: nowrap;
}
.aw-sub {
  font-size: 12.5px; color: var(--ink-faint);
  margin-top: 6px; line-height: 1.6;
}
.aw-note { display: block; color: var(--ink-soft); margin-top: 4px; }
.aw-side {
  flex: none; text-align: right;
  display: flex; flex-direction: column; gap: 4px;
}
.aw-budget {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700; color: var(--energy-deep);
  white-space: nowrap;
}
.aw-method { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.aw-empty { background: var(--bg-pure); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 32px; text-align: center; color: var(--ink-faint); font-size: 13px; }
@media (max-width: 640px) {
  .aw-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .aw-side { flex-direction: row; text-align: left; gap: 14px; }
}

/* ---------- 订阅表单 ---------- */
.sub-panel {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 760px;
  margin: 0 auto;
}
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sub-field { display: flex; flex-direction: column; gap: 6px; }
.sub-field.full { grid-column: 1 / -1; }
.sub-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.sub-field label small { color: var(--ink-faint); font-weight: 400; margin-left: 4px; }
.sub-field input[type="text"] {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font: inherit; font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.sub-field input[type="text"]:focus {
  border-color: var(--energy);
  box-shadow: 0 0 0 3px var(--energy-glow);
}
.sub-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-check {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px; color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s var(--ease-out);
  user-select: none;
}
.sub-check:hover { border-color: var(--energy); color: var(--energy-deep); }
.sub-check input { accent-color: var(--energy); }
.sub-check:has(input:checked) {
  border-color: var(--energy);
  background: var(--energy-glow);
  color: var(--energy-deep);
  font-weight: 600;
}
.sub-msg { font-size: 13px; margin-top: 12px; min-height: 20px; }
.sub-msg.ok { color: var(--save); font-weight: 600; }
.sub-msg.err { color: #E11D48; }
.sub-submit {
  margin-top: 16px;
  border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--energy-deep), var(--energy));
  color: #fff;
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 34px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 194, 209, .35);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.sub-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0, 194, 209, .5); }
.sub-submit:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .sub-grid { grid-template-columns: 1fr; } }

/* === 表格白底精致版式（深色 panel 内嵌白卡 · 吸顶表头 · 品牌色） === */
#tBody {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin: 0 18px 18px;
  padding: 0;
  overflow: hidden;
}
/* 行：克制分隔 · 紧凑留白 · 聚焦左边条 */
#tBody .t-row {
  padding: 12px 22px;
  border-bottom: 1px solid #F1F5F9;
  gap: 14px;
  color: #475569;
  background: #fff;
  transition: background .15s ease;
  position: relative;
}
#tBody .t-row:last-child { border-bottom: none; }
#tBody .t-row:hover { background: #F6FBFC; }
#tBody .t-row:hover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #00C2D1, #00A6B3);
}
/* 表头：sticky 吸顶 · 浅灰字 · 精致分隔 */
#tBody .t-row.t-head {
  position: sticky; top: 0; z-index: 5;
  background: #FAFCFD;
  color: #94A3B8;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  padding: 12px 22px 11px;
  border-bottom: 1px solid #E2E8F0;
}
#tBody .t-row.t-head .t-cell,
#tBody .t-row.t-head .t-name,
#tBody .t-row.t-head .t-budget { color: #94A3B8; background: none; }
/* 名称列 + 备注 */
#tBody .t-row .t-name { color: #0B2B45; font-weight: 600; gap: 8px; }
#tBody .t-row .t-name-main { color: #0B2B45; }
#tBody .t-row .t-name-main .t-note-line { color: #64748B; font-size: 12px; font-weight: 400; line-height: 1.5; }
/* 数据单元 · 预算 */
#tBody .t-row .t-cell { color: #475569; font-size: 13px; }
#tBody .t-row .t-budget { color: #0B2B45; font-size: 14px; font-weight: 700; }
#tBody .t-row .t-budget.na { color: #94A3B8; font-weight: 400; }
/* Pill 标签：白底高对比 */
#tBody .t-pill { font-weight: 600; border: 1px solid; margin-top: 2px; }
#tBody .t-pill.hp  { background: #E0F7FA; color: #006978; border-color: rgba(0,194,209,.35); }
#tBody .t-pill.emc { background: #ECFEFF; color: #155E75; border-color: rgba(8,145,178,.35); }
#tBody .t-pill.dh  { background: #F1F5F9; color: #475569; border-color: #E2E8F0; }
#tBody .t-pill.pre { background: #FEF3C7; color: #92400E; border-color: rgba(245,158,11,.4); }
/* 状态徽章 */
#tBody .t-status { font-size: 12px; }
#tBody .t-status .sd { width: 7px; height: 7px; }
#tBody .t-status.live   { color: #047857; }
#tBody .t-status.live   .sd { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,.5); }
#tBody .t-status.urgent { color: #B45309; }
#tBody .t-status.urgent .sd { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,.5); }
#tBody .t-status.today  { color: #B91C1C; }
#tBody .t-status.today  .sd { background: #EF4444; box-shadow: 0 0 6px rgba(239,68,68,.6); }
#tBody .t-status.plan   { color: #92400E; }
#tBody .t-status.plan   .sd { background: #F59E0B; }
#tBody .t-status.done   { color: #94A3B8; }
#tBody .t-status.done   .sd { background: #CBD5E1; box-shadow: none; }
#tBody .t-days { font-weight: 600; }
/* 等级 A/B · 配对 */
#tBody .t-grade { font-weight: 700; }
#tBody .t-grade.gA { background: #E0F7FA; color: #006978; border-color: rgba(0,194,209,.4); }
#tBody .t-grade.gB { background: #FEF3C7; color: #92400E; border-color: rgba(245,158,11,.4); }
#tBody .t-pair { background: #FEF3C7; color: #92400E; border-color: rgba(245,158,11,.4); }
#tBody .t-pair:hover { background: #FDE68A; }
/* 星 + 扩展 */
#tBody .t-row .t-star { color: #CBD5E1; }
#tBody .t-row .t-star.on { color: #F59E0B; }
#tBody .t-row .t-ext { color: #CBD5E1; }
#tBody .t-row:hover .t-ext { color: #00A6B3; }
/* 去除链接默认下划线（白底下显眼）；.aw-pair:hover 的下划线为有意设计，specificity 更高不受影响 */
#tBody .t-row, #tBody .t-row * { text-decoration: none; }
.aw-row, .aw-row * { text-decoration: none; }

/* ===== 近 7 天新入库标记（tenders.js isNewItem 注入）===== */
.t-new {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  border-radius: 5px; padding: 2px 7px; flex: none; margin-top: 3px;
  background: linear-gradient(120deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 1px 4px rgba(5, 150, 105, .3);
}
#tBody .t-new { margin-top: 2px; }
