/**
 * 全局样式补充
 */

/* 图片懒加载 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #f5f5f7;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 图片占位符 */
.image-placeholder {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
}

/* 关闭不必要的动画 */
.no-animation {
    animation: none !important;
    transition: none !important;
}

/* 列表虚拟化容器 */
.virtual-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 标签徽章 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.tag-primary {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
}

.tag-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.tag-warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.tag-danger {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.empty-state-desc {
    font-size: 11px;
}

/* 加载状态 */
.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e8e8e8;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 分隔线 */
.divider {
    height: 1px;
    background: #f0f0f0;
    margin: 12px 0;
}

.divider-vertical {
    width: 1px;
    background: #f0f0f0;
    margin: 0 12px;
}

/* 红点徽章 */
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #f44336;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 全屏铺满 */
.full-screen {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.full-width {
    width: 100%;
}

.full-height {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* 动画过渡 */
.transition-all {
    transition: all 0.2s ease;
}

.transition-transform {
    transition: transform 0.2s ease;
}

.transition-opacity {
    transition: opacity 0.2s ease;
}

/* 点击反馈 */
.clickable:active {
    opacity: 0.7;
    transform: scale(0.98);
}