/* ==========================================================================
   ROTARY ENCODER 旋转编码器商城 - 全站基础样式
   主色：工业蓝 #0a4d8c / 辅助橙 #ff6a13
   ========================================================================== */

:root {
  --brand: #0a4d8c;
  --brand-dark: #073a6b;
  --brand-light: #e8f1fa;
  --accent: #ff6a13;
  --accent-light: #fff1e6;
  --text: #1f2a37;
  --text-sub: #5b6b7c;
  --text-mute: #93a1b0;
  --line: #e6ebf1;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(10, 77, 140, .07);
  --shadow-hover: 0 10px 26px rgba(10, 77, 140, .16);
  --wrap: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; font-size: inherit; outline: none; }

/* ==========================================================================
   视觉隐藏但保留给屏幕阅读器 / 搜索引擎的文本（SEO 用 h1）
   用途：列表页（首页、品牌中心、搜索中心、资讯列表、联系我们）原本没有任何 <h1>，
        每页只有一个 h1 是语义要求。这里用「视觉隐藏」补齐语义，
        页面观感零改变，也不会被判定为作弊（Google 官方允许 skip-link / sr-only 这类写法）。
   ⚠️ 不要用 display:none 或 visibility:hidden —— 那会让内容对辅助技术也不可见，
      反而可能被判定为隐藏文本。必须用「裁剪到 1px」的标准做法。
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   顶部通栏
   ========================================================================== */
.topbar {
  background: var(--brand-dark);
  color: #c3d8ee;
  font-size: 12px;
  line-height: 32px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-phone { color: #fff; font-weight: 600; }

/* ==========================================================================
   头部：Logo + 主导航 + 搜索
   ========================================================================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.header-main { display: flex; align-items: center; gap: 28px; padding: 16px 0; }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

/* 主导航 */
.nav { flex: 1; display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 4px;
  white-space: nowrap;
  transition: .2s;
}
.nav > li > a:hover { color: var(--brand); background: var(--brand-light); }
.nav > li.active > a { color: #fff; background: var(--brand); font-weight: 600; }

/* 头部搜索 */
.head-search { display: flex; width: 260px; flex-shrink: 0; }
.head-search input {
  flex: 1; min-width: 0;
  height: 38px;
  border: 2px solid var(--brand);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  color: var(--text);
}
.head-search input::placeholder { color: var(--text-mute); }
.head-search button {
  width: 48px; height: 38px;
  border: none;
  background: var(--brand);
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.head-search button:hover { background: var(--accent); }
.head-search button svg { width: 18px; height: 18px; }

/* ==========================================================================
   轮播（纯图片）
   ========================================================================== */
.banner {
  position: relative;
  aspect-ratio: 3 / 1;          /* 与轮播图 1536×512 一致，图片可完整显示 */
  min-height: 300px;
  max-height: 620px;
  overflow: hidden;
  background: #062a52;
  border-bottom: 1px solid var(--line);
}
.banner-track { height: 100%; }
.banner-slide {
  position: absolute; inset: 0;
  background-color: #062a52;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
}
.banner-slide.active { opacity: 1; }

/* 左侧文字渐变压暗层，保证文字可读 */
.banner-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,38,72,.92) 0%, rgba(6,38,72,.58) 38%, rgba(6,38,72,.08) 68%, rgba(6,38,72,0) 86%);
}
.banner-slide .wrap {
  height: 100%;
  display: flex; align-items: center;
  position: relative; z-index: 2;
}
.banner-copy { max-width: 520px; color: #fff; }
.banner-copy .tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.banner-copy h2 {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.banner-copy p { font-size: 15px; color: rgba(255, 255, 255, .9); }

.banner-arrow {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(31, 42, 55, .22);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
  z-index: 5;
}
.banner-arrow:hover { background: var(--accent); }
.banner-arrow svg { width: 20px; height: 20px; }
.banner-arrow.prev { left: 24px; }
.banner-arrow.next { right: 24px; }

.banner-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.banner-dots i {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: rgba(31, 42, 55, .18);
  cursor: pointer;
  transition: .25s;
}
.banner-dots i.active { background: var(--accent); width: 40px; }

/* ==========================================================================
   服务保障条
   ========================================================================== */
.promises { background: #fff; border-bottom: 1px solid var(--line); }
.promises .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise-item {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 0;
  justify-content: center;
}
.promise-item + .promise-item { border-left: 1px solid var(--line); }
.promise-item svg { width: 30px; height: 30px; color: var(--brand); flex-shrink: 0; }
.promise-item b { display: block; font-size: 15px; }
.promise-item span { font-size: 12px; color: var(--text-mute); }

/* ==========================================================================
   通用区块标题
   ========================================================================== */
.section { padding: 46px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}
.section-title { display: flex; align-items: flex-end; gap: 14px; }
.section-title h2 {
  font-size: 24px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 46px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 1px;
  padding-bottom: 14px;
  text-transform: uppercase;
}
.more-link {
  font-size: 13px;
  color: var(--text-sub);
  padding-bottom: 12px;
  transition: .2s;
}
.more-link:hover { color: var(--accent); }

/* ==========================================================================
   品牌直达
   ========================================================================== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 8px 14px;
  text-align: center;
  transition: .22s;
  position: relative;
  overflow: hidden;
}
.brand-card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: .22s;
}
.brand-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.brand-card:hover::before { transform: scaleX(1); }
.brand-card .bc-logo {
  height: 46px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.brand-card .bc-logo img {
  max-height: 100%;
  max-width: 88%;
  object-fit: contain;
}
.brand-card .bc-logo span {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .5px;
  line-height: 1.15;
}
.brand-card .bc-name { font-size: 12px; color: var(--text-sub); }

/* ==========================================================================
   热销产品
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .22s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--brand); }
.pc-img {
  height: 168px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.pc-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform .25s;
}
.pc-img:hover img { transform: scale(1.06); }
.pc-badge {
  position: absolute; left: 0; top: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 0 3px 3px 0;
  z-index: 2;
  /* 角标内容现在是「产品类型」，文字可能较长（如「增量型旋转编码器」），
     限制最大宽度并单行截断，避免撑破卡片布局 */
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.pc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pc-name:hover { color: var(--brand); }
.pc-brand {
  font-size: 12px;
  color: var(--text-mute);
  margin: 6px 0 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==========================================================================
   底部双栏：行业动态 + 解决方案
   ========================================================================== */
.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.news-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.news-panel .np-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.news-panel .np-head h3 {
  font-size: 17px;
  display: flex; align-items: center; gap: 8px;
}
.news-panel .np-head h3 svg { width: 18px; height: 18px; color: var(--accent); }
.news-panel .np-head a { font-size: 12px; color: var(--text-mute); }
.news-panel .np-head a:hover { color: var(--accent); }
.news-list { padding: 6px 20px 12px; }
.news-list li { border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  transition: .2s;
}
.news-list a:hover { padding-left: 6px; }
.news-list .date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.news-list .date b { display: block; font-size: 18px; color: var(--brand); font-family: Georgia, serif; line-height: 1.1; }
.news-list .txt { flex: 1; min-width: 0; }
.news-list .txt p {
  font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list a:hover .txt p { color: var(--brand); }
.news-list .txt span { font-size: 12px; color: var(--text-mute); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer { background: #0f1c2b; color: #93a6bb; margin-top: 10px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr auto;
  gap: 34px;
  padding: 46px 0 34px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 2px; background: var(--accent);
}
.footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer-logo-img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
}
.footer-desc { font-size: 13px; line-height: 1.9; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 13px; transition: .2s; }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.footer-contact b { color: #fff; }

.footer-qr { text-align: center; }
.footer-qr img {
  width: 132px; height: 132px;
  /* ⚠️ 必须显式 margin: 0 auto —— 全局 img { display: block } 让图片变块级，
     父级 text-align: center 对它无效，不加这行二维码会贴左（同 .contact-qr img）。 */
  margin: 0 auto;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}
.footer-qr p { font-size: 12px; margin-top: 10px; color: #93a6bb; }

.footer-bottom {
  border-top: 1px solid #1c2c3e;
  padding: 18px 0;
  font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* 备案信息那一行（© 版权左边的第二个 span）：
   ⚠️ 全局重置 img { display: block }（见文件开头）会把备案图标变成块级元素，
   图标就会独占一行、把「浙公网安备」「浙ICP备」挤到下面去 —— 表现为「不在同一行」。
   这里把该 span 设为 flex 行、图标改回 inline-block，三者就能并排。 */
.footer-bottom .beian {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom .beian img {
  display: inline-block;   /* 抵消全局块级重置，让图标跟文字同行 */
  height: 16px; width: auto;
  vertical-align: middle;
  /* 备案图标是彩色的，页脚底色是深蓝，不去色、不加 filter */
}
.footer-bottom .beian a { color: #93a6bb; }
.footer-bottom .beian a:hover { color: #fff; }

.footer-bottom a:hover { color: #fff; }

/* 悬浮咨询 */
.float-bar {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.float-bar a, .float-bar button {
  width: 50px; height: 50px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--brand);
  transition: .2s;
}
.float-bar span { font-size: 10px; }
.float-bar svg { width: 20px; height: 20px; }
.float-bar a:hover, .float-bar button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-bar .top { display: none; }

/* 微信咨询弹窗 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 28, 43, .55);
  z-index: 500;
  display: none;
  align-items: center; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 10px;
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 30px 24px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: scale(.92) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.modal-close:hover { background: var(--accent); color: #fff; }
.modal-box h3 { font-size: 18px; margin-bottom: 6px; }
.modal-box .sub { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }
.modal-box .qr {
  width: 220px; height: 220px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}
.modal-box .tip { margin-top: 14px; font-size: 13px; color: var(--accent); }

/* ==========================================================================
   内页面包屑条
   --------------------------------------------------------------------------
   全站内页统一用它（品牌中心 / 搜索中心 / 行业动态 / 联系我们 + 三个详情页）。
   原先列表页用的是带大标题的 .page-head，2026-09-28 按用户要求去掉 <h1>
   后统一改成这条「只有面包屑、没有大标题」的形态，避免各页各写一套。
   ========================================================================== */
.crumb-bar {
  background: linear-gradient(120deg, var(--brand) 0%, #1a7fd4 100%);
  padding: 13px 0;
}
.crumb-bar .crumbs { font-size: 13px; color: rgba(255, 255, 255, .82); }
.crumb-bar .crumbs a { color: rgba(255, 255, 255, .82); }
.crumb-bar .crumbs a:hover { color: #fff; }
.crumb-bar .crumbs b { color: #fff; font-weight: 600; }

/* ==========================================================================
   品牌中心：A-Z 字母索引 + 分组品牌卡
   ========================================================================== */

/* ----- 头部「推荐品牌」区块（2026-09-28 新增）-----
   取品牌列表按 Sort 升序前 14 个，卡片复用下方 .bcard 的视觉，只在此处
   覆盖「一行 7 个」的栅格与更紧凑的内边距（原 .brand-list 是一行 4 个）。 */
.brand-hot { margin: 24px 0 0; }
.brand-hot .bh-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; color: var(--text);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
}
.brand-hot .bh-title::before {
  content: ""; flex: 0 0 auto;
  width: 4px; height: 18px; border-radius: 2px;
  background: var(--brand);
}
.brand-hot-list {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
}
/* 推荐位卡片：比分组列表更紧凑，且不显示 .b-links 那一行 */
.brand-hot-list .bcard { padding: 14px 10px 12px; }
.brand-hot-list .bcard .b-logo { height: 48px; margin-bottom: 10px; }
.brand-hot-list .bcard .b-name { font-size: 13px; }

.letter-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 24px 0 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
}
.letter-nav .ln-cap { font-size: 13px; color: var(--text-sub); margin-right: 6px; }
.letter-nav a, .letter-nav span {
  min-width: 30px; height: 30px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 14px; font-family: Georgia, serif; font-weight: 700;
  color: var(--brand);
  transition: .2s;
}
.letter-nav a:hover { background: var(--brand); color: #fff; }
.letter-nav span { color: var(--text-mute); font-weight: 400; opacity: .5; cursor: default; }

.brand-group { padding: 14px 0 0; }
.brand-group h3 {
  display: flex; align-items: center; gap: 12px;
  font-family: Georgia, serif; font-size: 26px; font-weight: 700;
  color: var(--brand);
  padding: 10px 0 14px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
  scroll-margin-top: 90px;
}
.brand-group h3::after { content: ""; flex: 1; }

.brand-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 14px; text-align: center;
  transition: .22s;
}
.bcard:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.bcard .b-logo { height: 62px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bcard .b-logo img { max-height: 100%; max-width: 84%; object-fit: contain; }
.bcard .b-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bcard .b-name em { font-style: normal; font-weight: 400; color: var(--text-sub); margin-left: 2px; }
.bcard .b-links {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px;
}
.bcard .b-links a { color: var(--brand); padding: 2px 10px; border-radius: 3px; }
.bcard .b-links a:hover { background: var(--brand-light); }
.bcard .b-links i { font-style: normal; color: var(--line); }

/* ==========================================================================
   品牌详情中心：左侧栏 + 右侧产品列表
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0 44px;
}
.shop-side { position: sticky; top: 16px; }

.side-widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden;
}
.side-widget > h3 {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--brand);
  padding: 10px 14px;
}
.side-body { padding: 14px; }

.side-search-form { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.side-search-form input {
  flex: 1; min-width: 0; border: none; padding: 8px 10px; font-size: 13px;
}
.side-search-form button {
  width: 40px; border: none; background: var(--brand); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.side-search-form button:hover { background: var(--brand-dark); }
.side-search-form svg { width: 16px; height: 16px; }

.cate-tree > li { border-bottom: 1px dashed var(--line); padding: 2px 0; }
.cate-tree > li:last-child { border-bottom: none; }
.cate-tree > li > a {
  display: block; padding: 9px 4px 9px 12px; position: relative;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.cate-tree > li > a::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.cate-tree > li > a:hover { color: var(--brand); }
.cate-tree ul { padding: 0 0 8px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cate-tree ul a {
  font-size: 12px; color: var(--text-sub);
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 3px;
}
.cate-tree ul a:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-light); }
/* 二级系列：当前选中（对应路由 ?sid=N / 产品所属系列）高亮 */
.cate-tree ul a.cur {
  color: #fff; background: var(--brand); border-color: var(--brand);
  font-weight: 600;
}
/* 一级类型里「其他系列」这类不可点的项 */
.cate-tree > li > .cate-top {
  display: block; padding: 9px 4px 9px 12px; position: relative;
  font-size: 13px; font-weight: 600; color: var(--text-sub); cursor: default;
}
.cate-tree > li > .cate-top::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line);
}

.side-contact li {
  display: flex; gap: 9px; font-size: 13px; color: var(--text-sub);
  padding: 7px 0; line-height: 1.7;
}
.side-contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand); margin-top: 3px; }
.side-contact li b { color: var(--text); }
.side-qr { text-align: center; padding-top: 4px; }
.side-qr img { width: 150px; height: 150px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px; }
.side-qr p { font-size: 12px; color: var(--text-mute); margin-top: 8px; }

/* 品牌条 */
.brand-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px;
  display: flex; gap: 20px;
  /* logo 固定在左上角：整条不要上下居中，改为顶部对齐 */
  align-items: flex-start;
}
.brand-bar .bb-logo {
  width: 148px; height: 74px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 5px;
  /* logo 贴在框内的左上角（原来 align-items:center 是上下居中） */
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 10px;
}
.brand-bar .bb-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
/* 品牌条标题（品牌站是 h1，产品详情页是 div.bb-name）：中英文整体加粗黑色，无间隔空格 */
.brand-bar h1, .brand-bar .bb-name { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.brand-bar h1 a, .brand-bar .bb-name a { color: var(--text); }
.brand-bar h1 a:hover, .brand-bar .bb-name a:hover { color: var(--brand); }
/* 中文名与英文名同字号、同字重、同颜色，仅靠子元素边界区隔，不加 margin */
.brand-bar h1 em, .brand-bar .bb-name em {
  font-style: normal; font-weight: 700; font-size: 20px; color: var(--text); margin-left: 0;
}
.brand-bar p a { color: var(--brand); }
.brand-bar p a:hover { text-decoration: underline; }
/* 产品详情页的品牌条里，logo 本身是链接（跳品牌站） */
.brand-bar a.bb-logo { text-decoration: none; }
.brand-bar .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.brand-bar .tags i {
  font-style: normal; font-size: 12px;
  background: var(--brand-light); color: var(--brand);
  padding: 2px 10px; border-radius: 12px;
}
.brand-bar p { font-size: 13px; color: var(--text-sub); line-height: 1.8; }
/* 品牌介绍（后台富文本，可能含 p/ul/strong 等标签，需与 .brand-bar p 视觉一致） */
.brand-intro { font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.brand-intro p { margin: 6px 0; }
.brand-intro ul, .brand-intro ol { margin: 6px 0 6px 18px; }
.brand-intro li { list-style: disc; }
.brand-intro img { max-width: 100%; height: auto; }

/* 品牌介绍默认折叠：只露 3 行，点「展开」看全文。
   ⚠️ 折叠容器与渐变遮罩必须同一个盒子里（position:relative 在父级），
      这样遮罩才会贴着底部渐隐，而不是浮在整页上。
   高度用 max-height 过渡（比 height 更省事：不用预先知道内容高度）。 */
.brand-intro-wrap { position: relative; }
.brand-intro-wrap .brand-intro {
  max-height: calc(1.8em * 3);        /* 3 行 × 行高 1.8 */
  overflow: hidden;
  transition: max-height .28s ease;
}
/* 底部渐隐遮罩：提示「下面还有内容」。展开后隐藏。 */
.brand-intro-wrap::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 78%);
  pointer-events: none;               /* 别挡住底下的文字选择 */
  transition: opacity .2s ease;
}
/* 展开态：放开高度限制、隐藏遮罩 */
.brand-intro-wrap.is-open .brand-intro { max-height: 500px; }
.brand-intro-wrap.is-open::after { opacity: 0; }
/* 「展开 / 收起」按钮：做成文字链样式，视觉清爽 */
.brand-intro-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px; padding: 0;
  font-size: 13px; font-family: inherit;
  color: var(--brand); background: none; border: 0;
  cursor: pointer; line-height: 1.6;
}
.brand-intro-toggle:hover { text-decoration: underline; }
/* 小箭头，展开时旋转 180° */
.brand-intro-toggle svg { transition: transform .25s ease; }
.brand-intro-wrap.is-open + .brand-intro-toggle svg { transform: rotate(180deg); }
/* ⚠️ 内容本来就不长（不足以触发折叠）时，整块由 JS 加 .no-fold 隐藏按钮与遮罩 */
.brand-intro-wrap.no-fold::after,
.brand-intro-wrap.no-fold + .brand-intro-toggle { display: none; }

/* 列表工具条 */
.plist-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.plist-bar .pb-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plist-bar .pb-title::before { content: ""; width: 3px; height: 15px; background: var(--accent); border-radius: 2px; }
.plist-bar .pb-count { font-size: 13px; color: var(--text-mute); }
.plist-bar .pb-count b { color: var(--accent); font-size: 15px; }

/* 筛选状态条（品牌站按类型/系列/关键词筛选时显示） */
.plist-filter {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 16px; margin-bottom: 14px; font-size: 13px; color: var(--text-sub);
}
.plist-filter em {
  font-style: normal; font-size: 12px;
  background: var(--brand-light); color: var(--brand);
  padding: 2px 10px; border-radius: 12px;
}
.plist-filter a { margin-left: auto; font-size: 13px; color: var(--brand); }
.plist-filter a:hover { text-decoration: underline; }

/* 一行一个产品 */
.plist { display: flex; flex-direction: column; gap: 14px; }
.product-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  transition: .22s;
}
.product-row:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.pr-img {
  border: 1px solid var(--line); border-radius: 4px;
  height: 168px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #fff;
}
.pr-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: .3s; }
.pr-img:hover img { transform: scale(1.05); }

.pr-model { font-size: 17px; font-weight: 700; color: var(--brand); line-height: 1.3; }
.pr-model:hover { color: var(--accent); }
.pr-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-mute); margin-top: 7px;
}
.pr-sub b { font-weight: 600; color: var(--text-sub); }
.pr-sub .dot { font-style: normal; color: #c4d0dc; }
.pr-sub .hot {
  font-style: normal;
  background: var(--accent-light); border: 1px solid #ffd2b2; color: var(--accent);
  padding: 1px 8px; border-radius: 3px; font-size: 12px;
}

.pr-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 13px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: 3px; overflow: hidden;
}
.pr-specs div {
  display: flex; align-items: baseline; gap: 6px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 7px 10px; font-size: 12.5px; background: #fff;
}
.pr-specs span { color: var(--text-mute); flex-shrink: 0; }
.pr-specs b { color: var(--text); font-weight: 600; }

.btn-primary, .btn-ghost {
  display: block; text-align: center; font-size: 14px;
  padding: 9px 10px; border-radius: 4px; transition: .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 1px solid var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* 分页 */
.pager {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px; margin-top: 26px;
}
.pager a {
  min-width: 34px; height: 34px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; color: var(--text-sub);
  transition: .2s; cursor: pointer; user-select: none;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager a.dis { color: var(--text-mute); opacity: .55; cursor: not-allowed; }
.pager a.dis:hover { border-color: var(--line); color: var(--text-mute); }
.pager .pg-info {
  border: none; background: none;
  color: var(--text-mute); font-size: 12.5px; margin-left: 10px;
  min-width: 0; padding: 0;
}
.pager .pg-info b { color: var(--accent); }
.pager .pg-nums { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pager .pg-nums:empty { display: none; }

/* ==========================================================================
   商品详情页 pd-
   ========================================================================== */
.pd-top {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 24px 0 0;
  display: grid; grid-template-columns: 380px 1fr; gap: 28px;
}
.pd-fig {
  height: 360px; border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #fff;
}
.pd-fig img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-fig-tip { font-size: 12px; color: var(--text-mute); text-align: center; margin-top: 10px; }

.pd-info h1 { font-size: 25px; line-height: 1.35; letter-spacing: .3px; }
.pd-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-mute); margin-top: 9px;
}
.pd-sub a { color: var(--brand); }
.pd-sub a:hover { color: var(--accent); }
.pd-sub .dot { font-style: normal; color: #c4d0dc; }
.pd-sub .hot {
  font-style: normal; font-size: 12px;
  background: var(--accent-light); border: 1px solid #ffd2b2; color: var(--accent);
  padding: 1px 8px; border-radius: 3px;
}

.pd-key {
  list-style: none; margin-top: 18px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.pd-key li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 12px; font-size: 13px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pd-key li span { color: var(--text-mute); flex-shrink: 0; }
.pd-key li b { color: var(--text); font-weight: 600; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pd-btn {
  font-size: 14px; padding: 10px 20px; border-radius: 4px;
  border: 1px solid var(--line); background: #fff; color: var(--text-sub);
  transition: .2s; cursor: pointer;
}
.pd-btn:hover { border-color: var(--brand); color: var(--brand); }
.pd-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pd-btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.pd-tel { font-size: 13px; color: var(--text-sub); margin-top: 16px; }
.pd-tel b { color: var(--brand); font-size: 15px; }

/* 产品详情页「咨询条」：左侧电话/微信，右侧客服二维码。
   原先这里只有一行 13px 的 .pd-tel 文字，右下方一大片空白；
   改成浅底描边卡片后，横向排布（信息在左、二维码在右），既不显空、也不推高太多。
   ⚠️ 窄屏（见下方媒体查询）改为纵向堆叠，二维码居中。 */
.pd-consult {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 18px; padding: 14px 18px;
  background: #f7fafd; border: 1px solid var(--line); border-radius: var(--radius);
}
.pd-consult .pdc-info { min-width: 0; flex: 1 1 auto; }  /* 信息占满左侧，二维码被推到最右 */
.pd-consult .pd-tel { margin-top: 0; }          /* 卡片内不再需要各自的上外边距 */
.pd-consult .pd-tel + .pd-tel { margin-top: 7px; }
.pd-consult .pdc-tip {
  font-size: 12px; color: var(--text-mute); margin-top: 9px; line-height: 1.6;
}

/* 二维码块：图片 + 「微信扫一扫」说明，整体在卡片右侧垂直居中。
   120×120 与左侧 .pd-fig 产品大图（380px 宽 / 360px 高）取同一视觉尺度，
   比 96px 更饱满、不再显得比产品图「小一号」。 */
.pd-consult .pdc-qr {
  flex: 0 0 auto; text-align: center;
}
.pd-consult .pdc-qr img {
  /* ⚠️ 全局 img { display: block } 让图片变块级，父级 text-align 对它无效，
     必须自身 margin: 0 auto 才能在本块里水平居中。 */
  display: block; margin: 0 auto;
  width: 120px; height: 120px; object-fit: contain;
  padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
}
.pd-consult .pdc-qr span {
  display: block; font-size: 11.5px; color: var(--text-mute); margin-top: 6px;
}

.pd-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-top: 18px;
}
.pd-block > h2 {
  font-size: 17px; line-height: 1.2;
  border-left: 4px solid var(--accent); padding-left: 11px;
  margin-bottom: 18px;
}
.pd-spec-table { width: 100%; border-collapse: collapse; }
.pd-spec-table th, .pd-spec-table td {
  border: 1px solid var(--line); padding: 10px 14px;
  font-size: 13px; text-align: left; vertical-align: top;
}
.pd-spec-table th {
  width: 160px; background: var(--bg);
  color: var(--text-sub); font-weight: 500;
}
.pd-spec-table td { color: var(--text); }

.pd-desc { font-size: 14px; color: var(--text-sub); line-height: 1.95; }
.pd-desc p { margin: 10px 0; }
.pd-desc h3 {
  font-size: 15px; color: var(--text);
  margin: 20px 0 8px; padding-left: 10px;
  border-left: 3px solid var(--brand-light);
}
.pd-desc ul { margin: 8px 0 8px 20px; }
.pd-desc li { list-style: disc; margin: 5px 0; }

/* 型号级选型常见问题（与页面 .pd-faq 可见文本一一对应，JSON-LD 同步输出） */
.pd-faq { font-size: 14px; color: var(--text-sub); line-height: 1.95; }
.pd-faq .faq-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.pd-faq .faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.pd-faq .faq-item:first-child { padding-top: 0; }
.pd-faq .faq-q {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px;
}
.pd-faq .faq-q::before {
  content: "Q"; flex: 0 0 auto;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 50%; margin-top: 3px;
}
.pd-faq .faq-a { padding-left: 26px; }

.pd-rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pd-rel-card {
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 10px;
  text-align: center; transition: .22s;
}
.pd-rel-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.pd-rel-card .rel-img {
  height: 118px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px;
}
.pd-rel-card .rel-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: .3s; }
.pd-rel-card:hover .rel-img img { transform: scale(1.05); }
.pd-rel-card b {
  display: block; font-size: 13px; color: var(--brand);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-rel-card i { display: block; font-style: normal; font-size: 12px; color: var(--text-mute); margin-top: 3px; }

.pd-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.pd-nav-item {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; transition: .2s;
}
a.pd-nav-item:hover { border-color: var(--brand); }
.pd-nav-item span { display: block; font-size: 12px; color: var(--text-mute); }
.pd-nav-item b {
  display: block; font-size: 14px; color: var(--brand); margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-nav-item.next { text-align: right; }
.pd-nav-item.dis b { color: var(--text-mute); font-weight: 400; }

/* 无 logo 文件时的文字品牌标 */
.bcard .b-txt { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--brand); }
.bb-txt { font-family: Georgia, serif; font-size: 26px; font-weight: 700; color: var(--brand); }

/* ==========================================================================
   资讯中心 news-
   ========================================================================== */
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.news-tabs a {
  padding: 8px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; font-size: 14px; color: var(--text-sub); transition: .2s;
}
.news-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.news-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.news-page-list { list-style: none; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.news-item > a {
  display: grid; grid-template-columns: 106px 1fr auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; transition: .22s;
}
.news-item > a:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.ni-date { border-right: 1px dashed var(--line); text-align: center; }
.ni-date b { font-family: Georgia, serif; font-size: 20px; color: var(--brand); }
.ni-txt p { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.5; transition: .2s; }
.news-item > a:hover .ni-txt p { color: var(--brand); }
.ni-txt span { display: block; font-size: 13px; color: var(--text-mute); margin-top: 7px; line-height: 1.7; }
.ni-cate {
  font-style: normal; font-size: 12px; white-space: nowrap;
  color: var(--brand); background: var(--brand-light);
  border: 1px solid #cfe3f7; border-radius: 12px; padding: 3px 12px;
}

/* ==========================================================================
   资讯详情 art-
   ========================================================================== */
.art-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 22px;
  margin: 24px 0 0; align-items: start;
}
.art-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px;
}
.art-head h1 { font-size: 26px; line-height: 1.45; }
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-mute);
  margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.art-meta .dot { font-style: normal; color: #c4d0dc; }
.art-body { font-size: 15px; line-height: 2; color: #33414f; }
.art-body p { margin: 14px 0; }
.art-body h3 {
  font-size: 17px; color: var(--text); margin: 26px 0 10px;
  padding-left: 11px; border-left: 3px solid var(--brand);
}
.art-body ul { margin: 12px 0 12px 20px; }
.art-body li { list-style: disc; margin: 6px 0; }

.art-nav {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.art-nav-item { display: block; padding: 12px 14px; background: var(--bg); border-radius: 4px; transition: .2s; }
a.art-nav-item:hover { background: var(--brand-light); }
.art-nav-item span { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 5px; }
.art-nav-item b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-sub); line-height: 1.6; }
.art-nav-item.dis b { color: var(--text-mute); font-weight: 400; }
.art-back { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--brand); }
.art-back:hover { color: var(--accent); }

/* 资讯正文内链：文中提到的产品（按文章分类关联的真实型号） */
.art-products {
  margin-top: 24px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.art-products .ap-title {
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.art-products .ap-title::before {
  content: ""; width: 3px; height: 15px; background: var(--accent); border-radius: 2px;
}
.art-products .ap-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.art-products .ap-card {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 8px; transition: .22s; background: #fff;
}
.art-products .ap-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.art-products .ap-img {
  display: flex; align-items: center; justify-content: center;
  height: 74px; margin-bottom: 8px;
}
.art-products .ap-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.art-products .ap-card b {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text);
  line-height: 1.5; word-break: break-all;
}
.art-products .ap-card:hover b { color: var(--brand); }

.art-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.art-side .side-widget { margin-bottom: 0; }
.side-news { list-style: none; }
.side-news li + li { border-top: 1px dashed var(--line); }
.side-news a { display: flex; gap: 10px; padding: 11px 0; }
.side-news b { font-family: Georgia, serif; font-size: 12px; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.side-news span { font-size: 13.5px; color: var(--text-sub); line-height: 1.65; transition: .2s; }
.side-news a:hover span { color: var(--brand); }

/* ==========================================================================
   联系我们 contact-
   ========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin: 24px 0 0;
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { font-size: 20px; }
.cc-sub {
  font-size: 13px; color: var(--text-mute);
  margin-top: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.ct-list { list-style: none; margin-top: 8px; }
.ct-list li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.ct-list li:last-child { border-bottom: none; }
.ct-list svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.ct-list span { display: block; font-size: 12.5px; color: var(--text-mute); margin-bottom: 4px; }
.ct-list b { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.7; }

.contact-qr {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.contact-qr h3 { font-size: 16px; margin-bottom: 18px; }
.contact-qr img {
  width: 200px; height: 200px; object-fit: contain;
  /* ⚠️ 必须显式 margin: 0 auto —— 全局 img 重置（见文件开头 img { display: block }）
     把图片变成了块级元素，块级元素不受父级 text-align: center 影响，
     不加这行二维码会贴左显示（.side-qr img 同样加了这行）。 */
  margin: 0 auto;
  border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: #fff;
}
.contact-qr p { font-size: 13px; color: var(--text-sub); margin-top: 14px; }
.contact-qr .cq-tip { font-size: 12px; color: var(--text-mute); margin-top: 8px; line-height: 1.8; }

.msg-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-top: 20px;
}
.mb-head h3 { font-size: 18px; }
.mb-head p { font-size: 13px; color: var(--text-mute); margin-top: 8px; }
.msg-form { margin-top: 20px; }
.mf-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.msg-form label { display: block; }
.msg-form label > span { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 7px; }
.msg-form input, .msg-form select, .msg-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: var(--text); background: #fff; outline: none; transition: .2s;
}
.msg-form textarea { resize: vertical; line-height: 1.7; }
.msg-form input:focus, .msg-form select:focus, .msg-form textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 77, 140, .08);
}
.mf-full { margin-bottom: 18px; }
.mf-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mf-submit {
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  padding: 11px 36px; border-radius: 4px; font-size: 15px; transition: .2s;
}
.mf-submit:hover { background: var(--brand-dark); }
.mf-note { font-size: 13px; color: var(--text-mute); line-height: 1.7; }
.mf-note.ok { color: #0f8a4c; }

/* ==========================================================================
   搜索中心 search-
   ========================================================================== */
.search-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 24px 0 0;
}
.search-form { display: flex; }
.search-form input {
  flex: 1; border: 1px solid var(--line); border-right: none;
  border-radius: 4px 0 0 4px; padding: 12px 16px;
  font-size: 15px; font-family: inherit; color: var(--text); outline: none;
}
.search-form input:focus { border-color: var(--brand); }
.search-form button {
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  padding: 0 40px; font-size: 15px; border-radius: 0 4px 4px 0; transition: .2s;
}
.search-form button:hover { background: var(--brand-dark); }
.search-hot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 13px; color: var(--text-mute);
}
.search-hot a {
  padding: 3px 13px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 12.5px; color: var(--text-sub); transition: .2s;
}
.search-hot a:hover { border-color: var(--brand); color: var(--brand); }

.sr-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  justify-content: space-between; margin: 22px 0 12px;
}
.sr-title { font-size: 16px; color: var(--text-sub); }
.sr-title b { color: var(--brand); }
.sr-tip { font-size: 12.5px; color: var(--text-mute); }
.sr-tip b { color: var(--accent); font-size: 14px; }

.no-result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center;
}
.no-result > b { display: block; font-size: 17px; color: var(--text); }
.no-result p { font-size: 13.5px; color: var(--text-sub); margin-top: 12px; line-height: 1.85; }
.no-result p b { color: var(--brand); }
.no-result .nr-links { margin-top: 18px; }
.no-result .nr-links a { font-size: 14px; color: var(--brand); }
.no-result .nr-links a:hover { color: var(--accent); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .nav > li > a { padding: 10px 10px; font-size: 14px; }
  .head-search { width: 200px; }
  /* 推荐品牌：<=1180px 时 7 列每格过窄（<150px）→ 收到 5 列 */
  .brand-hot-list { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 980px) {
  .header-main { flex-wrap: wrap; }
  .nav {
    flex-basis: 100%;
    order: 3;
    overflow-x: auto;
    gap: 0;
  }
  .nav::-webkit-scrollbar { display: none; }
  .banner { min-height: 320px; }
  .banner-copy h2 { font-size: 28px; }
  .promises .wrap { grid-template-columns: repeat(2, 1fr); }
  .promise-item:nth-child(3) { border-left: none; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .news-cols { grid-template-columns: 1fr; }
  .brand-list { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .cate-tree ul { gap: 8px; }
  .pd-top { grid-template-columns: 1fr; gap: 20px; }
  .pd-rel { grid-template-columns: repeat(3, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .art-side { position: static; }
  /* 资讯→产品内链：中屏收成 3 列，避免单卡过窄导致型号名折成多行 */
  .art-products .ap-list { grid-template-columns: repeat(3, 1fr); }
  /* 推荐品牌：中屏 7 列过窄 → 收到 4 列（14 个 → 4 行） */
  .brand-hot-list { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .topbar .tb-left { display: none; }
  .logo-img { height: 30px; }
  .head-search { width: 100%; order: 2; flex-basis: 100%; }
  /* 窄屏：图片按宽度撑满会过扁，固定高度 + 右移取景保住产品主体 */
  .banner { aspect-ratio: auto; height: 250px; min-height: 0; max-height: none; }
  .banner-slide { background-position: 78% center; }
  .banner-slide::before {
    background: linear-gradient(90deg, rgba(6,38,72,.95) 0%, rgba(6,38,72,.86) 58%, rgba(6,38,72,.45) 100%);
  }
  .banner-arrow { display: none; }
  .banner-copy h2 { font-size: 21px; margin-bottom: 8px; }
  .banner-copy p { font-size: 13px; }
  .banner-copy .tag { margin-bottom: 10px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-card { padding: 14px 4px 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-img { height: 130px; }
  .footer-top { grid-template-columns: 1fr; }
  /* .page-head h1 的移动端字号覆盖已删除：该组件 2026-09-28 已全站停用（改为 .crumb-bar） */
  .brand-list { grid-template-columns: repeat(2, 1fr); }
  .brand-group h3 { font-size: 21px; }
  /* 推荐品牌：窄屏收到 3 列（14 个 → 5 行），并让标题字号跟分组标题一起收敛 */
  .brand-hot .bh-title { font-size: 18px; }
  .brand-hot-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .product-row { grid-template-columns: 118px 1fr; gap: 14px; padding: 14px; }
  .pr-img { height: 118px; }
  .pr-model { font-size: 15px; }
  .pr-specs { grid-template-columns: repeat(2, 1fr); }
  .pager .pg-info { width: 100%; text-align: center; margin: 6px 0 0; }
  .pd-block, .art-main, .contact-card, .contact-qr, .msg-box, .search-panel { padding: 20px 16px; }
  .pd-fig { height: 250px; }
  .pd-info h1 { font-size: 20px; }
  .pd-key { grid-template-columns: 1fr; }
  .pd-rel { grid-template-columns: repeat(2, 1fr); }
  .pd-nav { grid-template-columns: 1fr; }
  .pd-nav-item.next { text-align: left; }
  /* 咨询条：窄屏改纵向堆叠，二维码居中显示（横排在手机上会把电话挤成两行）。
     二维码同时收敛到 110px —— 120px 在 375px 屏上占比过大。 */
  .pd-consult { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 16px; }
  .pd-consult .pdc-qr { align-self: center; }
  .pd-consult .pdc-qr img { width: 110px; height: 110px; }
  .pd-spec-table th, .pd-spec-table td { padding: 8px 10px; }
  .pd-spec-table th { width: 112px; }
  .news-item > a { grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; }
  .ni-date { grid-row: 1 / span 2; }
  .ni-date b { font-size: 16px; }
  .ni-cate { grid-column: 2; justify-self: start; }
  .ni-txt p { font-size: 15px; }
  .art-head h1 { font-size: 20px; }
  .art-body { font-size: 14.5px; }
  .art-nav { grid-template-columns: 1fr; }
  /* 文中提到的产品：窄屏 2 列，避免 4 列把型号名压到折行 */
  .art-products { padding: 14px 14px; }
  .art-products .ap-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .art-products .ap-img { height: 84px; }
  /* 型号级 FAQ：窄屏去掉左侧缩进，避免正文被压窄 */
  .pd-faq .faq-a { padding-left: 0; }
  .mf-row { grid-template-columns: 1fr; }
  .contact-qr img { width: 170px; height: 170px; }
  .search-form button { padding: 0 20px; }
  .sr-head { flex-direction: column; gap: 6px; }
  .brand-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .brand-bar .bb-logo { width: 100%; }
  /* 触屏下「展开」按钮要有足够点击区域（≥40px 高），否则不好点 */
  .brand-intro-toggle { min-height: 40px; }
  .section { padding: 30px 0; }
  .section-title h2 { font-size: 20px; }
  .section-title em { display: none; }
}
