/* 产品详情页样式 */

/* 面包屑导航 */
.breadcrumb-container {
  background: #f8f9fa;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0 60px;
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .separator {
  margin: 0 10px;
  color: var(--color-text-light);
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

/* 产品导航箭头 */
.breadcrumb-container .container {
  position: relative;
}

.product-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.product-nav-arrow {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.product-nav-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.product-nav-prev {
  margin-left: 0;
}

.product-nav-next {
  margin-right: 0;
}

/* 产品详情区域 */
.product-detail-section {
  padding: var(--spacing-2xl) 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: var(--spacing-2xl);
}

/* 产品图片展示区 */
.product-gallery {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.main-image-container {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.main-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav.prev {
  left: 15px;
}

.gallery-nav.next {
  right: 15px;
}

.gallery-nav svg {
  color: var(--color-text);
}

/* 缩略图导航 */
.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumbnail {
  width: 100%;
  height: auto;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.thumbnail:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--color-primary);
}

/* 产品信息区 */
.product-info-area {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

.product-features {
  background: #f8f9fa;
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.6;
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 16px;
}

.features-list li:last-child {
  margin-bottom: 0;
}

/* 产品操作按钮 */
.product-actions {
  margin: var(--spacing-lg) 0;
}

.btn-large {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
}

/* 社交分享 */
.product-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.product-share span {
  font-weight: 600;
  color: var(--color-text);
}

.share-btn {
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* 产品标签页 */
.product-tabs {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
}

.tab-navigation {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--spacing-xl);
}

.tab-btn {
  padding: 15px 30px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content-container {
  min-height: 400px;
  width: 100%;
  max-width: 100%;
}

/* Blader Overview 特殊处理 - 移除容器限制（兼容方案）*/
div[data-tab="overview"] .detailed-description {
  overflow-x: hidden;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 详细描述区域 */
.detailed-description {
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
}

.detailed-description h2,
.detailed-description h3 {
  color: var(--color-text);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.detailed-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--spacing-lg) 0;
}

.detailed-description ul,
.detailed-description ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.detailed-description li {
  margin-bottom: 8px;
}

/* Blader Overview 特殊布局样式 - 覆盖默认样式 */
.detailed-description .blader-overview {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  font-size: initial !important;
}

.detailed-description .blader-overview img {
  border-radius: 0 !important;
  display: block !important;
}

/* 不覆盖内联样式 - 让position: absolute等生效 */

/* Hunter Overview 特殊布局样式 */
.hunter-overview {
  line-height: normal;
  font-size: initial;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}

.hunter-overview .overview-section {
  margin: 0;
  padding: 0;
}

.hunter-overview .overview-section img {
  margin: 0;
  border-radius: 0;
  display: block;
}

.hunter-overview .overview-section p {
  margin: 0;
  padding: 0;
  line-height: normal;
}

/* 视频容器 */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 手册下载 */
.brochure-download {
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.brochure-download h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.brochure-download .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brochure-download .btn svg {
  width: 20px;
  height: 20px;
}

/* 询价表单区域 */
.contact-form-section {
  background: #f8f9fa;
  padding: var(--spacing-2xl);
  border-radius: 8px;
  margin-top: var(--spacing-2xl);
}

.contact-form-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

.quote-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
}

/* 相关产品推荐 */
.related-products-section {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 2px solid var(--color-border);
}

.related-products-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
  font-size: 2rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .product-detail-title {
    font-size: 1.75rem;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    font-size: 12px;
  }

  .breadcrumb .current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }

  .thumbnail-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tab-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 13px;
  }

  .product-share {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .product-detail-section {
    padding: var(--spacing-lg) 0;
  }

  .breadcrumb .current {
    max-width: 150px;
  }

  .gallery-nav {
    width: 35px;
    height: 35px;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .thumbnail-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-large {
    padding: 12px 30px;
    font-size: 14px;
  }

  .contact-form-section {
    padding: var(--spacing-lg);
  }
}

/* ===== 图片放大功能 ===== */

/* 放大按钮 */
.enlarge-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enlarge-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.enlarge-btn svg {
  flex-shrink: 0;
}

.enlarge-btn span {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Lightbox 模态框 */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .enlarge-btn span {
    display: none;
  }

  .enlarge-btn {
    padding: 10px;
    bottom: 10px;
    right: 10px;
  }

  .image-lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/* ==========================================
   Hunter Overview 专用样式
   ========================================== */

/* 重置 detailed-description 对 hunter-overview 的影响 */
.detailed-description .hunter-overview {
  line-height: normal !important;
  font-size: initial !important;
}

/* Hunter Overview 容器样式 - 匹配 aegishut.net 的 1600px 容器 */
.hunter-overview {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
}

/* Section 容器样式 */
.hunter-overview .overview-section {
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

/* 图片样式重置 */
.hunter-overview .overview-section img {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

/* 文字样式重置 */
.hunter-overview .overview-section p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
}

/* 表单提交消息 */
.form-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
