/* ============================================
   欧美产品列表页面样式
   ============================================ */

/* Hero Banner - 参考 video-list-hero 风格 */
.eu-products-hero {
  position: relative;
  width: 100%;
  height: 267px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.eu-products-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
}

.eu-products-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.eu-products-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: euFadeInUp 0.8s ease-out;
}

@keyframes euFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eu-products-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.eu-products-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.1em;
}

/* 产品主体区域 */
.eu-products-main {
  padding: 40px 0 80px;
  background-color: #f7f8fa;
}

.eu-products-main__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ========== 左侧分类侧栏 ========== */
.eu-products-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.eu-products-sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.eu-products-sidebar__icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.eu-products-sidebar__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.02em;
}

.eu-products-sidebar__nav {
  padding: 8px 0;
}

.eu-products-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.eu-products-sidebar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #D0021B;
  border-radius: 0 3px 3px 0;
  transition: height 0.25s ease;
}

.eu-products-sidebar__item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f5f5f5;
  color: #888;
  font-size: 12px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.eu-products-sidebar__item-text {
  flex: 1;
  transition: color 0.25s ease;
}

.eu-products-sidebar__item-arrow {
  font-size: 10px;
  color: #ccc;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateX(-4px);
}

.eu-products-sidebar__item:hover {
  color: #D0021B;
  background: rgba(208, 2, 27, 0.03);
}

.eu-products-sidebar__item:hover .eu-products-sidebar__item-icon {
  background: rgba(208, 2, 27, 0.08);
  color: #D0021B;
}

.eu-products-sidebar__item:hover .eu-products-sidebar__item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #D0021B;
}

.eu-products-sidebar__item--active {
  color: #D0021B;
  background: rgba(208, 2, 27, 0.05);
  font-weight: 600;
}

.eu-products-sidebar__item--active::before {
  height: 60%;
}

.eu-products-sidebar__item--active .eu-products-sidebar__item-icon {
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
  color: #fff;
}

.eu-products-sidebar__item--active .eu-products-sidebar__item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #D0021B;
}

/* ========== 右侧产品内容区 ========== */
.eu-products-content {
  flex: 1;
  min-width: 0;
}

/* ========== 产品列表网格 ========== */
.eu-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* ========== 产品卡片 ========== */
.eu-product-card {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eu-product-card:hover {
  transform: translateY(-4px);
}

/* 产品主图区域 */
.eu-product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f5f5f5;
  border: 1px solid #eee;
}

.eu-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.eu-product-card:hover .eu-product-card__image img {
  transform: scale(1.05);
}

/* 放大图标 */
.eu-product-card__zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.eu-product-card:hover .eu-product-card__zoom-icon {
  opacity: 1;
}

/* 卡片底部：缩略图 + 询价按钮 */
.eu-product-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

/* 缩略图区域 */
.eu-product-card__thumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.eu-product-card__thumb img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  padding: 2px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.eu-product-card__thumb img:hover,
.eu-product-card__thumb img.eu-product-card__thumb-img--active {
  border-color: #D0021B;
}

/* 规格标签 */
.eu-product-card__spec {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  padding: 2px 6px;
  white-space: nowrap;
}

/* 询价按钮 */
.eu-product-card__inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  background: transparent;
  border: 1px solid #2563eb;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.eu-product-card__inquiry:hover {
  background: #2563eb;
  color: #ffffff;
}

/* 产品名称 */
.eu-product-card__name {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  margin: 4px 0 0;
  line-height: 1.5;
  word-break: break-all;
}

/* ========== 分页组件 ========== */
.eu-products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.eu-products-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.eu-products-pagination__btn:hover:not(.eu-products-pagination__btn--disabled) {
  border-color: #D0021B;
  color: #D0021B;
  background: rgba(208, 2, 27, 0.04);
}

.eu-products-pagination__btn--active {
  background: #D0021B;
  color: #ffffff;
  border-color: #D0021B;
}

.eu-products-pagination__btn--active:hover {
  background: #b8011a;
  color: #ffffff;
  border-color: #b8011a;
}

.eu-products-pagination__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== Lightbox 图片放大弹窗 ========== */
.eu-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.eu-lightbox--active {
  opacity: 1;
  visibility: visible;
}

.eu-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.eu-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.eu-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.eu-lightbox--active .eu-lightbox__img {
  transform: scale(1);
}

.eu-lightbox__close {
  position: absolute;
  top: -40px;
  right: -10px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.eu-lightbox__close:hover {
  transform: scale(1.2);
}

/* ========== 响应式适配 ========== */

/* 平板 */
@media (max-width: 960px) {
  .eu-products-hero {
    height: 220px;
    padding-top: 60px;
  }

  .eu-products-hero__title {
    font-size: 32px;
  }

  .eu-products-main {
    padding: 30px 0 60px;
  }

  .eu-products-main__container {
    flex-direction: column;
  }

  .eu-products-sidebar {
    width: 100%;
    position: static;
    border-radius: 10px;
  }

  .eu-products-sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 4px;
  }

  .eu-products-sidebar__item {
    width: auto;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
  }

  .eu-products-sidebar__item::before {
    display: none;
  }

  .eu-products-sidebar__item-arrow {
    display: none;
  }

  .eu-products-sidebar__item-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .eu-products-sidebar__item--active {
    background: #D0021B;
    color: #fff;
  }

  .eu-products-sidebar__item--active .eu-products-sidebar__item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .eu-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* 手机横屏 / 小平板 */
@media (max-width: 640px) {
  .eu-products-hero {
    height: 180px;
    padding-top: 50px;
  }

  .eu-products-hero__title {
    font-size: 26px;
  }

  .eu-products-hero__subtitle {
    font-size: 14px;
  }

  .eu-products-sidebar__header {
    padding: 14px 16px 10px;
  }

  .eu-products-sidebar__title {
    font-size: 14px;
  }

  .eu-products-sidebar__nav {
    padding: 6px 10px;
  }

  .eu-products-sidebar__item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .eu-products-sidebar__item-icon {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .eu-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .eu-product-card__inquiry {
    padding: 4px 10px;
    font-size: 12px;
  }

  .eu-product-card__thumb img {
    width: 32px;
    height: 32px;
  }
}
