/**
 * 欧美产品详情页样式
 * 基于整站风格，融合欧美产品线视觉特征
 */

/* ========== 基础容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ========== Hero 横幅区 ========== */
.eu-detail-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
  margin-top: 0;
}

.eu-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.eu-detail-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(208, 2, 27, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.eu-detail-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.eu-detail-hero__content {
  flex: 1;
  max-width: 560px;
}

.eu-detail-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(208, 2, 27, 0.15);
  border: 1px solid rgba(208, 2, 27, 0.3);
  border-radius: 20px;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.eu-detail-hero__badge svg {
  flex-shrink: 0;
}

.eu-detail-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: 1px;
}

.eu-detail-hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin: 0 0 32px 0;
}

.eu-detail-hero__actions {
  display: flex;
  gap: 16px;
}

.eu-detail-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.eu-detail-hero__btn--primary {
  background: #D0021B;
  color: #ffffff;
}

.eu-detail-hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 2, 27, 0.4);
}

.eu-detail-hero__btn--outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.eu-detail-hero__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.eu-detail-hero__image {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.eu-detail-hero__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== 面包屑导航 ========== */
.eu-detail-breadcrumb {
  padding: 16px 0;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.eu-detail-breadcrumb .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
}

.eu-detail-breadcrumb .breadcrumb__link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.eu-detail-breadcrumb .breadcrumb__link:hover {
  color: #D0021B;
}

.eu-detail-breadcrumb .breadcrumb__current {
  color: #D0021B;
  font-weight: 500;
}

/* ========== 核心亮点条 ========== */
.eu-detail-highlights {
  padding: 48px 0;
  background: #ffffff;
}

.eu-detail-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.eu-detail-highlights__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eu-detail-highlights__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(208, 2, 27, 0.2);
}

.eu-detail-highlights__value {
  font-size: 24px;
  font-weight: 700;
  color: #D0021B;
  margin: 0 0 6px 0;
}

.eu-detail-highlights__label {
  font-size: 13px;
  color: #999;
  margin: 0;
  font-weight: 400;
}

/* ========== 产品详情主体 ========== */
.eu-detail-main {
  padding: 60px 0;
  background: #f5f5f5;
}

.eu-detail-main .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* 左侧：产品图画廊 */
.eu-detail-gallery {
  position: sticky;
  top: 100px;
}

.eu-detail-gallery__main {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 16px;
  text-align: center;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid #eee;
}

.eu-detail-gallery__main img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.eu-detail-gallery__main:hover img {
  transform: scale(1.05);
}

.eu-detail-gallery__thumbs {
  display: flex;
  gap: 12px;
}

.eu-detail-gallery__thumb {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.eu-detail-gallery__thumb:hover,
.eu-detail-gallery__thumb--active {
  border-color: #D0021B;
}

.eu-detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右侧：产品信息 */
.eu-detail-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eu-detail-info__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eu-detail-info__model {
  display: inline-block;
  padding: 4px 12px;
  background: #D0021B;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 2px;
  align-self: flex-start;
}

.eu-detail-info__name {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.eu-detail-info__desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* 规格表格 */
.eu-detail-specs {
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.eu-detail-specs__title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 20px 24px 16px;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.eu-detail-specs__table {
  width: 100%;
  border-collapse: collapse;
}

.eu-detail-specs__table tr {
  border-bottom: 1px solid #f0f0f0;
}

.eu-detail-specs__table tr:last-child {
  border-bottom: none;
}

.eu-detail-specs__table td {
  padding: 14px 24px;
  font-size: 14px;
  line-height: 1.5;
}

.eu-detail-specs__table td:first-child {
  width: 140px;
  color: #999;
  font-weight: 400;
  white-space: nowrap;
}

.eu-detail-specs__table td:last-child {
  color: #333;
  font-weight: 500;
}

/* 询价按钮 */
.eu-detail-info__cta {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

.eu-detail-info__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eu-detail-info__btn--inquiry {
  background: #D0021B;
  color: #ffffff;
  flex: 1;
}

.eu-detail-info__btn--inquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 2, 27, 0.3);
}

.eu-detail-info__btn--pdf {
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  flex: 1;
}

.eu-detail-info__btn--pdf:hover {
  border-color: #D0021B;
  color: #D0021B;
  transform: translateY(-2px);
}

/* ========== 安装说明区（复用 handle-detail 样式） ========== */
.eu-detail-installation {
  padding: 60px 0;
  background-color: #F5F5F5;
}

/* 同步骤多张图改为上下排列 */
.eu-detail-installation .handle-detail__step-images:not(.handle-detail__step-images--single) {
  grid-template-columns: 1fr;
}

/* 限定安装步骤图片高度 */
.eu-detail-installation .handle-detail__step-images--single .handle-detail__step-image,
.eu-detail-installation .handle-detail__step-images:not(.handle-detail__step-images--single) .handle-detail__step-image {
  max-height: 400px;
  overflow: hidden;
}

.eu-detail-installation .handle-detail__step-images--single .handle-detail__step-image img,
.eu-detail-installation .handle-detail__step-images:not(.handle-detail__step-images--single) .handle-detail__step-image img {
  max-height: 400px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 步骤详情文字居中显示 */
.eu-detail-installation .handle-detail__step-labels {
  display: flex;
  justify-content: center;
  text-align: center;
}

.eu-detail-installation .handle-detail__step-label {
  max-width: 800px;
}

/* ========== PDF 下载区 ========== */
.eu-detail-pdf {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.eu-detail-pdf .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.eu-detail-pdf__info {
  flex: 1;
}

.eu-detail-pdf__title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.eu-detail-pdf__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.eu-detail-pdf__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #D0021B;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.eu-detail-pdf__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 2, 27, 0.4);
}

/* ========== 相关产品区 ========== */
.eu-detail-related {
  padding: 80px 0;
  background: #ffffff;
}

.eu-detail-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.eu-detail-related__card {
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.eu-detail-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.eu-detail-related__card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ffffff;
}

.eu-detail-related__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  padding: 12px;
  box-sizing: border-box;
}

.eu-detail-related__card:hover .eu-detail-related__card-image img {
  transform: scale(1.05);
}

.eu-detail-related__card-info {
  padding: 16px;
}

.eu-detail-related__card-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}

.eu-detail-related__card-category {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* ========== Lightbox 大图弹窗 ========== */
.eu-detail-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.eu-detail-lightbox--active {
  display: flex;
}

.eu-detail-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.eu-detail-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.eu-detail-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
  .eu-detail-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .eu-detail-hero__content {
    max-width: 100%;
  }

  .eu-detail-hero__actions {
    justify-content: center;
  }

  .eu-detail-hero__image {
    max-width: 400px;
  }

  .eu-detail-highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eu-detail-main .container {
    grid-template-columns: 1fr;
  }

  .eu-detail-gallery {
    position: static;
  }

  .eu-detail-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eu-detail-pdf .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .eu-detail-hero {
    padding: 100px 0 60px;
  }

  .eu-detail-hero__title {
    font-size: 28px;
  }

  .eu-detail-highlights__grid {
    grid-template-columns: 1fr;
  }

  .eu-detail-related__grid {
    grid-template-columns: 1fr;
  }

  .eu-detail-section-title {
    font-size: 22px;
  }
}
