/* ============================================================
   model-upgrade.css — 产品选型页（model.html）升级改造样式
   2026-05-16  方案 B：视觉翻新 + 内容增强
   - 在 model.css 之后加载，只做「覆盖」与「新增」
   - model.css 一字不改，其他页面零影响
   ============================================================ */

:root {
  --yj-up-primary: #5f9acc;
  --yj-up-primary-d: #3f7cae;
  --yj-up-orange: #ff6600;
  --yj-up-bg: #f4f7fa;
  --yj-up-ink: #2b3a48;
  --yj-up-sub: #7a8794;
  --yj-up-line: #e3e8ee;
  --yj-up-radius: 10px;
  --yj-up-shadow: 0 4px 16px rgba(43, 58, 72, .08);
  --yj-up-shadow-h: 0 10px 26px rgba(95, 154, 204, .22);
}

/* 整页底色 —— 必须用 #main 收紧：导航链接 <a data-id="product"> 也带同名属性，
   裸 [data-id="product"] 会误伤导航项，产生浅色块 */
#main[data-id="product"] { background: var(--yj-up-bg); }

/* 取消 tabs 上浮压 banner 的老效果，新区块走正常流 */
[data-id="product"] .mt-75 {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
}

/* ---------- Banner 轻度美化 ---------- */
[data-id="product"] .banner { position: relative; background: #2b3a48; }
[data-id="product"] .banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(63,124,174,.55), rgba(43,58,72,.35));
}
[data-id="product"] .banner-main { position: relative; z-index: 2; }
[data-id="product"] .banner .tit {
  font-weight: 700; letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ============================================================
   通用区块容器
   ============================================================ */
.yj-section { padding: 46px 0; }
.yj-section .container { box-sizing: border-box; }
.yj-sec-head { text-align: center; margin-bottom: 30px; }
.yj-sec-head h2 {
  font-size: 2.6rem; font-weight: 700; color: var(--yj-up-ink);
  margin: 0 0 8px;
}
.yj-sec-head h2 .yj-accent { color: var(--yj-up-primary); }
.yj-sec-head p {
  font-size: 1.4rem; color: var(--yj-up-sub); margin: 0;
}
.yj-sec-head::after {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--yj-up-primary); border-radius: 2px; margin: 14px auto 0;
}

/* ============================================================
   1. 三步选型引导条
   ============================================================ */
.yj-guide-wrap { background: var(--yj-up-bg); }
.yj-guide {
  display: flex; background: #fff;
  border: 1px solid var(--yj-up-line); border-radius: var(--yj-up-radius);
  box-shadow: var(--yj-up-shadow); overflow: hidden;
}
.yj-guide-step {
  flex: 1; padding: 26px 20px; text-align: center;
  position: relative; cursor: pointer;
  transition: background .2s ease;
}
.yj-guide-step:hover { background: #f6fafd; }
.yj-guide-step:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%;
  width: 22px; height: 22px; transform: translateY(-50%) rotate(45deg);
  background: #fff; border-right: 1px solid var(--yj-up-line);
  border-top: 1px solid var(--yj-up-line); z-index: 2;
}
.yj-guide-num {
  width: 44px; height: 44px; line-height: 44px; margin: 0 auto 12px;
  border-radius: 50%; font-size: 2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--yj-up-primary), var(--yj-up-primary-d));
  box-shadow: 0 6px 14px rgba(95,154,204,.4);
}
.yj-guide-step h4 {
  font-size: 1.7rem; font-weight: 700; color: var(--yj-up-ink); margin: 0 0 5px;
}
.yj-guide-step p { font-size: 1.3rem; color: var(--yj-up-sub); margin: 0; }

/* ============================================================
   2. 可视化产品分类大卡（泵系列）
   ============================================================ */
.yj-cat-wrap { background: var(--yj-up-bg); }
.yj-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.yj-cat-card {
  background: #fff; border: 1px solid var(--yj-up-line);
  border-radius: var(--yj-up-radius); overflow: hidden;
  box-shadow: var(--yj-up-shadow); cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  display: block;
}
.yj-cat-card:hover {
  transform: translateY(-5px); box-shadow: var(--yj-up-shadow-h);
}
.yj-cat-icon {
  height: 130px; display: flex; align-items: center; justify-content: center;
}
.yj-cat-icon svg { width: 58px; height: 58px; }
.yj-cat-body { padding: 16px 18px; }
.yj-cat-name {
  font-size: 1.7rem; font-weight: 700; color: var(--yj-up-ink);
  margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yj-cat-count {
  font-size: 1.3rem; color: var(--yj-up-primary); font-weight: 600;
}
.yj-cat-card.is-all .yj-cat-icon {
  background: linear-gradient(135deg, #eef3f7, #dde6ee);
}
.yj-cat-card.is-all .yj-cat-icon svg { stroke: var(--yj-up-primary); }

/* ============================================================
   3. 热门型号展示区
   ============================================================ */
.yj-hot-wrap { background: #fff; }
.yj-hot-series {
  margin-bottom: 34px;
}
.yj-hot-series:last-child { margin-bottom: 0; }
.yj-hot-series-title {
  font-size: 1.8rem; font-weight: 700; color: var(--yj-up-ink);
  padding-left: 12px; margin: 0 0 16px;
  border-left: 4px solid var(--yj-up-primary);
}
.yj-hot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.yj-hot-card {
  background: #fff; border: 1px solid var(--yj-up-line);
  border-radius: var(--yj-up-radius); overflow: hidden;
  box-shadow: var(--yj-up-shadow); cursor: pointer; display: block;
  transition: transform .22s ease, box-shadow .22s ease;
}
.yj-hot-card:hover {
  transform: translateY(-5px); box-shadow: var(--yj-up-shadow-h);
}
.yj-hot-thumb {
  height: 128px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.yj-hot-thumb svg { width: 56px; height: 56px; }
.yj-hot-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--yj-up-orange); color: #fff;
  font-size: 1.1rem; font-weight: 600; padding: 3px 10px; border-radius: 4px;
}
.yj-hot-body { padding: 14px 16px 16px; }
.yj-hot-name {
  font-size: 1.5rem; font-weight: 700; color: var(--yj-up-ink);
  margin: 0 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yj-hot-specs { display: flex; gap: 8px; }
.yj-spec {
  flex: 1; background: #f3f7fa; border-radius: 6px;
  padding: 8px 4px; text-align: center;
}
.yj-spec-v {
  font-size: 1.5rem; font-weight: 700; color: var(--yj-up-primary);
  line-height: 1.2;
}
.yj-spec-k {
  font-size: 1.05rem; color: var(--yj-up-sub); margin-top: 2px;
}
.yj-hot-empty {
  text-align: center; color: var(--yj-up-sub); padding: 40px 0; font-size: 1.4rem;
}

/* ============================================================
   选型工具区（3-Tab）重新美化 —— 覆盖 model.css
   ============================================================ */
[data-id="product"] .tabs-wrap {
  background: #fff; border: 1px solid var(--yj-up-line);
  border-radius: var(--yj-up-radius);
  box-shadow: var(--yj-up-shadow) !important;
  overflow: hidden;
}

/* Tab 头：蓝条 → 浅底圆角按钮 */
[data-id="product"] .tabs-wrap .tabs {
  background: #fff; height: auto; gap: 10px;
  padding: 16px 20px 0; color: inherit;
}
[data-id="product"] .tabs-wrap .tabs .tab {
  max-width: 200px; height: 44px; border-radius: 8px;
  background: #eef3f7; color: var(--yj-up-sub);
  font-size: 1.5rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
[data-id="product"] .tabs-wrap .tabs .tab::after { display: none; }
[data-id="product"] .tabs-wrap .tabs .tab:hover {
  color: var(--yj-up-primary); background: #e3edf5;
}
[data-id="product"] .tabs-wrap .tabs .tab.active {
  background: linear-gradient(135deg, var(--yj-up-primary), var(--yj-up-primary-d));
  color: #fff; box-shadow: 0 5px 13px rgba(95,154,204,.4);
}
[data-id="product"] .tabs-wrap .tabs-content { padding: 26px 24px; }

/* A-Z 字母索引面板：深蓝 → 浅色 */
[data-id="product"] .tabs-wrap .tab-right {
  background: #f7fafc !important; color: var(--yj-up-ink);
  border-radius: 8px; padding: 18px 20px; margin-left: 24px;
}
[data-id="product"] .tabs-wrap .tab-right .title-h3 { color: var(--yj-up-ink); }
[data-id="product"] .letter-box {
  width: 34px; height: 34px; line-height: 34px; margin: 3px;
  border-radius: 7px; background: #eef3f7; color: var(--yj-up-sub);
  font-size: 1.5rem; transition: background .15s ease, color .15s ease;
}
[data-id="product"] .letter-box:hover {
  background: linear-gradient(135deg, var(--yj-up-primary), var(--yj-up-primary-d));
  color: #fff;
}

/* 表单控件圆角化 */
[data-id="product"] .select-main {
  border: 1px solid #d6e0e8; border-radius: 7px;
  height: 38px; background: #fafcfd; overflow: hidden;
}
[data-id="product"] .select-main:focus-within { border-color: var(--yj-up-primary); }
[data-id="product"] .select-wrap .select-input { height: 36px; line-height: 36px; }
[data-id="product"] .select-wrap .select-box {
  height: 38px; line-height: 38px; border-left: 1px solid #d6e0e8;
  background: #fafcfd;
}
[data-id="product"] .search-type-input {
  border: 1px solid #d6e0e8; border-radius: 7px; height: 38px;
  background: #fafcfd;
}
[data-id="product"] .search-type-input:focus { border-color: var(--yj-up-primary); }
[data-id="product"] .type-form label span { color: var(--yj-up-ink); font-weight: 600; }

/* 泵类型 / 行业 可点项 chip 化 */
[data-id="product"] #productType .hover-item,
[data-id="product"] #industryFirst .hover-item,
[data-id="product"] #industrySecondary .hover-item {
  display: inline-block; margin: 0 10px 10px 0; padding: 7px 14px;
  border-radius: 18px; background: #eef3f7; color: var(--yj-up-ink);
  transition: background .15s ease, color .15s ease;
}
[data-id="product"] #productType .hover-item:hover,
[data-id="product"] #industryFirst .hover-item:hover,
[data-id="product"] #industryFirst .hover-item.active,
[data-id="product"] #industrySecondary .hover-item:hover {
  background: var(--yj-up-primary); color: #fff;
}

/* 选型按钮渐变化 */
[data-id="product"] .type-form .i-btn,
[data-id="product"] #searchParams {
  background: linear-gradient(135deg, var(--yj-up-primary), var(--yj-up-primary-d)) !important;
  border: none !important; border-radius: 8px !important;
  height: 44px !important; line-height: 44px !important;
  color: #fff !important; font-size: 1.5rem !important;
  box-shadow: 0 6px 15px rgba(95,154,204,.4);
  transition: transform .15s ease;
}
[data-id="product"] .type-form .i-btn:hover,
[data-id="product"] #searchParams:hover { transform: translateY(-2px); }

/* 原推荐产品旧容器隐藏（被新热门型号区取代） */
[data-id="product"] .tabs-wrap .bgf { display: none; }

/* ============================================================
   响应式
   ============================================================ */
@media only screen and (max-width: 991px) {
  .yj-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .yj-hot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media only screen and (max-width: 767px) {
  .yj-section { padding: 30px 0; }
  .yj-sec-head h2 { font-size: 2.1rem; }
  .yj-guide { flex-direction: column; }
  .yj-guide-step:not(:last-child)::after {
    right: 50%; top: auto; bottom: -11px;
    transform: translateX(50%) rotate(135deg);
    border-right: none; border-top: none;
    border-left: 1px solid var(--yj-up-line);
    border-bottom: 1px solid var(--yj-up-line);
  }
  .yj-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .yj-hot-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .yj-cat-icon { height: 100px; }
  .yj-hot-thumb { height: 104px; }
  [data-id="product"] .tabs-wrap .tabs { gap: 6px; padding: 12px 12px 0; }
  [data-id="product"] .tabs-wrap .tabs .tab { font-size: 1.3rem; height: 40px; }
  [data-id="product"] .tabs-wrap .tab-right { margin-left: 0; margin-top: 16px; }
}
