/* 全局样式 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

body {
    font-family: 'Roboto', 'Helvetica Neue', 'Segoe UI', 'Arial', sans-serif;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}



/* 卡片样式优化 */
.card {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.card .card-content {
    padding: 2rem;
}

.card .card-title {
    font-weight: 600;
    color: #333;
}

/* 按钮样式优化 */
.btn {
    border-radius: 10px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    vertical-align: middle;
    margin-right: 8px;
}

/* 表单元素优化 */
.input-field input[type="text"],
.input-field input[type="password"],
.input-field input[type="email"] {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field input[type="text"]:focus,
.input-field input[type="password"]:focus,
.input-field input[type="email"]:focus {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

/* 开关样式优化 */
.switch label input[type=checkbox]:checked + .lever {
    background-color: rgba(102, 126, 234, 0.5);
}

.switch label input[type=checkbox]:checked + .lever:after {
    background-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 选择框样式优化 */
.select-wrapper input.select-dropdown {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
}

.select-wrapper input.select-dropdown:focus {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

/* 链接样式优化 */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.indigo-text:hover {
    color: #667eea !important;
    text-decoration: underline;
}

/* 徽章样式优化 */
.badge {
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.badge.active {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.badge.inactive {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

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

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

/* 表单元素动画 */
.input-field input[type="text"],
.input-field input[type="password"],
.input-field input[type="email"] {
    position: relative;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.input-field input[type="text"]:focus,
.input-field input[type="password"]:focus,
.input-field input[type="email"]:focus {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 5px 30px rgba(102, 126, 234, 0.4);
    }
    100% {
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    }
}

