/**
 * 系统样式文件
 */

/* 登录页面样式 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-container .card {
    border: none;
    border-radius: 15px;
}

.login-container .card-title {
    color: #667eea;
    font-weight: 600;
}

/* 通用样式 */
body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.navbar-brand {
    font-weight: 600;
}

/* 统计卡片 */
.card.text-white {
    border-radius: 10px;
    transition: transform 0.2s;
}

.card.text-white:hover {
    transform: translateY(-5px);
}

.card.text-white .card-body h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* 表格样式 */
.table {
    background-color: #fff;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 徽章样式 */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #667eea;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

.page-link:hover {
    color: #764ba2;
    background-color: #f8f9fa;
}

/* 代码样式 */
code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    max-height: 300px;
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card.text-white .card-body h2 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* 加载动画 */
.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); }
}

