/**
 * 配件产品详情页专用样式
 * 作用域：.accessories-product-detail-page
 * 依赖：product.css（基础布局）、Bootstrap、faq-blocks.css（FAQ 手风琴）
 */

.accessories-product-detail-page [id^="section-"] {
  scroll-margin-top: 5.5rem;
}

/* Hero：去全幅遮罩，固定高度（对齐 makerspace 600/400） */
.accessories-product-detail-page .accessories-detail-hero {
  min-height: 0;
  display: block;
}

.accessories-product-detail-page .accessories-detail-hero > .accessories-detail-hero-swiper,
.accessories-product-detail-page .accessories-detail-hero > .accessories-hero-figure {
  min-height: 600px;
}

.accessories-product-detail-page .accessories-detail-hero-swiper .swiper-slide,
.accessories-product-detail-page .accessories-detail-hero > .accessories-hero-figure {
  position: relative;
  min-height: 600px;
  height: 600px;
}

.accessories-product-detail-page .accessories-hero-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.accessories-product-detail-page .accessories-hero-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.accessories-product-detail-page .accessories-detail-hero .product-hero-overlay {
  display: none !important;
}

.accessories-product-detail-page .accessories-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0;
  background: none;
}

.accessories-product-detail-page .accessories-hero-caption .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero 文字用深色：周边产品板块的共用 Hero 是浅色插画（暖白底），
   白字压上去看不清，故改为深灰蓝文字 + 浅色柔光。
   若某产品日后换成深色照片主图，这里需要改回白色字。 */
.accessories-product-detail-page .accessories-hero-caption-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #3a4a52;
  padding: 0 1rem;
  max-width: 960px;
  text-shadow: none;
}

.accessories-product-detail-page .accessories-hero-caption-inner .product-hero-title,
.accessories-product-detail-page .accessories-hero-caption-inner .product-hero-subtitle {
  color: #3a4a52;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.75);
}

.accessories-product-detail-page .accessories-detail-hero-pagination {
  bottom: 0.75rem !important;
  z-index: 3;
}

.accessories-product-detail-page .accessories-detail-hero-prev,
.accessories-product-detail-page .accessories-detail-hero-next {
  color: #fff;
  z-index: 3;
}

@media (max-width: 768px) {
  .accessories-product-detail-page .accessories-detail-hero > .accessories-detail-hero-swiper,
  .accessories-product-detail-page .accessories-detail-hero > .accessories-hero-figure,
  .accessories-product-detail-page .accessories-detail-hero-swiper .swiper-slide {
    min-height: 260px;
    height: 260px;
  }

  /* 共用 Hero 插画是通栏比例且中间刻意留白，手机端 cover 恰好裁到画面正中会让整块发空。
     改为对准右侧配件簇，并把标题移到上方空白处。
     这几个值与插画构图绑定，换主图时需要一并复核。 */
  .accessories-product-detail-page .accessories-hero-img {
    object-position: 72% center;
  }

  .accessories-product-detail-page .accessories-hero-caption,
  .accessories-product-detail-page .accessories-hero-caption .container {
    align-items: flex-start;
  }

  .accessories-product-detail-page .accessories-hero-caption-inner {
    padding-top: 3rem;
  }
}

/* Sticky 导航居中 */
.accessories-product-detail-page .accessories-detail-brand-nav-list {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

@media (min-width: 769px) {
  .accessories-product-detail-page .accessories-detail-brand-nav-list .brand-nav-item {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }
}

/* 页面标题区：块居中、内文左对齐 */
.accessories-product-detail-page .accessories-detail-page-heading-wrap {
  padding: 1.25rem 0 0.5rem;
}

.accessories-product-detail-page .accessories-detail-page-intro.section-intro-text {
  text-align: left;
  max-width: 56rem;
  margin: 1rem auto 3.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary, #64748b);
}

@media (max-width: 768px) {
  .accessories-product-detail-page .accessories-detail-page-intro.section-intro-text {
    margin-bottom: 2.75rem;
    font-size: 0.9375rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
}

/* overview_card：与 deep_dive 的 .deep-dive-panel 同宽、同视觉（1200px 居中白卡） */
.accessories-product-detail-page #section-overview {
  background: #f8f9fa;
}

.accessories-product-detail-page #section-overview .product-overview-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  padding: 2.25rem 2rem;
  gap: 2.5rem;
  background: #ffffff;
  border-radius: 18px;
  border: none;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.accessories-product-detail-page #section-overview .product-overview-wrapper:last-child {
  margin-bottom: 0;
}

.accessories-product-detail-page #section-overview .product-overview-wrapper:hover {
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transform: none;
  border-color: transparent;
}

@media (max-width: 991px) {
  .accessories-product-detail-page #section-overview .product-overview-wrapper {
    padding: 2rem 1.75rem;
    gap: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .accessories-product-detail-page #section-overview .product-overview-wrapper {
    padding: 1.75rem 1.25rem;
  }
}

/* 视频区：略宽 + 16:9 + 封面播放图标 */
.accessories-product-detail-page .accessories-detail-video-list {
  max-width: 1080px;
  margin: 0 auto;
}

.accessories-product-detail-page .accessories-detail-video-item .product-media-video-wrapper,
.accessories-product-detail-page .accessories-detail-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.accessories-product-detail-page .accessories-detail-video-item .product-media-video,
.accessories-product-detail-page .accessories-detail-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.accessories-product-detail-page .accessories-detail-video-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}

.accessories-product-detail-page .accessories-detail-video-poster-overlay:hover {
  background: rgba(0, 0, 0, 0.18);
}

.accessories-product-detail-page .accessories-detail-video-poster-overlay.is-hidden {
  display: none;
}

.accessories-product-detail-page .accessories-detail-video-poster-overlay .overview-video-poster-play {
  pointer-events: none;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.accessories-product-detail-page .accessories-detail-video-item--spaced {
  margin-top: 2rem;
}

/* Showcase 描述 */
.accessories-product-detail-page .showcase-card-body {
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
}

.accessories-product-detail-page .showcase-card-title {
  text-align: center;
}

.accessories-product-detail-page .accessories-detail-showcase-desc {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary, #64748b);
}

.accessories-product-detail-page .accessories-detail-showcase-desc p:last-child {
  margin-bottom: 0;
}

/* 技术参数 */
.accessories-product-detail-page .accessories-detail-specs-enhanced {
  background: #f8f9fa;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.accessories-product-detail-page .accessories-detail-specs-panel {
  max-width: 1200px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.accessories-product-detail-page .accessories-detail-specs-panel .specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.accessories-product-detail-page .accessories-detail-specs-panel .specs-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.accessories-product-detail-page .accessories-detail-specs-panel .specs-row:nth-child(even) {
  background: #fafbfc;
}

.accessories-product-detail-page .accessories-detail-specs-panel .specs-row:hover {
  background: #f8f9fa;
  border-left-color: var(--primary-color, #ff8c42);
  transform: translateX(4px);
}

.accessories-product-detail-page .accessories-detail-specs-panel .specs-name {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #666;
  width: 40%;
  font-weight: 500;
}

.accessories-product-detail-page .accessories-detail-specs-panel .specs-value {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  color: #333;
  width: 60%;
  text-align: right;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .accessories-product-detail-page .accessories-detail-specs-panel .specs-table tbody,
  .accessories-product-detail-page .accessories-detail-specs-panel .specs-table tr,
  .accessories-product-detail-page .accessories-detail-specs-panel .specs-table th,
  .accessories-product-detail-page .accessories-detail-specs-panel .specs-table td {
    display: block;
    width: 100%;
  }

  .accessories-product-detail-page .accessories-detail-specs-panel .specs-row {
    padding: 0.75rem 0;
  }

  .accessories-product-detail-page .accessories-detail-specs-panel .specs-row:hover {
    transform: none;
    border-left-color: transparent;
  }

  .accessories-product-detail-page .accessories-detail-specs-panel .specs-name {
    padding-bottom: 0.25rem;
    text-align: left;
  }

  .accessories-product-detail-page .accessories-detail-specs-panel .specs-value {
    padding-top: 0;
    text-align: left !important;
  }
}

/* 下载区 */
.accessories-product-detail-page .accessories-detail-downloads-enhanced {
  background: linear-gradient(180deg, #fdf8f4 0%, #f6f1ec 55%, #f0ebe5 100%);
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.accessories-product-detail-page .accessories-detail-downloads-panel {
  max-width: 1200px;
}

.accessories-product-detail-page .accessories-detail-download-card--brand {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 140, 66, 0.22);
  background: #fff;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.accessories-product-detail-page .accessories-detail-download-card--brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color, #ff8c42) 0%, #ffa05a 50%, #ffb366 100%);
  pointer-events: none;
}

.accessories-product-detail-page .accessories-detail-download-card--brand:hover {
  border-color: rgba(255, 140, 66, 0.38);
  box-shadow: 0 14px 36px rgba(255, 120, 50, 0.15);
  transform: translateY(-3px);
}

.accessories-product-detail-page .accessories-detail-download-card--single {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.accessories-product-detail-page .accessories-detail-download-card__body {
  padding: 1.35rem 1.35rem 1.3rem;
}

.accessories-product-detail-page .accessories-detail-download-card__actions {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.accessories-product-detail-page .accessories-detail-download-card__title {
  font-weight: 600;
  color: var(--text-primary, #1a1a2e);
}

.accessories-product-detail-page .accessories-detail-download-card__icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 140, 66, 0.26), rgba(255, 179, 102, 0.1));
  border: 1px solid rgba(255, 140, 66, 0.32);
  color: var(--primary-color, #ff8c42);
  font-size: 1.4rem;
}

.accessories-product-detail-page .accessories-detail-download-card__badge {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--primary-dark, #c65f10) !important;
  background: rgba(255, 140, 66, 0.12) !important;
  border-color: rgba(255, 140, 66, 0.38) !important;
}

.accessories-product-detail-page .accessories-detail-download-card__cta {
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(180deg, var(--primary-color, #ff8c42) 0%, var(--primary-dark, #e87828) 100%);
  box-shadow: 0 4px 18px rgba(255, 140, 66, 0.45);
}

.accessories-product-detail-page .accessories-detail-download-card__cta:hover {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(255, 140, 66, 0.55);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .accessories-product-detail-page .accessories-detail-download-card--brand:hover {
    transform: none;
  }

  .accessories-product-detail-page .accessories-detail-download-card__cta:hover {
    transform: none;
  }
}

/* 推荐产品 */
.accessories-product-detail-page .accessories-detail-related {
  background: #f8f9fa;
}

.accessories-product-detail-page .accessories-detail-related-swiper-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 3rem;
}

.accessories-product-detail-page .accessories-detail-related-swiper {
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 10px;
  margin-top: -10px;
  padding-bottom: 3rem;
}

.accessories-product-detail-page .accessories-detail-related-swiper .swiper-slide {
  height: auto;
}

.accessories-product-detail-page .accessories-detail-related .accessory-card {
  display: flex;
  flex-direction: column;
}

.accessories-product-detail-page .accessories-detail-related-cta {
  border: none;
  border-radius: 10px;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(180deg, var(--primary-color, #ff8c42) 0%, var(--primary-dark, #e87828) 100%);
  box-shadow: 0 4px 18px rgba(255, 140, 66, 0.45);
}

.accessories-product-detail-page .accessories-detail-related-cta:hover {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(255, 140, 66, 0.55);
  transform: translateY(-1px);
}

.accessories-product-detail-page .accessories-detail-faq-wrap .section-subtitle {
  text-align: center;
  color: var(--text-secondary, #64748b);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .accessories-product-detail-page .accessories-detail-related-swiper-wrapper {
    padding: 0 1rem;
  }
}
