@charset "UTF-8";
/* ==========================================================================
   合强科技 · WIDIA HANITA 中国代理
   全站统一样式：沉浸式头部导航 / 移动端适配 / 页脚统一
   色板取自原站：#000 黑 #ffffff 白 #660000 深酒红 #ff0000 悬停红
   原站产品图主色：#fb0018 红 / #00b04d 绿 / #ffb300 琥珀
   ========================================================================== */

:root {
  --xh-black: #000000;
  --xh-ink: #111111;
  --xh-paper: #ffffff;
  --xh-paper-2: #f4f4f4;
  --xh-line: #e4e4e4;
  --xh-line-dark: rgba(255, 255, 255, .16);
  --xh-gray: #8b8b8b;
  --xh-gray-2: #5a5a5a;
  --xh-red: #e60012;         /* 品牌红（产品图取色 #fb0018 的稳重版） */
  --xh-red-bright: #ff0018;
  --xh-maroon: #660000;
  --xh-green: #00a651;
  --xh-amber: #d9a441;
  --xh-serif: "Source Han Serif SC", "SourceHanSerifCN-Regular", "Noto Serif SC",
              "Songti SC", SimSun, "宋体", "Times New Roman", serif;
  --xh-sans: "Source Han Sans SC", "SourceHanSansCN-Regular", "Noto Sans SC",
             "PingFang SC", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  --xh-head-h: 92px;
  --xh-pad: clamp(20px, 6vw, 64px);
  --xh-maxw: 1200px;
  --xh-t: 30px;   /* 主内容区间距 */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--xh-sans);
  color: var(--xh-ink);
  background: var(--xh-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.xh-locked { overflow: hidden; }

img { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* --------------------------------------------------------------------------
   1. 头部导航：透明覆盖在首屏大图上，滚动后收成黑色条
   -------------------------------------------------------------------------- */
.xh-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9000;
  height: var(--xh-head-h);
  /* 全站统一纯黑实色头（与 FAQ / 博客一致）。不透明才能压住浅色头图；
     半透明渐变会让头部底边透出 1px 暗线，实色黑可一并消除 */
  background: #000;
  transition: background .35s ease, height .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.xh-header.is-solid,
.xh-header.is-open {
  background: #000;
  border-bottom-color: var(--xh-line-dark);
  height: 74px;
}
.xh-header__inner {
  position: relative;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 品牌 */
.xh-brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
/* 超宽屏下 1320 居中容器会把品牌推得离左边缘过远（1920 视口达 300px），
   在居中留白的基础上只略微左收（1920 视口收到 250px，仅左移 50px），
   不做大幅拉伸以免贴边。min() 保证视口不足 1320 时结果恒为 0，
   中小屏/移动端布局不受影响；导航保持原位不动。 */
@media (min-width: 1201px) {
  .xh-brand { margin-left: min(0px, calc(250px - (100vw - 1320px) / 2)); }
}
.xh-brand__sub {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .92);
  line-height: 1.25;
}
.xh-brand__sub em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  margin-top: 2px;
}

/* 菜单 */
.xh-nav { display: flex; align-items: center; }
.xh-nav a {
  position: relative;
  display: block;
  padding: 10px clamp(10px, 1.5vw, 20px);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .1em;
  color: #fff;
  white-space: nowrap;
  transition: color .25s ease;
}
.xh-nav a span { position: relative; display: inline-block; padding-bottom: 6px; }
.xh-nav a span::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--xh-red-bright);
  transform: translateX(-50%);
  transition: width .3s ease;
}
.xh-nav a:hover,
.xh-nav a:focus-visible { color: var(--xh-red-bright); outline: none; }
.xh-nav a:hover span::after,
.xh-nav a.is-active span::after { width: 100%; }
.xh-nav a.is-active { color: #fff; }

/* 汉堡按钮 */
.xh-burger {
  display: none;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.xh-burger span {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.xh-burger span:nth-child(1) { top: 15px; }
.xh-burger span:nth-child(2) { top: 21px; }
.xh-burger span:nth-child(3) { top: 27px; }
.xh-header.is-open .xh-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.xh-header.is-open .xh-burger span:nth-child(2) { opacity: 0; }
.xh-header.is-open .xh-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* 移动端抽屉（点遮罩关闭） */
.xh-drawer {
  position: fixed;
  inset: 0;
  z-index: 8900;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.xh-header.is-open + .xh-drawer { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   2. 原站画布（绝对定位 1200px）适配 —— 纯静态、无需任何服务器脚本
   首页 / 关于我们 / 产品分类的正文都是整幅图片合成，唯一忠实的移动端方案是
   整块画布等比缩放：图层之间的叠加关系保持不变，容器高度由 site.js 同步。
   -------------------------------------------------------------------------- */
body[data-page] {
  min-height: 100vh;
  overflow-x: hidden;
}

/* 原站背景层与模拟滚动条不再参与布局（离线版使用浏览器原生滚动） */
body[data-page] > #scroll_container > #scroll_container_bg,
body[data-page] #site_footer,
body[data-page] [class^="simroll-"],
body[data-page] [id^="simroll-"] { display: none !important; }

body[data-page] > #scroll_container {
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  padding-top: 0 !important;      /* 沉浸式头部直接压在首屏大图上 */
  overflow: hidden !important;
}

/* 头部为纯黑实条（非沉浸式），除首页外画布内容整体下移头部高度，
   否则产品页/详情页首屏大图的顶部内容（奖牌、logo、图纸）被头部盖住裁切。
   - 首页（index）保持沉浸式压图，头部叠在主视觉深色区域上（设计意图，不裁内容）；
   - about 已在页面内把首屏图层定位到 top:92，故不在此列；
   - blog/faq/faqs 为 .xh-page 流式布局，自带 padding-top，不受影响。
   仅 products 系列（产品分类 + 18 个详情页，data-page="products"）需要整体下移。 */
@media (max-width: 900px) {
  body[data-page]:not([data-page="index"]) > #scroll_container {
    padding-top: var(--xh-head-h) !important;
  }
}
/* PC 端：产品分类与详情页首屏为完整设计图，顶部内容不能被头部覆盖 */
@media (min-width: 901px) {
  body[data-page="products"] > #scroll_container {
    padding-top: var(--xh-head-h) !important;
  }
}

body[data-page] #overflow_canvas_container {
  width: 100%;
  overflow: hidden;
}

body[data-page] #canvas {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  isolation: isolate;
  background: #fff;
  transform-origin: 0 0;
  will-change: transform;
}
body[data-page] #canvas.xh-zoom { transform-origin: 0 0; }
/* 画布内夹在图层之间的 <script> 节点不占位 */
body[data-page] #canvas > script { display: none !important; }

body[data-page].xh-overlap #canvas .xh-banner:first-child { top: 0 !important; }
body[data-page] .xh-newsslide-wrap { overflow: visible; }

/* 原站页脚统一由 site.js 插入的新页脚接管 */
.xh-footer--inject { display: block; }

/* 宽屏：画布居中，全宽大图向视口两侧延伸（--edge 见 modules.css） */
@media (min-width: 1201px) {
  body[data-page] #canvas { margin-left: auto; margin-right: auto; }
}

/* --------------------------------------------------------------------------
   3. 新页面通用版式（FAQ / 博客资讯 / 文章详情）
   -------------------------------------------------------------------------- */
/* 入场动画从视口外滑入时，裁掉过渡瞬间的横向溢出（clip 不创建滚动容器，
   因此不会破坏文章页侧栏的 sticky 定位） */
.xh-page { padding-top: var(--xh-head-h); background: var(--xh-paper); overflow-x: hidden; overflow-x: clip; }

/* 3.1 页面头图（大图 + 黑色渐变 + 细线 + 大标题） */
.xh-hero {
  position: relative;
  overflow: hidden;
  background: #050505;
  color: #fff;
  isolation: isolate;
}
.xh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.02);
}
/* 首页同款大图：黑色背景 + 金属刀具，避开中央 Logo 区域 */
.xh-hero__bg--lines {
  background-image:
    linear-gradient(115deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .82) 38%, rgba(0, 0, 0, .34) 100%),
    url(../img/HANITA1.jpg);
}
.xh-hero__bg--news {
  background-image:
    linear-gradient(115deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .86) 42%, rgba(0, 0, 0, .36) 100%),
    url(../img/XW1.jpg);
}
.xh-hero::before {
  /* 原站标志性的对角线 + 细线 */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20% -10% -20% 44%;
  background:
    linear-gradient(115deg, transparent calc(50% - 1px), rgba(255, 255, 255, .22) 50%, transparent calc(50% + 1px)),
    linear-gradient(115deg, transparent calc(64% - 1px), rgba(230, 0, 18, .55) 64%, transparent calc(64% + 1px));
  opacity: .9;
  pointer-events: none;
}
.xh-hero__inner {
  max-width: var(--xh-maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 108px) var(--xh-pad) clamp(44px, 7vw, 84px);
}
.xh-hero__crumbs {
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 26px;
}
.xh-hero__crumbs a:hover { color: var(--xh-red-bright); }
.xh-hero__crumbs i { font-style: normal; margin: 0 8px; color: rgba(255, 255, 255, .28); }
.xh-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: .34em;
  color: var(--xh-red-bright);
  margin-bottom: 18px;
}
.xh-hero__eyebrow::before {
  content: "";
  width: 46px; height: 1px;
  background: var(--xh-red-bright);
}
.xh-hero__title {
  margin: 0;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.15;
  letter-spacing: .06em;
}
.xh-hero__title em {
  font-style: normal;
  color: var(--xh-amber);
}
.xh-hero__lead {
  margin: 22px 0 0;
  max-width: 700px;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.9;
  color: rgba(255, 255, 255, .68);
}

/* 3.2 内容容器 */
.xh-wrap { max-width: var(--xh-maxw); margin: 0 auto; padding: 0 var(--xh-pad); }
.xh-section { padding: clamp(38px, 6vw, 76px) 0; }
.xh-section--gray { background: var(--xh-paper-2); }
.xh-section--black { background: var(--xh-black); color: #fff; }

/* 原站“NEWS”式小标题 */
.xh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.xh-sec-head h2 {
  margin: 0;
  font-family: var(--xh-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .06em;
  line-height: 1.2;
}
.xh-sec-head h2 small {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--xh-red);
  margin-bottom: 10px;
}
.xh-sec-head .xh-more {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--xh-gray-2);
  border-bottom: 1px solid var(--xh-line);
  padding-bottom: 4px;
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}
.xh-sec-head .xh-more:hover { color: var(--xh-red); border-color: var(--xh-red); }

/* 3.3 按钮（呼应首页 “Click to enter | 点击进入” 细线胶囊） */
.xh-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .1em;
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.xh-btn--dark { color: #111; }
.xh-btn--dark:hover { background: #111; color: #fff; border-color: #111; }
.xh-btn--light { color: #fff; }
.xh-btn--light:hover { background: var(--xh-red); border-color: var(--xh-red); color: #fff; }
.xh-btn--solid {
  color: #fff;
  background: var(--xh-red);
  border-color: var(--xh-red);
}
.xh-btn--solid:hover { background: #111; border-color: #111; }
.xh-btn i {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

/* 3.4 页脚：与原站 (#000 + 白字 + 备案) 融合并补全信息 */
.xh-footer {
  background: var(--xh-black);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.xh-footer__main {
  max-width: var(--xh-maxw);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) var(--xh-pad) 28px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
}
.xh-footer__brand .xh-brand { margin-bottom: 18px; }
.xh-footer__brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .55);
}
.xh-footer h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .45);
  font-family: Arial, Helvetica, sans-serif;
}
.xh-footer ul { list-style: none; margin: 0; padding: 0; }
.xh-footer ul li { margin-bottom: 10px; font-size: 14px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.xh-footer ul a:hover { color: var(--xh-red-bright); }
.xh-footer__tel {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .06em;
  color: #fff;
  margin-bottom: 10px;
}
.xh-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px var(--xh-pad);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .5);
}
.xh-footer__bottom a { color: rgba(255, 255, 255, .72); }
.xh-footer__bottom a:hover { color: var(--xh-red-bright); }
.xh-footer__bottom span { display: inline-block; margin: 0 10px; color: rgba(255, 255, 255, .28); }

/* 回到顶部 */
.xh-top {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 8000;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.xh-top::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  transform: translate(-50%, -30%) rotate(45deg);
}
.xh-top:hover { background: var(--xh-red); border-color: var(--xh-red); }
.xh-top.is-show { opacity: 1; visibility: visible; transform: none; }

/* --------------------------------------------------------------------------
   4. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .xh-nav a { font-size: 15px; padding: 10px 10px; letter-spacing: .06em; }
}

@media (max-width: 900px) {
  :root { --xh-head-h: 64px; }
  .xh-header,
  .xh-header.is-solid,
  .xh-header.is-open {
    height: var(--xh-head-h);
    background: #000;
    border-bottom-color: var(--xh-line-dark);
  }
  .xh-header__inner { gap: 8px; padding: 0 68px 0 16px; }
  .xh-burger { display: block; }
  .xh-brand__sub { display: flex; font-size: 11px; letter-spacing: .06em; }
  .xh-brand__sub em { display: none; }

  /* 菜单变全屏抽屉 */
  .xh-nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--xh-head-h);
    height: calc(100vh - var(--xh-head-h));
    height: calc(100dvh - var(--xh-head-h));
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 40px;
    background: #060606;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .xh-header.is-open .xh-nav { opacity: 1; visibility: visible; transform: none; }
  .xh-nav a {
    font-family: var(--xh-serif);
    font-size: 21px;
    letter-spacing: .14em;
    padding: 20px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .xh-nav a span { padding-bottom: 0; }
  .xh-nav a span::after {
    left: 0; transform: none;
    width: 0;
  }
  .xh-nav a.is-active { color: var(--xh-red-bright); }
  .xh-nav a.is-active span::after { width: 18px; }

  .xh-footer__main { grid-template-columns: 1fr; gap: 28px; padding-bottom: 22px; }
  .xh-sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .xh-hero__inner { padding-top: 48px; }
  .xh-hero__eyebrow { font-size: 12px; letter-spacing: .22em; gap: 10px; }
  .xh-hero__eyebrow::before { width: 22px; }
  .xh-hero__crumbs { margin-bottom: 18px; }
  .xh-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  /* 标题里的 <br> 只服务于宽屏排版，窄屏自动断行 */
  .xh-hero__title br { display: none; }
  .faq-cta h2 br { display: none; }
}

/* 悬停效果仅在支持悬停的设备上生效 */
@media (hover: none) {
  .xh-btn--dark:hover { background: transparent; color: #111; border-color: currentColor; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}