/* Bomao Header Component Styles */
:root {
  --bomao-header-bg: rgba(255, 255, 255, 0.60);
  --bomao-header-mobile-bg: rgba(255, 255, 255);
  --bomao-header-text:  rgba(0, 0, 0, 0.60);
  --bomao-header-text-secondary: rgba(0, 0, 0, 0.60);
  --bomao-header-border: rgba(255, 255, 255, 0.1);
  --bomao-header-hover: linear-gradient(115deg, #9182D0 -16.9%, #433093 103.78%);
  --bomao-header-padding:  0.40625rem 0.375rem 0.40625rem 1.25rem;
  --bomao-header-height: 2.1875rem;
  --bomao-header-z-index: 1000;
  
  /* Typography */
  --bomao-header-font-size: 0.5625rem;
  --bomao-header-font-size-sm: 0.4375rem;
  --bomao-header-line-height: 1.2;
  --bomao-header-font-weight: 500;
  
  /* Logo */
  --bomao-logo-height: 1.25rem;
  --bomao-logo-height-mobile: 1rem;
  
  /* Animation */
  --bomao-header-transition: all 0.3s ease-in-out;
  --bomao-header-slide-distance: calc(-100% - 0.84375rem);
}
@media screen and (min-width: 992px) {
  body{
    padding-top: 0 !important;
  } 
}
/* 隐私样式 */
.lake-content{
  margin-bottom: 2rem;
}
.lake-content ol, ul{
  list-style: unset;
}
/* 桌面端头部 */
.bomao-head-desktop {
  position: fixed;
  top: 0.84375rem;
  left: 0;
  right: 0;
  background: var(--bomao-header-bg);
  color: var(--bomao-header-text);
  z-index: var(--bomao-header-z-index);
  padding: var(--bomao-header-padding);
  /* height: var(--bomao-header-height); */
  transition: var(--bomao-header-transition);
  transform: translateY(0);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 4px 1.5625rem 0 rgba(0, 67, 111, 0.14);
  /* backdrop-filter: blur(0.625rem); */
}

.bomao-head-desktop.bomao-header-hidden {
  transform: translateY(var(--bomao-header-slide-distance));
}

.bomao-head-desktop.bomao-header-scrolled {
  /* background: rgba(0, 0, 0, 0.95); */
  /* backdrop-filter: blur(10px); */
  border-bottom: 1px solid var(--bomao-header-border);
}

.bomao-head-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo 样式 */
.bomao-head-logo {
  flex-shrink: 0;
}

.bomao-head-logo a {
  display: block;
  line-height: 1;
}

.bomao-head-logo img {
  height: var(--bomao-logo-height);
  width: auto;
  object-fit: contain;
  transition: var(--bomao-header-transition);
}

/* 主导航 */
.bomao-head-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 1.25rem;
}

.bomao-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bomao-nav-item {
  /* position: relative; */
}

.bomao-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--bomao-header-font-size);
  font-weight: var(--bomao-header-font-weight);
  line-height: var(--bomao-header-line-height);
  color: var(--bomao-header-text);
  text-decoration: none;
  padding: 8px 0;
  transition: var(--bomao-header-transition);
  position: relative;
}

.bomao-nav-link:hover,
.bomao-nav-item.active .bomao-nav-link {
  color: #000;
  font-weight: 700;
}




.bomao-dropdown-icon {
  transition: transform 0.3s ease;
}

.bomao-nav-item:hover .bomao-dropdown-icon {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.bomao-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%) translateY(-0.625rem);
  min-width: 25rem;
  background: #fff;
  /* opacity: 0; */
  visibility: hidden;
  transition: var(--bomao-header-transition);
  z-index: 9999;
  margin-top: 0.375rem;
  overflow: hidden;
  display: flex;
  padding: 1.56rem 1.25rem 2.13rem;
  gap: 1.25rem;
  border-radius: 1.5625rem;
  border: 1px solid rgba(255, 255, 255, 0.40);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 4px 50px 0 rgba(0, 67, 111, 0.14);
  align-items: flex-start;
  backdrop-filter: blur(20px);
}
.bomao-head-desktop::before{
  position:absolute;
  content:"";
  left:0;
  right:0;
  top:0;
  bottom:0;
  backdrop-filter: blur(0.625rem);
  border-radius: 50px;
  z-index:-1;
}

.bomao-nav-item.has-dropdown:hover .bomao-dropdown-menu,
.bomao-dropdown-menu.active {
  /* opacity: 0.7; */
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 下拉菜单左侧图片 */
.bomao-dropdown-image {
  flex-shrink: 0;
  width: 9.5rem;
  height: auto;
  min-height: 8.75rem;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 0.9rem;
}

.bomao-dropdown-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 下拉菜单右侧内容 */
.bomao-dropdown-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bomao-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 0.9375rem;
  width: 100%;
}

.bomao-dropdown-item {
  margin: 0;
  min-width: 0;
}

.bomao-dropdown-link {
  display: flex;
  align-items: center;
  font-family: var(--font-family);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.219;
  color: #000000;
  text-decoration: none;
  transition: var(--bomao-header-transition);
  border-radius: 0.25rem;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.94rem;
}

.bomao-dropdown-submenu-item{
  margin-bottom : 0.31rem;
}
.bomao-dropdown-submenu-item a{
  font-size:0.5rem;
  color:#000;
  display: block;
}
.bomao-dropdown-submenu-item a:hover{
  color:var(--color-primary);
}
.bomao-dropdown-submenu-item a::after {
  content: '>';
  margin-left: auto;
  flex-shrink: 0;
}


/* 右侧操作区 */
.bomao-head-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* 桌面端搜索 */
.bomao-search-desktop {
  position: relative;
}

.bomao-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: none;
  border: none;
  color: var(--bomao-header-text);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--bomao-header-transition);
}

.bomao-search-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.bomao-search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  /* width: 9.375rem; */
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  box-shadow: 0 10px 1.25rem rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--bomao-header-transition);
  z-index: 1000;
}

.bomao-search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bomao-search-form {
  display: flex;
  align-items: center;
  padding: 8px;
}

.bomao-search-input {
  flex: 1;
  padding: 0.375rem 0.5rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  font-size: var(--bomao-header-font-size-sm);
  outline: none;
}

.bomao-search-input:focus {
  background: rgba(0, 0, 0, 0.08);
}

.bomao-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: none;
  border: none;
  color: var(--bomao-header-text);
  cursor: pointer;
  border-radius: 8px;
  margin-left: 8px;
  transition: var(--bomao-header-transition);
}

.bomao-search-submit:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 语言选择器 */
.bomao-language-selector {
  flex-shrink: 0;
}

/* 联系电话 */
.bomao-head-contact {
  flex-shrink: 0;
}

.bomao-contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.375rem 0.46875rem;
  background: var(--bomao-header-hover);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: var(--bomao-header-font-size-sm);
  font-weight: var(--bomao-header-font-weight);
  line-height: var(--bomao-header-line-height);
  transition: var(--bomao-header-transition);
}

.bomao-contact-phone:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 5px 0.625rem rgba(139, 92, 246, 0.4);
  color: #fff;
}

.bomao-phone-icon {
  flex-shrink: 0;
}

/* 移动端头部 */
.bomao-head-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bomao-header-bg);
  color: var(--bomao-header-text);
  z-index: var(--bomao-header-z-index);
  padding: 10px;
  transition: var(--bomao-header-transition);
  transform: translateY(0);
  border-radius: 50px;
}

.bomao-head-mobile.bomao-header-hidden {
  transform: translateY(var(--bomao-header-slide-distance));
}

.bomao-mobile-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bomao-mobile-logo img {
    height: auto;
    width: 9rem;
    object-fit: cover;
}

.bomao-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.bomao-mobile-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  background: none;
  border: none;
  color: var(--bomao-header-text);
  border-radius: 50%;
  transition: var(--bomao-header-transition);
  cursor: pointer;
}

.bomao-mobile-search-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.bomao-mobile-language {
  flex-shrink: 0;
}

.bomao-mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  background: var(--bomao-header-hover);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--bomao-header-transition);
}

.bomao-mobile-phone:hover {
  transform: scale(1.1);
  color: #fff;
}

/* 移动端搜索覆盖层 */
.bomao-mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--bomao-header-transition);
}

.bomao-mobile-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bomao-mobile-search-container {
  display: flex;
  align-items: center;
  gap: 0.46875rem;
  padding: 0.625rem;
  background: white;
  margin: 0.625rem;
  border-radius: 0.46875rem;
  margin-top: 2.5rem;
}

.bomao-mobile-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.375rem;
  padding: 4px;
}

.bomao-mobile-search-input {
  flex: 1;
  padding: 0.375rem 0.5rem;
  border: none;
  background: none;
  font-size: 0.5rem;
  outline: none;
}

.bomao-mobile-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--bomao-header-hover);
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--bomao-header-transition);
  padding: 4px;
}

.bomao-mobile-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--bomao-header-text);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--bomao-header-transition);
}

/* 汉堡菜单 */
.bomao-mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.bomao-mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bomao-header-text);
  transition: var(--bomao-header-transition);
}

.bomao-mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.bomao-mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bomao-mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* 移动端导航 */
.bomao-mobile-nav {
  margin-top: 5px;
  border-top: 1px solid var(--bomao-header-border);
  padding-top: 0.46875rem;
  background-color: #fff;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 10px;
}

.bomao-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bomao-mobile-menu-item {
  border-bottom: 1px solid var(--bomao-header-border);
}

.bomao-mobile-menu-item:last-child {
  border-bottom: none;
}

.bomao-mobile-menu-link {
  display: block;
  padding: 0.46875rem 0;
  font-size: var(--bomao-header-font-size);
  font-weight: var(--bomao-header-font-weight);
  line-height: var(--bomao-header-line-height);
  color: var(--bomao-header-text);
  text-decoration: none;
  transition: var(--bomao-header-transition);
}

.bomao-mobile-menu-link:hover {
  color: var(--bomao-header-hover);
  padding-left: 10px;
}

.bomao-mobile-menu-item.has-submenu {
  position: relative;
}

.bomao-mobile-menu-item.has-submenu .bomao-mobile-menu-link {
  padding-right: 1.5625rem;
}

.bomao-submenu-toggle {
  position: absolute;
  top: 0;
  right: 10px;
  background: none;
  border: none;
  color: var(--bomao-header-text);
  cursor: pointer;
  padding: 5px;
  transition: var(--bomao-header-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.bomao-submenu-toggle:hover {
  /* background: rgba(0, 0, 0, 0.05); */
}

.bomao-submenu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.bomao-submenu-toggle svg {
  pointer-events: none;
}

.bomao-mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  display: none;
}

.bomao-mobile-submenu.show {
  display: block;
}

.bomao-mobile-submenu a {
  display: block;
  padding: 0.375rem 0.625rem;
  font-size: var(--bomao-header-font-size-sm);
  line-height: var(--bomao-header-line-height);
  color: var(--bomao-header-text-secondary);
  text-decoration: none;
  transition: var(--bomao-header-transition);
}

.bomao-mobile-submenu a:hover {
  color: var(--bomao-header-hover);
  padding-left: 0.9375rem;
}
@media (min-width: 1600px) {
  .bomao-head-desktop.container {
      max-width: 1516px;
  }
}
/* @media (max-width: 1500px) {
  .bomao-nav-menu {
    gap: 20px;
  }
  .bomao-head-actions{
    gap: 0;
  }
  .bomao-head-nav{
    margin: 0 15px;
  }
} */
/* 响应式设计 */
@media (max-width: 1200px) {
  :root{
    --bomao-header-padding:0.40625rem 0.375rem;
    --bomao-header-font-size-sm: 0.625rem;
    --bomao-header-font-size:0.75rem;
  }
  .bomao-head-actions{
    gap: 0;
  }
  .bomao-nav-menu {
    gap: 0.8rem;
  }
  
  .bomao-head-nav {
    margin: 0 0.625rem;
  }
  .bomao-head-logo{
    max-width: 6.25rem;
  }
  
  /* 调整下拉菜单尺寸 */
  .bomao-dropdown-menu {
    min-width: 18rem;
    padding: 0.9375rem;
    gap: 0.9375rem;
  }
  
  .bomao-dropdown-image {
    /* width: 6.25rem; */
    /* min-height: 6.25rem; */
  }
  
  .bomao-dropdown-list {
    gap: 0.5125rem 0.625rem;
  }
  
  .bomao-dropdown-link {
    font-size: 0.7375rem;
    margin-bottom: 0.8rem;
  }
  .bomao-dropdown-submenu-item{
    margin-top:0.31rem;
  }
  .bomao-dropdown-submenu-item a{
    font-size:0.58rem;
  }
}

/* 针对小屏幕笔记本的优化 */
@media (max-width: 1024px) {
  .bomao-dropdown-menu {
    min-width: 16rem;
    max-width: 90vw;
    padding: 0.78125rem;
    gap: 0.78125rem;
  }
  
  .bomao-dropdown-image {
    width: 5rem;
    min-height: 5rem;
  }
  
  .bomao-dropdown-list {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .bomao-dropdown-link {
    font-size: 0.40625rem;
  }
}

@media (max-width: 992px) {
  :root {
    --bomao-header-height: 1.875rem;
    --bomao-header-padding: 10px 0;
  }
}

@media (max-width: 576px) {
  :root {
    --bomao-logo-height-mobile: 0.875rem;
  }
  
  .bomao-mobile-actions {
    gap: 0.375rem;
  }
  
  .bomao-mobile-phone {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --bomao-header-bg: #000;
    --bomao-header-text: #fff;
    --bomao-header-border: #fff;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 页面内容偏移（避免被固定头部遮挡） */
/* body {
  padding-top: var(--bomao-header-height);
} */

@media (max-width: 991px) {
  body {
    padding-top: 2.71875rem;
  }
}

.inqury-form .input-wrap.textarea-wrap::before{
    content: "*";
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: #F0150F;
    padding-top: 8px;
}
.custom-pop-inquiry .inqury-form .input-wrap.textarea-wrap::before{
    content: "";
}
.crmForm-error{
  top:100%;
  color: #ff0000 !important;
  margin-top: 3px;
}
@media (max-width: 768px) {
  .custom-pop-inquiry .crmForm-error{
    margin-top: -6px;
  }
}
@media (max-width: 480px) {
  .inqury-form .textarea-wrap .crmForm-error{
   /* font-size: 10px; */
  }
}
