/* ========== 我的图库 ========== */
.gallery {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gallery-head h1 { font-size: 1.25rem; }
.gallery-tools { display: flex; align-items: center; gap: 10px; }
.count { font-size: .8rem; color: var(--text-dim); }
.clear-btn {
  padding: 4px 10px;
  font: inherit;
  font-size: .78rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.clear-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 记录列表 ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }

.item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.item-thumb {
  flex: none;
  width: 104px;
  height: 104px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: var(--surface-2);
}
.item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.item-prompt {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
.item-params { font-size: .8rem; color: var(--accent); }
.item-meta { font-size: .74rem; color: var(--text-dim); }

.item-actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-actions .btn-primary,
.item-actions .btn-ghost { padding: 7px 14px; font-size: .8rem; white-space: nowrap; }

/* ---------- 空状态 / 说明 ---------- */
.empty { padding: 64px 16px; text-align: center; color: var(--text-dim); font-size: .9rem; }
.empty-icon { font-size: 2rem; margin-bottom: 8px; }
.empty-link { margin-top: 6px; }
.empty-link a { color: var(--accent); text-decoration: none; }
.empty-link a:hover { text-decoration: underline; }

.gallery-note { margin-top: 20px; font-size: .72rem; color: var(--text-dim); text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .item { flex-wrap: wrap; }
  .item-actions { flex-direction: row; width: 100%; }
  .item-actions .btn-primary,
  .item-actions .btn-ghost { flex: 1; }
}
