/* 容器与分隔 */
.lite-attach-card .card-header {
  border-bottom: none;
  padding: .5rem 1.25rem;
}
.lite-attach-card .list-group-item { border-color: #f1f3f5; }
.lite-attach-card ul li { margin: 0; }

/* 顶部右侧操作区：不换行 */
.lite-attach-actions { min-height: 32px; white-space: nowrap; }

/* 每行布局：不换行 + 左右对齐 */
.lite-attach-item { align-items: center; }
.la-left { min-width: 0; }
.la-main { min-width: 0; }
.la-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 36px;
}
.la-icon .la-svg { width: 28px; height: 28px; display: block; }
.la-filename {
  font-weight: 500; color: #2c3e50;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.la-filename:hover { color: #0b5ed7; text-decoration: none; }
.la-meta { line-height: 1.2; }
.la-op { white-space: nowrap; }

/* 小屏也保持左右不换行（用省略而不是换行） */
@media (max-width: 576px) {
  .lite-attach-card .card-header { display: flex; align-items: center; justify-content: space-between; }
  .lite-attach-item { align-items: center; }
}

/* ============ 新增：价格状态样式 ============ */
.lite-attach-card.is-priced .card-header {
  background: linear-gradient(45deg, #6f5405, #000000);
  color: #fff;
}
/* 深色头部内的元素对比度优化 */
.lite-attach-card.is-priced .card-header .h6,
.lite-attach-card.is-priced .card-header .h6 * { color: #fff; }
.lite-attach-card.is-priced .card-header .badge {
  background-color: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.lite-attach-card.is-priced .card-header .btn-warning {
  /* 保持按钮可见度；Bootstrap 默认可读，这里可按需微调边框 */
  border-color: #e0a800;
}

.lite-attach-card .btn-outline-primary.is-priced {
    background: linear-gradient(45deg, #6f5405, #000000);
    color: #fff;
    border-color: #fff;
}
