/** Shopify CDN: Minification failed

Line 6:0 Unexpected ".3d-cards-section"

**/
.3d-cards-section {
  max-width: 100%;
  overflow: hidden;
}

.cards-track {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card-container {
  perspective: 1000px;
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 0;
  display: flex;
}

.card-body {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.card-body:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-item {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* 标题：强制继承网页默认字号和行高，只保留布局约束 */
.card-title {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 描述：强制继承网页默认字号和行高 */
.card-desc {
  margin: 0.5rem 0 0;
  font-size: inherit;
  line-height: inherit;
  min-height: 4em;
}

.card-image-wrap {
  margin-top: 1rem;
  width: 100%;
}

.card-image,
.card-image-placeholder {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.card-body:hover .card-image {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  transform-style: preserve-3d;
}

/* 文本链接：继承主题 a 样式和字号；保留输入的大小写 */
.card-link {
  font-size: inherit;
  white-space: nowrap;
  text-transform: none;
}

/* 按钮：继承主题 button 样式；只约束布局，并保留输入的大小写 */
.card-button {
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  text-transform: none;
  text-decoration: none;
}

/* 轮播指示点 */
.carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.carousel-dots button.active {
  width: 20px;
  border-radius: 4px;
  background: #000000;
}

/* 暗色模式：仅卡片容器与指示点 */
@media (prefers-color-scheme: dark) {
  .card-body {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.2);
  }
  .card-body:hover {
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.1);
  }
  .carousel-dots button {
    background: rgba(255, 255, 255, 0.25);
  }
  .carousel-dots button.active {
    background: #ffffff;
  }
}

/* 手机端：平面 + Carousel */
@media (max-width: 768px) {
  .cards-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 14px;
    padding: 20px calc((100% - 82%) / 2) 8px;
    scrollbar-width: none;
  }

  .cards-track::-webkit-scrollbar {
    display: none;
  }

  .card-container {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
  }

  .card-body {
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
    transform: none !important;
  }

  .card-item {
    transform: none !important;
  }

  .card-title {
    min-height: 2.4em;
  }

  .card-desc {
    min-height: 3.5em;
    margin-top: 6px;
  }

  .card-image-wrap {
    margin-top: 12px;
  }

  .card-image,
  .card-image-placeholder {
    height: 170px;
    border-radius: 10px;
  }

  .card-footer {
    margin-top: 18px;
    gap: 10px;
  }

  .carousel-dots {
    display: flex;
    margin-top: 14px;
    margin-bottom: 20px;
  }

  .carousel-dots button {
    width: 7px;
    height: 7px;
  }

  .carousel-dots button.active {
    width: 18px;
  }
}