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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1a202c;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #1f3a4d 0%,
    #2c5871 35%,
    #2e5e57 60%,
    #355c3a 78%,
    #4a7a3f 100%
  );
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Background carousel ---------- */
.bg-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  width: max-content;
  height: 100%;
  z-index: 0;
  will-change: transform;
}

.bg-slide {
  flex: 0 0 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: 1;
  pointer-events: none;
}

.top-bar,
.cards,
.copyright {
  position: relative;
  z-index: 2;
}

/* ---------- Top bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  z-index: 10;
}

.logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.nav-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  gap: 18px;
}

.nav-link {
  color: #1a202c;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #2c5871;
}

.sep {
  width: 1px;
  height: 16px;
  background: #cbd5e0;
}

/* ---------- Cards ---------- */
.cards {
  flex: 1;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 48px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  flex: 1 1 0;
  max-width: 200px;
  min-width: 150px;
  aspect-ratio: 1 / 1.05;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6e8eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg {
  display: block;
}

.label {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
}

/* ---------- Footer ---------- */
.copyright {
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0.92;
  padding: 18px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .top-bar {
    padding: 20px 24px;
  }
  .logo {
    font-size: 18px;
  }
  .nav-pill {
    padding: 10px 18px;
    gap: 12px;
  }
  .nav-link {
    font-size: 14px;
  }
  .cards {
    gap: 16px;
    max-width: 560px;
    padding: 32px 24px;
  }
  .card {
    flex: 0 1 calc(33.333% - 12px);
    max-width: none;
    min-width: 120px;
  }
  .icon-circle {
    width: 60px;
    height: 60px;
  }
  .icon-circle svg {
    width: 30px;
    height: 30px;
  }
  .label {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .card {
    flex: 0 1 calc(50% - 8px);
  }
}
