/* ================= 骨架屏样式 ================= */

.sk {
  display: inline-block;
  flex-shrink: 0;
  width: var(--w, 100%);
  max-width: 100%;
  height: var(--h, 16px);
  border-radius: var(--r, 6px);
  background: var(--muted, #ebebee);
  vertical-align: middle;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes sk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

/* 骨架组合块 */
.sk-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sk-list {
  gap: 2px;
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px;
}
.sk-row > .sk {
  --h: 12px;
}
.sk-row > .sk.sk-ic {
  --w: 16px;
  --h: 16px;
  --r: 5px;
}

.sk-ic {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* 列表骨架末尾几行渐隐，暗示“还有更多” */
.sk-fade > :nth-last-child(3) { opacity: 0.75; }
.sk-fade > :nth-last-child(2) { opacity: 0.5; }
.sk-fade > :nth-last-child(1) { opacity: 0.28; }

/* 上下叠放的两根骨架条（标题 + 副标题） */
.sk-stack {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

/* 表格骨架行与空态 */
tr.sk-tr td {
  padding: 12px 16px;
}

.empty-row td, .empty-tip {
  text-align: center;
  color: var(--text-faint, rgba(0, 0, 0, 0.45));
  font-size: 14px;
  padding: 32px 16px;
}
