/* 全局样式 */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 统计卡片 */
.card.bg-primary, .card.bg-info, .card.bg-success, .card.bg-warning, .card.bg-danger {
    border-radius: 12px;
}

.card.bg-primary .card-body,
.card.bg-info .card-body,
.card.bg-success .card-body,
.card.bg-warning .card-body,
.card.bg-danger .card-body {
    padding: 1.25rem;
}

/* 表格样式 */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* 分页样式 */
.pagination .page-link {
    color: #0d6efd;
    cursor: pointer;
}

.pagination .active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 600;
}

.navbar .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-lg {
    border-radius: 10px;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
}

/* 模态框 */
.modal-content {
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.modal-footer {
    border-top: none;
}

/* 警报提示 */
.alert {
    border: none;
    border-radius: 10px;
}

/* 页脚 */
.footer {
    background-color: white !important;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 加载动画 */
.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
}

/* 状态标签 */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

/* 快捷操作按钮 */
.w-100.py-3 {
    border-radius: 12px;
    transition: all 0.3s;
}

.w-100.py-3:hover {
    transform: scale(1.02);
}

/* 文件上传控件 */
input[type="file"] {
    padding: 0.4rem;
}

input[type="file"]::file-selector-button {
    border-radius: 6px;
    border: none;
    padding: 0.4rem 1rem;
    background-color: #e9ecef;
    color: #495057;
    margin-right: 1rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: #dee2e6;
}