* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
  /* background-color: #f5f5f5; */
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo {
  /* width: 40px; */
  height: 30px;
  margin-left: -1em;
}

.header-cn {
  font-size: 20px;
  font-weight: 700;
  color: #1C4A7A;
  margin-left: 10px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px; /* Adjust this value to control the spacing */
}

.logo-group p {
  margin: 0; /* Remove default paragraph margin */
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
}

nav a:hover {
  color: #2c5aa0;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: #1C4A7A;
  border-radius: 3px;
  transition: all 0.3s ease;
}


/* Footer Section */
footer {
  background: #f8f9fa;
  padding: 50px 0 15px;
  margin-top: 50px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2vw;
  text-align: left;
}

.footer-left {
  flex: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* .logo-icon {
  width: 32px;
  height: 32px;
  color: #2c5aa0;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.icon{
    width: 16px;
    height: 16px;
    /* margin-right: 8px;
    vertical-align: middle; */
}

.ntust-logo {
  height: 30px;
  /* width: auto; */
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 1px;
}

.footer-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-item svg {
  color: #6b7280;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item span {
  color: #4b5563;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
  /* padding-top: 20px; */
  padding: 20px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto -80px;
  /* padding: 0 40px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 400px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 15px 20px;
    text-align: left;
  }

  footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
    text-align: left;
  }

  .footer-right {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    padding: 0 20px;
  }

  .contact-item {
    justify-content: center;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo-group {
    padding-left: 10px;
  }
  
  .header-logo {
    height: 20px;
  }

  .hamburger {
    display: flex;
  }

  .header-cn {
    font-size: 16px;
  }

  nav ul {
    gap: 0;
  }

  nav a {
    font-size: 14px;
    padding: 12px 20px;
  }

}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}