.product-detail {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* 导航栏高度 */
.mt-nav {
  margin-top: 61px;
}

img {
  width: 100%;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none; /* 禁止拖拽（Chrome/Safari/Edge） */
  user-select: none; /* 禁止被选中（出现蓝色高亮/虚线框） */
}

.buy-bar {
  position: fixed;
  top: 81px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 98;
}

.buy-bar .bg {
  width: 1436px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 30px;
  background: rgba(45, 45, 45, 0.72);
  color: #fff;
}

.buy-bar .bg .product-name {
  font-size: 20px;
}

.buy-bar .bg .buy-button {
  font-size: 16px;
  width: 83px;
  height: 37px;
  border-radius: 20px;
  background: #ff5a16;
  line-height: 37px;
  text-align: center;
}

.buy-bar .bg .buy-button:hover {
  background: #E6460A;
}

/* ======  滑动轮播图部分 上半部分：标题栏（1436px 居中）====== */
.product-detail .section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 120px 0;
}

.product-detail .section .section-header {
  display: flex;
  width: 1436px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 70px;
}

.product-detail .section .section-header .section-title {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-detail .section .section-header .section-title .title {
  font-size: 48px;
  font-weight: bold;
  color: #02070b;
}

.product-detail .section .section-header .section-title .desc {
  font-size: 26px;
  font-weight: 500;
}

.product-detail .section .section-header .section-title .desc span {
  color: #ff5a16;
}

.product-detail .section .section-header .section-btn {
  display: flex;
  gap: 4px;
}

.product-detail .section .section-header .section-btn .btn-bg {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: rgba(230, 230, 230, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

/* 按下时：背景色透明度变 1（完全不透明），松开自动复原 */
.product-detail .section .section-header .section-btn .btn-bg:active {
  background-color: #cecece;
}

/* 按钮图标（深/浅两张图都在 HTML 中，CSS 只控制显隐）：
   默认显示深色、隐藏浅色 */
.product-detail .section .section-header .section-btn .btn-bg img {
  width: 30px;
  object-fit: contain;
  display: block;
}

.product-detail .section .section-header .section-btn .btn-bg .icon-shallow {
  display: none;
}

/* 边界状态（由 JS 在 .section 上切换 at-start / at-end class）：
   到最左 -> 左按钮换浅色；到最右 -> 右按钮换浅色 */
.product-detail
  .section.at-start
  .section-header
  .section-btn
  .btn-up
  .icon-deep {
  display: none;
}

.product-detail
  .section.at-start
  .section-header
  .section-btn
  .btn-up
  .icon-shallow {
  display: block;
  cursor: not-allowed;
}

.product-detail
  .section.at-end
  .section-header
  .section-btn
  .btn-next
  .icon-deep {
  display: none;
}

.product-detail
  .section.at-end
  .section-header
  .section-btn
  .btn-next
  .icon-shallow {
  display: block;
  cursor: not-allowed;
}

/* ====== 滑动轮播图部分 滚动列表通用（外层裁剪 + 内层拖拽 + 无滚动条）====== */
.scroll-list-wrap {
  width: 100%;
  overflow: hidden;
}

.product-detail .scroll-list {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 0 242px;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-detail .scroll-list:active {
  cursor: grabbing;
}

.product-detail .scroll-list::-webkit-scrollbar {
  display: none;
}

/* 所有卡片共同属性：不被压缩 */
.product-detail .scroll-list .card {
  flex-shrink: 0;
}

/* ====== 资讯卡片：700×400 cover ====== */
.product-detail .news-card {
  width: 700px;
  overflow: hidden;
}

.product-detail .news-card .card-img {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* 三视图轮播图部分 */

.three-view-img-box {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 70px;
}

/* 顶部：COLOUR + 颜色选择 */
.three-view-img-box .three-view-header {
  display: flex;
  width: 1436px;
  flex-direction: column;
  padding-bottom: 20px;
  justify-content: center;
}

.three-view-img-box .three-view-header .title {
  font-size: 48px;
  font-weight: bold;
  color: #000;
}

.three-view-img-box .color-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.three-view-img-box .color-name {
  color: #2f2725;
  font-size: 26px;
  font-weight: 500;
  text-align: right;
  margin-bottom: 25px;
}

.three-view-img-box .color-dots {
  display: flex;
  gap: 24px;
  align-items: center;
}

.three-view-img-box .color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  outline: none;
}

/* 当前选中：白色描边 + 橙色外圈（参考图中左侧第一个圆点） */
.three-view-img-box .color-dot.active {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #ff5a16;
}

@media screen and (max-width: 768px) {
  .mt-nav {
    margin-top: 34px;
  }
  /* 购买条部分 */
  .buy-bar {
    top: 41px;
    width: 100%;
  }
  .buy-bar .bg {
    width: 100%;
    margin: 0 40px;
    border-radius: 6px;
    padding: 6px 15px;
  }

  .buy-bar .bg .product-name {
    font-size: 10px;
  }

  .buy-bar .bg .buy-button {
    font-size: 8px;
    width: 41px;
    height: 18px;
    border-radius: 20px;
    line-height: 18px;
  }

  /* 滑动轮播图部分 */
  .product-detail .section {
    margin: 60px 0;
  }

  .product-detail .section .section-header {
    width: 100%;
    padding: 0 40px;
    margin-bottom: 35px;
  }

  .product-detail .section .section-header .section-title {
    gap: 14px;
  }

  .product-detail .section .section-header .section-title .title {
    font-size: 18px;
  }

  .product-detail .section .section-header .section-title .desc {
    font-size: 10px;
  }

  .product-detail .section .section-header .section-btn {
    gap: 2px;
  }

  .product-detail .section .section-header .section-btn .btn-bg {
    width: 25px;
    height: 25px;
    border-radius: 13px;
  }

  .product-detail .section .section-header .section-btn .btn-bg img {
    width: 15px;
  }

  .product-detail .scroll-list {
    gap: 13px;
    padding: 0 40px;
  }

  .product-detail .news-card {
    width: 250px;
  }

  .product-detail .news-card .card-img {
    height: 142px;
    border-radius: 10px;
  }

  /* 三视图部分 */

  .three-view-img-box .three-view-header {
    width: 100%;
    padding: 0 40px;
    padding-bottom: 10px;
  }

  .three-view-img-box .three-view-header .title {
    font-size: 18px;
  }

  .three-view-img-box .color-picker {
    gap: 8px;
  }

  .three-view-img-box .color-name {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .three-view-img-box .color-dots {
    gap: 12px;
  }

  .three-view-img-box .color-dot {
    width: 10px;
    height: 10px;
    border: 1px solid transparent;
  }

  /* 当前选中：白色描边 + 橙色外圈（参考图中左侧第一个圆点） */
  .three-view-img-box .color-dot.active {
    box-shadow:
      0 0 0 1px #fff,
      0 0 0 2px #ff5a16;
  }
}
