/*!
 * credit.css —— 信贷帮扶匹配大厅专属样式（叠加在 hire.css 之上）
 * ---------------------------------------------------------------------------
 * 复用的：.hire-layout / .hire-side-card / .hire-tags / .hire-modal / .hire-mask /
 *        .hire-toast / .hire-wb* / .pager-v2 …
 * 这里只写信贷特有的：合规横幅、信用分徽标、报价条、产品卡、匹配清单。
 * ⚠️ 网格一律 minmax(0,1fr)：1fr ≡ minmax(auto,1fr)，下限 min-content，
 *    格子里有 <select>（「不限信用等级」这类长选项）会把整行撑爆。
 * ---------------------------------------------------------------------------
 * 移除方式：删除 credit.html 里对 /assets/credit.css 的引用即可。
 */

/* ===== 首屏合规横幅（红线文案必须一眼看到） ===== */
.cr-compliance {
  background: #fff7e6;
  border-top: 1px solid #f0dcb0;
  border-bottom: 1px solid #f0dcb0;
  color: #7a5c17;
  font-size: 13px;
  line-height: 1.85;
  padding: 12px 0;
}
.cr-compliance b { color: #b7791f; }
.cr-compliance .wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== 筛选栏：6 等分列，关键词与排序共占首行 =====
 * ⚠️ 不要改回「关键词 1.5fr + 固定 px」的老写法。
 *   本栏容器在 ≥1281px 时恒为 896px（.wrap 1240 − 侧栏 322 − gap 22），
 *   11 个控件的固定列合计 780px + 10×9px gap = 870px，只剩 2px 留给 1.5fr
 *   → 9 个下拉被压到各自 min-content 的 57px，只显示「不 ⌄」/「全 ⌄」，
 *     关键词的 fr 轨道被压成 0px，输入框溢出叠到第一个下拉上（截图里搜索框整个消失）；
 *   而 1025~1280px 两栏并存时容器还会缩到 641~896px，固定列更撑不住。
 *   根因：minmax(0, Npx) 的下限是 0，合计一超容器浏览器不换行、只把每列压到 0。
 * 现在：关键词 span 4、排序 span 2、**三个地区下拉各 span 2**，其余下拉各 1 格
 *   → 恰好 3 整行，每行都排满：4+1+1 / 1+1+1+1+2 / 2+2+2 = 18 格 = 3×6。
 *   列宽 (872−45)/6 ≈ 138px；地区下拉 285px（能放下「新疆维吾尔自治区」需 154px）。
 *   为什么是 6 列而不是更紧凑的 7 列：
 *   下拉里最长的**默认占位文字**是「不限信用等级」/「不限到账时间」，
 *   实测 14px 字体下文字 84px + 左右 padding 22px + 原生箭头预留 20px = 126px，
 *   6 列才给得起 138px；7 列只有 117px，会把默认文字末尾切掉（用户截图里的「不 ⌄」就是被切到只剩 1 个字）。
 *   排序在本栏有 5 个按钮（推荐/最新/额度/利率/报价多），自然宽约 266px，故给 span 2（285px）。
 * ------------------------------------------------------------------------- */
/* 筛选栏布局已统一到 hire.css 的 `.hire-filters`（flex + wrap）。
   ⚠️ 这里**不要**再写 grid-template-columns / grid-column:span：基类已是 flex，
   那些声明会变成 inert（既不报错也不生效，纯噪音）。地区下拉靠 `flex: 0 1 auto`
   按内容自适应——最长省名「新疆维吾尔自治区」需 146px，用等分列会在窄屏截断。
   下面只保留本页特有的微调。 */
.cr-filters .hire-sort { justify-self: start; }
/* ⚠️ [hidden] 兜底：UA 的 `[hidden]{display:none}` 会被作者样式 `.hire-filters{display:flex}`
   整条盖掉（作者样式优先级高于 UA，与特异性无关）。credit.js 里 `el.filters.hidden = true`
   因此一直没生效 —— 切到「信贷产品超市」时，融资需求的过滤条件还挂在上面，只会误导。
   hire.css 对 .hire-mask / .hire-toast 都补过同类兜底，这里按同一手法补上。 */
.hire-filters[hidden] { display: none; }
/* ≤640px：一行一个控件（保持 row 方向 + basis 100%）。本文件在 hire.css 之后加载，
   同级 ID 规则能压住基类；`.cr-filters > input` 的外层 `[type=search]` 特异性更高，
   所以关键词必须用 ID 覆写。 */
@media (max-width: 640px) {
  .cr-filters .hire-sort, .cr-filters .hire-urgent-toggle { margin-left: 0; width: 100%; justify-content: center; }
  .cr-filters #crFilterKeyword { flex: 1 1 100%; width: 100%; }
  .cr-filters > select { flex: 1 1 100%; width: 100%; }
}

.cr-result-sub { font-size: 12px; color: #8b8178; margin-left: 8px; }

/* ===== 融资需求卡 ===== */
.cr-need {
  background: #fff; border: 1px solid var(--c-line, #e3d9cf);
  border-radius: var(--radius, 14px); padding: 16px 18px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.cr-need-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cr-need-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.cr-need-title b { color: var(--c-ink, #26211d); }

.cr-grade {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid #e3d9cf; background: #fdfaf6; line-height: 1.05;
}
.cr-grade b { font-size: 18px; font-weight: 800; }
.cr-grade small { font-size: 9px; color: #8b8178; }
.cr-grade.gA { border-color: #9ed3a6; background: #f2fbf3; }
.cr-grade.gA b { color: #15803d; }
.cr-grade.gB { border-color: #a9c4ec; background: #f3f7fe; }
.cr-grade.gB b { color: #1d4ed8; }
.cr-grade.gC { border-color: #e8cf9a; background: #fdf8ee; }
.cr-grade.gC b { color: #b7791f; }
.cr-grade.gD { border-color: #e6b6b6; background: #fdf3f3; }
.cr-grade.gD b { color: #b91c1c; }

.cr-need-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; }
.cr-meta-i { font-size: 13px; color: #4b453f; }
.cr-k { display: block; font-size: 12px; color: #8b8178; }
.cr-meta-i b { color: var(--c-ink, #26211d); }

.cr-lock-line { font-size: 12px; color: #9a928a; margin: 8px 0 2px; }

/* 报价条 */
.cr-quotes { margin-top: 10px; background: #fafbfc; border: 1px solid var(--c-line, #e3d9cf); border-radius: 10px; padding: 12px 14px; }
.cr-quotes-title { font-size: 12px; color: #6b6560; font-weight: 700; margin-bottom: 8px; }
.cr-quotes-title b { color: var(--c-primary, #c93628); }
.cr-quotes-empty { font-size: 12px; color: #9a928a; line-height: 1.7; }
.cr-quote-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 96px) minmax(0, 1.1fr) minmax(0, 96px);
  gap: 10px; align-items: center; padding: 8px 8px; border-top: 1px solid var(--c-line, #e3d9cf);
  font-size: 13px; border-radius: 8px;
}
.cr-quote-row:first-of-type { border-top: none; }
.cr-quote-row.winner { outline: 2px solid #bbf7d0; background: #f0fdf4; }
.cr-q-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.cr-q-name b { color: var(--c-ink, #26211d); }
.cr-best { background: #15803d; color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 10px; font-weight: 700; }
.cr-policy { background: #fef9e7; color: #b7791f; font-size: 10px; padding: 1px 7px; border-radius: 10px; font-weight: 700; border: 1px solid #f0dcb0; }
.cr-q-rate { display: flex; align-items: baseline; gap: 3px; }
.cr-q-rate b { font-size: 17px; color: var(--c-primary, #c93628); }
.cr-q-rate small { font-size: 11px; color: #8b8178; }
.cr-q-meta { font-size: 12px; color: #4b453f; }
.cr-q-days { font-size: 12px; color: #6b6560; }
@media (max-width: 860px) { .cr-quote-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.cr-need-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--c-line, #e3d9cf); padding-top: 12px; margin-top: 10px; }
.cr-foot-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-foot-r { display: flex; gap: 8px; }
.cr-mine { background: #fde8ec; color: var(--c-primary, #c93628); font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.cr-score-note { font-size: 11px; color: #a89c90; }

/* ===== 详情弹窗 ===== */
.cr-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.cr-detail-head > div { display: flex; flex-direction: column; }
.cr-detail-head b { font-size: 18px; }
.cr-detail-head span { font-size: 12px; color: #8b8178; }
.cr-grade-desc { font-size: 13px; color: #7a5c17; background: #fdf8ee; border-radius: 10px; padding: 9px 12px; }
.cr-score-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin: 12px 0; }
@media (max-width: 640px) { .cr-score-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cr-part { font-size: 12px; color: #6b6560; }
.cr-part b { float: right; color: var(--c-ink, #26211d); }
.cr-part-bar { height: 5px; background: #f0ece6; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.cr-part-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c93628, #e2645a); }

.cr-kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0; }
@media (max-width: 640px) { .cr-kvs { grid-template-columns: minmax(0, 1fr); } }
.cr-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dotted var(--c-line, #e3d9cf); padding-bottom: 5px; }
.cr-kv span { color: #8b8178; }
.cr-h4 { font-size: 14px; margin: 16px 0 8px; color: var(--c-ink, #26211d); }
.cr-text { font-size: 13px; line-height: 1.75; color: #4b453f; white-space: pre-wrap; }

.cr-match-list { display: flex; flex-direction: column; gap: 8px; }
.cr-match { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--c-line, #e3d9cf); border-radius: 10px; padding: 10px 12px; }
.cr-match > div:first-child { min-width: 0; }
.cr-match b { font-size: 14px; }
.cr-match span { display: block; font-size: 12px; color: #8b8178; }
.cr-match p { font-size: 12px; color: #4b8b57; margin-top: 3px; }
.cr-match-score { flex: none; font-size: 18px; font-weight: 800; color: var(--c-primary, #c93628); }

.cr-policy-item { border-left: 4px solid #e8cf9a; background: #fdfbf5; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.cr-policy-item b { font-size: 14px; }
.cr-policy-item span { display: block; font-size: 12px; color: #8b8178; margin-top: 2px; }
.cr-policy-item p { font-size: 12px; color: #4b453f; margin-top: 4px; line-height: 1.7; }

.cr-locked { border: 1px dashed #e6c98a; background: #fdf8ee; border-radius: 12px; padding: 14px; text-align: center; }
.cr-locked p { font-size: 13px; color: #8a6d1f; }
.cr-locked-sub { font-size: 12px; color: #9a928a; margin-top: 6px; }
.cr-notice { font-size: 14px; line-height: 1.85; color: #4b453f; }
.cr-lv-list { margin: 10px 0 0 18px; font-size: 13px; line-height: 2; color: #4b453f; }
.cr-lv-list b { color: var(--c-primary, #c93628); }
.cr-disclaim { font-size: 11px; color: #a89c90; line-height: 1.7; margin-top: 14px; }

.cr-contact { border: 1px solid #cfe3d0; background: #f4fbf4; border-radius: 12px; padding: 14px; }
.cr-contact-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 5px 0; }
.cr-contact-row span { color: #6b8b6d; font-size: 13px; }
.cr-contact-row b { color: #1d6b25; }
.cr-contact-note { font-size: 12px; color: #7a927c; margin-top: 8px; line-height: 1.7; }

/* ===== 产品超市 ===== */
.cr-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) { .cr-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cr-products { grid-template-columns: minmax(0, 1fr); } }
.cr-prod { background: #fff; border: 1px solid var(--c-line, #e3d9cf); border-radius: var(--radius, 14px); padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.cr-prod.policy { border-left: 4px solid #e8cf9a; }
.cr-prod h4 { font-size: 15px; margin-bottom: 4px; }
.cr-prod-bank { font-size: 12px; color: #8b8178; }
.cr-prod-amt { font-size: 21px; font-weight: 800; color: var(--c-primary, #c93628); margin: 10px 0 4px; }
.cr-prod-rate { font-size: 13px; color: var(--c-primary, #c93628); font-weight: 700; }
.cr-prod ul { list-style: none; font-size: 12px; color: #4b453f; margin: 10px 0 0; }
.cr-prod li { padding: 4px 0; border-top: 1px solid var(--c-line, #e3d9cf); }
.cr-prod-note { font-size: 12px; color: #8b8178; margin-top: 8px; line-height: 1.7; }

/* ===== 工作台行 ===== */
.cr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-line, #e3d9cf); flex-wrap: wrap; }
.cr-row > div { min-width: 0; }
.cr-row b { font-size: 14px; }
.cr-row span { display: block; font-size: 12px; color: #8b8178; margin-top: 2px; }

/* ===== 发布表单 ===== */
.cr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .cr-form { grid-template-columns: minmax(0, 1fr); } }
.cr-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cr-field.wide { grid-column: 1 / -1; }
.cr-field > span { color: #6b6560; }
.cr-field > span i { color: var(--c-primary, #c93628); font-style: normal; }
.cr-field input, .cr-field select, .cr-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--c-line, #e3d9cf);
  border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--c-ink, #26211d);
}
.cr-field textarea { resize: vertical; line-height: 1.7; }
.cr-loc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .cr-loc { grid-template-columns: minmax(0, 1fr); } }
.cr-form-note { font-size: 12px; color: #8b8178; line-height: 1.85; margin-top: 12px; }
.cr-form-note b { color: #6b6560; }
.cr-banner { }

/* ===== 2026-09-13 新增：发布信贷产品 ===== */
/* 工具栏两个按钮并排（「＋ 发布信贷产品」在「＋ 发布融资需求」左边） */
.cr-toolbar-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-toolbar-btns .fc-btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .cr-toolbar-btns { width: 100%; }
  .cr-toolbar-btns .fc-btn { flex: 1 1 46%; justify-content: center; }
}
/* 用途 / 产业带 多选 chips */
.cr-checkpick { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-check-btn {
  border: 1px solid var(--c-line, #e3d9cf); background: #fff; color: #6b5f56;
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.cr-check-btn:hover { border-color: var(--c-primary, #c93628); color: var(--c-primary, #c93628); }
.cr-check-btn.on { background: #fff2ef; border-color: var(--c-primary, #c93628); color: var(--c-primary, #c93628); }
.cr-pick-empty { font-size: 12.5px; color: #a3968b; font-style: normal; }
/* 产品卡：我发布的标记 / 已下线 / 下线按钮 */
.cr-prod.is-offline { opacity: .62; }
.cr-prod-acts { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-line, #e3d9cf); }
.cr-prod-acts .fc-btn { font-size: 12.5px; padding: 6px 14px; }
.cr-prod h4 .cr-best, .cr-prod h4 .cr-policy { margin-left: 8px; vertical-align: middle; }
/* ---- 产品卡可点开详情：hover 反馈 + 右下角「查看详情 ›」提示 ---- */
.cr-prod.is-clickable { cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.cr-prod.is-clickable:hover { border-color: var(--c-primary, #c93628); box-shadow: 0 6px 18px rgba(201, 54, 40, .13); transform: translateY(-2px); }
.cr-prod.is-clickable:focus-visible { outline: 2px solid var(--c-primary, #c93628); outline-offset: 2px; }
/* ---- 产品卡上的机构联系方式（公开口径，直接露号；同 travel.css 的 .tr-prod-contact） ---- */
.cr-prod-contact { margin-top: 10px; font-size: 12.5px; color: #1d6b25; line-height: 1.7; word-break: break-all; }
.cr-prod-contact b { font-size: 13px; }
.cr-prod-contact.is-empty { color: #a3968b; }
/* 详情页的 tel: 链接别带默认下划线蓝，保持绿色可点 */
.cr-contact-row b a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.cr-contact-row b a:hover { border-bottom-style: solid; }
.cr-prod-more { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-line, #e3d9cf);
  font-size: 12.5px; font-weight: 700; color: var(--c-primary, #c93628); text-align: right; }
/* 「我发布的」卡片里「查看详情」与「下线产品」上下相邻，别叠出两条虚线 */
.cr-prod-more + .cr-prod-acts { margin-top: 8px; padding-top: 0; border-top: none; }
@media (prefers-reduced-motion: reduce) {
  .cr-prod.is-clickable { transition: none; }
  .cr-prod.is-clickable:hover { transform: none; }
}
/* ---- 产品详情弹窗 ---- */
.cr-prod-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.cr-prod-hero > div { background: #fdf7f1; border: 1px solid var(--c-line, #e3d9cf); border-radius: 10px; padding: 10px 12px; text-align: center; }
.cr-prod-hero b { display: block; font-size: 18px; color: var(--c-primary, #c93628); line-height: 1.35; }
.cr-prod-hero small { display: block; margin-top: 3px; font-size: 11px; color: #8b8178; }
@media (max-width: 640px) { .cr-prod-hero { grid-template-columns: minmax(0, 1fr); } }
.cr-offline-tip { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: #fbf3e6;
  border: 1px solid #e8cf9a; font-size: 12.5px; color: #8a6d2f; line-height: 1.7; }

/* 报价价格保密（仅需求发布人可见） */
.cr-q-rate .is-locked { font-size: 13px; color: #9a8a80; font-weight: 800; }
