.site-header .header-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  max-width: 1552px;
  margin: 0 auto;
  color: #fff;
  height: 84px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, .35) */
}

.index-header {
  background-color: transparent;
  backdrop-filter: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-height {
  height: 84px;
}

.header-logo {
  height: 32px;
  display: block;
}

/* 首页logo样式 - 无背景颜色 */

.header-logo.index-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 10%;
}

.header-nav .nav-item {
  color: #cfc8d9;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 6px;
  position: relative;
}

.header-nav .nav-item.active {
  color: #fff;
}

.header-nav .nav-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 4px;
  width: 24px;
  background: #fff;
  border-radius: 5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

/* 搜索框样式 */
.search-container {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: #3c3c3c;
  border-radius: 999px;
  padding: 0 12px;
  width: 113px;
  height: 36px;
  transition: width 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.search-box.expanded {
  width: 308px;
}

.search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  margin-left: 8px;
  padding: 0;
  width: 100%;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.clear-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-left: 8px;
}

.clear-icon:hover {
  opacity: 1;
}

.icon-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.icon-btn img {
  height: 17px;
  display: block;
}

#btn-notify img {
  width: 20px;
  height: 20px;
  display: block;
}

#btn-lang {
  padding: 8px 16px;
  background: #3c3c3c;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-sizing: border-box;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

#btn-lang img {
  height: 20px;
  display: block;
}

.btn-login {
  background: linear-gradient(98.36deg, #FC01F6 -35.91%, #4F00FF 91.35%);
  color: #fff;
  border-radius: 30px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  font-weight: 600;
  font-size: 14px;
}

.btn-login img {
  height: 6px;
  margin-left: 5px;
}

.user-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-wrap {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  padding-right: 8px;
  border-radius: 18px;
  background: #3C3C3C;
  cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.08s ease;
  box-sizing: border-box;
  justify-content: flex-start;
}

.user-wrap:focus {
  outline: none;
}

.avatar-header {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 24px;
}

.user-name {
  color: #fff;
  font-size: 14px;
  line-height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 2px 0 8px;
  flex: 1 1 auto;
  text-align: left;
}

.open-box {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex: 0 0 28px;
  transform: rotate(180deg);
}
#user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.open-icon {
  width: 8px;
  height: 7px;
  display: block;
  object-fit: contain;
  transition: transform 0.12s ease;
  transform-origin: 50% 50%;
  transform: rotate(0deg);
}

.user-wrap.active .open-icon {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  z-index: 2000;
  background: #151515;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  padding: 8px 6px;
  min-width: 140px;
  font-size: 15px;
  overflow: hidden;
  transform-origin: top left;
  user-select: none;
  border: 1px solid rgba(68, 68, 68, 1);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #151515;
}

.dropdown .dropdown-item {
  cursor: pointer;
  color: #d7d2df;
  border-radius: 6px;
  white-space: nowrap;
}

.dropdown .dropdown-item:not(:last-child) {
  margin-bottom: 8px;
}

.dropdown.user-dropdown .dropdown-item:not(:last-child):hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.dropdown.lang-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.dropdown.lang-dropdown {
  min-width: 140px;
  padding: 10px 6px;
}

.dropdown.lang-dropdown .dropdown-item {
  font-size: 18px;
  padding: 8px 10px;
}

.dropdown.user-dropdown {
  min-width: 220px;
  padding: 16px;
  border-radius: 10px;
}

.dropdown.user-dropdown .dropdown-item {
  font-size: 18px;
  padding: 8px 5px;
}

.dropdown.user-dropdown .logout-btn {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.dropdown-item.login_out_btn {
  background: rgba(60, 60, 60, 1);
  text-align: center;
}

@media (max-width: 1552px) {
  .header-banner {
    padding: 8px 12px !important;
  }
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-header .hab-btn {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.mobile-header .logo_m {
  height: 24px;
  width: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.mobile-header .btn {
  background: #6e5cfa;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-header .btn:hover {
  background: #8b5cf6;
  transform: translateY(-1px);
}

.mobile-header .user {
  display: flex;
  align-items: center;
}

.mobile-header .user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-header .user .tra {
  width: 12px;
  height: 12px;
}

.header-pc {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
  .header-pc {
    display: none;
  }
  /* 为移动端头部留出空间 */
  body {
    padding-top: 48px;
  }
  .pc-height {
    height: 48px;
  }
  .header-right {
    gap: 8px !important;
   
  }
  .header-right .search-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(----8, #3C3C3C);
    border-radius: 12px;
  }
  .header-right .search-container img {
    width: 16px;
    height: 16px;
  }

}

.footer-container {
  width: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  color: #afafaf;
  padding: 48px 0 58px;
}

/* 首页footer透明背景 */

.footer-container.index-footer {
  background-color: transparent !important;
}

.footer-content {
  width: min(100%, 1552px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content-left {
  width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-content-left-desc {
  font-size: 14px;
  line-height: 20px;
}

.footer-content-left-logo {
  display: flex;
  align-items: center;
  height: 24px;
}

.footer-content-left-logo img {
  width: auto;
  height: 100%;
}

.footer-content-right {
  display: flex;
  flex: 1;
  gap: 40px;
  justify-content: flex-end;
}

.footer-content-right-item {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-content-right-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.footer-content-right-link-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-content-right-link-list {
  display: flex;
  gap: 16px;
}

.footer-content-right-link-list img {
  width: 24px;
  height: 24px;
  background: #242424;
  border-radius: 50%;
}

.footer-content-right-link-list span {
  font-size: 14px;
  color: #afafaf;
}

.footer-content-right-link-list a {
  text-decoration: none;
  font-size: 14px;
  color: #afafaf;
}

.footer-content-right-link-list a:hover span {
  color: #fff;
}

.footer-content-right-link-list a:hover {
  color: #fff;
}

.footer-content-right-link-list .item {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-content-left {
    margin-bottom: 48px;
    width: 100%;
  }
  .footer-content-right {
    display: grid;
    align-items: flex-start;
    grid-template-columns: 1fr 1fr;
  }
  .footer-content-right-item {
    width: 100%;
  }
}

@media (max-width: 1552px) {
  .footer-container {
    padding: 48px 16px 58px;
  }
}

/* H5 搜索弹窗样式 */
.mobile-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-search-modal.show {
  display: block;
  opacity: 1;
}

.mobile-search-content {
  width: 100%;
  height: 100%;
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #000;
}

.mobile-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #3c3c3c;
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
}

.mobile-search-input-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

.mobile-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  margin-left: 8px;
  padding: 0;
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-clear-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  margin-left: 8px;
}

.mobile-search-cancel {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

/* H5 搜索页面顶部搜索框 */
.mobile-header .search-container {
  display: flex;
  align-items: center;
}

.mobile-header .search-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.9;
}

.mobile-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-page-mobile-header {
  display: none;
}

/* 搜索页面移动端顶部搜索框 */
@media (max-width: 768px) {
  .search-page-mobile-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #000;
    gap: 12px;
  }
  
  .search-page-mobile-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #3c3c3c;
    border-radius: 8px;
    padding: 0 12px;
    height: 36px;
  }
  
  .search-page-mobile-input-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
  }
  
  .search-page-mobile-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    margin-left: 8px;
    padding: 0;
  }
  
  .search-page-mobile-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .search-page-mobile-clear-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    margin-left: 8px;
  }
  
  .search-page-mobile-cancel {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
  }
}
