﻿/* ============================================
   爱米粥 - 列表
   ============================================ */
.az-list {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.az-list-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--divider-color);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.az-list-item:last-child { border-bottom: none; }
.az-list-item:hover { background: var(--bg-hover); }
.az-list-item:active { background: var(--bg-active); }
.az-list-item.active { background: var(--color-primary-light); color: var(--color-primary); }
.az-list-item.disabled { color: var(--text-disabled); cursor: not-allowed; }

.az-list-item-main { flex: 1; min-width: 0; }
.az-list-item-title { color: var(--text-primary); margin-bottom: 2px; }
.az-list-item-desc { font-size: var(--font-size-sm); color: var(--text-secondary); }
.az-list-item-extra { color: var(--text-muted); font-size: var(--font-size-sm); margin-left: var(--space-md); }

/* 商品列表卡片 */
.az-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.az-product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.az-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.az-product-card:active { transform: translateY(-2px); }
.az-product-img {
  width: 100%;
  height: 160px;
  background: var(--bg-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.az-product-body { padding: var(--space-md); }
.az-product-name { font-size: var(--font-size-lg); margin-bottom: var(--space-xs); }
.az-product-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.az-product-price { color: var(--color-primary); font-size: var(--font-size-xl); font-weight: bold; }
.az-product-price::before { content: "¥"; font-size: 14px; margin-right: 2px; }
