
/* ===== Aozhong Main Applications Section ===== */
.az-mainapp-section {
  width: 100%;
  padding: 40px 20px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.az-mainapp-container {
  max-width: 1180px;
  margin: 0 auto;
}

.az-mainapp-head {
  max-width: 900px;
  margin-bottom: 46px;
}

.az-mainapp-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #cf1f2e;
}

.az-mainapp-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  color: #101820;
}

.az-mainapp-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #5f6b76;
}

/* Grid */
.az-mainapp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Card */
.az-mainapp-card {
  position: relative;
  min-height: 360px;
  padding: 32px 28px 28px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(16,24,32,0.08);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(16,24,32,0.08);
  box-sizing: border-box;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.az-mainapp-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(207,31,46,0.30);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(16,24,32,0.16);
  z-index: 5;
}

/* Featured Card */
.az-mainapp-featured {
  background:
    linear-gradient(145deg, rgba(16,24,32,0.97), rgba(31,43,54,0.97)),
    radial-gradient(circle at top right, rgba(207,31,46,0.30), transparent 42%);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(16,24,32,0.22);
}

.az-mainapp-featured:hover {
  transform: translateY(-5px) scale(1.015);
  background:
    linear-gradient(145deg, rgba(16,24,32,0.97), rgba(31,43,54,0.97)),
    radial-gradient(circle at top right, rgba(207,31,46,0.34), transparent 42%);
}

/* Text */
.az-mainapp-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #cf1f2e;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 800;
}

.az-mainapp-featured .az-mainapp-label,
.az-mainapp-featured:hover .az-mainapp-label {
  color: rgba(255,255,255,0.72);
}

.az-mainapp-card h3 {
  margin: 0 0 18px;
  color: #101820;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 850;
}

.az-mainapp-featured h3,
.az-mainapp-featured:hover h3 {
  color: #ffffff;
}

/* List */
.az-mainapp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.az-mainapp-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(16,24,32,0.08);
  color: #5f6b76;
  font-size: 15px;
  line-height: 1.45;
}

.az-mainapp-list li:last-child {
  border-bottom: none;
}

.az-mainapp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  background: #cf1f2e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(207,31,46,0.10);
}

.az-mainapp-featured .az-mainapp-list li,
.az-mainapp-featured:hover .az-mainapp-list li {
  color: rgba(255,255,255,0.82);
  border-bottom-color: rgba(255,255,255,0.12);
}

.az-mainapp-featured .az-mainapp-list li::before {
  box-shadow: 0 0 0 5px rgba(207,31,46,0.22);
}

/* Entrance Animation */
.az-mainapp-card {
  opacity: 0;
  transform: translateY(24px);
  animation: azMainAppFadeUp 0.75s ease forwards;
}

.az-mainapp-card:nth-child(1) { animation-delay: 0.05s; }
.az-mainapp-card:nth-child(2) { animation-delay: 0.15s; }
.az-mainapp-card:nth-child(3) { animation-delay: 0.25s; }
.az-mainapp-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes azMainAppFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .az-mainapp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .az-mainapp-card {
    min-height: 320px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .az-mainapp-section {
    padding: 40px 16px;
  }

  .az-mainapp-head {
    margin-bottom: 32px;
  }

  .az-mainapp-head p {
    font-size: 15.5px;
  }

  .az-mainapp-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .az-mainapp-card {
    min-height: auto;
    border-radius: 20px;
    padding: 28px 22px;
  }

  .az-mainapp-card h3 {
    font-size: 20px;
  }

  .az-mainapp-list li {
    font-size: 15px;
  }

  .az-mainapp-card:hover {
    transform: translateY(-5px) scale(1.015);
  }

  .az-mainapp-featured:hover {
    transform: translateY(-4px) scale(1.01);
  }
}
