html {
  font-size: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

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

/* Header */
.header {
  background: white;
  box-shadow: 0 1px 3px 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: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1f2937;
}

.logo > img:first-child {
  width: 5%;
}

.logo > img:nth-child(2) {
  width: 30%;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9375rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #3b82f6;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: #3b82f6;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  background: url("https://statics.dronex.cc/officialwebsite/dronex-banner.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 4rem;
}

.qr-code {
  display: inline-block;
}

.qr-placeholder {
  margin-bottom: 0.5rem;
}

.qr-placeholder > img {
  width: 40%;
}

/* Features Section */
.features {
  padding-top: 4rem;
  padding-bottom: 1rem;
  background: #f9fafb;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3b82f6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 1.5rem;
}

.feature-card {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:hover > img:nth-child(1) {
  display: none;
}

.feature-card:hover > img:nth-child(2) {
  display: block;
}

.feature-card > img {
  width: 90%;
  height: auto;
}

.feature-card > img:nth-child(2) {
  display: none;
}

/* Management Section */
.management {
  padding-top: 4rem;
  background: #f9fafb;
}

.management-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-subtitle {
  color: #6b7280;
  font-size: 0.85rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-60%);
}

.management-diagram {
  max-width: 1140px;
  margin: 0 auto;
}

.management-diagram img {
  width: 100%;
  height: auto;
}

/* Ecosystem Section */
.ecosystem {
  padding-top: 4rem;
  background: #f9fafb;
}

.ecosystem .container {
  max-width: unset;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.ecosystem-header {
  max-width: 1200px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 3rem;
  position: relative;
}

.ecosystem-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ecosystem-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.6 / 3;
}

.ecosystem-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecosystem-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 3.3rem;
  color: white;
  transition: all 0.3s ease;
}

.ecosystem-overlay:hover {
  background: rgba(0, 0, 0, 0);
}

.ecosystem-icon {
  width: 24%;
  height: auto;
  margin-bottom: 1rem;
}

.ecosystem-title {
  font-size: 0.8rem;
  font-weight: 600;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background: url("https://statics.dronex.cc/officialwebsite/dronex-footer-bg.png");
  background-size: cover;
  background-position: center;
}

.cta-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f2937;
}

/* Footer */
.footer {
  background: #f5f5f55c;
  color: #9ca3af;
  padding: 1.6rem 0 4rem;
  font-size: 0.8rem;
}

.footer a {
  color: #9ca3af;
  text-decoration: none;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info {
  display: flex;
  margin-bottom: 0.2rem;
}

.footer-info p {
  margin-right: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: #000;
}

.footer-logo > img:first-child {
  width: 10%;
}

.footer-logo > img {
  width: 32%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: #000;
  margin-right: 1rem;
}

.footer-right {
  display: flex;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .section-subtitle {
    position: static;
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    transform: none;
    right: auto;
    top: auto;
  }
  .section-title {
    margin-bottom: 0;
  }

  .footer-info {
    flex-direction: column;
  }

  .footer .container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-title {
    font-size: 1.25rem;
  }

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

}
