/* 主题市场样式 */

/* 加载动画 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-left-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 16px;
  color: #666;
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 错误提示 */
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  text-align: center;
  color: #e53935;
  font-size: 16px;
}

/* 空数据提示 */
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 100px 0; */
  text-align: center;
  color: #666;
  font-size: 16px;
}

.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background-color: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  margin: 0 auto;
  border: 2px dashed #e5e7eb;
  transition: all 0.3s ease;
}

.empty-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.empty-container:hover .empty-icon {
  transform: scale(1.1) rotate(5deg);
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  margin: 0 0 12px 0;
}

.empty-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
  margin: 0 0 32px 0;
  max-width: 300px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.empty-btn {
  padding: 12px 24px;
  background-color: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.empty-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.empty-btn:hover::before {
  left: 100%;
}

.empty-btn:hover {
  background-color: #5a6fdd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  animation: pulse 2s infinite;
}

/* 全局动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Banner 样式 */
.theme-banner {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* padding: 80px 20px; */
  margin-bottom: 40px;
}

/* Banner 装饰元素 */
.theme-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.theme-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite reverse;
}

.theme-banner-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.theme-banner-text {
  flex: 1;
  max-width: 600px;
  color: #fff;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.theme-banner-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.theme-banner-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.theme-banner-subtitle {
  font-size: 20px;
  margin-bottom: 16px;
  opacity: 0.9;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.theme-banner-desc {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.8;
  line-height: 1.5;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.theme-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.theme-banner-btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-banner-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.theme-banner-btn:hover::before {
  left: 100%;
}

.theme-banner-btn.primary {
  background-color: #fff;
  color: #667eea;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  border: none;
}

.theme-banner-btn.primary:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

.theme-banner-btn.secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.theme-banner-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.theme-banner-images {
  flex: 1;
  max-width: 500px;
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

.theme-banner-images img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); */
  animation: float 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.theme-banner-images img:hover {
  transform: scale(1.02);
  /* box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35); */
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 内容区域样式 */
.theme-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* 筛选区域 */
.theme-filter {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin:40px 0;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* CMS信息区域 */
.theme-cms-info {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #f9fafb;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid #667eea;
  gap: 24px;
}

.cms-logo {
  flex-shrink: 0;
}

.cms-logo img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.cms-logo img:hover {
  transform: scale(1.05);
}

.cms-info {
  flex: 1;
  min-width: 0;
}

.cms-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.cms-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.cms-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.cms-link {
  font-size: 14px;
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.cms-link:hover {
  color: #5a6fdd;
}

.cms-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #667eea;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cms-link:hover::after {
  transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .theme-cms-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cms-links {
    width: 100%;
    justify-content: flex-start;
  }
  
  .cms-logo img {
    width: 60px;
    height: 60px;
  }
  
  .cms-name {
    font-size: 18px;
  }
}

/* 筛选部分 */
.filter-section {
  display: flex;
  gap: 40px;
  /* margin-bottom: 24px; */
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  flex: 1;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  min-width: 60px;
}

.filter-select {
  flex: 1;
  min-width: 150px;
  padding: 10px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
  cursor: pointer;
  height: 40px;
  box-sizing: border-box;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.filter-select:hover {
  border-color: #667eea;
}



.search-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  min-width: 300px;
  padding: 10px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  height: 40px;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-btn {
  padding: 10px 24px;
  background-color: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.search-btn:hover::before {
  left: 100%;
}

.search-btn:hover {
  background-color: #5a6fdd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: pulse 2s infinite;
}

/* 商品分类卡片区域 */
.product-categories {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.product-categories-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
}

.product-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* 商品分类卡片 */
.product-category-card {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 为每个卡片添加不同的动画延迟 */
.product-category-card:nth-child(1) { animation-delay: 0.4s; }
.product-category-card:nth-child(2) { animation-delay: 0.5s; }
.product-category-card:nth-child(3) { animation-delay: 0.6s; }
.product-category-card:nth-child(4) { animation-delay: 0.7s; }
.product-category-card:nth-child(5) { animation-delay: 0.8s; }
.product-category-card:nth-child(6) { animation-delay: 0.9s; }
.product-category-card:nth-child(7) { animation-delay: 1.0s; }
.product-category-card:nth-child(8) { animation-delay: 1.1s; }

.product-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: left 0.4s ease;
  z-index: 1;
}

.product-category-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 0;
}

.product-category-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  background: linear-gradient(145deg, #ffffff, #f0f4f8);
}

.product-category-card:hover::before {
  left: 0;
}

.product-category-card:hover::after {
  width: 300px;
  height: 300px;
}

.product-category-icon {
  font-size: 48px;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  position: relative;
  z-index: 1;
}

.product-category-icon img {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.4s ease;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-category-card:hover .product-category-icon {
  transform: scale(1.15);
}

.product-category-card:hover .product-category-icon img {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 6px 16px rgba(102, 126, 234, 0.4));
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.product-category-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.product-category-card:hover .product-category-name {
  color: #667eea;
  transform: translateY(-2px);
}

.product-category-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.product-category-card:hover .product-category-desc {
  color: #4b5563;
}

/* 链接类型卡片特殊样式 */
.product-category-card[data-type="0"] {
  border-color: rgba(102, 126, 234, 0.2);
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.02));
}

.product-category-card[data-type="0"]:hover {
  border-color: #667eea;
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
}

/* 分类类型卡片特殊样式 */
.product-category-card[data-type="1"] {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.product-category-card[data-type="1"]:hover {
  border-color: #10b981;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

/* 分类类型卡片悬停时的图标效果 */
.product-category-card[data-type="1"]:hover .product-category-icon img {
  filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.4));
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

/* 分类类型卡片悬停时的文字效果 */
.product-category-card[data-type="1"]:hover .product-category-name {
  color: #10b981;
}

/* 分类类型卡片的渐变效果 */
.product-category-card[data-type="1"]::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* 分类类型卡片的背景效果 */
.product-category-card[data-type="1"]::after {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.theme-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
}

.theme-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.theme-filter-select,
.theme-filter-input {
  min-width: 180px;
  padding: 8px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.theme-filter-select:focus,
.theme-filter-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  animation: pulse 0.5s ease;
}

.theme-filter-actions {
  display: flex;
  gap: 12px;
}

.theme-filter-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.theme-filter-btn:hover::before {
  left: 100%;
}

.theme-filter-btn.primary {
  background-color: #667eea;
  color: #fff;
}

.theme-filter-btn.primary:hover {
  background-color: #5a6fdd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: pulse 2s infinite;
}

.theme-filter-btn.secondary {
  background-color: #f0f4f8;
  color: #333;
}

.theme-filter-btn.secondary:hover {
  background-color: #e1e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 主题分类 */
.theme-categories {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.theme-categories-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.theme-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.theme-category-item {
  padding: 8px 20px;
  background-color: #f9fafb;
  color: #666;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.theme-category-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.theme-category-item:hover::before {
  left: 100%;
}

.theme-category-item:hover {
  background-color: #667eea;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.theme-category-item.active {
  background-color: #667eea;
  color: #fff;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 主题列表 */
.theme-list {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.theme-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.theme-list-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.theme-list-sort {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-list-sort-label {
  font-size: 14px;
  color: #666;
}

.theme-list-sort-select {
  padding: 6px 12px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-list-sort-select:hover,
.theme-list-sort-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.theme-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 1s ease-out both;
}

/* 为每个卡片添加不同的动画延迟 */
.theme-card:nth-child(1) { animation-delay: 2.2s; }
.theme-card:nth-child(2) { animation-delay: 2.3s; }
.theme-card:nth-child(3) { animation-delay: 2.4s; }
.theme-card:nth-child(4) { animation-delay: 2.5s; }
.theme-card:nth-child(5) { animation-delay: 2.6s; }
.theme-card:nth-child(6) { animation-delay: 2.7s; }

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.theme-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.theme-card:hover::before {
  transform: scaleX(1);
}

.theme-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.theme-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.theme-card:hover .theme-card-image img {
  transform: scale(1.05) rotate(1deg);
}

.theme-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background-color: rgba(102, 126, 234, 0.9);
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
  z-index: 2;
  animation: pulse 2s infinite;
}

/* 不同标签使用不同颜色 */
.theme-card-badge:nth-child(1) {
  background-color: rgba(102, 126, 234, 0.9);
}

.theme-card-badge:nth-child(2) {
  background-color: rgba(239, 68, 68, 0.9);
}

.theme-card-badge:nth-child(3) {
  background-color: rgba(16, 185, 129, 0.9);
}

.theme-card-content {
  padding: 20px;
}

.theme-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.theme-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-card:hover .theme-card-title {
  color: #667eea;
}

.theme-card-id {
  font-size: 12px;
  color: #999;
  margin: 0;
  min-width: 80px;
  text-align: right;
}

.theme-card-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.theme-card-feature {
  padding: 2px 10px;
  background-color: #f0f4f8;
  color: #667eea;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid #e1e8f0;
  transition: all 0.3s ease;
}

.theme-card:hover .theme-card-feature {
  background-color: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
}

.theme-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
  transition: color 0.3s ease;
}

.theme-card:hover .theme-card-stats {
  color: #667eea;
}

.theme-card-users {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #ef4444;
  margin: 0;
  transition: all 0.3s ease;
}

.theme-card:hover .theme-card-price {
  transform: scale(1.05);
  color: #dc2626;
}

.theme-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.theme-card-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.theme-card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.theme-card-btn:hover::before {
  left: 100%;
}

.theme-card-btn.primary {
  background-color: #667eea;
  color: #fff;
}

.theme-card-btn.primary:hover {
  background-color: #5a6fdd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: pulse 2s infinite;
}

.theme-card-btn.secondary {
  background-color: #f0f4f8;
  color: #333;
}

.theme-card-btn.secondary:hover {
  background-color: #e1e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 分页 */
.theme-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-item:hover {
  background-color: #f0f4f8;
  color: #667eea;
  transform: translateY(-1px);
}

.page-item.active {
  background-color: #667eea;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-item.active:hover {
  background-color: #5a6fdd;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.page-item:first-child,
.page-item:last-child {
  width: auto;
  padding: 0 12px;
}

.page-item:first-child:hover,
.page-item:last-child:hover {
  background-color: #f0f4f8;
  color: #667eea;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .theme-banner-content {
    gap: 30px;
  }
  
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
  }
  
  .product-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .product-category-card {
    padding: 20px;
  }
  
  .product-category-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .product-category-name {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .product-category-desc {
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .theme-banner {
    min-height: 400px;
    padding: 70px 20px;
  }
  
  .theme-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .theme-banner-text,
  .theme-banner-images {
    max-width: 100%;
  }
  
  .theme-banner-title {
    font-size: 36px;
  }
  
  .theme-banner-subtitle {
    font-size: 18px;
  }
  
  .theme-banner-desc {
    font-size: 15px;
  }
  
  .theme-banner-buttons {
    justify-content: center;
  }
  
  .theme-banner-images img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
  
  .theme-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .theme-filter-group {
    width: 100%;
  }
  
  .theme-filter-select,
  .theme-filter-input {
    width: 100%;
  }
  
  .theme-filter-actions {
    justify-content: center;
  }
  
  /* 商品分类详情搜索区域响应式 */
  .filter-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-options {
    flex-wrap: wrap;
  }
  
  .search-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input {
    min-width: 100%;
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
    text-align: center;
  }
  
  .cms-logo {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .cms-links {
    justify-content: center;
  }
  
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .theme-card-content {
    padding: 16px;
  }
  
  .theme-card-image {
    height: 160px;
  }
  
  /* 商品分类卡片响应式 */
  .product-categories {
    padding: 20px;
  }
  
  .product-categories-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .product-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .product-category-card {
    padding: 16px;
  }
  
  .product-category-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .product-category-name {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .product-category-desc {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .theme-banner {
    min-height: 380px;
    padding: 60px 20px;
  }
  
  .theme-banner::before {
    width: 100%;
    right: -30%;
  }
  
  .theme-banner::after {
    width: 80%;
    left: -20%;
  }
  
  .theme-banner-title {
    font-size: 28px;
  }
  
  .theme-banner-subtitle {
    font-size: 16px;
  }
  
  .theme-banner-desc {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  .theme-banner-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .theme-banner-btn {
    width: 220px;
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .theme-banner-images img {
    max-width: 300px;
    border-radius: 12px;
  }
  
  .theme-categories-list {
    gap: 8px;
  }
  
  .theme-category-item {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  .theme-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    gap: 16px;
  }
  
  .theme-card-content {
    padding: 12px;
  }
  
  .theme-card-header {
    /* flex-direction: column;
    align-items: flex-start; */
    gap: 4px;
  }
  
  .theme-card-title {
    font-size: 14px;
  }
  
  .theme-card-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .theme-card-footer {
    /* flex-direction: column;
    align-items: flex-start; */
    gap: 8px;
  }
  
  .theme-card-stats {
    gap: 12px;
  }
  
  .theme-card-actions {
    width: 100%;
  }
  
  .theme-card-btn {
    flex: 1;
  }
  
  /* 商品分类卡片响应式 */
  .product-categories {
    padding: 16px;
  }
  
  .product-categories-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .product-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .product-category-card {
    padding: 12px;
  }
  
  .product-category-icon {
    font-size: 28px;
    margin-bottom: 6px;
  }
  
  .product-category-name {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .product-category-desc {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .theme-banner {
    min-height: 350px;
    padding: 50px 16px;
  }
  
  .theme-banner-title {
    font-size: 24px;
  }
  
  .theme-banner-subtitle {
    font-size: 14px;
  }
  
  .theme-banner-desc {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .theme-banner-btn {
    width: 180px;
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .theme-banner-images img {
    max-width: 250px;
    border-radius: 10px;
  }
  
  .theme-content {
    padding: 0 16px 60px;
  }
  
  .theme-filter {
    padding: 16px;
  }
  
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .theme-card-image {
    height: 120px;
  }
  
  .theme-card-content {
    padding: 10px;
  }
  
  .theme-card-title {
    font-size: 12px;
  }
  
  .theme-card-desc {
    font-size: 11px;
    margin-bottom: 8px;
  }
  
  .theme-card-features {
    gap: 4px;
    margin-bottom: 8px;
  }
  
  .theme-card-feature {
    padding: 2px 8px;
    font-size: 10px;
  }
  
  .theme-card-price {
    font-size: 14px;
  }
  
  .theme-card-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  /* 商品分类卡片响应式 */
  .product-categories {
    padding: 12px;
  }
  
  .product-categories-title {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .product-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .product-category-card {
    padding: 10px;
  }
  
  .product-category-icon {
    font-size: 24px;
    margin-bottom: 4px;
  }
  
  .product-category-name {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .product-category-desc {
    font-size: 10px;
  }
}
