/* ==========================================================================
   PUHUA INKJET — 2026-11-11 视觉打磨 Step 1
   纯覆盖层：本文件只做“加法式”覆盖，不删除任何既有规则。
   回滚方式：从所有页面移除 /assets/visual-2026-11.css 的 <link>，或删除本文件。
   不涉及：URL、<title>、结构化数据、app.js、表单逻辑。
   ========================================================================== */

/* ---------- 1. 排版基线：字号、行高、字距 ---------- */
body {
  font-size: 14.5px;
  line-height: 1.62;
  letter-spacing: .1px;
  color: #2b3646;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .product-box h3, .catalog h1 {
  letter-spacing: 0;
}

/* 说明性小字：原来 11px + .6px 字距，实际不可读 */
.reference-note,
p.reference-note,
.spec-note,
.detail-gallery p,
.cat-copy p {
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  color: #5b6675;
}

/* ---------- 2. 商品卡：统一边框、统一图框、标题两行对齐 ---------- */
.product-grid {
  gap: 22px 18px;
  padding: 18px 6px 6px;
  background: transparent;
}

.product-box {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-box:hover {
  border-color: #c8d6e5;
  box-shadow: 0 8px 20px rgba(17, 38, 63, .09);
  transform: translateY(-1px);
}

/* 图统一内缩 + contain：不裁掉机器的机头/轮子 */
.product-box .product-img {
  padding: 10px;
  background: #fff;
}

.product-box .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 标题固定三行高度：同一分类里多张卡只差“适配品牌”，截断到两行会把关键信息切掉 */
.product-box h3 {
  padding: 0 12px;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  min-height: 4.35em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-box .price {
  padding: 0 12px 14px;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.3;
  color: #16202e;
}

/* ---------- 3. 首屏：去掉源图自带的浅色底造成的硬边 ---------- */
.focus {
  border-radius: 8px;
}

.focus-image {
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  align-self: center;
}

/* multiply 让照片的白底融进渐变面板，不再是一个贴上去的矩形 */
.focus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.focus-copy h1 {
  font-size: 31px;
  line-height: 1.24;
  margin: 0 0 10px;
}

.focus-copy h2 {
  font-size: 27px;
  line-height: 1.26;
  margin: 0 0 10px;
}

.focus-copy p {
  font-size: 14px;
  color: #4a5867;
  margin: 0 0 16px;
}

/* ---------- 4. 产品页：左栏不再是一整块空白 ---------- */
.detail-sheet {
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 26px;
  border-radius: 8px;
}

/* 长参数表往下滚动时，图跟着走，左栏不会留大片死白 */
.detail-gallery {
  position: sticky;
  top: 16px;
  align-self: start;
}

.detail-gallery img {
  border-radius: 6px;
  background: #fff;
}

.detail-price {
  border-radius: 6px;
}

.dp-label {
  letter-spacing: .4px;
}

/* 产品页正文首段与参数表：行距收紧一点点，密度更接近工业目录 */
.detail-copy p {
  line-height: 1.6;
}

.detail-copy .spec-table th,
.detail-copy .spec-table td {
  line-height: 1.55;
}

/* ---------- 5. 移动端：顶栏不折三行，首屏不留空 ---------- */
@media (max-width: 700px) {
  .topbar {
    font-size: 11px;
    line-height: 1.45;
    gap: 8px;
  }

  .topbar > span {
    max-width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .focus {
    min-height: 0;
    padding: 22px 18px 38px;
  }

  .focus-copy h1 {
    font-size: 25px;
  }

  .focus-copy h2 {
    font-size: 23px;
  }

  .product-grid {
    gap: 16px 12px;
    padding: 12px 0 0;
  }

  .product-box .product-img {
    padding: 8px;
  }

  .product-box h3 {
    padding: 0 10px;
    font-size: 14px;
  }

  .product-box .price {
    padding: 0 10px 12px;
  }
}

/* ---------- 6. 筛选条：不再是三段灰底输入框拼在一起 ---------- */
.tools-view {
  background: #f7f9fc;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 10px 12px;
}

.tools-view select,
.currency-tools select {
  border: 1px solid #d6dfea;
  border-radius: 6px;
  background: #fff;
  height: 30px;
  font-size: 13px;
  color: #2b3646;
}

.currency-tools {
  border-bottom: 0;
  color: #5b6675;
  padding-top: 8px;
}

/* ---------- 7. 产品页左栏“关键参数”块，填补图片下方空白 ---------- */
.key-specs {
  margin-top: 14px;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfcfe;
}

.key-specs .ks-title {
  display: block;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #6b7787;
  margin: 0 0 8px;
}

.key-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
}

.key-specs dt {
  font-size: 12px;
  color: #6b7787;
  margin: 0;
}

.key-specs dd {
  margin: 0;
  font-size: 12.5px;
  color: #16202e;
  font-weight: 600;
  text-align: right;
  padding-left: 8px;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .key-specs {
    margin-top: 10px;
  }

  .key-specs dt,
  .key-specs dd {
    font-size: 12px;
  }
}

/* ---------- 8. 顶部 "See All Departments"：展开态外观（展开/收起与左侧部门联动由 nav-hover.js 控制） ---------- */
/* 原有设计是两栏：左侧 22% 部门列表，右侧 78% 子菜单面板（.submenu 绝对定位）。
   这里只补圆角、投影和悬停高亮，不改宽度、不改栅格，避免破坏两栏结构。
   Chrome 对关闭状态的 <details> 子元素用 content-visibility:hidden，纯 CSS 强行显示会被压回去，
   所以展开逻辑放在 JS 里。 */
.department-panel {
  width: min(1100px, 92vw);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e4eaf2;
  box-shadow: 0 14px 28px rgba(16, 32, 54, .14);
}

.departments > summary {
  transition: color .15s ease;
}

.departments[open] > summary,
.departments:hover > summary {
  color: #e1eaff;
}

.department-panel > details > summary {
  border-radius: 5px;
  transition: background .14s ease;
}

.department-panel > details > summary:hover {
  background: #f1f5fa;
  color: #275090;
}

/* ---------- 9. 分类页“同图商品”：重复图换成变体标签，不再重复同一张照片 ---------- */
/* 同一款货适配不同机器时，主图必然相同。与其把同一张图铺四遍（看起来像重复铺货），
   不如把后续那张图换成标签，写明它适配哪台机器——信息更准，视觉也不重复。 */
.product-img.variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafd, #edf2f9);
  border: 1px dashed #d7e2ee;
  border-radius: 8px;
}

.product-img.variant .vt-label {
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #8090a2;
}

.product-img.variant .vt-fits {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #275090;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 10. 整体观感：把几处“模板感”的细节收干净 ---------- */

/* 10.1 分类快捷入口：原来每块一个随机柔和底色，现在统一成白卡 + 蓝色副标 */
.feature-categories a:nth-child(n) {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.feature-categories a:nth-child(n):hover {
  border-color: #c8d6e5;
  box-shadow: 0 8px 20px rgba(17, 38, 63, .09);
  transform: translateY(-1px);
}

.feature-categories h3 {
  font-size: 17px;
  margin: 0;
  color: #16202e;
}

.feature-categories span {
  font-size: 12px;
  font-weight: 600;
  color: #275090;
}

/* 10.2 信任条：从灰底块改成带蓝色顶线的卡片 */
.trust-strip li {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-top: 3px solid #275090;
  border-radius: 8px;
  padding: 14px 16px;
}

.trust-strip b {
  font-size: 13px;
}

.trust-strip span {
  font-size: 12px;
  line-height: 1.55;
}

/* 10.3 面包屑 */
.breadcrumbs {
  font-size: 12px;
  color: #7a8697;
  margin-bottom: 14px;
  line-height: 1.6;
}

.breadcrumbs a {
  color: #275090;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 10.4 价格块：更像“报价”，不是输入框 */
.detail-price {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid #e4eaf2;
  border-left: 3px solid #275090;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 26px;
  margin-top: 12px;
}

.detail-price .dp-label {
  font-size: 10.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #6b7787;
  font-weight: 600;
}

/* 10.5 按钮：统一圆角与悬停反馈 */
.inquiry-actions > a,
.inquiry-actions button {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: filter .15s ease, box-shadow .15s ease;
}

.inquiry-actions > a:hover,
.inquiry-actions button:hover {
  box-shadow: 0 6px 14px rgba(17, 38, 63, .16);
}

/* 10.6 参数表：表头加深，逐行悬停提示 */
.spec-table th {
  color: #46556a;
  font-weight: 600;
}

.spec-table tbody tr:hover,
.spec-table tr:hover {
  background: #f6f9fd;
}

/* 10.7 键盘焦点：统一可见的焦点环（专业站点通常都有） */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #275090;
  outline-offset: 2px;
  border-radius: 3px;
}

/* 10.8 页脚 */
footer {
  font-size: 12.5px;
  line-height: 1.65;
  border-top: 1px solid #e4eaf2;
  padding-top: 22px;
}

footer h3 {
  font-size: 14px;
  letter-spacing: .2px;
  color: #16202e;
}

footer a {
  color: #275090;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- 11. 按钮与筛选条配色收敛 ---------- */
/* 提交按钮用品牌蓝，不用橙色：橙色在 B2B 目录里是“促销感”，不是“报价感” */
button[name="channel"][value="send"] {
  background: #275090;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  padding: 11px 18px;
  transition: filter .15s ease, box-shadow .15s ease;
}

button[name="channel"][value="send"]:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 14px rgba(17, 38, 63, .18);
}

/* 次级按钮改成白底描边，避免两块橙色抢主按钮 */
.inquiry-actions button+button {
  background: #fff;
  color: #275090;
  border: 1px solid #c9d6e5;
}

/* 搜索按钮的橙色压暗一档，别太跳 */
.search button {
  background: #e88a00;
}

.search button:hover {
  background: #d97f00;
}

/* 筛选条：三个控件尽量并排，不要白白浪费一行高度 */
.tools-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
}

.tools-view label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #5b6675;
  white-space: nowrap;
}

.tools-view select {
  width: auto;
  min-width: 128px;
  max-width: 190px;
  height: 32px;
  text-overflow: ellipsis;
}

.currency-tools select {
  min-width: 120px;
}

.currency-tools {
  border: 0;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* 左侧分类导航：悬停与当前项有明确状态 */
.browse a {
  display: block;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background .14s ease, color .14s ease;
}

.browse a:hover {
  background: #f1f5fa;
}

.browse a.active {
  font-weight: 600;
  color: #1d3f6b;
}

.browse a.child {
  color: #5b6675;
}

.browse a.child:hover {
  color: #275090;
}
