/* 顶部导航 */
.top-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #e60012 0%, #b3000d 100%);
  color: white;
  padding: 12px 15px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
}

.back-button {
  margin-right: 12px;
  font-size: 18px;
}

.header-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 15px;
}

.header-actions i {
  font-size: 18px;
}

.breadcrumb {
  padding: 8px 15px;
  background: #fff;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #e60012;
  text-decoration: none;
}

/* 筛选工具栏 */
.filter-bar {
  background: white;
  display: flex;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.filter-item {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  font-size: 13px;
  position: relative;
}

.filter-item.active {
  color: #e60012;
  font-weight: 500;
}

.filter-item i {
  margin-left: 3px;
  font-size: 12px;
}

.filter-item .badge {
  position: absolute;
  top: 0;
  right: 10px;
  background: #e60012;
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  line-height: 16px;
}

/* 筛选面板 */
.filter-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 200;
  height: 70vh;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.filter-panel.active {
  transform: translateY(0);
}

.panel-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
}

.panel-close {
  font-size: 20px;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  padding: 8px 15px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 13px;
}

.filter-option.active {
  background: #ffe6e8;
  color: #e60012;
  font-weight: 500;
}

.panel-footer {
  padding: 15px;
  display: flex;
  gap: 15px;
  background: white;
  border-top: 1px solid #eee;
}

.panel-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
}

.reset-btn {
  background: #f5f5f5;
  color: #666;
}

.apply-btn {
  background: #e60012;
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.overlay.active {
  display: block;
}

/* 产品列表 */
.product-list {
  padding: 10px;
}

.product-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-image {
  width: 120px;
  height: 120px;
  position: relative;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e60012;
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
}

.product-info {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-size: 14px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: #e60012;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
}

.product-original-price {
  color: #999;
  font-size: 12px;
  text-decoration: line-through;
  margin-left: 5px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 12px;
}

.product-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.cart-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
}

.cart-btn.active {
  background: #e60012;
  color: white;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 100;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: #666;
}

.nav-item.active {
  color: #e60012;
}

.nav-item i {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-icon {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-text {
  color: #999;
  font-size: 16px;
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding-bottom: 15px;
}

.load-more-btn {
  display: inline-block;
  padding: 10px 25px;
  background: white;
  border: 1px solid #eee;
  border-radius: 20px;
  color: #666;
  font-size: 14px;
}
