/* ========================================
   YOYAGE Manufacturing Page Styles
   Purpose: factory gallery, strength grid
   Loaded only on /manufacturing/index.html
   ======================================== */

/* Page hero, breadcrumb, fact rows, explore cards & CTA styles live in components.css (shared cross-page). */

/* ---------- 2. Factory Gallery ---------- */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 图片卡片化：圆角边框包围图片 + 图注 + 描述 */
.factory-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.factory-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 24, 45, 0.10);
}

.factory-item-body {
  padding: 16px 20px 20px;
}

.factory-photo {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.factory-item--wide {
  grid-column: 1 / -1;
}

.factory-photo-desc {
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: 1.6;
}

.factory-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
}

.factory-photo--wide img {
  aspect-ratio: 1200 / 560;
}

.factory-photo-caption {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-title);
}

/* ---------- 3. Strength Grid (text + stat cards) ---------- */
.mfg-strength-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mfg-strength-content .section-subtitle {
  margin-bottom: 16px;
}

.mfg-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mfg-stat-card {
  padding: 24px;
  text-align: center;
}

.mfg-stat-card:hover {
  box-shadow: var(--shadow-md);
}

.mfg-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  color: var(--color-brand);
}

.mfg-stat-icon svg {
  width: 32px;
  height: 32px;
}

.mfg-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-title);
  margin-bottom: 6px;
  line-height: 1.2;
}

.mfg-stat-desc {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

/* ---------- 4. Responsive ---------- */
@media (max-width: 991px) {
  .mfg-strength-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mfg-stats {
    max-width: 560px;
  }
}

@media (max-width: 767px) {
  .factory-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .factory-photo img,
  .factory-photo--wide img {
    aspect-ratio: 3 / 2;
  }

  .mfg-stats {
    gap: 10px;
  }

  .mfg-stat-card {
    padding: 12px 10px;
  }

  .mfg-stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .mfg-stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .mfg-stat-number {
    font-size: 20px;
  }

  .mfg-stat-desc {
    font-size: 12px;
  }
}
