/* =========================================================================
   检索台样式 —— 复刻参考图的紧凑料号表格
   暖白底 / 细分隔线 / 分类胶囊 / 绿色现货 / 红色详情
   ========================================================================= */
.catalog{
  margin: 26px 0 40px;
  background: #fdfcf9;
  border: 1px solid #eae5db;
  border-radius: 14px;
  padding: 22px 24px 18px;
  box-shadow: 0 1px 2px rgba(60,50,30,.03);
}

/* 控制区：搜索 + 筛选 + 计数 */
.catalog-controls{
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin-bottom: 20px;
}
.catalog-search{
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 260px; min-width: 220px; max-width: 320px;
  background: #fff; border: 1px solid #e4ded2; border-radius: 8px;
  padding: 0 12px; height: 38px;
  transition: border-color .2s, box-shadow .2s;
}
.catalog-search:focus-within{ border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,168,211,.12); }
.catalog-search .ico{ width: 15px; height: 15px; color: #66748a; flex: none; }
.catalog-search input{
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: 14px; color: var(--navy-900);
}
.catalog-search input::placeholder{ color: #66748a; }

.catalog-filters{ display: flex; flex-wrap: wrap; gap: 6px; }
.cat-filter{
  border: 1px solid #e4ded2; background: #fff; color: var(--muted);
  border-radius: 6px; padding: 7px 11px; font-size: 12px; cursor: pointer;
  white-space: nowrap; transition: .2s;
}
.cat-filter:hover{ border-color: #b9b2a5; color: var(--navy-900); }
.cat-filter.active{ background: var(--navy-900); border-color: var(--navy-900); color: #fff; font-weight: 600; }
.catalog-count{
  margin-left: auto; font-family: var(--font-en); font-size: 12px;
  color: #5a6b80; white-space: nowrap;
}

/* 表格 */
.catalog-table-wrap{ overflow-x: auto; max-width: 100%; border: 1px solid #eae5db; border-radius: 10px; background: #fff; overscroll-behavior-x: contain; }
.catalog-table{ width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1080px; }
.catalog-table thead th{
  text-align: left; font-size: 12px; font-weight: 600; color: #5a6b80;
  padding: 13px 14px; border-bottom: 1px solid #eae5db;
  background: #faf8f3; white-space: nowrap;
}
.catalog-table tbody tr{ border-bottom: 1px solid #f0ece4; transition: background .18s; }
.catalog-table tbody tr:last-child{ border-bottom: 0; }
.catalog-table tbody tr:hover{ background: #fbfaf6; }
.catalog-table td{ padding: 13px 14px; vertical-align: middle; color: var(--body); }

.cat-model a{
  display: block; font-family: var(--font-mono);
  font-size: 14px; font-weight: 700; color: var(--navy-900); letter-spacing: .01em;
}
.cat-model a:hover{ color: var(--cyan-dark); }
.cat-model span{ display: block; margin-top: 3px; font-size: 12px; color: #66748a; line-height: 1.5; }
.cat-brand a{ font-size: 14px; color: #555; }
.cat-brand a:hover{ color: var(--cyan-dark); }
.cat-tag{
  display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 5px;
  background: #f2f0ea; color: var(--muted); border: 1px solid #e8e4da; white-space: nowrap;
}
.cat-param{ font-family: var(--font-mono); font-size: 12px; color: #5a5a5a; max-width: 230px; }
.cat-stock{
  display: inline-block; font-family: var(--font-en); font-size: 12px; font-weight: 600;
  color: #1f6b45; background: #eaf6ef; border-radius: 5px; padding: 3px 7px;
}
.cat-moq{ font-family: var(--font-en); color: #777; }
.cat-price b{ font-family: var(--font-en); font-size: 14px; color: var(--navy-900); }
.cat-spec{
  display: inline-block; font-size: 12px; padding: 5px 12px;
  border: 1px solid #dcd6ca; border-radius: 6px; color: #5a554c; background: #fff;
  transition: .2s;
}
.cat-spec:hover{ border-color: var(--cyan); color: var(--cyan-dark); }
.cat-detail a{
  font-size: 12px; color: #c0492f; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2px;
}
.cat-detail a:hover{ color: #9a3520; }
.cat-detail .ico{ width: 12px; height: 12px; }

.catalog-demo{
  margin: 14px 2px 0; font-size: 12px; line-height: 1.7; color: #66748a;
  padding-left: 10px; border-left: 2px solid #e0d9c9;
}
.catalog-empty{ text-align: center; padding: 30px; color: #66748a; font-size: 14px; }

/* 移动端：9 列表格保留完整列宽，靠横向滑动查看，并给出明确提示 */
.catalog-swipe-hint{ display: none; }
@media (max-width: 640px){
  .catalog{ padding: 16px 14px; }
  .catalog-search{ max-width: none; flex-basis: 100%; }
  .catalog-count{ margin-left: 0; }
  .catalog-swipe-hint{
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 8px; font-size: 12px; color: #5a6b80;
  }
  .catalog-swipe-hint b{ color: var(--cyan-dark); font-weight: 700; letter-spacing: .02em; }
}

/* 全宽检索台区块：与 subhero 衔接更紧 */
.component-catalog-sec{ padding-top: 56px !important; padding-bottom: 56px !important; }
.component-catalog-sec .section-head{ margin-bottom: 14px; }
.component-catalog-sec .section-intro{ margin-bottom: 22px; }

/* 固定列宽：宽度由表头 th 的内联 style 指定（fixed 布局下权威） */
.catalog-table{ table-layout: fixed; }
.cat-model a{ overflow-wrap: anywhere; }
.cat-brand a{ overflow-wrap: anywhere; }
.cat-param{ overflow-wrap: break-word; }
.cat-spec{ white-space: nowrap; }
.cat-detail a{ white-space: nowrap; }

/* 应用领域检索台：品牌 + 功能分类双维筛选 */
.app-filter-bar{ display: flex; flex-direction: column; gap: 9px; margin: 0 0 16px; }
.app-filter-row{ display: flex; align-items: flex-start; gap: 10px; }
.app-filter-label{
  flex: none; min-width: 58px; padding-top: 8px;
  font-size: 12px; letter-spacing: .06em; color: #5a6b80;
}
.app-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.app-filter{
  border: 1px solid #e4ded2; background: #fff; color: var(--muted);
  border-radius: 6px; padding: 6px 11px; font-size: 12px; cursor: pointer;
  white-space: nowrap; transition: .2s;
}
.app-filter:hover{ border-color: #b9b2a5; color: var(--navy-900); }
.app-filter.active{ background: var(--navy-900); border-color: var(--navy-900); color: #fff; font-weight: 600; }

/* 应用领域页收尾：仅保留信息边界与其他领域入口 */
.app-tail{ padding-top: 8px !important; }
.app-other-links{
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 22px; font-size: 14px;
}
.app-other-links > span{ color: #5a6b80; font-size: 12px; letter-spacing: .04em; }
.app-other-links a{ color: var(--navy-900); border-bottom: 1px solid rgba(9,32,89,.18); }
.app-other-links a:hover{ color: var(--cyan-dark); border-color: var(--cyan-dark); }
@media (max-width: 640px){
  /* 两组筛选各收成单行横滚，避免 19 个 chip 换行 7 行把料号列表推到屏外 */
  .app-filter-label{ min-width: 48px; }
  .app-filter-row{ flex-wrap: nowrap; }
  .app-chips{
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden; padding-bottom: 8px;
    scrollbar-width: thin; scrollbar-color: rgba(9,32,89,.28) transparent;
  }
  /* 保留细滚动条作为明确的横滑指示，不再用 mask 淡出伪装成内容被截断 */
  .app-chips::-webkit-scrollbar{ height: 4px; }
  .app-chips::-webkit-scrollbar-thumb{ background: rgba(9,32,89,.28); border-radius: 4px; }
  .app-chips::-webkit-scrollbar-track{ background: transparent; }
  .app-filter{ flex: none; }
}


/* =========================================================================
   产品应用 BOM —— 热门产品卡 + 主动料清单
   ========================================================================= */
.prod-sec{ background: #faf8f3; }
.prod-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px; margin-top: 28px;
}
.prod-card{
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eae5db; border-radius: 12px;
  padding: 20px 20px 15px; text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prod-card:hover{
  transform: translateY(-3px); border-color: #d8d0bf;
  box-shadow: 0 14px 28px rgba(60,50,30,.075);
}
.prod-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.prod-rank{ font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; color: #66748a; }
.prod-heat{ font-size: 12px; color: #8a6220; letter-spacing: .04em; }
.prod-card h3{
  font-size: 16px; font-weight: 700; line-height: 1.42;
  color: var(--navy-900); margin: 0 0 4px;
}
.prod-en{
  font-family: var(--font-en); font-size: 12px; letter-spacing: .07em;
  text-transform: uppercase; color: #66748a; margin: 0 0 10px;
}
.prod-scene{ font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0 0 12px; }
.prod-specs{ list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 5px; }
.prod-specs li{
  font-size: 12px; color: var(--muted); background: #faf8f3;
  border: 1px solid #eee9df; border-radius: 5px; padding: 3px 7px;
}
.prod-foot{
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f2eee6;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  font-size: 12px; color: #5a6b80;
}
.prod-foot b{ margin-left: auto; font-weight: 600; color: var(--cyan-dark); }

.bom-block{
  background: #fff; border: 1px solid #eae5db; border-radius: 12px;
  padding: 22px 22px 16px; margin-top: 18px; scroll-margin-top: 96px;
}
.bom-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.bom-head-main{ min-width: 0; }
.bom-idx{
  display: block; margin-bottom: 8px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; color: #66748a;
}
.bom-idx em{
  font-style: normal; margin-left: 8px; color: #8a6220;
  background: #fdf6e9; border: 1px solid #f0e4cc; border-radius: 4px; padding: 1px 6px;
  letter-spacing: .04em;
}
.bom-head h3{ font-size: 18px; font-weight: 700; color: var(--navy-900); margin: 0 0 5px; line-height: 1.4; }
.bom-en{
  font-family: var(--font-en); font-size: 12px; letter-spacing: .07em;
  text-transform: uppercase; color: #66748a; margin: 0 0 8px;
}
.bom-scene{ font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }
.bom-specs{ list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.bom-specs li{
  font-size: 12px; color: var(--muted); background: #faf8f3;
  border: 1px solid #eee9df; border-radius: 5px; padding: 3px 7px;
}
.bom-side{ flex: none; text-align: right; }
.bom-side b{ display: block; font-family: var(--font-en); font-size: 28px; line-height: 1; color: var(--navy-900); }
.bom-side span{ font-size: 12px; letter-spacing: .05em; color: #5a6b80; }
.bom-side em{ display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: #8a6220; }

.bom-swipe{ display: none; }
.bom-table-wrap{ overflow-x: auto; max-width: 100%; border: 1px solid #eae5db; border-radius: 10px; background: #fff; overscroll-behavior-x: contain; }
.bom-table{ width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; table-layout: fixed; }
.bom-table thead th{
  text-align: left; font-size: 12px; font-weight: 600; color: #5a6b80;
  background: #faf8f3; padding: 11px 12px; border-bottom: 1px solid #eae5db; white-space: nowrap;
}
.bom-table tbody tr{ border-bottom: 1px solid #f2eee6; transition: background .18s; }
.bom-table tbody tr:last-child{ border-bottom: 0; }
.bom-table tbody tr:hover{ background: #fbfaf6; }
.bom-table td{ padding: 11px 12px; vertical-align: middle; color: var(--body); }
.bom-num{ font-family: var(--font-en); font-size: 12px; color: #66748a; }
.bom-cat{ color: var(--muted); overflow-wrap: anywhere; }
.bom-func{ color: var(--body); overflow-wrap: anywhere; }
.bom-brand a{ color: var(--muted); border-bottom: 1px solid rgba(9,32,89,.14); }
.bom-brand a:hover{ color: var(--cyan-dark); }
.bom-mpn{ font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--navy-900); overflow-wrap: anywhere; }
.bom-mpn a{ color: inherit; border-bottom: 1px solid rgba(9,32,89,.2); }
.bom-mpn a:hover{ color: var(--cyan-dark); border-color: var(--cyan-dark); }
.bom-pkg{ font-size: 12px; color: #5a6b80; }
.bom-xline{
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  font-family: var(--font-cn); font-size: 12px; font-weight: 400; letter-spacing: .02em;
  color: #8a6220; background: #fdf6e9; border: 1px solid #f0e4cc; border-radius: 4px; padding: 1px 5px;
}
.bom-note{ font-size: 12px; line-height: 1.7; color: #66748a; margin: 12px 0 0; }

/* 选中产品应用后的对照提示 */
.app-bom-hint{
  margin: -2px 0 14px; padding: 10px 13px; font-size: 12px; line-height: 1.75;
  color: var(--muted); background: #fdf6e9; border: 1px solid #f0e4cc; border-radius: 8px;
}

@media (max-width: 1100px){
  .prod-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px){
  .prod-grid{ grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .bom-block{ padding: 18px 14px 12px; }
  .bom-head{ flex-direction: column; gap: 14px; }
  .bom-side{ display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .bom-side b{ font-size: 22px; }
  .bom-side em{ margin-top: 0; }
  .bom-swipe{
    display: block; margin: 0 0 8px; font-size: 12px; color: #66748a; letter-spacing: .02em;
  }
}

/* 应用领域总览卡：补一行「产品 / BOM / 料号」计数，说明进入后能拿到什么。
   描述有一行也有两行，若不定高，这行计数会跟着上下浮动；
   把带 meta 的磁贴切成纵向 flex 并让 meta 沉底，同一行磁贴的计数就对齐了。 */
.tile:has(.tile-meta){ display: flex; flex-direction: column; align-items: stretch; }
.tile-meta{
  display: block; margin: 10px 0 0;
  font-size: 12px; letter-spacing: .01em; color: #66748a;
}
.tile:has(.tile-meta) .tile-meta{ margin-top: auto; padding-top: 10px; }
.tile:hover .tile-meta{ color: #5a6b80; }

/* =========================================================================
   品牌页：热门应用主推型号卡 + 全量料号表
   ========================================================================= */
.brand-app-sec{ background: #faf8f3; }
.ba-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px; margin-top: 28px;
}
.ba-card{
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eae5db; border-radius: 12px;
  padding: 20px 20px 15px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ba-card:hover{ transform: translateY(-3px); border-color: #d8d0bf; box-shadow: 0 14px 28px rgba(60,50,30,.075); }
.ba-top{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ba-top h3{ font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0; }
.ba-top h3 a{ color: var(--navy-900); }
.ba-top h3 a:hover{ color: var(--cyan-dark); }
.ba-count{ flex: none; font-family: var(--font-en); font-size: 12px; color: #8a6220; letter-spacing: .03em; }
.ba-need{ font-size: 12px; line-height: 1.7; color: #5a6b80; margin: 0 0 12px; }
.ba-list{ list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid #f2eee6; }
.ba-list li{
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f6f2ea;
}
.ba-mpn{
  font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--navy-900);
  overflow-wrap: anywhere;
}
.ba-mpn:hover{ color: var(--cyan-dark); }
.ba-func{ flex: none; font-size: 12px; color: #66748a; }
.ba-more{
  margin-top: auto; padding-top: 10px;
  font-size: 12px; color: var(--cyan-dark);
}
.ba-more:hover{ color: var(--navy-900); }

/* 全量料号表 */
.brand-cat-sec{ padding-top: 8px !important; }
.brand-catalog{ margin-top: 22px; }
.brand-catalog .catalog-table{ min-width: 860px; }
.ba-apps{ line-height: 1.9; }
.ba-tag{
  display: inline-block; margin: 0 4px 2px 0;
  font-size: 12px; color: var(--muted); background: #faf8f3;
  border: 1px solid #eee9df; border-radius: 4px; padding: 1px 6px;
}
.ba-tag.is-more{ color: #66748a; background: #fff; border-style: dashed; }
.ba-prodcnt{ font-size: 12px; color: #5a6b80; white-space: nowrap; }

@media (max-width: 1100px){
  .ba-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px){
  .ba-grid{ grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .brand-catalog{ padding: 18px 14px 14px; }
}

/* 表格最小宽 1080px；1024 视口会被切断，从 1200 起就给出横滑提示 */
@media (min-width: 641px) and (max-width: 1200px){
  .catalog-swipe-hint{
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 8px; font-size: 12px; color: var(--muted);
  }
  .catalog-swipe-hint b{ color: var(--accent-text); font-weight: 700; }
}
