/* ================================================================
   common.css — 公共样式
   适用所有页面：导航、页脚、全局重置、响应式
   ================================================================ */

/* ----- 全局重置 & 基础 ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}
a{ text-decoration:none;}
body {
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- 顶部导航 ----- */
.navbar {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 0 2rem;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-area img {
  height: 60px;
  width: auto;
  display: block;
  max-height: 80px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  background: transparent;
  border-radius: 0;
}
.nav-menu li::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 3px;
  background: #e00505;
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 4px;
}
.nav-menu li a{
  color: #2c3e50; text-decoration:none;
}
.nav-menu li:hover::after,
.nav-menu li.active::after {
  width: 70%;
}
.nav-menu li:hover,
.nav-menu li.active {
  color: #e00505;
  background: transparent;
  box-shadow: none;
}

.right-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f4f8;
  border-radius: 40px;
  padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  border: 1px solid #e9edf2;
  transition: all 0.2s;
}
.search-box:focus-within {
  border-color: #e00505;
  box-shadow: 0 0 0 3px rgba(224, 5, 5, 0.15);
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  width: 150px;
  color: #1e293b;
}
.search-box input::placeholder {
  color: #94a3b8;
  font-weight: 300;
}
.search-box button {
  background: #e00505;
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.search-box button:hover {
  background: #c00404;
  transform: scale(0.96);
}

/* 汉堡按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  transition: all 0.3s ease;
  position: relative;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #1e293b;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 50%; transform: translate(-50%, -50%); }
.hamburger span:nth-child(3) { bottom: 8px; top: auto; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scale(0); }
.hamburger.active span:nth-child(3) { top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 1.2rem 2rem 2rem;
  border-top: 1px solid #eef2f6;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  position: absolute;
  top: 96px;
  left: 0;
  width: 100%;
  z-index: 99;
  gap: 0.3rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.7rem 1rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: 0.15s;
  font-size: 1.05rem;
  position: relative;
  display: inline-block;
  width: fit-content;
}
.mobile-menu a::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: 4px;
  width: 0;
  height: 3px;
  background: #e00505;
  transition: width 0.25s ease;
  border-radius: 4px;
}
.mobile-menu a:hover::after,
.mobile-menu a.active::after { width: calc(100% - 2rem); }
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #e00505;
  background: transparent;
}

/* ----- Banner (公共) ----- */
.banner-slider {
  width: 100%;
  height: 600px;
  background: #d9e2ef;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.slider-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.25s;
  border: 1px solid rgba(0,0,0,0.08);
}
.slider-dots span.active-dot {
  background: #e00505;
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(224, 5, 5, 0.3);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.2s;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover { background: rgba(224, 5, 5, 0.7); }
.slider-arrow.left { left: 18px; }
.slider-arrow.right { right: 18px; }

/* ----- 公共标题样式 ----- */
.section-title-en {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.2;
}
.section-title-cn {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 2px;
}
.section-divider {
  width: 50px;
  height: 4px;
  background: #e00505;
  margin-top: 10px;
  border-radius: 2px;
}

/* ================================================================
   页脚模块 FOOTER （公共，所有页面复用）
   ================================================================ */
.footer {
  background: #1a1a1a;
  color: #cccccc;
  padding: 0;
  position: relative;
  margin-top: auto;
}

.footer-top-border {
  height: 4px;
  background: #e00505;
  width: 100%;
}

.footer-back-top {
  display: flex;
  justify-content: center;
  padding: 18px 0 10px;
}
.footer-back-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #3a3a3a;
}
.footer-back-top a:hover {
  background: #e00505;
  transform: translateY(-3px);
  border-color: #e00505;
}

.footer-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 2rem 40px;
}

/* 第一行：左侧（LOGO + 栏目） 右侧（电话） */
.footer-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333333;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
}
.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #e00505;
  transition: width 0.25s ease;
}
.footer-nav a:hover {
  color: #ffffff;
}
.footer-nav a:hover::after {
  width: 100%;
}

.footer-phone {
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}
.footer-phone .phone-label {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-bottom: 2px;
}
.footer-phone .phone-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}
.footer-phone .phone-number .phone-divider {
  color: #555;
  font-weight: 300;
  margin: 0 6px;
}
.footer-phone .phone-wechat {
  font-size: 0.75rem;
  color: #888;
  margin-left: 4px;
}

/* 第二行：左侧版权 + 右侧二维码 */
.footer-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 30px;
  padding-top: 20px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.8;
}
.footer-copyright .copyright-text { color: #bbbbbb; }
.footer-copyright .copyright-sub { color: #888; }
.footer-copyright .copyright-sub a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-copyright .copyright-sub a:hover { color: #e00505; }

.footer-qrcode { flex-shrink: 0; }
.footer-qrcode .qr-item { text-align: center; }
.footer-qrcode .qr-item .qr-placeholder {
  width: 80px;
  height: 80px;
  background: #2a2a2a;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.footer-qrcode .qr-item .qr-placeholder i { font-size: 2.4rem; color: #555; }
.footer-qrcode .qr-item .qr-label { font-size: 0.7rem; color: #999; }

/* ================================================================
   响应式（公共）
   ================================================================ */
@media (max-width: 1024px) {
  .navbar { padding: 0 1.5rem; height: 88px; }
  .logo-area img { height: 52px; }
  .search-box input { width: 110px; }
  .mobile-menu { top: 88px; }
}

@media (max-width: 820px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .banner-slider { height: 320px; }

  .section-title-en { font-size: 1.6rem; }
  .section-title-cn { font-size: 0.9rem; }

  /* 页脚响应式 */
  .footer-row-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left { align-items: center; }
  .footer-nav { justify-content: center; }
  .footer-phone { text-align: center; }
  .footer-row-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
.search-box{ display:none;}
.product-detail-sidebar{ display:none !important;}
}
@media (max-width: 520px) {
  .navbar { padding: 0 1rem; height: 76px; }
  .logo-area img { height: 44px; }
  .search-box input { width: 80px; font-size: 0.8rem; }
  .search-box { padding: 0.2rem 0.2rem 0.2rem 0.8rem; }
  .search-box button { width: 30px; height: 30px; font-size: 0.8rem; }
  .banner-slider { height: 220px; }
  .slider-arrow { width: 32px; height: 32px; font-size: 1rem; }
  .slider-arrow.left { left: 8px; }
  .slider-arrow.right { right: 8px; }
  .slider-dots span { width: 10px; height: 10px; }
  .mobile-menu { top: 76px; }

  .section-title-en { font-size: 1.3rem; }
  .section-title-cn { font-size: 0.8rem; }

  .footer-body { padding: 10px 1rem 30px; }
  .footer-logo img { height: 40px; }
  .footer-nav a { font-size: 0.8rem; gap: 6px 14px; }
  .footer-phone .phone-number { font-size: 1.1rem; }
  .footer-phone .phone-label { font-size: 0.7rem; }
  .footer-copyright { font-size: 0.7rem; }
  .footer-qrcode .qr-item .qr-placeholder { width: 64px; height: 64px; }
  .footer-qrcode .qr-item .qr-placeholder i { font-size: 2rem; }
  .footer-back-top a { width: 38px; height: 38px; font-size: 1rem; }
}



/* ===== Banner 轮播 (Swiper) ===== */
.banner-slider {
  width: 100%;
  height: 600px;
  background: #d9e2ef;
  position: relative;
  overflow: hidden;
}

.banner-slider .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.banner-slider .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.banner-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper 分页器（圆点） */
.banner-slider .swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.banner-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 !important;
  transition: all 0.3s;
}

.banner-slider .swiper-pagination .swiper-pagination-bullet-active {
  background: #e00505;
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(224, 5, 5, 0.3);
}

/* Swiper 导航按钮 */
.banner-slider .swiper-button-prev,
.banner-slider .swiper-button-next {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s;
  top: 50%;
  transform: translateY(-50%);
}

.banner-slider .swiper-button-prev::after,
.banner-slider .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.banner-slider .swiper-button-prev:hover,
.banner-slider .swiper-button-next:hover {
  background: rgba(224, 5, 5, 0.7);
}

.banner-slider .swiper-button-prev {
  left: 18px;
}

.banner-slider .swiper-button-next {
  right: 18px;
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .banner-slider {
    height: 320px;
  }
  .banner-slider .swiper-button-prev,
  .banner-slider .swiper-button-next {
    width: 36px;
    height: 36px;
  }
  .banner-slider .swiper-button-prev::after,
  .banner-slider .swiper-button-next::after {
    font-size: 14px;
  }
  .banner-slider .swiper-button-prev { left: 12px; }
  .banner-slider .swiper-button-next { right: 12px; }
}

@media (max-width: 520px) {
  .banner-slider {
    height: 220px;
  }
  .banner-slider .swiper-button-prev,
  .banner-slider .swiper-button-next {
    width: 30px;
    height: 30px;
  }
  .banner-slider .swiper-button-prev::after,
  .banner-slider .swiper-button-next::after {
    font-size: 12px;
  }
  .banner-slider .swiper-button-prev { left: 8px; }
  .banner-slider .swiper-button-next { right: 8px; }
  .banner-slider .swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
}