/* ============================================================
   探头之家 .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. 首页六大测量入口：全站最贵的一格 ---------- */
/* 原来只有 p 变红，图标和容器完全不动 —— 反馈约等于零。
   底块用内缩伪元素，不铺满整格：满铺会压住右侧虚线分隔条，
   看起来像贴上去的色纸，而不是「被指到」。 */
html[lang] .content .selection .measure > a {
  position: relative;
  transition: background-color .2s var(--ix-ease);
}
html[lang] .content .selection .measure > a::before {
  content: '';
  position: absolute;
  inset: 5px 9px;
  border-radius: 10px;
  background-color: var(--ix-gold-12);
  box-shadow: inset 0 0 0 1px var(--ix-gold-22);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .18s var(--ix-ease),
              transform .24s var(--ix-ease);
  pointer-events: none;
}
html[lang] .content .selection .measure > a:hover::before {
  opacity: 1;
  transform: scale(1);
}
html[lang] .content .selection .measure > a div {
  transition: transform .22s var(--ix-ease);
}
html[lang] .content .selection .measure > a p {
  transition: color var(--ix-t) var(--ix-ease);
}
html[lang] .content .selection .measure > a:hover div {
  transform: translateY(-3px);
}
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, .055);
  box-shadow: inset 0 0 0 1px rgba(255, 198, 26, .32);
}
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);
}
/* 新闻列表：标题转红已有，补图片放大后的容器裁切感 */
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 ---------- */
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);
}
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 {
  color: var(--ix-red);
  border-color: var(--ix-red-25);
  background-color: var(--ix-red-06);
}
html[lang] ul.pagination .page-item.active .page-link,
html[lang] .pagination .page-item.active .page-link {
  background-color: var(--ix-red);
  border-color: var(--ix-red);
  color: #fff;
}
html[lang] #page_number a {
  transition: color var(--ix-t) var(--ix-ease),
              background-color var(--ix-t) var(--ix-ease),
              border-color var(--ix-t) var(--ix-ease);
}
/* 首页 / 新闻的分页：只有:hover 没有过渡时是"啪"地闪一下 */
html[lang] #page_number a:not(.on):hover {
  color: var(--ix-red);
  border-color: var(--ix-red-25);
}

/* ---------- 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(:disabled):hover {
  border-color: var(--ix-red);
  color: var(--ix-red);
  background-color: #fff;
}
html[lang] .cmp_btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}
/* 视图切换 / 已选型号 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);
}

/* ---------- 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;
  }
}
