/* ===== 创意广场增强样式 ===== */

/* 模式标签 */
.badge-diy {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-smart {
  background: linear-gradient(135deg, #e17055, #fab1a0);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 画廊网格 - 瀑布流 */
.gallery-masonry {
  column-count: 2;
  column-gap: 12px;
  padding: 12px;
}

@media (min-width: 768px) {
  .gallery-masonry {
    column-count: 3;
    column-gap: 16px;
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 4;
    column-gap: 20px;
    padding: 20px;
  }
}

/* 画廊卡片 */
.gallery-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery-card-info {
  padding: 10px 12px;
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}

/* 空状态 */
.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}

.gallery-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.gallery-empty-text {
  font-size: 14px;
  margin-bottom: 8px;
}

/* 加载动画 */
.gallery-loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.gallery-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f0f0f0;
  border-top-color: #6C5CE7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 筛选标签 */
.gallery-filters {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-filter-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #e0d5c0;
  background: #fff;
  color: #5a4a2a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.gallery-filter-btn.active {
  background: #5a4a2a;
  color: #fff;
  border-color: #5a4a2a;
}

.gallery-filter-btn:active {
  transform: scale(0.95);
}
