/* ===== 工厂展示页专属样式 ===== */

/* Lucide 图标通用样式 */
.lucide-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke-width: 2;
}

/* Hero Banner */
.factory-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/factory_images/01.jpg') center/cover no-repeat;
  overflow: hidden;
}

.factory-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(30,50,80,0.7) 100%);
}

.factory-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.factory-hero-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.factory-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.factory-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.factory-hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.factory-stat {
  text-align: center;
}

.factory-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #c9a050;
  line-height: 1.2;
}

.factory-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ===== 通用 Section ===== */
.factory-section {
  padding: 5rem 0;
}

.factory-section:nth-child(even) {
  background: #f8f7f4;
}

.factory-section:nth-child(odd) {
  background: #fff;
}

.section-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.section-icon i {
  width: 2.5rem;
  height: 2.5rem;
  color: #c9a050;
  stroke-width: 1.5;
}

/* ===== 工厂简介 ===== */
.factory-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.factory-intro-text h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 1rem;
  font-weight: 600;
}

.factory-intro-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.factory-intro-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.factory-intro-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* ===== 工厂实拍画廊 ===== */
.factory-gallery-section {
  background: #0f1720 !important;
  padding: 5rem 0;
}

.factory-gallery-section .section-header h2 {
  color: #fff;
}

.factory-gallery-section .section-header .section-desc {
  color: rgba(255,255,255,0.7);
}

.factory-gallery-section .section-icon i {
  color: #c9a050;
}

.factory-gallery-section .section-header .section-tag {
  color: #c9a050;
}

.factory-gallery {
  margin-top: 3rem;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1a2530;
}

.gallery-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 1;
}

.gallery-slide img {
  width: 60%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  width: 40%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a2530 0%, #243342 100%);
}

.gallery-caption h3 {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.gallery-caption h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #c9a050;
  border-radius: 3px;
}

.gallery-caption p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
}

/* 控制按钮 */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(201,160,80,0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-prev i,
.gallery-next i {
  width: 22px;
  height: 22px;
}

/* 计数器 */
.gallery-counter {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 缩略图 */
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.gallery-thumbs .thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 55px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.3s;
}

.gallery-thumbs .thumb.active {
  border-color: #c9a050;
  opacity: 1;
}

.gallery-thumbs .thumb:hover {
  opacity: 0.9;
}

.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 生产流程 ===== */
.factory-process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  border: 1px solid #eee;
  position: relative;
  transition: all 0.3s;
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.process-card::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a050' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translateY(-50%);
}

.process-card:last-child::after {
  display: none;
}

.process-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  background: linear-gradient(135deg, #c9a050, #a67c28);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.process-card h3 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.process-card p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* ===== 品质认证 ===== */
.factory-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.cert-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  border: 1px solid #eee;
  transition: all 0.3s;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.cert-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: #fdf8ee;
  border-radius: 50%;
}

.cert-icon i {
  width: 1.8rem;
  height: 1.8rem;
  color: #c9a050;
  stroke-width: 1.5;
}

.cert-card h3 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cert-card p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* ===== 参观预约 CTA ===== */
.factory-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1a2a3a 0%, #2c4a6a 100%);
  text-align: center;
  color: #fff;
}

.factory-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.factory-cta p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.factory-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.factory-cta-btns .btn-primary {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #c9a050, #a67c28);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(201,160,80,0.4);
}

.factory-cta-btns .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,160,80,0.5);
}

.factory-cta-btns .btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.factory-cta-btns .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .factory-intro-grid { grid-template-columns: 1fr; }
  .gallery-slide { flex-direction: column; }
  .gallery-slide img { width: 100%; height: 60%; }
  .gallery-caption { width: 100%; padding: 1.5rem; }
  .gallery-slider { aspect-ratio: 4/3; }
  .factory-process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-card::after { display: none; }
  .factory-cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .factory-hero { min-height: 60vh; }
  .factory-hero-stats { gap: 1.5rem; }
  .factory-stat-num { font-size: 1.5rem; }
  .gallery-slider { aspect-ratio: 3/4; }
  .gallery-slide img { height: 50%; }
  .gallery-caption h3 { font-size: 1.2rem; }
  .gallery-caption p { font-size: 0.88rem; }
  .gallery-thumbs .thumb { width: 60px; height: 42px; }
  .factory-process-steps { grid-template-columns: repeat(2, 1fr); }
  .factory-cert-grid { grid-template-columns: 1fr; }
  .factory-cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .factory-process-steps { grid-template-columns: 1fr; }
  .factory-hero-stats { gap: 1rem; }
  .gallery-prev, .gallery-next { width: 36px; height: 36px; }
  .gallery-caption { padding: 1.2rem; }
}
