/* 全局样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* 标题样式 */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.h2 {
    font-size: 1.75rem;
}

/* 容器样式 */
.container {
    max-width: 1400px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #0c4b8a, #003087);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0c4b8a, #003087);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003087, #0c4b8a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(12, 75, 138, 0.3);
}

.btn-outline-primary {
    border: 2px solid #0c4b8a;
    color: #0c4b8a;
}

.btn-outline-primary:hover {
    background: #0c4b8a;
    color: white;
    transform: translateY(-1px);
}

/* 表单样式 */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0c4b8a;
    box-shadow: 0 0 0 0.2rem rgba(12, 75, 138, 0.25);
    outline: none;
}

.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #0c4b8a;
    box-shadow: 0 0 0 0.2rem rgba(12, 75, 138, 0.25);
    outline: none;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #0c4b8a;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(12, 75, 138, 0.05);
}

/* 徽章样式 */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0c4b8a, #003087) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

/* 进度条样式 */
.progress {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e9ecef;
    margin-bottom: 0;
}

.progress-bar {
    background: linear-gradient(90deg, #0c4b8a, #003087);
    font-size: 0.75rem;
    font-weight: 500;
}

/* 统计卡片样式 */
.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0c4b8a;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
    color: #0c4b8a;
    margin-bottom: 0.5rem;
}

/* 功能模块卡片样式 */
.feature-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0c4b8a;
}

.feature-icon {
    font-size: 3rem;
    color: #0c4b8a;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0c4b8a;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .navbar-brand span {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .h2 {
        font-size: 1.3rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0c4b8a, #003087);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #003087, #0c4b8a);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 特殊效果 */
.text-gradient {
    background: linear-gradient(135deg, #0c4b8a, #003087);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* 输入框组样式 */
.input-group {
    border-radius: 8px;
    overflow: hidden;
}

/* 面包屑样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item.active {
    color: #0c4b8a;
}

/* 分页样式 */
.pagination {
    --bs-pagination-active-bg: #0c4b8a;
    --bs-pagination-active-border-color: #0c4b8a;
}

/* 模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #0c4b8a, #003087);
    color: white;
    border-radius: 12px 12px 0 0;
}

/* 工具提示样式 */
.tooltip-inner {
    background: #0c4b8a;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #0c4b8a;
}

/* 警告样式 */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

/* 列表组样式 */
.list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
}

.list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 选项卡样式 */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.nav-tabs .nav-link.active {
    border-color: #0c4b8a #0c4b8a #fff;
    background-color: #0c4b8a;
    color: white;
}

/* Bootstrap 5 兼容样式 */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    margin-top: 0.125rem;
    padding: 0.5rem 0;
    background-color: white;
    border: 1px solid rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    color: #212529;
}

.dropdown-item:hover {
    background-color: #0c4b8a;
    color: white;
}

.dropdown-item:focus,
.dropdown-item:active {
    background-color: #0c4b8a;
    color: white;
}

/* 导航栏下拉菜单样式 */
.navbar .dropdown-menu {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
}

.navbar .dropdown-item {
    color: #212529;
}

.navbar .dropdown-item:hover {
    background-color: #0c4b8a;
    color: white;
}

/* 响应式下拉菜单 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(12, 75, 138, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        margin-top: 0.25rem;
    }
}

/* Bootstrap 5 的响应式工具类兼容 */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #0c4b8a !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.col-md-3, .col-md-6, .col-lg-3, .col-lg-4 {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-bottom: var(--bs-gutter-y);
}

/* Bootstrap 5 的表单控件样式 */
.form-check-input:checked {
    background-color: #0c4b8a;
    border-color: #0c4b8a;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(12, 75, 138, 0.25);
}

/* 按钮组样式 */
.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group > .btn:not(:first-child) {
    margin-left: -1px;
}

.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:nth-child(n+3),
.btn-group > :not(.btn-check) + .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 表格响应式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 网格系统 */
.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* Bootstrap 5 的卡片网格布局 */
.card-group {
    display: flex;
    flex-direction: column;
}

.card-group > .card {
    margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
    .card-group {
        flex-flow: row wrap;
    }
    
    .card-group > .card {
        flex: 1 0 0%;
        margin-bottom: 0;
    }
    
    .card-group > .card + .card {
        margin-left: 0;
        border-left: 0;
    }
}