/* ========== 导航增强样式 - header-enhanced.css ========== */
/* 注意：此文件必须在 layout.css 之后加载才能生效 */

/* ========== Logo 尺寸优化 ========== */
.logo img {
  max-height: 45px !important; /* 缩小 logo，原来可能是 60-70px */
  width: auto !important;
  transition: all 0.3s ease;
}

/* ========== PC端隐藏汉堡菜单和竖线 ========== */
@media (min-width: 1024px) {
  .pcnavmenubtn,
  .pcnav-btn {
    display: none !important; /* 隐藏 PC 端汉堡菜单 */
  }

  /* 移除右侧区域的左边框（白色竖线） */
  .header-right {
    border-left: none !important;
  }
}

/* ========== 导航菜单文字样式增强 ========== */
/* 所有页面默认：白色文字（透明背景下更醒目） */
.header-nav ul li h3 a {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.header-nav ul li h3 a:hover {
  color: #00d4ff !important;
  text-shadow: 0 2px 12px rgba(0, 212, 255, 0.6) !important;
  transform: translateY(-2px);
}

.header-nav ul li.cur h3 a {
  color: #00d4ff !important;
  text-shadow: 0 2px 12px rgba(0, 212, 255, 0.8) !important;
}

/* 滚动后所有页面菜单文字变为深色 */
header.scrolled .header-nav ul li h3 a {
  color: #333333 !important;
  text-shadow: none !important;
}

header.scrolled .header-nav ul li h3 a:hover {
  color: #0066ff !important;
  text-shadow: none !important;
}

header.scrolled .header-nav ul li.cur h3 a {
  color: #0066ff !important;
  text-shadow: none !important;
}

/* ========== 通用透明背景 header（所有页面统一） ========== */
/* PC端 - 高优先级覆盖规则 */
@media (min-width: 1024px) {
  /* 所有页面 header 都使用透明背景 */
  header,
  body header,
  body.home header,
  body.index header,
  .page-home header,
  .page-index header {
    background: transparent !important;
    background-color: transparent !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

  /* 滚动后所有页面都显示白色背景 */
  header.scrolled,
  body header.scrolled,
  body.home header.scrolled,
  body.index header.scrolled,
  .page-home header.scrolled,
  .page-index header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  /* 所有页面 header-right 都使用绝对定位 - 垂直居中对齐 */
  header .header-right,
  body header .header-right,
  body.home header .header-right,
  body.index header .header-right,
  .page-home header .header-right,
  .page-index header .header-right {
    float: none !important;
    padding: 0 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    right: 75px !important;
    padding-right: 71px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
  }

  /* 内页 banner 图片区域上移到 header 下方 */
  .inside-banner {
    margin-top: -100px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* 确保 banner 后面的内容有正确的间距 */
  .full-inside-subnav {
    position: relative !important;
    z-index: 10 !important;
  }
}

/* 联系方式区域 */
.top-contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* 联系按钮基础样式 */
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

/* 默认状态（所有页面透明背景下）电话按钮：半透明白底 + 白色边框 */
.contact-item.phone {
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 滚动后所有页面电话按钮变为白底蓝边 */
header.scrolled .contact-item.phone {
  background-color: #fff !important;
  backdrop-filter: none !important;
  border: 2px solid #0066ff !important;
  color: #0066ff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 默认状态（所有页面透明背景下）邮箱按钮：半透明白底 + 白色边框 */
.contact-item.email {
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 滚动后所有页面邮箱按钮变为白底蓝边 */
header.scrolled .contact-item.email {
  background-color: #fff !important;
  backdrop-filter: none !important;
  border: 2px solid #0066ff !important;
  color: #0066ff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 悬停效果（更流畅的动画） - 统一样式 */
.contact-item.phone:hover,
.contact-item.email:hover {
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%) !important;
  border: none !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* 图标统一尺寸与颜色（使用 currentColor） */
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========== 搜索按钮样式 - 可展开搜索框 ========== */
@media (min-width: 1024px) {
  .header-right .search-con {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
  }

  .header-right .search-inco {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15) !important; /* 半透明白底，和邮箱按钮统一 */
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important; /* 白色图标 */
    z-index: 4;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  /* 滚动后搜索按钮变为灰色渐变 */
  header.scrolled .header-right .search-inco {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%) !important;
    backdrop-filter: none !important;
    border: none !important;
    color: #666 !important;
  }

  .header-right .search-inco:hover {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%) !important;
    backdrop-filter: none !important;
    border: none !important;
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
  }

  .header-right .search-inco svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* 展开后的搜索框 */
  .header-right .searchbox {
    position: absolute;
    right: 0;
    top: 50px;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    z-index: 100;
  }

  .header-right .search-con.active .searchbox {
    width: 300px;
    opacity: 1;
    display: block;
  }

  .header-right .searchbox form {
    position: relative;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
  }

  .header-right .searchbox .searchtext {
    width: 100%;
    height: 50px;
    padding: 10px 70px 10px 20px;
    border: 2px solid #0066ff;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .header-right .searchbox .searchtext:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  }

  .header-right .searchbox .searchbtn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-family: "Microsoft YaHei";
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
  }

  .header-right .searchbox .searchbtn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
  }
}

@media (max-width: 1023px) {
  .header-right .search-inco {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 100px;
    color: #666;
    z-index: 4;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none !important;
  }

  .header-right .search-inco:hover {
    color: #d82019;
  }

  .header-right .search-inco svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}

/* ========== 最终覆盖规则 - 确保所有页面透明背景 ========== */
/* 确保 headerweb 容器也透明 */
header .headerweb {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* ========== 超高优先级最终规则 - 强制覆盖所有冲突样式 ========== */
@media (min-width: 1024px) {
  /* 强制所有页面 header-right 定位到右侧垂直居中 */
  .headerweb .header-right,
  header .headerweb .header-right,
  body header .headerweb .header-right {
    float: none !important;
    padding: 0 !important;
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    right: 75px !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    -moz-transform: translateY(-50%) !important;
    padding-right: 71px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
}
