/* 基本样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: auto;
}

body::-webkit-scrollbar {
  display: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background-color: #1a1615;
  max-width: 1200px;
  width: 90%;
  height: 80px;
  border-radius: 100px;
  margin-top: 56px;
  margin-left: auto;
  margin-right: auto;
}

.logo img {
  width: 70px;
  height: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  margin-left: 20px;
  font-size: 20px;
  font-weight: 500;
}

.nav-links a.active {
  color: #00c853;
  position: relative;
}

.nav-links a.active::before {
  position: absolute;
  content: "";
  left: 50%;
  transform: translateX(-50%);
  bottom: -26px;
  width: 80px;
  height: 4px;
  background: #1db250;
  border-radius: 4px;
}

.main-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 55px 20px 120px 20px;
  position: relative;
  overflow: hidden;
}

.main-img {
  max-width: 1687px;
  width: 90%;
  max-height: 923px;
  height: auto;
  z-index: 100;
  margin-bottom: 70px;
}

.bg-box {
  position: absolute;
  bottom: 10%;
  right: -10%;
  z-index: 10;
  max-width: 60%;
  opacity: 0.9;
}

.bg-box img {
  width: 100%;
  height: auto;
}

.main-list {
  max-width: 1200px;
  width: 100%;
  min-height: 290px;
  height: auto;
  display: flex;
  gap: 24px;
  z-index: 100;
}

.main-item {
  flex: 1;
  height: 100%;
  background: #ecf4e9;
  border-radius: 30px;
  padding: 37px 21px;
  display: flex;
  flex-direction: column;
  color: #1f4842;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.main-item img {
  width: 46px;
  height: 46px;
}

.main-item h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 20px 0;
}

.main-item span {
  margin-bottom: 6px;
}

.main-item:hover {
  color: #fff;
  background: #21bb05;
}

.footer {
  width: 100%;
  background-color: #1a1a1a;
  color: #fff;
  padding: 95px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  width: 90%;
}

@media (max-width: 1200px) {
  .main-img {
    margin-bottom: 50px;
  }

  .main-item h2 {
    font-size: 20px;
  }

  .main-item {
    font-size: 14px;
  }

  .nav-links a {
    font-size: 18px;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 80px;
  }

  .main-list {
    flex-direction: column;
    gap: 20px;
  }

  .main-item {
    height: auto;
    min-height: 200px;
  }

  .bg-box {
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .footer-links {
    gap: 60px;
  }

  .link-column {
    gap: 30px;
  }

  .nav-links a {
    font-size: 16px;
  }

  .main-img {
    margin-bottom: 40px;
  }

  .main-item h2 {
    font-size: 18px;
  }

  .main-item {
    font-size: 13px;
  }

  .bg-box {
    max-width: 40%;
  }
}

@media (max-width: 576px) {
  .navbar {
    width: 95%;
    padding: 0 20px;
  }

  .nav-links a {
    font-size: 14px;
    margin-left: 10px;
  }

  .main-img {
    margin-bottom: 30px;
  }

  .main-item h2 {
    font-size: 16px;
  }

  .main-item {
    font-size: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .bg-box {
    display: none;
  }
}

.footer-container::before {
  position: absolute;
  bottom: -58px;
  content: "";
  width: 100%;
  height: 1px;
  background: #282d53;
}

.footer-logo-section {
  max-width: 350px;
}

.footer-logo {
  width: 70px;
  height: 40px;
  margin-bottom: 20px;
}

.footer-logo-section p {
  font-size: 20px;
  color: #dfdfdf;
  line-height: 28px;
  font-family: "Manrope";
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 58px;
}

.link-column h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: "Manrope";
}

.link-column a {
  display: block;
  text-decoration: none;
  color: #aaa;
  font-size: 24px;
  font-weight: 500;
  font-family: "Manrope";
}

.link-column a:hover {
  color: #fff;
}
