/* 骨架屏基础样式 */
.skeleton {
    background: linear-gradient(90deg, 
        var(--skeleton-start, #f0f0f0) 25%, 
        var(--skeleton-mid, #e0e0e0) 50%, 
        var(--skeleton-start, #f0f0f0) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

[data-theme="dark"] .skeleton {
    --skeleton-start: #2a2a2a;
    --skeleton-mid: #3a3a3a;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 卡片骨架屏 */
.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-line.title {
    height: 24px;
    width: 60%;
}

.skeleton-line.subtitle {
    width: 40%;
}

.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    width: 100px;
    height: 40px;
    border-radius: 20px;
}

.skeleton-chart {
    height: 200px;
    border-radius: var(--radius-md);
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.skeleton-grid-item {
    height: 100px;
    border-radius: var(--radius-md);
}

/* 数据卡片骨架屏 */
.stats-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-skeleton-item {
    height: 120px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 16px;
}

.stat-skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.stat-skeleton-line {
    height: 20px;
    width: 80%;
    margin-bottom: 8px;
}

.stat-skeleton-line.small {
    width: 50%;
    height: 14px;
}

/* 列表骨架屏 */
.list-skeleton-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.list-skeleton-content {
    flex: 1;
    margin-left: 12px;
}

/* 图表骨架屏 */
.chart-skeleton {
    height: 300px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.chart-bar-skeleton {
    width: 30px;
    height: var(--height);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px 4px 0 0;
}

[data-theme="dark"] .chart-bar-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
}