/* Tags页面专用样式 */
:root {
  --tags-primary: #ff6b6b;
  --tags-secondary: #d63031;
  --tags-light: #ffe0e0;
  --tags-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 50%, #ff6b6b 75%, #d63031 100%);
}

/* 标签页面背景 */
body {
  background: #ffffff;
}

/* 页面横幅 */
.page-hero {
  background: var(--tags-gradient);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-hero h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

.page-hero .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* 面包屑导航 */
.breadcrumb-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  margin: 1rem auto;
  max-width: fit-content;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.breadcrumb-modern .breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-modern .breadcrumb-item a {
  color: var(--tags-secondary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item.active {
  color: var(--tags-primary);
  font-weight: 600;
}

/* 主要内容区域 */
.main-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 侧边栏样式 */
.sidebar {
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.sidebar-title {
  color: var(--tags-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tags-primary);
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--tags-secondary);
}

.sidebar-section {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--tags-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-section h5 {
  color: var(--tags-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background: var(--tags-light);
  padding-left: 0.5rem;
  border-radius: 5px;
}

.category-item a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category-item a:hover {
  color: var(--tags-primary);
}

.category-count {
  background: var(--tags-light);
  color: var(--tags-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 产品卡片样式 */
.product-mini-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 107, 107, 0.1);
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.product-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  border-color: var(--tags-primary);
}

.product-mini-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-mini-card:hover .product-mini-image img {
  transform: scale(1.1);
}

.product-mini-info h6 {
  color: var(--tags-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.product-mini-info h6 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-mini-info h6 a:hover {
  color: var(--tags-primary);
}

.product-price {
  color: var(--tags-primary);
  font-weight: 700;
  font-size: 1rem;
}

/* 标签云样式 */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  background: linear-gradient(135deg, var(--tags-light) 0%, rgba(255, 107, 107, 0.1) 100%);
  color: var(--tags-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 107, 107, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-item:hover {
  background: var(--tags-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.tag-item::before {
  content: '#';
  font-weight: 600;
}

/* 内容卡片样式 */
.content-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 107, 107, 0.1);
  height: 100%;
  margin-bottom: 2rem;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
  border-color: var(--tags-primary);
}

.content-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f8f9fa;
}

.content-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.content-card:hover .content-image-container img {
  transform: scale(1.05);
}

.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(214, 48, 49, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.content-card:hover .content-overlay {
  opacity: 1;
}

.view-btn {
  background: white;
  color: var(--tags-secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.content-card:hover .view-btn {
  transform: translateY(0);
}

.view-btn:hover {
  background: var(--tags-primary);
  color: white;
  transform: scale(1.05);
}

.content-info {
  padding: 1.5rem;
}

.content-title {
  color: var(--tags-secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.content-title a:hover {
  color: var(--tags-primary);
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #666;
  font-size: 0.9rem;
}

.content-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  height: 2.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 分页样式 */
.pagination-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.pagination {
  justify-content: center;
  margin: 0;
}

.page-item .page-link {
  border: none;
  color: var(--tags-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.page-item.active .page-link {
  background: var(--tags-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.page-item .page-link:hover {
  background: var(--tags-light);
  color: var(--tags-secondary);
  transform: translateY(-2px);
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 154, 158, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
  border-radius: 15px;
  border: 2px dashed rgba(255, 107, 107, 0.3);
}

.empty-icon {
  font-size: 4rem;
  color: var(--tags-primary);
  margin-bottom: 1rem;
}

.empty-title {
  color: var(--tags-secondary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-description {
  color: #666;
  font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-hero {
    padding: 2rem 0;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
  }
  
  .main-content {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .sidebar {
    margin-bottom: 1rem;
  }
  
  .content-image-container {
    height: 160px;
  }
  
  .content-info {
    padding: 1rem;
  }
  
  .pagination-container {
    padding: 1rem;
  }
  
  .product-mini-card {
    flex-direction: column;
    text-align: center;
  }
  
  .product-mini-image {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .tags-cloud {
    gap: 0.3rem;
  }
  
  .tag-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .page-item .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}