/* CCL12 产品详情页样式 */

:root {
  --detail-bg: #ffffff;
  --detail-gray: #f3f3f3;
  --detail-purple: #7a49ff;
  --text-dark: #111;
  --text-gray: #333;
  --text-light-gray: #666;
  --border-color: #e5e5e5;
}

body {
  font-family: "Montserrat","Space Grotesk", "Microsoft YaHei", sans-serif;
}

/* 通用容器 - 注意：不要覆盖 Bootstrap 的 .container，只在特定上下文中使用 */
.tab-panel .container,
.detail-hero .container,
.detail-tabs .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  padding-top:30px;
  padding-bottom:30px;
}

.detail-hero .container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: #fff;
  border-radius: 12px;
}

.detail-tabs .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* 面包屑 */
.detail-breadcrumb {
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.detail-breadcrumb .container {
  max-width: 1100px;
  margin-left: 280px;
  /* 与导航栏logo对齐 */
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.detail-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0.75rem 0;
  background: transparent;
}

.detail-breadcrumb .breadcrumb-item a {
  color: #222;
}

.detail-breadcrumb .breadcrumb-item.active {
  color: var(--text-light-gray);
}

.detail-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: rgba(0, 0, 0, 0.45);
}

/* Hero区域 */
.detail-hero {
  background: #fff;
  padding: 2rem 0 2.5rem;
}

.detail-hero .container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid.with-thumbs {
  grid-template-columns: 80px 1fr 1fr;
  align-items: start;
  gap: 1.5rem;
}

.thumbs-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-left: calc(-1.5rem - 15px - 100px);
}

.thumb-item {
  width: 64px;
  height: 64px;
  padding: 6px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-item.active {
  border-color: #000;
  box-shadow: 0 0 0 2px #000 inset;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 8px;
  width: 500px;
  height: 500px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  margin-right: 50px;
}

.hero-media img {
  width: 1200px;
  height: 1200px;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform, transform-origin;
}

.hero-info {
  color: var(--text-dark);
}

.hero-title {
  font-size: clamp(1.4rem, 3.2vw, 2.0rem);
  font-weight: 500;
  margin: 0 0 0.25rem;
  color: var(--text-dark) !important;
}

.hero-sub {
  color: #444;
  margin: 0 0 0.75rem;
}

.hero-bullets {
  color: var(--text-gray);
  margin: 0 0 1rem;
}

.hero-bullets li {
  margin-bottom: 0.25rem;
}

.btn-cta {
  background: var(--text-dark);
  border-radius: 24px;
  padding: 0.5rem 1.25rem;
  border: none;
}

.btn-cta:hover {
  opacity: 0.92;
}

.btn-cta2 {
  background: var(--text-dark);
  border-radius: 24px;
  padding: 0.5rem 1.25rem;
  border: none; color:#fff;
}

.btn-cta2:hover {
  opacity: 0.92;
}

/* Tabs导航 */
.detail-tabs {
  background: var(--surface-1);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  /* 允许横向滚动 */
  -webkit-overflow-scrolling: touch;
  /* 平滑滚动 */
  scrollbar-width: none;
  /* Firefox隐藏滚动条 */
}

.detail-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari隐藏滚动条 */
}

.tabs {
  display: flex;
  justify-content: center;
  /* 默认居中 */
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  /* 增加左右内边距 */
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  /* 防止换行 */
  min-width: min-content;
  /* 确保内容宽度 */
}

/* 移动端调整 */
@media (max-width: 768px) {
  .tabs {
    justify-content: space-between;
    /* 平均分布标签 */
    gap: 0.25rem;
    padding: 0.3rem 0.4rem;
    flex-wrap: nowrap;
    /* 强制单行显示 */
  }

  .tabs li {
    flex: 1 1 auto;
    padding: 0.3rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
}

.tabs li {
  flex: 0 0 auto;
  text-align: center;
  cursor: default;
  padding: 0.5rem 1rem;
  transition: background .2s ease, color .2s ease;
}

.tabs li:hover {
  color: #fff;
}

.tabs li.active {
  color: #fff;
  font-weight: 600;
  background: var(--detail-purple);
  border-radius: 4px;
  margin: 0;
}

.detail-tabs.tabs-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.tabs-fixed .container {
  padding-left: 0;
  padding-right: 0;
}

/* 移除容器内边距以便全宽滚动 */

.tabs-spacer {
  height: 0;
}

.tabs-fixed+.tabs-spacer {
  height: 52px;
}

/* 面板内容 */
.detail-main {
  background: var(--detail-bg);
}

.tab-panel {
  display: none;
  background: var(--detail-bg);
  position: relative;
  z-index: 1;
  min-height: 400px; color:#333;
}

.tab-panel.active {
  display: block;
}

/* 技术参数 */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.specs-table th,
.specs-table td {
  border-bottom: 1px solid #eee;
  padding: 10px 12px;
  color: var(--text-dark);
}

.specs-table th {
  width: 28%;
  font-weight: 700;
  color: #000;
}

.specs-val {
  text-align: right;
}

.specs-val-multi {
  white-space: pre-line;
}

.specs-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text-dark);
}

.specs-footnote {
  margin-top: 8px;
  color: var(--text-light-gray);
  font-size: 12px;
}

/* 下载列表 */
.download-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.download-table th,
.download-table td {
  border-bottom: 1px solid #eee;
  padding: 12px 14px;
  color: var(--text-dark);
}

.download-table thead th {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  text-align: left;
}

.download-table tbody td {
  font-size: 14px;
}

.download-table tbody td:nth-child(4),
.download-table tbody td:nth-child(6) {
  white-space: nowrap;
  color: #555;
}

.download-table tbody tr:hover {
  background: #fafafa;
}

.download-action {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--detail-purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(122, 73, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-action:hover {
  background: #6a3ae6;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(122, 73, 255, 0.25);
}

.download-action:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 4px rgba(122, 73, 255, 0.35);
}

.download-badge {
  display: inline-block;
  background: var(--detail-purple);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  margin-right: 8px;
}

/* 配件 */
.accessories-grid {
  display: grid;
  grid-template-columns: repeat(4, 287.5px);
  gap: 16px;
  justify-content: start;
}

.accessory-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  width: 287.5px;
  height: 335.812px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.accessory-card img {
  max-height: 200px;
  width: auto;
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
  flex: 1;
}

.accessory-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  text-align: left;
  margin: 0;
  font-size: 14px;
  color: var(--text-dark);
}

.accessory-meta p {
  margin: 4px 0;
  font-weight: 700;
  line-height: 1.5;
}

.accessory-meta .label {
  display: none;
}

.accessory-meta .value {
  font-weight: 700;
  color: var(--text-dark);
}

.accessories-desc {
  margin-top: 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.accessories-desc p {
  margin: 0 0 8px;
}

/* 教程视频 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 379.891px);
  gap: 16px;
  justify-content: start;
}

.video-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 379.891px;
  height: 273.312px;
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.video-card video {
  width: 379.891px;
  height: 213.688px;
  display: block;
  background: #000;
  position: relative;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--detail-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  font-size: 20px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);
}

.video-duration {
  display: none;
}

.video-title {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  margin: 0;
}

.video-card.featured::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 55%;
  background: rgba(122, 73, 255, 0.95);
  border-radius: 50% / 40%;
  pointer-events: none;
}

.video-card.featured .video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  font-size: 20px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);
}

.video-card.playing .video-play {
  display: none;
}

/* 应用 */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 379.891px);
  gap: 20px;
  width: 1199.660px;
  height: 570.469px;
  margin: 0 auto;
  justify-content: center;
}

.app-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 379.891px;
  height: 550.469px;
}

.app-card:first-child {
  margin-left: 9.984px;
  margin-right: 9.984px;
}

.app-card img {
  width: 379.891px;
  height: 213.688px;
  object-fit: cover;
  border-radius: 8px;
}

.app-card h3 {
  width: 319.891px;
  height: 27px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
}

.app-card p {
  color: var(--text-gray);
  margin: 0;
}

.app-card .btn {
  background: var(--detail-purple);
  color: #fff;
  border-radius: 24px;
  padding: 0;
  width: 259.891px;
  height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.app-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-icons .icon {
  background: #eee;
  height: 48px;
  border-radius: 6px;
}

/* 通用区块 */
.section-block {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.section-sub {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: #222;
}

.section-block p {
  color: var(--text-gray);
  line-height: 1.85;
}

.section-block ul {
  color: var(--text-gray);
  margin-left: 1rem;
}

/* 相关产品/配件 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 287.5px);
  gap: 16px;
  justify-content: start;
}

.related-card {
  display: flex;
  flex-direction: column;
  width: 287.5px;
  height: 335.812px;
  /*background: #BEBEBE;*/
  border-radius: 12px;
  border:#eee solid 1px;
  padding: 0;
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
  text-decoration: none;
}

.related-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  flex: 1;
}

.related-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 12px 16px;
  font-weight: 600;
  background: transparent;
}

/* 分享区域 */
.share-section {
  background: var(--detail-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

.share-extra-banner {
  width: 1180px;
  height: 260px;
  background-color: #0b0616;
  background-image: url('../images/配件.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 24px auto 0;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.share-extra-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 28, 0.6);
}

.share-extra-banner .banner-content {
  position: relative;
  z-index: 1;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.share-extra-banner .title {
  font-size: 28px;
  font-weight: 600;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}

.social-icon:hover {
  opacity: 0.9;
}

/* CTA横幅 */
.cta-banner {
  background: var(--surface-1);
  padding: 2rem 0;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-text {
  color: #fff;
  font-weight: 600;
}

/* 系列产品 */
.detail-series {
  background: var(--detail-gray);
  padding: 2rem 0 3rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.series-carousel-section {
  background: #efefef;
  padding: 2rem 0 3rem;
}

.series-carousel-section .container {
  max-width: 1180px;
}

.series-carousel-section .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.series-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.series-carousel-container {
  flex: 1;
  overflow: hidden;
}

.series-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.series-card {
  flex: 0 0 380px;
  width: 380px;
  height: 588px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.series-card .product-image {
  height: 320px;
  width: 320px;
  min-height: 320px;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.series-card img {
  width: 320px !important;
  height: 320px !important;
  min-width: 320px !important;
  min-height: 320px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.series-card .product-name {
  font-weight: 700;
  margin: 4px 0;
  text-align: left;
  font-size: 18px;
}

.series-card .product-sub {
  color: var(--text-light-gray);
  margin-bottom: 8px;
  text-align: left;
  font-size: 16px;
}

.series-card .compare-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  text-decoration: none;
  text-align: left;
  font-size: 16px;
}

.series-card .compare-link::before {
  content: "•";
  font-size: 18px;
  line-height: 1;
  color: var(--text-dark);
}

.series-card .compare-link:hover {
  text-decoration: underline;
}

.series-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.series-carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.series-carousel-dots .dot.active {
  background: rgba(0, 0, 0, 0.85);
  width: 32px;
  height: 9px;
  border-radius: 6px;
}

.series-carousel-dots .dot:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* 页脚 */
.site-footer {
  background: var(--surface-1);
  color: #fff;
  padding: 2rem 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.75rem;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 992px) {

  /* Hero区域垂直堆叠 */
  .hero-grid,
  .hero-grid.with-thumbs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  /* 缩略图叠放在主图左上角 */
  .hero-grid.with-thumbs {
    position: relative;
  }

  .thumbs-rail {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 5;
  }

  .thumb-item {
    width: 48px;
    height: 48px;
    padding: 4px;
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
  }

  .thumb-item.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  }

  /* 主图区域全宽 */
  .hero-media {
    width: 100%;
    height: auto;
    margin-right: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    /* 保持正方形比例，或者根据需要调整 */
  }

  .hero-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* 面包屑对齐调整 */
  .detail-breadcrumb .container {
    margin-left: auto;
    /* 重置左边距 */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 相关产品和系列网格调整 */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .related-card {
    width: 100%;
    height: auto;
    aspect-ratio: 287.5 / 335.8;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .series-card {
    flex: 0 0 100%;
    width: 100%;
  }

  /* 调整标题大小 */
  .hero-title {
    font-size: 1.75rem;
  }

  /* 分享区域附加Banner调整 */
  .share-extra-banner {
    width: 100%;
    height: auto;
    min-height: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
  }

  .share-extra-banner .banner-content {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .share-extra-banner .title {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .share-extra-banner .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    width: auto;
  }
}

@media (max-width: 768px) {

  /* Tabs 面板容器左右留白 */
  .tab-panel .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* 下载列表改为卡片布局 */
  .download-table {
    border: none;
  }

  .download-table thead {
    display: none;
  }

  .download-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .download-table tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
  }

  .download-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #1f1f1f;
  }

  .download-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    margin-right: 0.75rem;
  }

  .download-table tbody td[data-label="操作"] {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .download-table tbody td[data-label="操作"] .download-action {
    margin-left: auto;
  }

  /* 视频与应用网格单列展示 */
  .video-grid,
  .apps-grid {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    gap: 1rem;
  }

  .video-card,
  .app-card {
    width: 100%;
    height: auto;
  }

  .video-card video,
  .app-card img {
    width: 100% !important;
    height: auto;
  }

  .app-card .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {

  /* 手机端进一步调整 */
  .related-grid {
    grid-template-columns: 1fr;
    /* 手机端单列 */
  }

  .accessories-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .accessory-card {
    width: 100%;
  }
}
#panel-specs{ color:#333;}