/** 全局的样式 */
@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --font-family: 'Poppins', sans-serif;
  --title-font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-color);
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1500px;
}

/** 全局标题动画效果 */
.animated-title {
  display: inline-block;
  font-size: 48px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  display: inline-flex;
  flex-wrap: wrap;
  opacity: 0;
}

.animated-title div {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.animated-title span, 
.animated-title div > * {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  transition: none;
  margin: 0 0.1em;
}

.animated-title .title-highlight {
  color: var(--color-primary);
}

/* 大标题响应式字体 */

@media (max-width: 1440px) {
  .animated-title {
    font-size: 46px;
  }
}

@media (max-width: 1200px) {
  .animated-title {
    font-size: 44px;
  }
}

@media (max-width: 992px) {
  .animated-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .animated-title {
    font-size: 36px;
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  .animated-title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 28px;
    line-height: 1.4;
  }
}

@media (max-width: 375px) {
  .animated-title {
    font-size: 24px;
  }
}




/* 头部固定 */
.head-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgb(0,0,0,0.7);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 移动端头部 */
.baichen-mobile-header {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.baichen-mobile-header .right-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.mobile-logo img {
  height: 40px;
}

.menu-trigger i,
.menu-trigger, .search-trigger i,
.menu-trigger, .search-trigger {
  font-size: 24px;
  color: #000;
  cursor: pointer;
}

/* 移动端菜单 */
.baichen-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.baichen-mobile-menu.active {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.menu-header img {
  height: 40px;
}

.close-menu {
  font-size: 20px;
  cursor: pointer;
}

.menu-list {
  padding: 20px 0;
}

.menu-list li {
  position: relative;
}

.menu-list li a {
  display: block;
  padding: 15px 20px;
  color: #000;
  text-decoration: none;
}

.menu-list li.active > a {
  color: var(--color-primary);
}

.submenu-trigger {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 16px;
  transition: transform 0.3s;
}

.submenu-trigger.active {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  background: #f8f8f8;
}

.submenu li a {
  padding-left: 40px;
}

/* 搜索遮罩 */
.baichen-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.search-container {
  width: 80%;
  max-width: 600px;
  position: relative;
  transform: scale(0.8) translateY(30px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.baichen-search-overlay.active .search-container {
  transform: scale(1) translateY(0);
}

.search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.search-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.search-input {
  flex: 1;
  padding: 20px 30px;
  border: none;
  font-size: 18px;
  background: transparent;
  outline: none;
  font-family: var(--font-family);
  color: #fff;
}

.search-input::placeholder {
  color: #999;
  font-size: 16px;
}

.search-button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: var(--btn-hover);
  transform: scale(1.05);
}

.search-button i {
  font-size: 30px;
}

.close-search {
  position: absolute;
  top: -60px;
  right: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.baichen-search-overlay.active .close-search {
  transform: scale(1);
}

.close-search:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* 桌面端头部 */
.baichen-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.baichen-header .header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.baichen-header .logo img {
  height: 72px;
}

.baichen-header .main-nav ul {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.baichen-header .main-nav li {
  position: relative;
  display: flex;
  align-items: center;
}

/* 主导航下拉箭头 */
.baichen-header .main-nav > ul > li > i {
  font-size: 12px;
  color: #000;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.baichen-header .main-nav > ul > li:hover > i {
  transform: rotate(180deg);
}

/* 子菜单箭头 */
.baichen-header .main-nav li ul li i {
  font-size: 12px;
  color: #666;
  margin-left: 5px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.baichen-header .main-nav li a {
  color: #000;
  text-decoration: none;
  font-size: 21px;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.baichen-header .main-nav li.active > a,
.baichen-header .main-nav li a:hover {
  color: var(--color-primary);
}

/* 一级下拉菜单 */
.baichen-header .main-nav > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  flex-direction: column;
  gap: 0 !important;
}

.baichen-header .main-nav > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 二级下拉菜单 */
.baichen-header .main-nav li ul li > ul {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 10px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  gap: 0 !important;
  flex-direction: column;
}

.baichen-header .main-nav li ul li:hover > ul {
  opacity: 1;
  visibility: visible;
}

/* 下拉菜单项样式 */
.baichen-header .main-nav li ul li {
  position: relative;
  display: block;
}

.baichen-header .main-nav li ul li a {
  display: block;
  padding: 8px 15px;
  font-weight: 400;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.baichen-header .main-nav li ul li a:hover {
  background-color: #f8f9fa;
  color: var(--color-primary);
  padding-left: 20px;
}

/* 三级菜单项样式 */
.baichen-header .main-nav li ul li ul li a {
  padding: 6px 15px;
  font-size: 13px;
}

.baichen-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.baichen-header .header-right .language-selector {
  color: #fff;
}

/* 桌面端搜索框 */
.baichen-header .search-trigger.desktop {
  cursor: pointer;
  color: #fff;
  transition: color 0.3s;
}

.baichen-header .search-trigger.desktop i {
  font-size: 26px;
  color: #000;
}

.baichen-header .search-trigger.desktop:hover {
  color: var(--color-primary);
}

@media (max-width: 1200px) {
  .baichen-header .main-nav ul {
    gap: 20px;
  }
}

/* 响应式设计 */
@media (max-width: 992px) {
  .baichen-header {
    display: none;
  }
  
  .baichen-mobile-header {
    display: block;
  }
  
  body {
    padding-top: 70px;
  }
}

/* 移动端搜索框响应式调整 */
@media (max-width: 768px) {
  .search-container {
    width: 90%;
    transform: scale(0.9) translateY(20px);
  }
  
  .baichen-search-overlay.active .search-container {
    transform: scale(1) translateY(0);
  }
  
  .search-input {
    padding: 18px 25px;
    font-size: 16px;
  }
  
  .search-button {
    padding: 0 24px;
  }

  .search-button i {
    font-size: 24px;
  }
  
  .close-search {
    top: -50px;
    font-size: 24px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .search-container {
    width: 95%;
  }
  
  .search-input {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .search-button {
    padding: 0 20px;
  }
  
  .search-button i {
    font-size: 18px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

/* 搜索动画关键帧 */
@keyframes searchPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.search-button:active {
  animation: searchPulse 0.3s ease;
} 