/* ============================================================
   探头之家 .com · 交互层 v1  (2026-11-26)
   ------------------------------------------------------------
   【大框架】一个品牌，两种手势
     --ix-red     #8C1823   落点：选中 / 主行动 / 已激活
     --ix-gold    #FFC61A   触点：鼠标正指着的那个对象
     --ix-gold-ink #5E3F00  金底上的正文字

   【五条铁律】
     1. 一个元素只给一个主反馈，不叠加三四种动效；
     2. hover 不改布局尺寸，只动 transform / border-color /
        background / box-shadow / color；
     3. 白底不用浅金写字（#ffd24d 对白底 1.6:1，读不了），
        白底文字一律走 --ix-red；
     4. :focus-visible 与 :hover 同款，键盘用户不降级；
     5. 面积定强度：小格子（<200px 见方）可以铺实底，大面积容器
        只给「轻底 + 描边」—— 240×148 的块铺 12% 金就是一整片
        奶油黄，正是要避免的那种「没重点的暖」。

   【与 .cn 的分工】—— 主题不同，语言不照搬
     .cn（pmx）：金描边 + 金墨字做 hover 主语言，因为白底模块少、
                 金配墨字对比 6.1:1 可读。
     .com（default）：红描边 + 淡红晕做白底主语言，金只出现在
                 (a) 首页六大测量入口的暖底  (b) 深底构件上的文字
                 (c) 焦点环。
                 .com 是工程表格气质，大面积铺金会丢掉仪表感。
   ============================================================ */

html[lang] {
  --ix-red: #8C1823;
  --ix-red-deep: #74121B;
  --ix-red-06: rgba(140, 24, 35, .06);
  --ix-red-10: rgba(140, 24, 35, .10);
  --ix-red-25: rgba(140, 24, 35, .25);
  --ix-gold: #FFC61A;
  --ix-gold-12: rgba(255, 198, 26, .12);
  --ix-gold-22: rgba(255, 198, 26, .22);
  --ix-gold-ink: #5E3F00;
  --ix-ease: cubic-bezier(.2, .7, .3, 1);
  --ix-t: .18s;
}

/* ---------- 0. 键盘焦点：与 hover 同款，不降级 ---------- */
html[lang] a:focus-visible,
html[lang] button:focus-visible,
html[lang] select:focus-visible,
html[lang] [tabindex]:focus-visible {
  outline: 2px solid var(--ix-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 1. 主导航：红字 + 金色生长下划线 ---------- */
/* 线画在 a 盒子外面（bottom:-7px），a 只有 30px、行高就占了 29.6px，
   画在盒内必然贴住字底，看起来像普通下划线而不是「位置指示」。 */
html[lang] #g_header .navbar .w_1200 .page_nav li > a {
  position: relative;
  transition: color var(--ix-t) var(--ix-ease);
}
html[lang] #g_header .navbar .w_1200 .page_nav li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ix-gold);
  transform: translateX(-50%);
  transition: width .22s var(--ix-ease);
  pointer-events: none;
}
html[lang] #g_header .navbar .w_1200 .page_nav li:hover > a::after,
html[lang] #g_header .navbar .w_1200 .page_nav li.on > a::after {
  width: 24px;
}
/* 产品大导航（左侧 prd_nav 里的分类项）同理 */
html[lang] #g_header .navbar .w_1200 .prd_nav .prds li > a {
  transition: color var(--ix-t) var(--ix-ease),
              background-color var(--ix-t) var(--ix-ease),
              padding-left var(--ix-t) var(--ix-ease);
}
html[lang] #g_header .navbar .w_1200 .prd_nav .prds > li:hover > a {
  color: var(--ix-red);
  background-color: var(--ix-gold-12);
}

/* 搜索按钮：白底描边 → 品牌红实底 */
html[lang] #g_header .logo_search .w_1200 .search div {
  transition: background-color var(--ix-t) var(--ix-ease),
              border-color var(--ix-t) var(--ix-ease);
}
html[lang] #g_header .logo_search .w_1200 .search div:hover {
  background-color: var(--ix-red);
  border-color: var(--ix-red);
}
html[lang] #g_header .logo_search .w_1200 .search div:hover button {
  color: #fff;
}
/* 加入收藏：图标与文字一起转红 */
html[lang] #g_header .intro_collect .w_1200 .collect {
  transition: color var(--ix-t) var(--ix-ease);
}
html[lang] #g_header .intro_collect .w_1200 .collect:hover,
html[lang] #g_header .intro_collect .w_1200 .collect:hover span {
  color: var(--ix-red);
}
html[lang] #g_header .intro_collect .w_1200 .collect img {
  transition: transform .22s var(--ix-ease);
}
html[lang] #g_header .intro_collect .w_1200 .collect:hover img {
  transform: translateY(-2px);
}

/* ---------- 2. 首页六大测量入口：只动图标与文字，不动底色 ----------
   2026-11-26 四改（用户定稿）：不要色块。整格铺金虽然醒目，但在六个并排的
   入口里像「贴了一块」，和右侧浮动栏那种「一块就是一块」的气质反而冲突。
   现在只做两件事：图标轻抬并微放大，文字转品牌红加粗。
   反馈靠「动作 + 颜色」，不靠面积，六个入口并排时也不会互相干扰。 */
html[lang] .content .selection .measure > a {
  transform-origin: center center;
}
html[lang] .content .selection .measure > a div {
  transform-origin: center center;
  transition: transform .2s var(--ix-ease);
}
html[lang] .content .selection .measure > a p {
  transition: color var(--ix-t) var(--ix-ease),
              font-weight var(--ix-t) var(--ix-ease);
}
html[lang] .content .selection .measure > a:hover div {
  transform: translateY(-3px) scale(1.08);
}
html[lang] .content .selection .measure > a:hover p {
  color: var(--ix-red);
  font-weight: 600;
}

/* ---------- 3. 首页资料入口（产品目录/说明书/评测报告/解决方案）---------- */
/* 240×148 的大块，按铁律 5 只给轻底 + 描边，不铺实色。 */
html[lang] .content .data_center .data .data_item .data_cate {
  border-radius: 10px;
  transition: background-color var(--ix-t) var(--ix-ease),
              box-shadow var(--ix-t) var(--ix-ease);
}
html[lang] .content .data_center .data .data_item .data_cate div {
  transition: transform .22s var(--ix-ease);
}
html[lang] .content .data_center .data .data_item .data_cate:hover {
  background-color: rgba(255, 198, 26, .10);
  box-shadow: inset 0 0 0 1.5px rgba(242, 176, 0, .45);
}
html[lang] .content .data_center .data .data_item .data_cate:hover div {
  transform: translateY(-3px);
}
html[lang] .content .data_center .data .data_item .data_cate:hover p {
  color: var(--ix-red);
}

/* ---------- 4. 「更多」类文字链：箭头跟着走 ---------- */
html[lang] .plate_title_r,
html[lang] a.more_brand,
html[lang] .calc_more {
  transition: color var(--ix-t) var(--ix-ease);
}
html[lang] .plate_title_r:hover,
html[lang] a.more_brand:hover,
html[lang] .calc_more:hover {
  color: var(--ix-red);
}
html[lang] .plate_title_r i,
html[lang] .plate_title_r .lgjc,
html[lang] a.more_brand i,
html[lang] .calc_more i {
  display: inline-block;
  transition: transform .2s var(--ix-ease);
}
html[lang] .plate_title_r:hover i,
html[lang] .plate_title_r:hover .lgjc,
html[lang] a.more_brand:hover i,
html[lang] .calc_more:hover i {
  transform: translateX(4px);
}

/* ---------- 5. 卡片：抬升用像素，不用百分比 ---------- */
/* 原 .cardUpAni 是 translateY(-5%)，卡片越高抬得越多，网格里参差不齐 */
html[lang] .cardUpAni:hover,
html[lang] .imgUpAni:hover {
  transform: translateY(-3px);
}
html[lang] .cardUpAni {
  transition: transform .2s var(--ix-ease), box-shadow .2s var(--ix-ease);
}
html[lang] .cardUpAni:hover {
  box-shadow: 0 10px 24px rgba(31, 35, 40, .10);
}
/* 相关推荐卡（详情页 / 文章页右栏） */
html[lang] a.r_card {
  border-radius: 8px;
  transition: transform .2s var(--ix-ease),
              border-color .2s var(--ix-ease),
              box-shadow .2s var(--ix-ease);
}
html[lang] a.r_card:hover {
  transform: translateY(-3px);
  border-color: var(--ix-gold-22);
  box-shadow: 0 10px 22px rgba(31, 35, 40, .10);
}
/* 产品卡翻面层：简介超出时给渐隐，不要滚条
   —— 卡片只有 285px 宽，滚动条一出现就把正文挤扁，鼠标也很难滚到 */
html[lang] .content .prd_list dt .back .intro {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 91%, rgba(0, 0, 0, .45) 100%);
          mask-image: linear-gradient(180deg, #000 91%, rgba(0, 0, 0, .45) 100%);
}
/* 翻面层现在是实色底（原来是 rgba .9，底层图片和标题会透出来，
   「产品彩页 / 说明书 / 详情」压在透出的黑字上，读不清） */

/* 新闻列表：标题转红已有，补图片放大后的容器裁切感 */
html[lang] .news_list_item .news_list_l a img,
html[lang] .recent_show .pics img {
  transition: transform .3s var(--ix-ease);
}

/* ---------- 6. 列表页筛选项：未选中补淡底，已选中守住红 ---------- */
html[lang] .fun_class_item,
html[lang] .model_sec_item,
html[lang] .all {
  transition: color var(--ix-t) var(--ix-ease),
              background-color var(--ix-t) var(--ix-ease);
}
html[lang] .fun_class_item:not(.on):not(.is_all):hover,
html[lang] .model_sec_item:not(.on):hover {
  background-color: var(--ix-red-06);
}
/* 已选中：不再铺色，只加深一档，避免"点着点着不知道自己选了谁" */
html[lang] .fun_class_item.on:hover,
html[lang] .model_sec_item.on:hover {
  color: var(--ix-red-deep);
}
html[lang] a.brand {
  border-radius: 6px;
  transition: transform .2s var(--ix-ease),
              box-shadow .2s var(--ix-ease);
}
html[lang] a.brand:hover {
  box-shadow: 0 6px 16px rgba(31, 35, 40, .10);
}

/* ---------- 7. 分页：原产品列表分页完全没有 hover ---------- */
/* 注意：各页面 CSS（data_center / exhibition / prd_center …）各自写过
   `#page_number a:hover{background:#8C1823;color:#fff}`，
   与「当前页」同款 —— hover 和已选分不出来。这里把 hover 降为
   淡红底 + 红字，实红底只留给当前页（落点 vs 触点的分工）。
   不加 border：原按钮没有 border，加 border 会改尺寸、整排位移。 */
html[lang] ul.pagination .page-link,
html[lang] .pagination .page-link {
  transition: color var(--ix-t) var(--ix-ease),
              background-color var(--ix-t) var(--ix-ease),
              border-color var(--ix-t) var(--ix-ease),
              box-shadow var(--ix-t) var(--ix-ease);
}
html[lang] ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
html[lang] .pagination .page-item:not(.active):not(.disabled) .page-link:hover,
html[lang] #page_number .page-item:not(.active):not(.disabled) .page-link:hover {
  color: var(--ix-red);
  background-color: var(--ix-red-06);
  border-color: var(--ix-red-25);
  box-shadow: inset 0 0 0 1px var(--ix-red-25);
}
html[lang] ul.pagination .page-item.active .page-link,
html[lang] .pagination .page-item.active .page-link,
html[lang] #page_number .page-item.active .page-link {
  background-color: var(--ix-red);
  border-color: var(--ix-red);
  color: #fff;
}
html[lang] #page_number .page-item.disabled .page-link {
  color: #c2c7d0;
  cursor: default;
}
html[lang] #page_number a {
  transition: color var(--ix-t) var(--ix-ease),
              background-color var(--ix-t) var(--ix-ease),
              box-shadow var(--ix-t) var(--ix-ease);
}

/* ---------- 8. 详情页主 CTA：红底黄字是本站的"按下感" ---------- */
html[lang] .prd_btns > a {
  transition: background-color var(--ix-t) var(--ix-ease),
              border-color var(--ix-t) var(--ix-ease),
              color var(--ix-t) var(--ix-ease),
              transform .16s var(--ix-ease),
              box-shadow .2s var(--ix-ease);
}
html[lang] .prd_btns > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--ix-red-25);
}
/* 下载区条目：整条淡红底，不只是文字变色 */
html[lang] .details .top .left .data_download .doc_list a {
  border-radius: 6px;
  transition: background-color var(--ix-t) var(--ix-ease);
}
html[lang] .details .top .left .data_download .doc_list a:hover {
  background-color: var(--ix-red-06);
}
/* 参数表：整行给一点体温，方便横向对照 */
html[lang] .details table tr,
html[lang] .param_table tr {
  transition: background-color var(--ix-t) var(--ix-ease);
}

/* ---------- 9. 对比页：两个主按钮原来裸奔 ---------- */
html[lang] .cmp_btn {
  transition: background-color var(--ix-t) var(--ix-ease),
              color var(--ix-t) var(--ix-ease),
              border-color var(--ix-t) var(--ix-ease),
              transform .16s var(--ix-ease),
              box-shadow .2s var(--ix-ease);
}
html[lang] .cmp_btn:not(.ghost):not(:disabled):hover {
  background-color: var(--ix-red-deep);
  color: #FFD24D;               /* 红底黄字：本站唯一允许金做正文的位置 */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--ix-red-25);
}
html[lang] .cmp_btn.ghost:not(.cmp_report_btn):not(:disabled):hover {
  border-color: var(--ix-red);
  color: var(--ix-red);
  background-color: #fff;
}
/* 报告输出按钮本来就是红底黄字，不能走 ghost 的「白底红字」分支，
   否则红字压红底 = 看不见 */
html[lang] .cmp_btn.cmp_report_btn:hover {
  background-color: var(--ix-red-deep);
  color: #FFE066;
}
html[lang] .cmp_btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}
/* 未选产品时「开始对比」是灰的，但用户不知道为什么不亮 ——
   别用 opacity 压，灰底 + 灰字会糊成一片（原样式是 #ccc 底 + 白字，
   白字在浅灰上基本看不见）。改成可辨认的中性灰字。 */
html[lang] .cmp_btn:disabled {
  background-color: #EDEFF2;
  color: #98A0AB;
  opacity: 1;
  cursor: not-allowed;
}
/* 视图切换 / 已选型号 chip */
html[lang] .cmp_view_toggle button,
html[lang] .cmp_dchip b {
  transition: color var(--ix-t) var(--ix-ease),
              background-color var(--ix-t) var(--ix-ease),
              border-color var(--ix-t) var(--ix-ease);
}
html[lang] .cmp_view_toggle button:hover {
  border-color: var(--ix-red-25);
  color: var(--ix-red);
}

/* ---------- 10. 资料中心卡片：把褪色粉边收回品牌金 ---------- */
html[lang] .content .list .list_item .files .file_list li:hover {
  border-color: var(--ix-gold);
  box-shadow: 0 8px 20px rgba(31, 35, 40, .10), 0 0 0 3px var(--ix-gold-12);
}

/* ---------- 11. 页脚：最后一块没被管到的地 ---------- */
html[lang] footer a,
html[lang] .nav_contact_code a {
  transition: color var(--ix-t) var(--ix-ease);
}
html[lang] footer a:hover,
html[lang] .nav_contact_code a:hover {
  color: var(--ix-red);
}

/* ---------- 13. 图片比例约束（2026-11-26）----------
   问题：站内给图片写了固定的 width/height，却没有写 object-fit，
   浏览器默认 fill —— 竖图（1200×1600）塞进 139×108 的框，
   比例从 0.75 被强行拉到 1.29，画面直接压扁。移动端最明显。
   实测（390 宽）：/testing 11 张（最大拉伸 34%）、/solutions 10 张、
   /news 10 张（13~15%）、品牌详情 2 张（25~34%）。
   口径：
     · 内容图（产品/新闻/报告/方案）→ cover，居中裁切，绝不变形；
     · 图标与标识（测量入口图标、logo、二维码、角标）→ contain，
       宁可留白也不能切掉笔画。
   只加 object-fit，不动任何 width/height —— 布局零位移。 */
html[lang] .content .prd_list > a > img,
html[lang] .content .prd_list .list a > img,
html[lang] .content .prd_list .list a > div > img,
html[lang] .content .prd_list .list a > div > img.report_img,
html[lang] .content .recom > a > img,
html[lang] .content .recom > div > a > img,
html[lang] .content .prds .prd_list > a > img,
html[lang] .content .application_profile .app_pro_c > a > img,
html[lang] .content .news_list_l .swiper-slide a > img,
html[lang] .content .news_list_item .news_list_l a img,
html[lang] .content .recent_show .pics img {
  object-fit: cover;
  object-position: center center;
}
/* 图标与标识：保持完整 */
html[lang] .content .selection .measure > a > div > img,
html[lang] #g_header .logo img,
html[lang] a.logo img,
html[lang] .qr_code img,
html[lang] .nav_icon,
html[lang] .data_cate div img {
  object-fit: contain;
  object-position: center center;
}
/* ---------- 12. 弱动效偏好：全部退回瞬时 ---------- */
@media (prefers-reduced-motion: reduce) {
  html[lang] *,
  html[lang] *::before,
  html[lang] *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  html[lang] .content .selection .measure > a:hover div,
  html[lang] .content .data_center .data .data_item .data_cate:hover div,
  html[lang] .cmp_btn:not(.ghost):not(:disabled):hover,
  html[lang] .cardUpAni:hover,
  html[lang] a.r_card:hover {
    transform: none;
  }
}
