:root {
    --primary-color: #FFC300;
    --primary-hover: #E6A800;
    --secondary-color: #6c757d;
    --success-color: #00d97e;
    --info-color: #39afd1;
    --warning-color: #f6c343;
    --danger-color: #e63757;
    --light-color: #f9fafd;
    --dark-color: #283845;
    --white-color: #ffffff;
    --border-color: #e3ebf6;
    --text-color: #12263f;
    --text-muted: #95aac9;
    --bg-color: #f5f8fa;
    --card-shadow: 0 0.375rem 1.5rem 0 rgba(140, 152, 164, 0.125);
    --sidebar-width: 250px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 0.9375rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
}

.navbar {
    height: var(--header-height);
    background-color: var(--white-color);
    box-shadow: 0 0.125rem 0.625rem rgba(140, 152, 164, 0.1);
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 1030;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 30px;
    margin-right: 10px;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    box-shadow: 0 0.125rem 0.625rem rgba(140, 152, 164, 0.1);
    transition: var(--transition);
    padding-top: var(--header-height);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link:hover {
    color: var(--primary-color);
    background-color: #e6f0fd;
}

.sidebar-link.active {
    color: var(--primary-color);
    background-color: #e6f0fd;
    border-left: 3px solid var(--primary-color);
}

.sidebar-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    background-color: var(--white-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 2rem rgba(140, 152, 164, 0.2);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* 表格专用样式 */
.table-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--white-color);
    border: 1px solid var(--border-color);
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    max-height: calc(100vh - 300px);
    -webkit-overflow-scrolling: touch;
}

.table-grid {
    display: grid;
    grid-template-columns: 
        120px    /* 操作列 */
        150px    /* 报案号 */
        150px    /* 保单号 */
        100px    /* 被保险人 */
        120px    /* 联系电话 */
        180px    /* 身份证号 */
        60px     /* 年龄 */
        60px     /* 性别 */
        80px     /* 事故责任 */
        100px    /* 产品类型 */
        150px    /* 报案时间 */
        150px    /* 出险时间 */
        100px    /* 案件状态 */
        100px    /* 估损金额 */
        100px    /* 赔付金额 */
        100px    /* 出险省份 */
        100px    /* 出险城市 */
        100px    /* 出险区域 */
        150px    /* 详细地址 */
        100px    /* 出险原因 */
        100px    /* 事故类型 */
        200px    /* 出险经过 */
        100px    /* 就医情况 */
        120px    /* 标的受伤部位 */
        120px    /* 三者就医 */
        120px    /* 三者受伤部位 */
        100px    /* 结案日期 */
        120px    /* 最近跟踪 */
        200px    /* 跟踪记录 */
        200px    /* 案件进展 */
        150px    /* 备注 */
        80px     /* 回访天数 */
        80px     /* 报案天数 */
        100px;   /* 接报案人 */
    min-width: 3000px;
    background: #E6A800;
}

.table-header {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #E6A800;
}

.table-row {
    display: contents;
}

.table-cell {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white-color);
    display: flex;
    align-items: center;
}

.table-header .table-cell {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: #CC9900 !important;
    color: #fff !important;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid #CC9900;
    padding: 0.75rem 0.5rem;
}

/* 操作列固定 */
.table-cell.sticky-col {
    position: sticky;
    left: 0;
    z-index: 12;
    background: var(--white-color);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.table-header .table-cell.sticky-col {
    background: #CC9900 !important;
    color: #fff !important;
    z-index: 21;
}

/* 操作按钮组 */
.btn-group-sm {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
}

.btn-group-sm .btn {
    padding: 0.25rem;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-group-sm .btn i {
    font-size: 0.9rem;
    margin: 0;
}

/* 斑马纹效果 */
.table-row:nth-child(odd) > .table-cell {
    background-color: var(--white-color);
}

.table-row:nth-child(even) > .table-cell {
    background-color: var(--light-color);
}

/* 悬停效果 */
.table-row:hover > .table-cell {
    background-color: #e6f0fd;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    transition: var(--transition);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    height: calc(1.5em + 1rem + 2px);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 195, 0, 0.08);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    border-radius: 0.25rem;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: var(--success-color);
}

.badge-info {
    background-color: var(--info-color);
}

.badge-warning {
    background-color: var(--warning-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

.pagination {
    margin-bottom: 0;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    margin-left: 0;
}

.page-link:hover {
    color: var(--primary-hover);
    background-color: var(--light-color);
    border-color: var(--border-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar {
        left: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .table-wrapper {
        max-height: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 0.25em solid rgba(255, 195, 0, 0.08);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* 添加以下内容到现有style.css文件 */

/* 时间线样式增强 */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-left: 15px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white-color);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
    background: var(--white-color);
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border-left: 3px solid var(--primary-color);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* 操作日志表格样式 */
.log-table {
    font-size: 0.875rem;
}

.log-table th {
    background: var(--light-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.log-table td {
    vertical-align: middle;
}

/* 修改历史样式 */
.modification-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.modification-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.modification-changes {
    background: var(--light-color);
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.change-item {
    margin-bottom: 0.5rem;
}

.change-item:last-child {
    margin-bottom: 0;
}

.change-field {
    font-weight: 600;
    color: var(--primary-color);
}