/* ===========================
   LUBEMAX 工厂展示页面样式
   配色：白色主背景 + 深灰导航 + 金黄色强调色(#d4a017) + 深色底部统计栏
   =========================== */

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── 通用容器 ─── */
.container {
  width: min(100% - 64px, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* ===========================
   导航栏
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  flex-shrink: 0;
  margin-right: 32px;
}

.logo-name {
  display: block;
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo-tagline {
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
@media (min-width: 1024px) {
  .logo-tagline { font-size: 0.8rem; }
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #d4a017;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #d4a017;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 右侧控件 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.lang-btn,
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #888;
  transition: color 0.2s;
}

.lang-btn:hover,
.search-btn:hover {
  color: #333;
}

.search-btn svg,
.lang-btn svg {
  width: 18px;
  height: 18px;
}

/* ===========================
   Banner 区域
   =========================== */
.banner {
  position: relative;
  background: #2d2d3d;
  overflow: hidden;
  margin-top: var(--site-header-height);
}

.banner-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3a4a;
}

.banner-bg .placeholder-icon {
  opacity: 0.15;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
}

.banner-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgb(0, 0, 0), rgba(18, 18, 20, 0.9), rgba(26, 26, 46, 0));
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 64px 0 60px;
}

.banner-content h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.banner-content p {
  font-size: 17px;
  color: #c0c0c8;
  margin-bottom: 28px;
  font-weight: 300;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
}

.breadcrumb a {
  color: #999;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  display: flex;
  align-items: center;
}

.breadcrumb .sep svg {
  width: 14px;
  height: 14px;
  color: #666;
}

.breadcrumb .current {
  color: #ddd;
}

/* ===========================
   生产与品质保障
   =========================== */
.production-section {
  padding: 72px 0;
  background: #f9f9f9;
}

.production-grid {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* 左侧 */
.production-left {
  width: 100%;
  min-width: 0;
}

.production-left h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.production-left .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 四宫格 */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e0e0e0;
  margin-top: 32px;
}

.quality-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
}

.quality-item:nth-child(1),
.quality-item:nth-child(2) {
  border-bottom: 1px solid #e0e0e0;
}

.quality-item:nth-child(1),
.quality-item:nth-child(3) {
  border-right: 1px solid #e0e0e0;
}

.quality-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.quality-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quality-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.quality-item span {
  font-size: 12px;
  color: #999;
}

/* 右侧图片网格 */
.production-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  min-width: 0;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.image-card {
  cursor: default;
}

.image-card .img-wrapper {
  overflow: hidden;
  background: #e8e8e8;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
}

.image-card:hover .img-wrapper .placeholder-icon {
  transform: scale(1.05);
  transition: transform 0.5s;
}

.image-card .img-wrapper .placeholder-icon {
  transition: transform 0.5s;
}

.image-card .card-label {
  margin-top: 12px;
}

.image-card .card-label h4 {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.image-card .card-label .underline {
  width: 32px;
  height: 3px;
  background: #d4a017;
  margin-top: 8px;
}

/* ===========================
   底部统计栏
   =========================== */
.stats-bar {
  background: #1a1a2e;
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  color: #d4a017;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #d4a017;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

/* ===========================
   占位图标通用
   =========================== */
.placeholder-icon {
  color: #ccc;
  opacity: 0.4;
}

/* ===========================
   滚动渐入动画
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   响应式
   =========================== */
@media (max-width: 1024px) {
  .production-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 15px;
  }

  .image-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 26px;
  }

  .lang-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .banner-overlay {
    background-size: auto;
  }

  .container {
    width: calc(100% - 32px);
  }

  .image-row {
    grid-template-columns: 1fr;
  }

  .banner-content {
    padding: 40px 0;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .production-section {
    padding: 48px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
