/* ============================================
   factory.css - 厂区车间独立样式
   ============================================ */

.factory-section {
  padding: 0.5rem 0 0.6rem;
}

/* 厂区轮播 */
.factory-showcase {
  margin-bottom: 0.5rem;
}


.pagecf-banner {
  position: relative;
  width: 100%;
  max-width: 1920px;   /* ✅ 不超过原图宽度，防止放大模糊 */
  margin: 0 auto;       /* ✅ 大屏居中 */

  /* ✅ 核心：用 padding-top 锁定 1920:370 比例 */
  height: 0;
  padding-top: 20.677%;  /* 370 / 1920 * 100% */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}


.pagecf2-banner {
  position: relative;
  width: 100%;
  max-width: 1920px;   /* ✅ 不超过原图宽度，防止放大模糊 */
  margin: 0 auto;       /* ✅ 大屏居中 */

  /* ✅ 核心：用 padding-top 锁定 1920:370 比例 */
  height: 0;
  padding-top: 20.677%;  /* 370 / 1920 * 100% */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}




.pagecf3-banner {
  position: relative;
  width: 100%;
  max-width: 1400px;   /* ✅ 不超过原图宽度，防止放大模糊 */
  margin: 0 auto;       /* ✅ 大屏居中 */

  /* ✅ 核心：用 padding-top 锁定 1920:370 比例 */
  height: 0;
  padding-top: 20.677%;  /* 370 / 1920 * 100% */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}



/* ❌ 删除原来的 .factory-thumb-item.active 规则 */
/* ✅ 改用 Swiper 官方激活态类名 */
.factory-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1 !important;
    border-color: #063f87 !important;
    box-shadow: 0 2px 10px rgba(6, 63, 135, 0.25) !important;
}

/* 缩略图基础样式 */
.factory-thumb-item {
    width: 120px !important;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}
 


.factory-showcase .factory-main-swiper {
  width: 100%;
  height: 5.5rem;
  border-radius: 0.08rem;
  overflow: hidden;
  margin-bottom: 0.15rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.factory-main-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
}

.factory-thumbs-row {
  display: flex;
  gap: 0.1rem;
  overflow-x: auto;
  padding-bottom: 0.06rem;
}

.factory-thumbs-row::-webkit-scrollbar { height: 3px; }
.factory-thumbs-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }



.factory-thumb-item.active,
.factory-thumb-item:hover {
  border-color: #f5b400;
}

/* 厂区介绍 */
.factory-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.factory-intro.reverse .factory-intro-text { order: 2; }
.factory-intro.reverse .factory-intro-img { order: 1; }

.factory-intro-img {
  border-radius: 0.08rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.factory-intro-img img {
  width: 100%;
  height: 3.2rem;
  object-fit: cover;
}

.factory-intro-text h2 {
  font-size: 0.26rem;
  color: #1a3a5c;
  font-weight: 800;
  margin-bottom: 0.12rem;
  padding-left: 0.1rem;
  border-left: 3px solid #f5b400;
}

.factory-intro-text p {
  font-size: 0.15rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0.1rem;
}

.factory-intro-text ul {
  padding-left: 0;
}

.factory-intro-text ul li {
  list-style: none;
  padding: 0.04rem 0;
  font-size: 0.14rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.06rem;
}

.factory-intro-text ul li i {
  color: #f5b400;
  font-size: 0.14rem;
}

/* 厂区数据 */
.factory-data {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
  border-radius: 0.08rem;
  padding: 0.4rem 0.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.factory-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
}

.factory-data-item {
  text-align: center;
  padding: 0.1rem;
}

.factory-data-item .data-num {
  font-size: 0.42rem;
  font-weight: 900;
  color: #f5b400;
  line-height: 1.1;
  margin-bottom: 0.04rem;
}

.factory-data-item .data-label {
  font-size: 0.14rem;
  opacity: 0.85;
}

/* 来访路线 */
.factory-route {
  background: #f7f8fa;
  border-radius: 0.08rem;
  padding: 0.35rem 0.3rem;
}

.factory-route h2 {
  font-size: 0.24rem;
  color: #1a3a5c;
  font-weight: 800;
  margin-bottom: 0.2rem;
  text-align: center;
}

.factory-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.18rem;
}

.factory-route-card {
  background: #fff;
  border-radius: 0.06rem;
  padding: 0.2rem;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s;
}

.factory-route-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.factory-route-card i {
  font-size: 0.28rem;
  color: #f5b400;
  margin-bottom: 0.08rem;
  display: block;
}

.factory-route-card h4 {
  font-size: 0.15rem;
  color: #1a3a5c;
  margin-bottom: 0.04rem;
}

.factory-route-card p {
  font-size: 0.13rem;
  color: #888;
  line-height: 1.6;
}

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
  .factory-data-grid { grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }
}

@media (max-width: 1024px) {
  .factory-showcase .factory-main-swiper { height: 4rem; }
  .factory-intro { grid-template-columns: 1fr; gap: 0.2rem; }
  .factory-intro.reverse .factory-intro-text { order: 1; }
  .factory-intro.reverse .factory-intro-img { order: 2; }
  .factory-route-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .factory-showcase .factory-main-swiper { height: 2.8rem; }
  .factory-thumb-item { width: 1.4rem; height: 0.9rem; }
  .factory-data-grid { grid-template-columns: repeat(2, 1fr); gap: 0.15rem; }
  .factory-data-item .data-num { font-size: 0.3rem; }
  .factory-route-grid { grid-template-columns: 1fr; }
  .factory-intro-img img { height: 2.4rem; }
}

@media (max-width: 480px) {
  .factory-data-grid { grid-template-columns: 1fr; }
}
