/* 自定义样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* 响应式表格 */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
}

/* 进度条样式 */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* 表单样式优化 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

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

/* 导航栏样式 */
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

/* 页脚样式 */
.footer {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    border-radius: 12px;
    padding: 0.35em 0.7em;
}

/* 时间线样式 */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计优化 */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* 表单标签样式 */
.form-label {
    font-weight: 500;
    color: #495057;
}

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

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

/* 链接样式 */
a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* 附件样式 */
.attachment-item {
    transition: all 0.2s;
}

.attachment-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

/* 优先级样式 */
.priority-low {
    color: #198754;
}

.priority-medium {
    color: #0d6efd;
}

.priority-high {
    color: #dc3545;
}

.priority-urgent {
    color: #212529;
}

/* 状态样式 */
.status-pending {
    color: #6c757d;
}

.status-processing {
    color: #ffc107;
}

.status-completed {
    color: #198754;
}

.status-closed {
    color: #212529;
}