/* 全局重置：极简版 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
/* 头部顶部容器 */
.header-top {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  gap: 12px;
  width: 100%;
}
/* LOGO与描述：核心优化-基线对齐+强制两行+整体右移 */
.header-left-wrapper {
  padding-left: 10px;
  /* 整体右移10px */
}
.header-left {
  display: flex;
  align-items: baseline;
  /* 基线对齐 */
  gap: 16px;
  padding-left: 3vw;
  flex-shrink: 0;
  max-width: 70%;
  /* 精准控制父容器宽度，避免描述过宽 */
}
.logo-h1 {
  font-size: 36px;
  font-weight: 700;
  color: #ff3300;
  letter-spacing: 2px;
  line-height: 1;
}
/* 描述文字：强制两行完整显示（核心优化） */
.discribe-p {
  font-size: 16px;
  color: #666;
  max-width: 45em;
  /* 精确计算：16px*1.6*2行=51.2px高度，宽度460px刚好让文字拆分为两行 */
  min-width: 30em;
  min-height: 52px;
  /* 固定高度=字体大小×行高×2，避免抖动 */
  height: 52px;
  /* 强制高度，超出部分隐藏（确保无三行） */
  line-height: 1.6;
  /* 行高适中，两行文字无重叠 */
  font-weight: 400;
  word-wrap: break-word;
  /* 强制英文单词拆分，确保内容不溢出 */
  white-space: normal;
  /* 允许自动换行 */
  overflow: hidden;
  /* 仅隐藏超出两行的部分（实际不会触发，因宽度已精准控制） */
  margin: 0;
}
/* 右侧功能区：保持原有优化 */
.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 12px;
  margin-right: 3vw;
  flex-shrink: 1;
  min-width: 280px;
  /* 最小宽度兜底，不挤压左侧 */
}
/* 搜索框：保持固定高度与多语言图标对齐 */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
}
.search-input {
  width: 220px;
  /* 固定宽度，不抢占左侧空间 */
  height: 100%;
  padding: 0 14px 0 34px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  line-height: 1;
}
.search-input:focus {
  border-color: #0f304a;
}
.search-icon,
.search-loading {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  z-index: 2;
  cursor: pointer;
}
.search-icon {
  color: #666;
}
.search-loading {
  color: #0f304a;
  display: none;
  animation: rotate 0.8s linear infinite;
}
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  display: none;
  z-index: 2;
  font-size: 13px;
}
.search-clear.show {
  display: block;
}
@keyframes rotate {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
/* 新增：多语言下拉核心样式 - 无圆角、与原有布局对齐 */
.lang-dropdown {
  position: relative;
  display: inline-block;
  height: 36px;
  /* 与原有contact-link同高，保持对齐 */
  flex-shrink: 0;
}
/* 下拉触发按钮 - 无圆角、等高对齐 */
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f304a;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
  line-height: 1;
  height: 100%;
  padding: 0 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.lang-dropdown-toggle:hover {
  color: #ff3300;
}
.lang-dropdown-toggle i {
  font-size: 20px;
  flex-shrink: 0;
}
.lang-arrow {
  font-size: 12px !important;
  /* 下拉箭头小一号 */
}
/* 下拉菜单 - 无圆角、阴影、绝对定位 */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* 与原有dropdown阴影一致 */
  width: 160px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  display: none;
  z-index: 9999;
}
/* 下拉菜单项 - 无圆角、hover样式 */
.lang-dropdown-item {
  line-height: 1.2;
}
.lang-dropdown-link {
  display: block;
  padding: 10px 12px;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}
.lang-dropdown-link:hover {
  color: #ff3300;
  background: #f5f5f5;
  /* hover浅背景，无圆角 */
}
/* 下拉菜单显示状态 */
.lang-dropdown.open .lang-dropdown-menu {
  display: block;
}
/* 桌面端导航：80%均分+核心样式 */
.nav-bar {
  background: #607574;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  width: 80%;
}
.nav-item {
  flex: 1;
  position: static;
}
.nav-link {
  display: block;
  text-align: center;
  padding: 14px 22px;
  color: #fff;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #DAB88B;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #f7c530;
  opacity: 0;
  transition: all 0.3s ease;
}
.nav-item.active .nav-link::after {
  opacity: 1;
}
.nav-item:hover .nav-link::after {
  opacity: 1;
}
.nav-list:hover .nav-item.active .nav-link::after {
  opacity: 0;
}
.nav-list .nav-item.active:hover .nav-link::after {
  opacity: 1;
}
/* 下拉菜单：保留核心样式，精简冗余 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 25px;
  min-height: 350px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dropdown-col h4 {
  font-size: 16px;
  color: #0f304a;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.dropdown-col h5 {
  font-size: 15px;
  color: #333;
  margin: 10px 0 5px;
  text-transform: uppercase;
}
.dropdown-col a {
  color: #333;
  font-size: 15px;
  transition: color 0.2s ease;
}
.dropdown-col a:hover {
  color: #ff3300;
  text-decoration: underline;
}
/* 下拉图片区域 */
.dropdown-img-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dropdown-img {
  position: relative;
  width: 100%;
}
.dropdown-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 280px;
}
.dropdown-img-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}
.dropdown-img-text small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.dropdown-img-text h3 {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.shop-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #DAB88B;
  color: #0f304a;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.shop-btn:hover {
  background: #607574;
  color: #fff;
}
/* 移动端汉堡菜单 */
.hamburger {
  display: none;
  font-size: 24px;
  color: #0f304a;
  cursor: pointer;
}
/* 移动端侧边导航+遮罩 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}
.mobile-nav-overlay.open {
  display: block;
}
/* 移动端导航头部 */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.mobile-nav-header i {
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
/* 移动端导航列表 */
.mobile-nav-item {
  border-bottom: 1px solid #eee;
}
.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}
.mobile-nav-link i {
  transition: transform 0.3s;
}
.mobile-nav-item.active .mobile-nav-link i {
  transform: rotate(45deg);
}
/* 移动端子菜单 */
.mobile-submenu-link {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: #333;
  font-size: 16px;
}
.mobile-submenu-link i {
  transition: transform 0.3s;
}
.mobile-submenu-item.active .mobile-submenu-link i {
  transform: rotate(45deg);
}
.mobile-submenu,
.mobile-submenu-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav-item.active .mobile-submenu {
  max-height: 3000px;
}
.mobile-submenu-item.active .mobile-submenu-sub {
  max-height: 1500px;
}
.mobile-submenu-sub a {
  display: block;
  padding: 18px 20px;
  color: #333;
  font-size: 16px;
  transition: color 0.2s ease;
}
.mobile-submenu-sub a:hover {
  color: #ff3300;
  text-decoration: underline;
}
/* 移动端Banner */
.mobile-banner-item {
  position: relative;
  margin: 12px 20px;
  overflow: hidden;
}
.mobile-banner-item img {
  width: 100%;
  display: block;
}
.mobile-banner-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  width: 90%;
}
.mobile-banner-text small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mobile-banner-text h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* 关键适配：992-1376px 区间专属样式 */
@media (min-width: 992px) and (max-width: 1376px) {
  .header-left {
    padding-left: 2vw;
    gap: 12px;
    max-width: 63%;
  }
  .discribe-p {
    max-width: 410px;
    /* 适配区间精准调整宽度，仍保持两行 */
    font-size: 15px;
    line-height: 1.5;
    min-height: 48px;
    height: 48px;
  }
  .header-right {
    margin-right: 2vw;
    min-width: 260px;
  }
  .search-input {
    width: 200px;
  }
}
/* 小屏适配（991px以下）：描述文字隐藏，保持原有样式 */
@media (max-width: 991px) {
  .nav-bar {
    display: none;
  }
  .header-top {
    display: grid;
    grid-template-columns: 6fr 4fr;
    padding: 15px 20px;
    gap: 15px;
  }
  .header-left-wrapper {
    display: flex;
    align-items: center;
    gap: 2em;
    padding-left: 0;
    /* 小屏取消右移 */
  }
  .header-left {
    padding-left: 0;
    align-items: center;
    gap: 12px;
    max-width: unset;
  }
  .logo-h1 {
    font-size: 24px;
    color: #0f304a;
    letter-spacing: 1px;
  }
  .discribe-p {
    display: none;
  }
  .header-right {
    margin: 0;
    justify-content: flex-end;
    gap: 8px;
    padding-left: 10px;
    min-width: unset;
  }
  .search-box {
    width: 100%;
    height: 34px;
  }
  .search-input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 32px;
  }
  .search-icon {
    left: 10px;
  }
  .search-clear {
    right: 10px;
  }
  /* 多语言移动端适配 */
  .lang-dropdown {
    height: 34px;
  }
  .lang-dropdown-toggle {
    font-size: 12px;
    padding: 0 4px;
  }
  .lang-dropdown-toggle span {
    display: none;
    /* 移动端隐藏文字，只留图标 */
  }
  .lang-dropdown-toggle i {
    font-size: 22px !important;
  }
  .lang-arrow {
    display: none !important;
    /* 移动端隐藏下拉箭头 */
  }
  .hamburger {
    display: block;
  }
  .mobile-nav {
    display: block;
  }
}
/* 手机竖屏适配（480px以下） */
@media (max-width: 480px) {
  .header-top {
    padding: 12px 15px;
    gap: 10px;
  }
  .header-left-wrapper {
    gap: 1.5em;
  }
  .logo-h1 {
    font-size: 20px;
  }
  .search-box {
    height: 32px;
  }
  .search-input {
    height: 100%;
    padding: 0 10px 0 30px;
    font-size: 13px;
  }
  /* 多语言竖屏适配 */
  .lang-dropdown {
    height: 32px;
  }
  .header-right {
    gap: 6px;
    padding-left: 15px;
  }
}
