/* Quality assurance page */

.qa-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0c1438;
}

.qa-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/质量保障/矩形 628 拷贝 2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.qa-hero .container {
  position: relative;
  z-index: 1;
  padding: 88px 24px 80px;
}

.qa-hero-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.qa-hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  max-width: 640px;
}

/* Quality commitment */
.qa-commitment {
  padding: 88px 0 96px;
  background: #ffffff;
  text-align: center;
}

.qa-commitment h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
}

.qa-commitment-lead {
  max-width: 900px;
  margin: 0 auto 48px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
}

.qa-commit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.qa-commit-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 28px 24px 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.qa-commit-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #2a3182;
  margin-bottom: 20px;
  position: relative;
}

.qa-commit-icon img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  mix-blend-mode: screen;
}

.qa-commit-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
  line-height: 1.35;
}

.qa-commit-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* Inspection equipment */
.qa-inspection {
  padding: 88px 0 96px;
  background: #f7f6fb;
}

.qa-inspection-top {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.qa-inspection-top h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

.qa-inspection-intro {
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 28px;
}

.qa-inspection-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.qa-inspection-stats .qa-stat-value {
  font-size: 30px;
  font-weight: 600;
  color: #313695;
  line-height: 1.2;
  margin-bottom: 8px;
}

.qa-stat-label {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.qa-inspection-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.qa-inspection-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

/* Quality process timeline */
.qa-process {
  padding: 88px 0 96px;
  background: #ffffff;
}

.qa-process-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.qa-process-intro h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
  line-height: 1.2;
}

.qa-process-intro p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
}

.qa-timeline {
  position: relative;
  padding-left: 28px;
}

.qa-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: #e2e8f0;
}

.qa-timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.qa-timeline-item:last-child {
  padding-bottom: 0;
}

.qa-timeline-dot {
  position: absolute;
  left: -22px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #313695;
  box-shadow: 0 0 0 4px #ffffff;
  z-index: 2;
}

.qa-timeline-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #ffffff;
}

.qa-timeline-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #d4daf0;
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.qa-timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qa-timeline-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.qa-timeline-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #313695;
  margin-bottom: 8px;
  line-height: 1.35;
}

.qa-timeline-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* Certifications carousel */
.qa-certs {
  padding: 80px 0 96px;
  background: #f7f6fb;
}

.qa-certs h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #111111;
  margin-bottom: 32px;
}

.qa-certs-slider {
  position: relative;
  padding: 0 56px;
}

.qa-certs-viewport {
  overflow: hidden;
}

.qa-certs-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

.qa-certs-item {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
}

.qa-certs-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8ecf2;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.qa-certs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.qa-certs-nav--prev {
  left: 0;
}

.qa-certs-nav--next {
  right: 0;
}

.qa-certs-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .qa-commit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qa-inspection-top,
  .qa-process-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .qa-inspection-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .qa-certs-item {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .qa-commit-grid,
  .qa-inspection-gallery {
    grid-template-columns: 1fr;
  }

  .qa-inspection-stats {
    grid-template-columns: 1fr;
  }

  .qa-certs-item {
    flex: 0 0 100%;
  }

  .qa-timeline-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
