/**
 * 灵涵速推 · 历史列表异步加载骨架 & 空状态（各工具页共用，勿抄袭第三方插画）
 * 作用域前缀 lh-history-*
 */

/* ---------- 加载中：异步占位，避免白屏 ---------- */
.lh-history-loading {
    padding: 18px 14px 28px;
    box-sizing: border-box;
}
.lh-history-loading__label {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}
.lh-history-loading__label i {
    color: #6366f1;
}
.lh-history-loading__rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lh-history-loading__row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.lh-history-loading__thumb {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(110deg, #e8eefc 0%, #f1f5f9 40%, #e8eefc 80%);
    background-size: 200% 100%;
    animation: lh-history-shimmer 1.35s ease-in-out infinite;
}
.lh-history-loading__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-width: 0;
}
.lh-history-loading__line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(110deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
    background-size: 200% 100%;
    animation: lh-history-shimmer 1.35s ease-in-out infinite;
}
.lh-history-loading__line--short {
    width: 42%;
}
.lh-history-loading__line--mid {
    width: 68%;
}

@keyframes lh-history-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lh-history-loading__thumb,
    .lh-history-loading__line {
        animation: none;
        background: #f1f5f9;
    }
}

/* ---------- 空状态：灵涵品牌气质（克制、偏创作工具，而非电商促销） ---------- */
.lh-history-empty-card {
    margin: 20px auto 28px;
    max-width: 340px;
    padding: 28px 22px 26px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(15, 23, 42, 0.06);
}

.lh-history-empty-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.06em;
    color: #4338ca;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(250, 245, 255, 0.9));
    border: 1px solid rgba(129, 140, 248, 0.28);
}

.lh-history-empty-card__visual {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 25%, rgba(129, 140, 248, 0.35) 0%, transparent 52%),
        radial-gradient(circle at 72% 68%, rgba(251, 191, 36, 0.22) 0%, transparent 48%),
        linear-gradient(145deg, #eef2ff 0%, #faf5ff 55%, #fffbeb 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.12);
    position: relative;
}
.lh-history-empty-card__visual::after {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 12px;
    border: 2px dashed rgba(99, 102, 241, 0.22);
    opacity: 0.85;
}

.lh-history-empty-card__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.lh-history-empty-card__lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
}

.lh-history-empty-card__hint {
    margin: 0 0 18px;
    font-size: 11px;
    line-height: 1.55;
    color: #94a3b8;
}

.lh-history-empty-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #4f46e5 0%, #6366f1 45%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.lh-history-empty-card__cta:active {
    opacity: 0.94;
    transform: scale(0.98);
}
