/* 头部基础样式 */
.header-wrapper,
.logo-container,
.nav-item a {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 现代化扁平导航栏 */
.modern-header {
  background-color: #121212;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1000;
  /* border-bottom: 1px solid #2a2a2a; */
}

/* 修改整体头部布局 */
.header-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 5px 10px 5px 15px;
  max-width: 1400px;
  margin: 0 auto;
}

/* LOGO区域样式 - 将logo作为背景图实现 */
.logo-container {
  flex: 0 0 250px;
  max-width: 250px;
  min-width: 250px;
  height: 70px;
  padding: 0;
  margin-left: 0;
  position: relative;
}

.logo-container a {
  position: relative;
  top:2px;
  display: block;
  width:200px;
  height: 100%;
  /* width: 100%;
  */
  background: url('/images/logo.webp') no-repeat;
  background-position: left center;
  background-size: cover;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* 隐藏原来的img标签 */
.logo-image {
  display: none !important;
}

/* 导航和用户操作区域 */
.nav-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 30px;
  padding-left: 0;
}

/* 主导航菜单 */
.main-navigation {
  margin-right: 20px;
  display: block !important;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 8px;
  position: relative;
}

.nav-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item a:hover {
  color: #ff3030;
}

.nav-item.active a {
  color: #ff3030;
}

.nav-item.active a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff3030;
}

/* 用户操作区域 */
.user-actions {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.auth-btn {
  display: inline-block;
  padding: 7px 16px;
  margin-left: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.3s ease;
}

.register-btn {
  background-color: #ff3030;
  color: #ffffff;
}

.login-btn {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.register-btn:hover {
  background-color: #ff0000;
  transform: translateY(-2px);
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.user-link {
  font-weight: bold;
  margin-right: 15px;
  text-decoration: none;
}

.logout-btn {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
}

.user-link:hover,
.logout-btn:hover {
  text-decoration: underline;
}

/* 移动菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* 超级强化版Logo样式 - 移除冲突样式 */
header .logo-container,
.logo-container,
.logo_section,
.col-xl-3.col-lg-3.col-md-3.col-sm-3.col.logo_section,
.full,
.center-desk,
header .logo,
.center-desk .logo,
.full .logo {
  min-width: 250px !important;
  max-width: 250px !important;
  width: auto !important;
  height: 70px !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

header .logo img,
.logo img,
.logo-image,
.center-desk .logo img,
.logo_section .logo img,
img[src*="logo"] {
  min-width: auto !important;
  max-width: none !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  transform: scale(0.9) !important;
  transform-origin: left center !important;
  margin: 5px 0 5px 15px !important;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2)) !important;
}

header .auth-btn {
  padding: 7px 16px !important;
  font-size: 13px !important;
}

.nav-container,
.col-xl-9.col-lg-9.col-md-9.col-sm-9,
nav.main-menu,
.main-navigation {
  padding-left: 0 !important;
  margin-left: 20px !important;
}

@media (max-width: 992px) {
  .nav-item {
    margin: 0 6px;
  }

  .nav-item a {
    font-size: 13px;
  }

  .auth-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .logo-container,
  header .logo-container,
  .logo_section,
  .col-xl-3.col-lg-3.col-md-3.col-sm-3.col.logo_section {
    min-width: 220px !important;
    max-width: 220px !important;
    height: 60px !important;
  }

  header .logo img,
  .logo img,
  .logo-image,
  .center-desk .logo img,
  .logo_section .logo img,
  img[src*="logo"] {
    transform: scale(0.85) !important;
  }

  .nav-container {
    margin-left: 20px;
  }
  
  .nav-container,
  .col-xl-9.col-lg-9.col-md-9.col-sm-9,
  nav.main-menu,
  .main-navigation {
    margin-left: 15px !important;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 10px;
    align-items: flex-start;
    position: relative;
  }

  .logo-container,
  header .logo-container,
  .logo_section,
  .col-xl-3.col-lg-3.col-md-3.col-sm-3.col.logo_section {
    min-width: 180px !important;
    max-width: 180px !important;
    height: 50px !important;
    margin-left: 0 !important;
  }

  header .logo img,
  .logo img,
  .logo-image,
  .center-desk .logo img,
  .logo_section .logo img,
  img[src*="logo"] {
    transform: scale(0.8) !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    position: absolute;
    right: 10px;
    top: 18px;
    z-index: 1100;
  }

  .nav-container {
    margin-left: 0;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.95);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-container.active {
    max-height: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .main-navigation {
    width: 100%;
    margin: 0;
    margin-left: 0 !important;
  }
  
  .nav-container,
  .col-xl-9.col-lg-9.col-md-9.col-sm-9,
  nav.main-menu {
    margin-left: 0 !important;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item a {
    padding: 15px 20px;
  }

  .user-actions {
    width: 100%;
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .welcome-text {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .nav-container {
    position: static !important;
    max-height: none !important;
    background: none !important;
    box-shadow: none !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .user-actions {
    border-top: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
  }
}

.user-link,
.logout-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.user-link {
  background-color: #2a3041;
  color: #4fc3f7 !important;
  border: 1px solid #4fc3f7;
  margin-right: 10px;
}

.user-link:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  text-decoration: none;
}

.logout-btn {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.logout-btn:hover {
  background-color: rgba(231, 76, 60, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

@media (max-width: 768px) {
  .user-link,
  .logout-btn {
    padding: 5px 12px;
    font-size: 12px;
    margin: 5px;
  }

  .user-actions {
    justify-content: center;
  }
  
  .auth-btn {
    margin: 5px;
    width: 45%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .user-link,
  .logout-btn {
    padding: 4px 10px;
    font-size: 12px;
    width: 45%;
    text-align: center;
    margin: 5px 2px;
  }
  
  .auth-btn {
    padding: 4px 10px;
    font-size: 12px;
    width: 45%;
    text-align: center;
    margin: 5px 2px;
  }
}
.custom-topbar {
  width: 100%;
  background: #1a2746; /* 深蓝色冷色调 */
  /* border-bottom: 0.25px solid #fff; */
  box-shadow: 0 1px 6px rgba(30, 60, 120, 0.08);
  position: relative;
  z-index: 2000;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  height: 38px;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.08) inset;
}
.topbar-menu-btn {
  background: none;
  border: none;
  padding: 0 10px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 28px;
  cursor: pointer;
  margin-right: 8px;
}
.topbar-menu-btn span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: linear-gradient(90deg, #e0e6ed 0%, #b0b8c1 100%);
  margin: 2.5px 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px #fff8, 0 -1px 2px #0004;
  transition: all 0.2s;
}
.topbar-icons {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 14px;
}
.topbar-icon {
  font-size: 18px;
  color: #e0e6ed;
  background: linear-gradient(145deg, #3a4654 60%, #7a8ca3 100%);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px #fff3 inset, 0 2px 8px #0002;
  border: 1px solid #bfc9d1;
  transition: background 0.2s, box-shadow 0.2s;
}
.topbar-icon:hover {
  background: linear-gradient(145deg, #bfc9d1 0%, #7a8ca3 100%);
  color: #232a34;
  box-shadow: 0 2px 8px #fff6 inset, 0 2px 8px #0003;
}
@media (max-width: 600px) {
  .topbar-inner {
    padding: 0 4px;
    height: 32px;
  }
  .topbar-menu-btn span {
    width: 14px;
    height: 2px;
  }
  .topbar-icon {
    width: 22px;
    height: 22px;
    font-size: 14px;
    gap: 7px;
  }
}
