
#sundi3d-pens-direct {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 36px auto;
  padding: 48px 38px 42px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 0%, #44303b 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, #133b65 0%, transparent 45%),
    linear-gradient(135deg, #080e20, #111d38 70%, #0b1226);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

#sundi3d-pens-direct *,
#sundi3d-pens-direct *::before,
#sundi3d-pens-direct *::after {
  box-sizing: border-box;
}

#sundi3d-pens-direct .sd-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

#sundi3d-pens-direct .sd-label {
  color: #7bdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

#sundi3d-pens-direct .sd-title {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 0;
  padding: 0;
}

#sundi3d-pens-direct .sd-title span {
  color: #ff943e;
}

#sundi3d-pens-direct .sd-arrows {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

#sundi3d-pens-direct .sd-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

#sundi3d-pens-direct .sd-arrow:hover {
  background: #ff8532;
  transform: scale(1.06);
}

/* 核心：轨道必须允许横向滚动 */
#sundi3d-pens-direct .sd-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding: 5px 2px 16px !important;
  margin: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #ff913b rgba(255,255,255,.12);
  cursor: grab;
}

#sundi3d-pens-direct .sd-track:active {
  cursor: grabbing;
}

#sundi3d-pens-direct .sd-track::-webkit-scrollbar {
  height: 5px;
}

#sundi3d-pens-direct .sd-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,.12);
  border-radius: 20px;
}

#sundi3d-pens-direct .sd-track::-webkit-scrollbar-thumb {
  background: #ff913b;
  border-radius: 20px;
}

/* 核心：卡片不能被压缩 */
#sundi3d-pens-direct .sd-card {
  display: block !important;
  flex: 0 0 calc((100% - 36px) / 3) !important;
  width: calc((100% - 36px) / 3) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 12px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color .25s, background .25s;
}

#sundi3d-pens-direct .sd-card:hover {
  border-color: #ff943e;
  background: rgba(255,255,255,.12);
}

#sundi3d-pens-direct .sd-photo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  padding: 12px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
}

#sundi3d-pens-direct .sd-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-drag: none;
}

#sundi3d-pens-direct .sd-model {
  padding: 17px 4px 5px;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}

/* 不需要JS也能点击的产品导航 */
#sundi3d-pens-direct .sd-dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 23px;
}

#sundi3d-pens-direct .sd-dot {
  display: block;
  width: 25px;
  height: 6px;
  border-radius: 20px;
  background: #56627b;
  text-decoration: none;
  cursor: pointer;
}

#sundi3d-pens-direct .sd-dot:hover,
#sundi3d-pens-direct .sd-dot.active {
  background: #ff913b;
}

#sundi3d-pens-direct .sd-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 26px;
}

#sundi3d-pens-direct .sd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 100px;
  background: linear-gradient(120deg, #ff7228, #ffa33f);
  color: #10131c !important;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 10px 35px rgba(255,112,35,.2);
  transition: transform .2s, box-shadow .2s;
}

#sundi3d-pens-direct .sd-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,112,35,.35);
}

/* 平板 */
@media (max-width: 900px) {
  #sundi3d-pens-direct .sd-card {
    flex-basis: 46% !important;
    width: 46% !important;
  }
}

/* 手机 */
@media (max-width: 600px) {
  #sundi3d-pens-direct {
    padding: 30px 17px 32px;
    border-radius: 22px;
    margin: 18px auto;
  }

  #sundi3d-pens-direct .sd-top {
    align-items: flex-end;
    margin-bottom: 22px;
  }

  #sundi3d-pens-direct .sd-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  #sundi3d-pens-direct .sd-title {
    font-size: 29px;
    letter-spacing: -.7px;
  }

  #sundi3d-pens-direct .sd-arrow {
    width: 35px;
    height: 35px;
    font-size: 21px;
  }

  #sundi3d-pens-direct .sd-track {
    gap: 12px !important;
  }

  #sundi3d-pens-direct .sd-card {
    flex-basis: 84% !important;
    width: 84% !important;
  }

  #sundi3d-pens-direct .sd-model {
    font-size: 20px;
  }

  #sundi3d-pens-direct .sd-cta {
    width: 100%;
    padding: 15px 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sundi3d-pens-direct .sd-track {
    scroll-behavior: auto;
  }
}
