/* ============================================================
   common.css —— 全站公共样式（所有页面都引这一份）
   内容：CSS 变量 & Reset / 顶部导航 / 通用板块标题 /
         「了解更多」按钮 / 侧边工具条 / 页脚
   页面专属样式见 index.css / news.css / about.css
   ============================================================ */

/* ============ 全局变量 & Reset ============ */
:root {
  --c-primary: #007cc3;
  --c-primary-deep: #004298;
  --c-blue-link: #2282ed;
  --c-title: #222222;
  --c-text: #333333;
  --c-text-light: #666666;
  --c-gray: #a6afb5;
  --container: 1400px;
  --container-wide: 1600px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--c-text);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, li { list-style: none; }
[v-cloak] { display: none; }

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.container--wide {
  width: var(--container-wide);
}


/* ============ 板块1 顶部导航栏 ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo__img { height: 60px; width: auto; object-fit: scale-down; }
.nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  white-space: nowrap;
}
.nav__link {
  color: #fff;
  font-weight: bold;
  font-size: 17px;
  position: relative;
  padding: 6px 0;
  transition: color .3s, opacity .2s;
}
.nav__link--active::after,
.nav__link:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #fff;
}
.header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 40px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  transition: color .3s;
}
/* 电话图标：白色 png 用 mask 上色，透明态白 / 变白态品牌蓝，一图两色 */
.header__tel-icon {
  width: 24px;
  height: 24px;
  background-color: #fff;
  -webkit-mask: url("../images/phone-top.png") no-repeat center / contain;
  mask: url("../images/phone-top.png") no-repeat center / contain;
  transition: background-color .3s;
}

/* ---- 移动端专属元素（汉堡按钮 / 菜单内电话），PC 上隐藏 ---- */
.header__burger {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav__tel { display: none; }

/* ---- 下滑变白状态 ---- */
.header--solid {
  background-color: #fff;
  border-bottom-color: #eef1f4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.header--solid .nav__link { color: var(--c-text); }
.header--solid .nav__link:hover { color: var(--c-primary); opacity: 1; }
.header--solid .nav__link--active { color: var(--c-primary); }
.header--solid .nav__link--active::after { background: var(--c-primary); }
.header--solid .header__tel { color: var(--c-primary); }
.header--solid .header__tel-icon { background-color: var(--c-primary); }

/* ---- 导航二级：全屏通栏 Mega Menu（PC hover 展开，固定在 header 底部）---- */
.nav__item { position: relative; }
/* hover 时在菜单项下方铺一块透明桥，覆盖到 header 底缘，防止移向面板时 hover 中断 */
.nav__item:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 44px;
}
.nav__drop {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eef1f4;
  box-shadow: 0 18px 40px rgba(0, 60, 130, 0.12);
  padding: 30px 0 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .28s, transform .28s, visibility .28s;
}
.nav__item:hover .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* 纯文字二级（无图片卡片）：面板压矮 */
.nav__drop--text { padding: 16px 0 18px; }
.nav__drop-inner {
  display: flex;
  justify-content: center;
  gap: 56px;
}
.nav__drop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.nav__drop-img {
  width: 150px;
  height: 104px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f8fb;
}
.nav__drop-img img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  display: block;
  transition: transform .3s;
}
.nav__drop-card:hover .nav__drop-img img { transform: scale(1.06); }
.nav__drop-title {
  color: var(--c-text);
  font-size: 16px;
  transition: color .2s;
}
.nav__drop-card:hover .nav__drop-title { color: var(--c-primary); }


/* ============ 通用板块标题 ============ */
.sec-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--c-title);
  text-align: center;
}
.sec-sub {
  font-size: 18px;
  color: var(--c-gray);
  text-align: center;
  margin-top: 14px;
}


/* ============ 通用「了解更多」按钮 ============ */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 150px;
  height: 46px;
  padding: 0 6px 0 30px;      /* 右侧留给圆箭头贴边，左侧放文字 */
  background: #fff;           /* 白底 */
  color: var(--c-primary);
  border-radius: 24px;
  font-size: 16px;
  transition: all .25s;
}
/* 描边版：浅色背景用（如关于板块），白底＋蓝边 */
.btn-more--bordered {
  border: 1px solid var(--c-primary);
}
.btn-more:hover {
  box-shadow: 0 8px 20px rgba(0, 60, 130, 0.18);
}
/* 右侧蓝色圆形箭头 */
.btn-more__arrow {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-primary);
  flex: none;
}
/* 纯 CSS 白色右箭头 →（横杆＋右尖），不再依赖 png 图标 */
.btn-more__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.btn-more__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}


/* ============ 全局固定侧边工具条 ============ */
.sidebar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__item {
  position: relative;
  width: 50px;
  height: 50px;
  background: #1C1D20;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.sidebar__item:hover { background: var(--c-primary); }
.sidebar__item img { width: 28px; height: 28px; object-fit: scale-down; }
.sidebar__pop {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
}
.sidebar__item:hover .sidebar__pop { opacity: 1; visibility: visible; }
.sidebar__pop--qr {
  padding: 5px;
  width: max-content;
}
.sidebar__pop--qr img { width: 100px; height: 100px; }


/* ============ 板块10 页脚 ============ */
.footer {
  background: url("../images/bg-blue-535.jpg") center/cover no-repeat, #0a3d78;
  color: #fff;
}
.footer__inner {
  display: flex;
  gap: 60px;
  padding-top: 50px;
  padding-bottom: 46px;
}
/* 左栏：标语 + 联系方式 */
.footer__left { flex: 0 0 34%; }
.footer__slogan {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.footer__contacts img {
  width: 18px;
  height: 18px;
  object-fit: scale-down;
  filter: brightness(0) invert(1);
}
.footer__contacts b { font-weight: 400; }
/* 右栏：导航横条 +（产品中心 + 二维码）*/
.footer__right {
  flex: 1;
  min-width: 0;
}
.footer__topnav {
  display: flex;
  justify-content: space-between;
  padding-bottom: 34px;
}
.footer__topnav a {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: color .2s;
}
.footer__topnav a:first-child { padding-left: 0; }
.footer__topnav a:first-child::before { display: none; }
.footer__topnav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
}
.footer__topnav a:hover { color: #fff; }
.footer__right-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 30px;
}
.footer__product { flex: 1; }
.footer__subtitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer__products {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 34px 90px;
}
.footer__products a {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color .2s;
}
.footer__products a:hover { color: #fff; }
.footer__arrow {
  opacity: .7;
  font-family: Arial, sans-serif;
}
.footer__col--qr {
  flex: 0 0 auto;
  display: flex;
  gap: 24px;
}
.footer__qr {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.footer__qr img {
  width: 118px;
  height: 118px;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: center;
  gap: 50px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ 内页 Banner（全站公用：整图打底 + CSS 文字叠加）============ */
.subbanner {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #0b3f7a;
}
.subbanner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 顶部压暗，保证白色导航可读 */
.subbanner::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 160px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.subbanner__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  /* 顶部被 fixed 导航（100px）压住，留出后文字在可视区居中 */
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  /* 白字双层投影：banner 图偏浅时保证可读 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 2px 12px rgba(0, 0, 0, .15);
}
.subbanner__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 6px;
}
.subbanner__en {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: .95;
}

/* ============ 面包屑导航条组件（site-breadcrumb） ============ */
.breadcrumb-bar {
  height: 56px;
  background: #f2f2f2;
}
.breadcrumb-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
}
.breadcrumb-bar__tabs {
  display: flex;
  gap: 66px;
}
.breadcrumb-bar__tab {
  position: relative;
  font-size: 16px;
  color: #000;
  padding: 6px 0;
  transition: color .2s;
}
.breadcrumb-bar__tab:hover { color: var(--c-primary); }
.breadcrumb-bar__tab--active {
  color: var(--c-primary);
  font-weight: 700;
}
.breadcrumb-bar__tab--active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-primary);
}
.breadcrumb-bar__crumb {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #767676;
}
.breadcrumb-bar__home {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-bar__crumb a:hover { color: var(--c-primary); }


/* ============================================================
   移动端适配（≤768px）—— 全站公共部分
   断点约定：768px 一刀切，各页专属断点写在各自 xxx.css 尾部
   ============================================================ */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  /* ---- 顶部导航：压矮 + 汉堡下拉菜单 ---- */
  .header,
  .header__inner { height: 64px; }
  .logo__img { height: 36px; }
  .header__tel { display: none; }
  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
  }
  .header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform .3s, opacity .3s, background-color .3s;
  }
  .header--solid .header__burger span { background: var(--c-text); }
  .header--menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header--menu-open .header__burger span:nth-child(2) { opacity: 0; }
  .header--menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 下拉菜单面板（开态由 .header--menu-open 控制，白底深字） */
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: #fff;
    border-top: 1px solid #eef1f4;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .header--menu-open .nav { max-height: 80vh; overflow-y: auto; }
  .nav__link {
    display: block;
    color: var(--c-text);
    font-size: 16px;
    padding: 13px 24px;
    border-bottom: 1px solid #f2f4f7;
  }
  .nav__link--active { color: var(--c-primary); }
  .nav__link--active::after,
  .nav__link:hover::after { display: none; }
  /* 移动端二级：不做 hover 面板，隐藏图片，直接缩进平铺在父项下 */
  .nav__item { position: static; }
  .nav__item:hover::after { display: none; }
  .nav__drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: #fafcfe;
    border-top: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav__drop-inner {
    display: block;
    padding: 0;
  }
  .nav__drop-img { display: none; }
  .nav__drop-card {
    display: block;
    padding: 11px 24px 11px 42px;
    border-bottom: 1px solid #f2f4f7;
  }
  .nav__drop-title {
    font-size: 14px;
    color: var(--c-text-light);
  }
  .nav__tel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: var(--c-primary);
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
  }
  .nav__tel .header__tel-icon { background-color: var(--c-primary); }

  /* ---- 通用标题 / 按钮 ---- */
  .sec-title { font-size: 26px; }
  .sec-sub { font-size: 14px; margin-top: 8px; }
  .btn-more {
    min-width: 128px;
    height: 40px;
    font-size: 14px;
    gap: 10px;
    padding-left: 22px;
  }
  .btn-more__arrow { width: 30px; height: 30px; }

  /* ---- 侧边工具条：缩小贴边 ---- */
  .sidebar { right: 10px; }
  .sidebar__item { width: 44px; height: 44px; }
  .sidebar__item img { width: 24px; height: 24px; }
  .sidebar__pop { right: 48px; font-size: 15px; }
  .sidebar__pop--qr img { width: 100px; height: 100px; }

  /* ---- 页脚：整体改纵向堆叠 ---- */
  .footer__inner {
    flex-direction: column;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 30px;
  }
  .footer__left { flex: none; }
  .footer__slogan { font-size: 20px; margin-bottom: 20px; }
  .footer__contacts li { margin-bottom: 12px; font-size: 14px; }
  .footer__topnav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 0;
    padding-bottom: 20px;
  }
  .footer__topnav a { padding: 0 14px; }
  .footer__topnav a:first-child { padding-left: 0; }
  .footer__right-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-top: 22px;
  }
  .footer__subtitle { font-size: 18px; margin-bottom: 16px; }
  .footer__products { gap: 16px 40px; }
  .footer__products a { gap: 12px; font-size: 14px; }
  .footer__col--qr { align-self: center; }
  .footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  /* ---- 内页 Banner ---- */
  .subbanner { height: 300px; }
  .subbanner__inner { padding-top: 64px; }
  .subbanner__title { font-size: 30px; letter-spacing: 3px; }
  .subbanner__en { font-size: 14px; letter-spacing: 2px; margin-top: 10px; }

  /* ---- 子导航 tab + 面包屑条：tabs 与 crumb 手机端都显示 ----
     无 tabs 页面（产品/详情/荣誉/联系）：crumb 靠左；
     有 tabs 页面（新闻/关于）：tabs 靠左、crumb 靠右分居两端，整体超宽随 __inner 横滑 */
  .breadcrumb-bar { height: 56px; }
  .breadcrumb-bar__inner { overflow-x: auto; }
  .breadcrumb-bar__tabs { gap: 28px; }
  .breadcrumb-bar__tab { font-size: 16px; white-space: nowrap; }
  .breadcrumb-bar__tab--active::after { bottom: -4px; width: 36px; height: 3px; }
  .breadcrumb-bar__crumb {
    margin-left: 0;
    font-size: 15px;
    white-space: nowrap;
  }
  /* 有 tabs 时把 crumb 推到右端与 tabs 分居两侧 */
  .breadcrumb-bar__tabs + .breadcrumb-bar__crumb { margin-left: auto; }
  .breadcrumb-bar__crumb img { width: 16px; height: auto; }
}

