/**
 * 捐物页面样式
 */

/* 物资卡片 */
.material-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.material-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-100);
}

.material-card-top {
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
}

.material-card-content {
  padding: 16px;
}

.material-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.material-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.material-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.material-info {
  flex: 1;
  min-width: 0;
}

/* 捐赠人姓名 - 左上 */
.material-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
  word-break: break-all;
}

/* 日期 - 左下 */
.material-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #8b5cf6;
  background: #f5f3ff;
  padding: 4px 8px;
  border-radius: 6px;
}

.material-date::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #a78bfa;
  border-radius: 50%;
}

/* 右侧区域 */
.material-right {
  text-align: right;
  flex-shrink: 0;
}

/* 物品名称 - 右上 */
.material-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  word-break: break-all;
  margin-bottom: 4px;
}

/* 数量 - 右下 */
.material-quantity {
  font-size: 20px;
  font-weight: 800;
  color: #7c3aed;
  white-space: nowrap;
}

/* 统计卡片紫色变体 */
.stat-card.purple {
  border: 2px solid #ddd6fe;
}

.stat-value.purple {
  color: #7c3aed;
}

/* 搜索和工具栏 */
.toolbar.purple .search-box input:focus {
  border-color: #a78bfa;
}

.toolbar.purple .sort-tab.active {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* 头部紫色变体 */
.header.materials {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
}

/* 底部紫色变体 */
.footer.materials {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}
