/* 全局样式 */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --gradient-start: #3b82f6;
    --gradient-end: #1d4ed8;
}

body {
    background-color: var(--background-color);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
}

.container {
    padding: 1rem 0.5rem;
    max-width: 1200px;
}

/* 标题样式 */
h1 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h1 .bi {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: var(--card-background);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--card-background);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 0.75rem 1rem;
}

.card-body {
    padding: 1rem;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    border-top: none;
    padding: 0.75rem;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* 按钮样式 */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

/* 统计卡片样式 */
.card.text-center {
    padding: 0.5rem;
}

.card.text-center .card-body {
    padding: 0.25rem;
}

.card-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.card-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table th {
    background-color: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--text-primary);
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

.btn-delete {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 颜色样式 */
.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* 图标样式 */
.bi {
    font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h1 .bi {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 1.25rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table tbody tr {
    animation: fadeIn 0.2s ease-out forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
} 