:root {
    --primary-color: #3c6ea7;
    --secondary-color: #5d93d1;
    --accent-color: #ffd55a;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.navbar-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 32px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.table {
    font-size: 0.95rem;
}

.table thead th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
}

.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 0.25rem;
}

.form-control, .form-select {
    border-radius: 0.25rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(93, 147, 209, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.bg-primary, .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.bg-info, .btn-info {
    background-color: #5db0d1 !important;
    border-color: #5db0d1 !important;
    color: white !important;
}

.bg-success, .btn-success {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

.bg-warning, .btn-warning {
    background-color: #FFC107 !important;
    border-color: #FFC107 !important;
    color: #212529 !important;
}

.modal {
    z-index: 1050;
    padding-right: 0 !important; 
}

/* 确保模态框打开时背景固定 */
.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* 优化模态框背景 */
.modal-backdrop {
    z-index: 1040;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* 确保模态框内容居中显示 */
.modal-dialog {
    margin: 1.75rem auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 80vh;
}

/* 确保模态框动画顺畅 */
.modal.fade .modal-dialog {
    transition: transform .2s ease-out;
}

.alert {
    border-radius: 0.5rem;
}

footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bounce-in {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* 移动端适配样式 */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 24px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm-block {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.flex-wrap .btn {
        margin-bottom: 0.5rem;
    }
    
    /* 模态框移动端优化 */
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: 95%;
    }
    
    .modal.show .modal-dialog {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        border-radius: 0.4rem;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* 防止模态框底部按钮被截断 */
    .modal-footer {
        padding: 0.75rem;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .modal-footer .btn {
        margin: 0.25rem;
        flex: 1;
        min-width: auto;
        padding: 0.375rem 0.75rem;
    }
    
    /* 模态框内容滚动优化 */
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* 确保模态框内的图片正确显示 */
    .modal-body img {
        max-width: 100%;
        height: auto !important;
    }
    
    .action-buttons .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .mobile-scroll {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-mt-2 {
        margin-top: 0.5rem;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    /* 改善表格在移动设备上的显示 */
    .table-mobile-responsive th, 
    .table-mobile-responsive td {
        white-space: nowrap;
    }
    
    /* 改善卡片在移动设备上的显示 */
    .card-mobile-flat {
        border-radius: 0;
        box-shadow: none;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    /* 优化表单在移动设备上的显示 */
    .form-group-mobile {
        margin-bottom: 1rem;
    }
    
    /* 优化按钮在移动设备上的大小 */
    .btn-mobile-large {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* 小型移动设备 */
@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .mobile-card-spacing {
        margin-bottom: 0.75rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .mobile-flex-column {
        flex-direction: column !important;
    }
    
    .mobile-w-100 {
        width: 100% !important;
    }
    
    .mobile-mb-2 {
        margin-bottom: 0.5rem !important;
    }
}

.escalation-details-text {
    color: #E67E22;
} 