/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
}

/* 页脚 */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* 卡片 */
.card {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #eef2f7;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header h5 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}

.card-header h5 i {
    color: #0d6efd;
}

/* 表格 */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #f4f6f9;
}

/* 按钮 */
.btn {
    border-radius: 5px;
    transition: box-shadow .15s ease, transform .05s ease;
}

.btn-group .btn {
    margin-right: 5px;
}

.btn:hover {
    box-shadow: 0 4px 10px rgba(13,110,253,.15);
}

.btn:active {
    transform: translateY(1px);
}

/* 徽章 */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* 模态框 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.modal-header .modal-title i {
    color: #0d6efd;
    margin-right: .5rem;
}

/* 表单 */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.form-text {
    color: #6c757d;
}

/* Toast通知（如果需要） */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
}

/* 统计卡片 */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border: none;
}

/* 分页 */
.pagination {
    margin-bottom: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.75rem;
    }
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 代码块 */
pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
}

code {
    color: #e83e8c;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 工具提示 */
[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.success {
    background-color: #28a745;
}

.status-indicator.warning {
    background-color: #ffc107;
}

.status-indicator.error {
    background-color: #dc3545;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

/* 表单行间距微调 */
.form-inline-gap .form-control,
.form-inline-gap .form-select {
    margin-top: .25rem;
}

/* 表格单元内的次要文本 */
td small.text-muted {
    color: #6c757d !important;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* 链接 */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 列表组 */
.list-group-item {
    border: 1px solid rgba(0,0,0,.125);
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

