/* ========== Header Container ========== */
.header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding-left: 1.38vw;
  padding-right: 2.77vw;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


.header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========== Navigation ========== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.39vw 0;
  /* 20px based on 1440px */
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.69vw;
  /* 10px based on 1440px */
}


.logo-icon {
  width: 5.56vw;
  /* 80px based on 1440px */
  height: 5.56vw;
  /* 80px based on 1440px */
  border-radius: 0.28vw;
  /* 4px based on 1440px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.11vw;
  /* 16px based on 1440px */
  color: #333;
}


.nav-menu {
  display: flex;
  list-style: none;
  gap: 16px;
  /* 60px based on 1440px */
  align-items: center;
  max-width: 916px;
  flex-wrap: nowrap;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #9ABCB6;
  font-size: 1.11vw;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
  padding: 0 16.6px;
}


.nav-menu a:hover,
.nav-menu a.active {
  color: #004E41;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 5px;
  background: #034e40;
  margin-top: 41.5px;
}

/* ========== About Dropdown Menu ========== */
/* About Dropdown Menu Styles */
.nav-dropdown-item {
  position: relative;
}
.nav-dropdown-item-about{
  position: relative;
  line-height: 3.78vw;
  height: 3.78vw;
}
.nav-dropdown-item-about .about-dropdown-menu_hover{
  display: none;
  position: absolute;
}
.nav-dropdown-item-about:hover .about-dropdown-menu_hover{
  display: block;
  position: absolute;
  width: 152px;
  height: 227px;
  position: absolute;
  top: 68px !important;
  left: -30px !important;
  text-align: center;
  border-top: 5px solid #034e40;
}
.nav-dropdown-item-about:hover .dropdown-arrow{
  transform: rotate(180deg);
  color: #004E41;
}
.about-dropdown-menu_hover .list-item{
  background-color: #fff;
  width: 152px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border-top: 1px solid #E5E5E5;
}

.van-dropdown-item {
  width: 152px;
  height: 227px;
  position: absolute;
  top: 70px !important;
  left: -14px !important;
  text-align: center;
}

.about-dropdown-menu {
  background: transparent;
  box-shadow: none;
  height: auto;
}

/* 隐藏下拉菜单的遮罩层 */
.about-dropdown-menu .van-overlay {
  display: none !important;
}

/* 隐藏可能出现在 body 中的遮罩层 */
body>.van-overlay[class*="dropdown"] {
  display: none !important;
}

.about-dropdown-menu .van-dropdown-item {
  background: transparent;
}

.dropdown-title {
  color: #9ABCB6 !important;
  font-size: 1.11vw !important;
  font-weight: 400 !important;
  transition: color 0.3s;
  padding: 0 16.6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 4px;
}


.dropdown-title-text {
  color: #9ABCB6;
  font-size: 1.11vw;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
  padding: 0 9px!important;
  flex-shrink: 0;
}


/* 自定义下拉箭头图标 */
.dropdown-arrow {
  width: 14px;
  height: 14px;
  display: inline-block;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: inherit;
  object-fit: contain;
  transform-origin: center;
  opacity: 0.3;
}


/* 下拉菜单打开时，图标向上旋转 */
.about-dropdown-menu .van-dropdown-menu_title--active .dropdown-arrow,
.about-dropdown-menu .van-dropdown-menu_title--down .dropdown-arrow,
.about-dropdown-menu .van-dropdown-menu_title--active .dropdown-title .dropdown-arrow,
.about-dropdown-menu .van-dropdown-menu_title--down .dropdown-title .dropdown-arrow,
.about-dropdown-menu .dropdown-title.van-dropdown-menu_title--active .dropdown-arrow,
.about-dropdown-menu .dropdown-title.van-dropdown-menu_title--down .dropdown-arrow,
.about-dropdown-menu .van-dropdown-menu_title--active img.dropdown-arrow,
.about-dropdown-menu .van-dropdown-menu_title--down img.dropdown-arrow {
  transform: rotate(180deg) !important;
}
.van-overflow-hidden .dropdown-arrow{
  transform: rotate(180deg) !important;
  opacity:  1;
}

/* About 下拉菜单的 a 标签应用与其他导航链接相同的 active 样式 */
.dropdown-title-text.active {
  color: #004E41;
}

.dropdown-title-text.active::after {
  content: '' !important;
  position: absolute !important;
  left: -30px !important;
  top: 100% !important;
  width: 152px !important;
  height: 5px !important;
  background: transparent !important;
  margin-top: 41.5px !important;
  display: block !important;
  z-index: 999 !important;
}

/* 确保父容器不会裁剪下划线 */
.van-ellipsis,
.van-dropdown-menu_title,
.dropdown-title,
.van-dropdown-menu_item {
  overflow: visible !important;
}

/* 设置 van-dropdown-menu__title 字体大小 */
.van-dropdown-menu__title {
  font-size: 7px !important;
}

/* 确保 nav-dropdown-item 不会裁剪下划线 */
.nav-dropdown-item {
  overflow: visible !important;
}

.about-dropdown-menu .van-dropdown-item__title--active .dropdown-title-text,
.about-dropdown-menu .van-dropdown-item__title--down .dropdown-title-text {
  color: #004E41;
}

.about-dropdown-menu .van-dropdown-item__title--active,
.about-dropdown-menu .van-dropdown-item__title--down {
  color: #004E41 !important;
}

/* 确保标题容器有相对定位，以便下划线正确定位 */
.about-dropdown-menu .van-dropdown-item__title {
  position: relative;
}

.dropdown-title {
  position: relative;
}

/* About 下拉菜单打开时显示下划线 */
.about-dropdown-menu .van-dropdown-item__title--active.dropdown-title::after,
.about-dropdown-menu .van-dropdown-item__title--down.dropdown-title::after,
.about-dropdown-menu .van-dropdown-item__title--active::after,
.about-dropdown-menu .van-dropdown-item__title--down::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 100% !important;
  width: 152px !important;
  height: 5px !important;
  background: #034e40 !important;
  margin-top: 41.5px !important;
  display: block !important;
}

.about-dropdown-menu .van-dropdown-item__content {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-top: 10px;
  z-index: 1001;
  width: 152px;
  height: 227px;
  display: flex;
  flex-direction: column;
  border-radius: 0!important;
}

.about-dropdown-menu .van-dropdown-item__option {
  color: #666666;
  font-size: 16px;
  line-height: 24px;
  padding: 0;
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(227px / 4);
  flex: 1;
}

.about-dropdown-menu .van-dropdown-item__option:hover {
  background: #f5f5f5;
  color: #004E41;
}

.about-dropdown-menu .van-dropdown-item__option--active {
  color: #666666;
  background: transparent;
}

/* 隐藏 Vant 默认的下拉箭头，使用自定义样式 */
.about-dropdown-menu .van-dropdown-item__title::after,
.about-dropdown-menu .van-dropdown-menu_title::after,
.about-dropdown-menu .dropdown-title::after {
  display: none !important;
  content: none !important;
}

/* 隐藏 van-cell__value */
.van-cell__value {
  display: none !important;
}

/* 取消 van-dropdown-menu__bar 的背景样式和阴影 */
.van-dropdown-menu__bar {
  background: transparent !important;
  box-shadow: none !important;
}

/* ========== Contact Button ========== */
.contact-btn {
  border: 1px solid #004E41;
  padding: 0.83vw 1.39vw;
  /* 12px 20px based on 1440px */
  background: transparent;
  color: #004E41;
  text-decoration: none;
  font-size: 1.11vw;
  /* 16px based on 1440px */
  font-weight: 700;
  transition: all 0.3s;
}


.contact-btn:hover {
  background: #333;
  color: #fff;
}

.get-in-touch-btn {
  background: #004e41;
  color: #fff;
  padding: 1.39vw 2.08vw;
  /* 20px 30px based on 1440px */
  text-decoration: none;
  font-size: 1.39vw;
  /* 20px based on 1440px */
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.get-in-touch-btn:hover {
  background: #003a31;
}

/* ========== Language Switcher ========== */
.language-switcher {
  position: relative;
  z-index: 1002;
}

.language-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  pointer-events: auto;
}

.language-btn img {
  width: 2.5vw;
  /* 36px based on 1440px */
  height: 2.5vw;
  /* 36px based on 1440px */
  pointer-events: none;
}


.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 1001;
  display: none;
}

.language-dropdown.show {
  display: block;
  width: 8vw;
}


.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.69vw 1.39vw;
  /* 10px 20px based on 1440px */
  color: #666666;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  transition: background 0.3s;
  border: none;
  background: none;
  width: 100%;
  text-align: center;
  cursor: pointer;
}


.language-option:hover {
  background: #f5f5f5;
}

.language-option.active {
  background: transparent;
  color: #666666;
}

/* ========== Header Right Container ========== */
.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.7vw;
}

/* ========== Navigation Responsive ========== */
/* Navigation responsive behavior */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.39vw 0;
  flex-wrap: nowrap;
  /* 20px based on 1440px */
  flex-wrap: wrap;
  gap: 1.39vw;
  /* 20px based on 1440px */
}
