/* 滚动条隐藏 */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 一级分类高亮 */
.category-active {
  background-color: #00a3ff; /* primary */
  color: #fff;
}

/* 二级分类高亮 */
#subcategory-container .subcategory-active {
  background-color: #00a3ff !important; /* secondary */
  color: #fff;
}

/*#header .bg-transparent {*/
/*  background-color: #0948b3 !important;*/
/*}*/

.mx-auto .text-2xl {
    margin-top: 50px;
}

.mx-auto {
    margin-bottom: 100px;
}

.subcategory-btn:hover {
    background: rgb(0, 163, 255, 0.2)!important;
}

.ml-auto,
.mx-auto {
  margin-top: 60px;
}

/* 商品卡片 */
.product-card {
  background-color: rgb(18 31 69 / var(--tw-bg-opacity, 1)); /* dark-light + bg-opacity-70 */
  backdrop-filter: blur(12px); /* backdrop-blur-md */
  border-radius: 0.375rem; /* rounded-md */
  padding: 1rem; /* p-4 */
  transition-property: all;
  transition-duration: 300ms; /* duration-300 */
  border: 1px solid rgba(0,163,255,0.2); /* border-primary border-opacity-20 */
  position: relative;
  overflow: hidden;
  cursor: move;
}
.product-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,163,255,0.1); /* shadow-card-hover */
}

/* 拖动时样式 */
.product-card.dragging {
  opacity: 0.8;
  box-shadow: 0 0 0 3px #00a3ff, 0 0 8px 2px #00a3ff; /* shadow-glow */
  transform: scale(1.05);
  z-index: 50;
}

/* 配置区块 */
.config-section {
  margin-bottom: 0.75rem; /* mb-3 */
  position: relative;
  z-index: 10;
}
.config-title {
  font-size: 0.75rem; /* text-xs */
  color: #00a3ff; /* text-primary */
  font-weight: 500; /* font-medium */
  margin-bottom: 0.25rem; /* mb-1 */
  display: flex;
  align-items: center;
}
.config-content {
  font-size: 0.75rem; /* text-xs */
  color: #d1d5db; /* text-gray-300 */
  padding-left: 1.25rem; /* pl-5 */
}
.config-item {
  margin-bottom: 0.25rem; /* mb-1 */
  display: flex;
  align-items: flex-start;
}
.config-item-label {
  color: #9ca3af; /* text-gray-400 */
  width: 5rem; /* w-20 */
}
.config-item-value {
  color: #e5e7eb; /* text-gray-200 */
  flex: 1 1 0%;
}
.config-range {
  color: #00a3ff; /* text-primary */
  font-size: 0.75rem; /* text-xs */
  margin-left: 0.25rem; /* ml-1 */
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* tech 背景 */
.tech-bg {
  background: linear-gradient(135deg, #0a1128 0%, #121f45 100%);
  position: relative;
}
.tech-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/76bf980b36b64778b1cc1b33d8e2e52d~tplv-a9rns2rl98-image.image?rcl=2025111111220543B87A3A666A979342EB&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1765423346&x-signature=nOMXNpGiBdmQCycs3m7Hv%2FeLXwk%3D');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}


/* tech 边框 */
.tech-border {
  position: relative;
  border: 1px solid rgba(0,163,255,0.2);
}
.tech-border::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 1px solid rgba(0,163,255,0.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .tech-border::before {
  opacity: 1;
}

/* 进度条 */
.progress-bar {
  height: 1px;
  background: linear-gradient(90deg, rgba(0,163,255,0) 0%, rgba(0,163,255,1) 50%, rgba(0,163,255,0) 100%);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  animation: progress 3s linear infinite;
}
@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 星级评分 */
.star-rating {
  display: flex;
}
.star {
  color: #00a3ff;
  margin-right: 2px;
  position: relative;
}
.star-empty {
  color: rgba(0,163,255,0.2);
}
.star-filled {
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
}

/* 涟漪动画 */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255,255,255,0.2);
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 网格线 */
.grid-line {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0,163,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

@media (max-width: 767px) {
  .mx-auto .text-2xl {
    margin-top: 2px!important;
  }

  p[data-i18n="productsInfo.ecs_hk"] {
    margin-top: 20px !important;
  }
}