/* 自定义CSS样式 */

/* 页面整体样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

/* 容器样式 */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
    border: none;
}

.card-body {
    background-color: white;
    border-radius: 0 0 10px 10px;
    padding: 25px;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* 表格样式 */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 15px;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background-color: #f8f9fa;
}

.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}

.form-group {
    margin-bottom: 15px;
}

/* 状态标签样式 */
.badge {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-primary {
    background-color: #007bff;
}

.badge-info {
    background-color: #17a2b8;
}

/* 统计卡片样式 */
.stat-card {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 颜色主题 */
.bg-primary-dark {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.bg-success-dark {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
}

.bg-warning-dark {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
}

.bg-danger-dark {
    background: linear-gradient(135deg, #c82333 0%, #856404 100%);
}

.bg-info-dark {
    background: linear-gradient(135deg, #138496 0%, #0c5460 100%);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    background-color: #343a40 !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    font-size: 16px;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    background-color: #343a40;
    border-top: none;
    color: rgba(255, 255, 255, 0.8);
}

.footer p {
    margin-bottom: 0;
}

.footer a {
    color: #007bff;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0056b3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 10px;
        margin: 2px 0;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
    
    .stat-card i {
        font-size: 40px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 卡片阴影效果 */
.card-shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-shadow-md {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-shadow-lg {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 圆角样式 */
.rounded-sm {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

/* 文本样式 */
.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* 间距样式 */
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.ml-1 { margin-left: 5px; }
.ml-2 { margin-left: 10px; }
.ml-3 { margin-left: 15px; }
.ml-4 { margin-left: 20px; }
.ml-5 { margin-left: 30px; }

.mr-1 { margin-right: 5px; }
.mr-2 { margin-right: 10px; }
.mr-3 { margin-right: 15px; }
.mr-4 { margin-right: 20px; }
.mr-5 { margin-right: 30px; }

/* 内边距样式 */
.pt-1 { padding-top: 5px; }
.pt-2 { padding-top: 10px; }
.pt-3 { padding-top: 15px; }
.pt-4 { padding-top: 20px; }
.pt-5 { padding-top: 30px; }

.pb-1 { padding-bottom: 5px; }
.pb-2 { padding-bottom: 10px; }
.pb-3 { padding-bottom: 15px; }
.pb-4 { padding-bottom: 20px; }
.pb-5 { padding-bottom: 30px; }

.pl-1 { padding-left: 5px; }
.pl-2 { padding-left: 10px; }
.pl-3 { padding-left: 15px; }
.pl-4 { padding-left: 20px; }
.pl-5 { padding-left: 30px; }

.pr-1 { padding-right: 5px; }
.pr-2 { padding-right: 10px; }
.pr-3 { padding-right: 15px; }
.pr-4 { padding-right: 20px; }
.pr-5 { padding-right: 30px; }

/* 边距重置 */
.m-0 { margin: 0; }
.p-0 { padding: 0; }

/* 容器样式 */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background-color: #343a40;
    color: white;
    border-radius: 8px 8px 0 0;
}

.card-body {
    background-color: white;
    border-radius: 0 0 8px 8px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 表格样式 */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 状态标签样式 */
.badge {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: normal;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-primary {
    background-color: #007bff;
}

/* 统计卡片样式 */
.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 18px;
}

/* 颜色主题 */
.bg-primary-dark {
    background-color: #0056b3;
}

.bg-success-dark {
    background-color: #1e7e34;
}

.bg-warning-dark {
    background-color: #e0a800;
}

.bg-danger-dark {
    background-color: #c82333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-size: 16px;
    padding: 10px 15px;
}

/* 页脚样式 */
.footer {
    margin-top: 30px;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 20px;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
    
    .stat-card .stat-label {
        font-size: 16px;
    }
}