/* 自定义样式 */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #1E40AF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
}

/* 全局样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 卡片样式 */
.card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-normal {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(to right, var(--primary-color), #1E40AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .card {
        margin: 0.5rem;
    }
    
    .table-container {
        margin: 0 -1rem;
    }
}

/* 毛玻璃效果 */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 图标动画 */
.icon-hover {
    transition: transform 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1);
}

/* 列表项动画 */
.list-item {
    transition: transform 0.2s ease;
}

.list-item:hover {
    transform: translateX(5px);
}

/* 标题动画 */
.title-animation {
    position: relative;
    display: inline-block;
}

.title-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), #1E40AF);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.title-animation:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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