#new_header {
  width: 100%;
  background: transparent;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.1s ease, box-shadow 0.3s ease;
}

#new_header.scrolled {
  background-color: #343c386a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header {
  background-color: #333;
  color: white;
}

#new_header #logo {
  display: flex;
  align-items: center;
}

#new_header #logo img {
  width: 200px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  /* max-width: 1280px; */
  margin: 0 auto;
  padding: 10px 50px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  padding: 10px 5px;
  margin: 0 10px;
  border-radius: 4px;
  transition: 0.3s;
  box-sizing: border-box;
  position: relative;
}

.nav-links a:hover {
  color: #ff6b00;
}

/* 子菜单样式 */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-color);
  list-style: none;
  padding: 10px 0;
  z-index: 1000;
}

/* 子菜单展开时 */
.submenu.open {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu a {
  padding: 10px 15px;
  width: 150px;
  display: block;
}

.nav-links li:hover .submenu {
  display: block;
}

/* 移动版弹出搜索框样式 */
.mobile-search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  position: relative;
}

.popup-content input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  outline: none;
}

.popup-content button {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #555;
}

.close-popup-area {
  display: flex;
  justify-content: space-between;
}

.close-popup-area button {
  width: 47%;
}

.close-popup {
  position: absolute;
  top: -10px;
  right: 5px;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: #000;
}

.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.mobile-search-icon {
  display: none;
  font-size: 24px;
  margin-left: 15px;
  cursor: pointer;
}

#footer {
  clear: both;
  background: var(--footer-bg-color);
  font-size: 14px;
  border-top: 4px solid var(--footer-border-color);
}

.footer-nav {
  display: flex;
  justify-content: center;
  color: #fff;
  box-sizing: border-box;
  padding-top: 20px;
  white-space: nowrap;
  flex-wrap: wrap;
}

.footer-nav span {
  margin: 5px;
}

.footer-nav a {
  color: var(--footer-link-text-color);
}

.footer-desc {
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  padding: 15px;
  max-width: 711px;
}

/* 手机屏幕支持 */
@media (max-width: 768px) {
  /* 禁用 :hover 在移动端显示子菜单 */
  .nav-links li:hover > .submenu {
    display: none; /* 覆盖掉 hover 的效果 */
  }

  /* 通过点击时添加 .open 类来显示子菜单 */
  .submenu.open {
    display: block !important; /* 使用 JavaScript 控制 .open 类的显示 */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--header-bg);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    z-index: 1000;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links a {
    padding: 10px;
  }

  .submenu {
    position: relative;
    top: 0;
    background-color: var(--submenu-bg-color);
    width: 100%;
    padding: 0;
  }

  .submenu li {
    margin-left: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .header-container {
    padding: 10px 15px;
  }

  .active a {
    background-color: initial !important;
  }

  .nav-content {
    display: flex;
    align-items: center;
  }

  .famous-nav-item {
    min-width: 90px;
  }

  .nav-links a:after {
    display: none;
  }

  #new_header {
    position: static !important;
  }
}

.main-image {
  position: relative;
  width: 100%;
  /* max-width: 1280px; */
  margin: 0 auto;
  overflow: hidden;
  height: 850px;
  background: radial-gradient(#000 0%, #000 22%, #000 44%, #000 100%);
}

.main-image .main-image-photo {
  width: 100%;
  height: auto;
}

.main-image-text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-image-text h1 {
  color: #fff;
  font-size: 38px;
  margin: 0;
  letter-spacing: 5px;
  text-align: center;
}

.main-image-text h2 {
  color: #fff;
  font-size: 16px;
  margin: 0;
  margin-top: 10px;
}

.main-join-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(
    122deg,
    rgb(0, 229, 176) 0%,
    rgb(20, 218, 155) 100%
  );
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin: 40px auto;
}

.main-join-link:hover {
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.main-join-link img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .main-image {
    height: 630px;
  }

  .main-image-text {
    width: 90%;
  }

  .main-image-text h1 {
    color: #fff;
    font-size: 23px;
    margin: 0 auto;
    letter-spacing: 2px;
    line-height: 1.4;
  }

  .main-image-text h2 {
    color: #fff;
    font-size: 12px;
    margin: 0 auto;
    margin-top: 5px;
    text-align: center;
  }

  .main-join-link {
    padding: 10px 20px;
    font-size: 14px;
    margin: 25px auto;
    margin-bottom: 10px;
  }

  .app-image img {
    width: 100%;
    height: auto;
  }

  .app-image {
    width: 90%;
    left: 60%;
  }
}

.app-image {
  background-color: transparent;
  position: absolute;
  left: 55%;
  transform: translateX(-50%);
  top: 50%;
}

.app-image img {
  width: 80%;
  height: auto;
}

.app-image img:hover {
  transform: scale(1.1);
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .app-image img {
    width: 100%;
    height: auto;
  }

  .app-image {
    width: 80%;
    left: 50%;
  }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: 28px 20px;
  box-sizing: border-box;
  min-height: 600px;
  background: radial-gradient(
    25.38% 41.96% at 3.49% 45.05%,
    #283d63 0%,
    #1d4082 22%,
    #1b1e56 44%,
    #0a0a0a 100%
  );
  &.ajdoiajo {
    flex-direction: row;
    align-items: start;

    @media (max-width: 768px) {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 390px;
      margin-bottom: 20px;
    }
  }
}

.title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 50px;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  transform: translateX(5%);
}

.feature {
  flex: 1 1 150px;
  min-width: 150px;
  position: relative;
}

.feature::after {
  content: "";
  display: block;
  width: 2px;
  height: 90%;
  background-color: #d3ffec;
  margin-top: 10px;
  position: absolute;
  top: 0;
  right: 10%;
}

.feature:last-child::after {
  display: none;
}

.feature-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.feature-subtitle {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .container {
    min-height: 390px;
    margin-bottom: 20px;
  }

  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .features {
    gap: 25px;
  }

  .feature {
    flex: 1 1 100px;
    min-width: 100px;
  }

  .feature-title {
    font-size: 2rem;
  }

  .feature-subtitle {
    font-size: 1rem;
  }
}

.ma-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 40px 5%;
  height: 500px;
  background: #000;
  max-width: 1280px;
  margin: 0 auto;
}

.ma-banner-text {
  flex: 1 1 450px;
  max-width: 600px;
}

.ma-banner-text h1 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
}

.ma-banner-text h1 .highlight {
  color: #ff6b00;
  font-weight: bold;
}

.ma-banner-text p {
  color: #fff;
  margin-top: 16px;
}

.ma-banner-buttons {
  margin-top: 24px;
}

.ma-banner-buttons a {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #ff6b00;
  background-color: transparent;
  color: #ff6b00;
  margin-right: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ma-banner-buttons a:first-child {
  background-color: #ff6b00;
  color: #fff;
}

.ma-banner-buttons button:hover {
  opacity: 0.85;
}

.ma-banner-image {
  flex: 1 1 400px;
  text-align: center;
  margin-top: 30px;
}

.ma-banner-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .ma-banner {
    text-align: center;
  }

  .ma-banner-text {
    max-width: 100%;
  }

  .ma-banner-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ma-banner-buttons button {
    margin-bottom: 12px;
    width: 200px;
  }
}
