/* 引入英文css */
@import url("lang-en.css");
/* 引入分页css */
@import url("pagination.css");
/* 引入分享css */
@import url("share.css");

/* ================= 0. 全局 CSS 变量 ================= */
:root {
  --primary-color: #c12022; /* 主题红 */
  --primary-hover: #b82d19; /* 主色悬浮深红 */
  --primary-title: #b72324; /* 主色文字 */
  /* 顶部导航高度：首屏 Banner 需按此高度做遮挡补偿，
     各断点统一覆盖此变量即可，禁止在页面样式里写死数值 */
  --header-h: 160px;
  --header-h-sticky: 70px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pt-90 {
  padding-top: 90px;
}

/* 统一版心容器：最大宽度 1436px，居中并留出两侧安全边距 */
.container {
  max-width: 1436px;
  margin: 0 auto;
  /* padding: 0 40px; */
}

/* 字体超出两行省略号 */
.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-size: 16px;
  color: #888888;
  text-decoration: none;
  transition: all 0.25s ease;
}
.learn-more-link:hover {
  color: var(--brand-red);
}
.learn-more-link:hover .learn-more-icon {
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateX(3px);
}
.learn-more-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #a0a0a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
li,
ul {
  list-style: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: #000;
  backdrop-filter: blur(8px);

  /* 运用 flex 居中，确保 Header 内容在 1436px 范围内居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  /* 添加全属性过渡动画：背景色、高度、阴影等平滑切换 */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
/* Header 内部版心限制 */
.header-inner {
  width: 100%;
  max-width: 1436px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= 滑动吸顶后的样式 (.header-sticky) ================= */
.header.header-sticky {
  top: 0;
  height: var(--header-h-sticky); /* 吸顶后高度适当收紧，提升视野空间 */
  background: rgba(0, 0, 0, 1); /* 背景变深，提升文字对比度 */
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 增加底部沉浸式阴影 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 默认状态 */
.logo .logo-img {
  width: 280px;
  height: auto;
  display: block;
  object-fit: contain;
  /* 1. 取消 all，只监听 width */
  /* 2. 将 ease 改为 cubic-bezier 缓动曲线，前快后慢，视觉更平滑 */
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* 3. 告诉浏览器这个属性要动画，开启图层提升，减少重排卡顿 */
  will-change: width;
  /* 4. 确保收缩时靠左对齐，而不是居中收缩产生错位感 */
  transform-origin: left center;
}

/* 吸顶状态 */
.header-sticky .logo .logo-img {
  width: 45px;
}

.header .logo span {
  color: var(--primary-color);
}
.header .nav-pc {
  display: flex;
  align-items: center;
  gap: 70px;
}
.header .nav-pc a {
  position: relative;
  color: rgba(255, 255, 255, 0.85); /* 默认字色稍暗，突出对比 */
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0; /* 上下留出内边距，方便计算下划线位置 */
  white-space: nowrap;
  transition: color 0.3s ease;
  letter-spacing: 1.6px;
  display: inline-block;
}

/* 核心代码：所有导航项都有伪元素，但默认隐藏 */
.nav-pc a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0; /* 距离文字底部的距离 */
  width: 110%; /* 线条宽度 */
  height: 1px; /* 第一条线高度 */
  background-color: var(--primary-hover);

  /* 使用 box-shadow 绘制下两层线条 */
  box-shadow:
    0 2px 0 rgba(209, 17, 17, 0.5),
    0 4px 0 rgba(209, 17, 17, 0.3);

  /* 动画核心：默认缩放为0（隐藏），并且居中 */
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: all 0.3s ease;
}

/* 当鼠标悬浮，或者拥有 .active 类时，线条展开 */
.nav-pc a:hover::after,
.nav-pc a.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* 1. 鼠标悬浮 (Hover) 样式 */
.header .nav-pc a:hover,
.header .nav-pc a.active {
  color: var(--primary-hover); /* 悬浮时文字变亮白 */
  font-weight: bold;
}
/* .header .nav-pc a:hover::after {
  width: 100%;
  left: 0; 
}

.header .nav-pc a.active::after {
  width: 100%;
  left: 0;
  background-color: var(--primary-color);
} */
.mobile-menu-btn {
  display: none;
  width: 26px;
  height: 20px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(15, 18, 20, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
  grid-template-columns: repeat(2, 1fr);
  padding: 15px;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.nav-mobile a {
  color: #fff;
  padding: 12px 10px;
  font-size: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-mobile a.active,
.nav-mobile a:hover {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* 面包屑导航 */
.sub-nav-inner .banner-crumbs {
  position: absolute;
  right: 40px;
  bottom: 85px;
  font-size: 12px; /* 原 13px -> 12px 精致指引 */
  letter-spacing: 1.2px;
  color: #ffffff;
  z-index: 31;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ================= 2. 跨界固定卡片层 (sub-nav-wrapper) ================= */
.sub-nav-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  z-index: 30;
}

.sub-nav-inner {
  position: relative;
  width: 100%;
}

/* PC 端子导航卡片：正好横跨在上下两板块分界处 */
.sub-nav-bar {
  width: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -60px;
  height: 120px;
  background-color: #191919;
  display: flex;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.sub-nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 思源黑体;
  font-weight: 200;
  font-size: 22px;
  color: #afafaf;
  transition: all 0.25s ease;
  user-select: none;
  text-decoration: none;
  position: relative;
  letter-spacing: 1.1px;
}

.sub-nav-item:hover {
  color: #fff;
  font-weight: bold;
  background-color: var(--primary-color);
}

.sub-nav-item.active {
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-weight: bold;
}

/* ================= 页脚 ================= */
.footer-site {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}

.footer-container {
  margin: 0 auto;
  padding: 65px 0 20px;
  box-sizing: border-box;
}

/* 主体行：左侧 5 列导航与右侧品牌区两端展开 */
.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  /* border-top: 1px solid rgba(219, 216, 216, 0.356); */
  /* border-bottom: 1px solid rgba(219, 216, 216, 0.356); */
  padding: 40px 0;
}

.footer-logo-line {
  width: 100%;
  height: 46px;
  display: flex;
  justify-content: space-between;
}
.footer-logo-line img {
  width: 46px;
}
.footer-logo-line .line {
  width: 100%;
  height: 1px;
  background-color: rgba(219, 216, 216, 0.356);
}
.footer-logo-item {
  height: 100%;
  width: 94%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.footer-logo-item P {
  font-family: 思源黑体;
  font-size: 14px;
  letter-spacing: 0.7px;
  color: #b2b2b2;
}
.footer-phone {
  font-size: 20px;
  letter-spacing: 1.3px;
  color: #b2b2b2;
  margin-top: 24px;
  font-family: 思源黑体;
  width: 100%;
  padding-bottom: 20px;
}

.footer-phone span {
  font-weight: bold;
  color: var(--primary-color);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--primary-color);
}

/* ================= 左侧 5 列导航 ================= */
.footer-nav-cols {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 780px;
}

.footer-nav-col {
  min-width: 90px;
}

.footer-nav-col .col-title {
  font-size: 14px;
  font-family: 思源黑体;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.7px;
  margin: 0 0 24px 0;
  white-space: nowrap;
}

.footer-nav-col .col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-col .col-list li {
  margin-bottom: 12px;
}

.footer-nav-col .col-list li a {
  color: #b2b2b2;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.7px;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.footer-nav-col .col-list li a:hover {
  color: #ffffff;
}

/* ================= 右侧 品牌信息 / 热线 / 3联二维码 ================= */
.footer-brand-side {
  height: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

/* 服务热线与 Logo 并排 */

.hotline-box {
  text-align: left;
}

.hotline-label {
  display: block;
  font-size: 12px;
  color: #a0a0a0;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.hotline-number {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  line-height: 1;
  /* font-family: Arial, Helvetica, sans-serif; */
}

.brand-logo-box {
  height: 48px;
}

.brand-logo-box img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 二维码：左两小 + 右一大抖音 */
.qr-codes-group {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  /* margin-top: 100px; */
}

.qr-small-col {
  display: flex;
  align-items: center;
  gap: 22px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-img-frame {
  width: 96px;
  height: 96px;
  background-color: #ffffff;
  /* padding: 4px; */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
}

.qr-img-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-name {
  font-size: 12px;
  color: #a0a0a0;
  margin-top: 9px;
  letter-spacing: 0.5px;
}

/* ================= 底部合规与版权栏 ================= */
.footer-bottom-bar {
  width: 100%;

  padding-bottom: 52px;

  box-sizing: border-box;
}

.footer-bottom-inner {
  /* max-width: 1300px; */
  border-top: 1px solid rgba(219, 216, 216, 0.356);
  padding: 20px 0;
  display: flex;
}

/* 法律条款链接 */
.legal-links {
  font-size: 12px;
  color: #888888;
  margin-left: 20px;
}

.legal-links a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

.legal-links .divider {
  margin: 0 3px;
  color: #444444;
}

/* 版权号 */
.copyright-text {
  font-size: 12px;
  color: #888888;
  letter-spacing: 0.5px;
}

/* ============================================================
   全端自适应响应式体系（桌面优先 Desktop-first · 逐级降档）
   ------------------------------------------------------------
   基准态 (xl) ≥ 1400px ：沿用 1920×1080 设计稿样式，不写媒体查询
   大型屏幕 (lg) 1200px - 1399px ：中等桌面显示器
   中等屏幕 (md)  992px - 1199px ：小型桌面显示器 / 横屏平板
   小屏幕   (sm)  768px -  991px ：平板
   超小屏幕 (xs)    0px -  767px ：手机
   ============================================================ */

/* ================= 大型屏幕 (lg) 1200px - 1399px ================= */
@media screen and (max-width: 1399px) {
  /* 1. 版心安全边距：内容不贴屏幕边缘 */
  .container,
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* 2. Header 收紧：高度与 Logo 同比缩小，导航间距压缩 */
  :root {
    --header-h: 128px;
    --header-h-sticky: 88px;
  }
  .header .logo img {
    width: 240px;
  }
  .header .nav-pc {
    gap: 46px;
  }
  .header .nav-pc a {
    font-size: 15px;
    letter-spacing: 1.2px;
  }

  /* 3. 页脚：品牌区改为自适应高度，避免固定 300px 造成的空档 */
  .footer-container {
    padding: 56px 0 20px;
  }
  .footer-main-row {
    gap: 32px;
    padding: 34px 0;
  }
  .footer-nav-cols {
    gap: 16px;
  }
  .footer-brand-side {
    height: auto;
    min-height: 250px;
  }
  .qr-img-frame {
    width: 86px;
    height: 86px;
  }
}

/* ================= 中等屏幕 (md) 992px - 1199px ================= */
@media screen and (max-width: 1199px) {
  /* 1. 版心安全边距 */
  .container,
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* 2. Header 进一步压缩，PC 导航仍可一行完整放下 */
  :root {
    --header-h: 104px;
    --header-h-sticky: 76px;
  }
  .header .logo img {
    width: 200px;
  }
  .header .nav-pc {
    gap: 26px;
  }
  .header .nav-pc a {
    font-size: 14px;
    letter-spacing: 0.6px;
    padding: 6px 0;
  }

  /* 3. 页脚主体改为上下堆叠，导航列改 3 列网格 */
  .footer-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 44px;
  }
  .footer-nav-cols {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
  }
  .footer-brand-side {
    align-items: flex-start;
    width: 100%;
    height: auto;
  }
  .footer-phone {
    font-size: 18px;
  }
}

/* ================= 小屏幕 (sm) 768px - 991px ================= */
@media screen and (max-width: 991px) {
  /* 1. 版心安全边距 */
  .container,
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 2. Header 切换为汉堡菜单形态（PC 导航隐藏，腾出横向空间） */
  :root {
    --header-h: 76px;
    --header-h-sticky: 76px;
  }
  .header .logo img {
    width: 180px;
  }
  .header .nav-pc {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    width: 26px;
    height: 20px;
  }
  .nav-mobile {
    top: 76px;
  }

  /* 3. 悬浮子导航卡片：重写为触屏友好的自适应横向滑条 */
  .sub-nav-inner {
    padding: 0 12px;
  }
  .sub-nav-inner .banner-crumbs {
    display: none; /* 平板端隐藏面包屑释放空间 */
  }
  .sub-nav-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    transform: none;
    top: -26px;
    height: 52px;
    border-radius: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    /* 隐藏系统滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .sub-nav-bar::-webkit-scrollbar {
    display: none;
  }
  .sub-nav-item {
    padding: 0 18px;
    height: 100%;
    font-size: 14px;
  }

  /* 4. 了解更多按钮 */
  .learn-more-link {
    font-size: 15px;
    margin-top: 24px;
  }

  /* 5. 页脚：导航列改 2 列网格，二维码同比缩小 */
  .footer-container {
    padding: 44px 0 20px;
  }
  .footer-main-row {
    gap: 36px;
  }
  .footer-nav-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 20px;
  }
  .qr-codes-group {
    gap: 20px;
  }
  .qr-small-col {
    gap: 16px;
  }
  .qr-img-frame {
    width: 80px;
    height: 80px;
  }
}

/* ================= 超小屏幕 (xs) 0px - 767px ================= */
@media screen and (max-width: 767px) {
  /* 1. 全局容器与版心节奏 */
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .container,
  .works-container,
  .header-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 2. 顶部吸顶导航 (Header) */
  :root {
    --header-h: 56px;
    --header-h-sticky: 56px;
  }
  .header {
    top: 0 !important;
    background: rgba(13, 15, 17, 0.95) !important;
    backdrop-filter: blur(10px) !important;
  }
  /* 吸顶态与常态保持同高（由 --header-h-sticky 保证），避免展开菜单时错位 */

  .header-inner {
    padding: 0 16px !important;
  }

  .header .logo img {
    height: 28px !important;
    width: auto;
    object-fit: contain;
  }

  .mobile-menu-btn {
    display: flex !important;
    width: 24px;
    height: 18px;
  }

  .nav-mobile {
    top: 56px !important;
    padding: 12px !important;
    gap: 8px !important;
  }

  .nav-mobile a {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  .header .nav-pc {
    display: none;
  }

  /* 3. 了解更多按钮 */
  .learn-more-link {
    font-size: 14px;
    margin-top: 20px;
  }

  /* 4. 页脚 */
  .footer-container {
    padding: 36px 0 26px;
  }

  /* 手机端：左侧5列折叠为两列网格 */
  .footer-nav-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .footer-nav-col .col-title {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .footer-nav-col .col-list li {
    margin-bottom: 8px;
  }

  .footer-nav-col .col-list li a {
    font-size: 12px;
  }

  .footer-main-row {
    gap: 30px;
    padding: 26px 0;
  }

  .footer-phone {
    font-size: 16px;
    margin-top: 18px;
  }

  .hotline-number {
    font-size: 19px;
  }

  /* 二维码缩小自适应 */
  .qr-codes-group {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .qr-small-col {
    gap: 12px;
  }

  .qr-img-frame {
    width: 72px;
    height: 72px;
  }

  .qr-name {
    font-size: 11px;
    margin-top: 6px;
  }

  /* 版权栏上下单列排布 */
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: center;
  }

  .legal-links {
    line-height: 1.8;
    width: 100%;
    margin: 0 auto;
  }

  .copyright-text {
    line-height: 1.6;
    font-size: 11.5px;
  }

  /* 5. 右侧悬浮工具条：收窄让位给正文，弹窗贴近屏幕边缘 */
  .sidebar-tools {
    right: 0;
    width: 28px;
  }
  .tools-logo {
    /* 宽度须小于工具条自身宽度，避免图标溢出屏幕右缘 */
    width: 30px;
    margin-left: -15px;
    top: -14px;
  }
  .tool-consult {
    padding: 14px 0 4px;
  }
  .tool-consult .vertical-text {
    font-size: 12px;
    letter-spacing: 2px;
    padding-top: 8px;
  }
  .tool-item-icon {
    padding: 6px 0;
  }
  .tool-item-icon svg {
    width: 16px;
    height: 16px;
  }
  .top-text {
    font-size: 9px;
  }
  .contact-popup,
  .share-popup {
    right: 44px;
  }
}
