body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.navbar-brand {
    font-weight: bold;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
}

.input-group-text {
    font-size: 0.875rem;
}
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.login-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
}

/* 用户资料页面样式 */
.profile-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.profile-table th {
    background-color: #f8f9fa;
    width: 30%;
}

/* 导航栏下拉菜单 */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .login-container {
        margin: 50px auto;
        width: 90%;
    }
    
    .profile-table th,
    .profile-table td {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* 表格样式增强 */
.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* 模态框样式调整 */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}
/* 个人中心页面样式 */
.profile-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.profile-card .card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
}

/* 图标样式 */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: cover;
}

.bi-calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
}

.bi-code-slash {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M10.478 1.647a.5.5 0 1 0-.956-.294l-4 13a.5.5 0 0 0 .956.294l4-13zM4.854 4.146a.5.5 0 0 1 0 .708L1.707 8l3.147 3.146a.5.5 0 0 1-.708.708l-3.5-3.5a.5.5 0 0 1 0-.708l3.5-3.5a.5.5 0 0 1 .708 0zm6.292 0a.5.5 0 0 0 0 .708L14.293 8l-3.147 3.146a.5.5 0 0 0 .708.708l3.5-3.5a.5.5 0 0 0 0-.708l-3.5-3.5a.5.5 0 0 0-.708 0z'/%3E%3C/svg%3E");
}

.bi-server {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M1.333 2.667C1.333 1.194 4.318 0 8 0s6.667 1.194 6.667 2.667V4c0 1.473-2.985 2.667-6.667 2.667S1.333 5.473 1.333 4V2.667z'/%3E%3Cpath d='M1.333 6.334v3C1.333 10.805 4.318 12 8 12s6.667-1.194 6.667-2.667V6.334a6.51 6.51 0 0 1-1.458.79C11.81 7.684 9.967 8 8 8c-1.966 0-3.809-.317-5.208-.876a6.508 6.508 0 0 1-1.458-.79z'/%3E%3Cpath d='M14.667 11.668a6.51 6.51 0 0 1-1.458.789c-1.4.56-3.242.876-5.21.876-1.966 0-3.809-.316-5.208-.876a6.51 6.51 0 0 1-1.458-.79v1.666C1.333 14.806 4.318 16 8 16s6.667-1.194 6.667-2.667v-1.665z'/%3E%3C/svg%3E");
}

/* 系统信息卡片样式 */
.bg-primary, .bg-success, .bg-warning {
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-card {
        margin-bottom: 1rem;
    }
    
    .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .d-flex.align-items-center .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* 按钮样式优化 */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

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

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

/* 导航栏样式优化 */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
}

/* 表格样式增强 */
.table th {
    border-top: none;
    font-weight: 600;
}

/* 卡片标题样式 */
.card-title {
    font-weight: 600;
}

/* 提醒框样式 */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}
/* 图表相关样式 */
.chart-wrapper {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 表格样式优化 */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* 卡片样式优化 */
.card {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chart-wrapper {
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* 表单控件样式 */
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 图标样式 */
.bi {
    display: inline-block;
    margin-right: 0.25rem;
}

.bi-arrow-up {
    color: #dc3545;
}

.bi-arrow-down {
    color: #dc3545;
}

.bi-bar-chart {
    color: #6c757d;
}

.bi-exclamation-triangle {
    color: #dc3545;
}
/* 数据录入页面样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* 表格样式优化 */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
}

/* 输入框样式 */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    font-size: 0.875rem;
}

/* 按钮样式 */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 视图模式和编辑模式切换 */
.view-mode, .edit-mode {
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    .input-group-text {
        border-radius: 0.375rem;
        justify-content: center;
    }
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* 图标样式 */
.bi {
    display: inline-block;
    margin-right: 0.25rem;
}

/* 表单文本样式 */
.form-text {
    font-size: 0.875rem;
}

/* 警告框样式 */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* 加载动画 */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* 数值颜色 */
.text-success {
    color: #198754 !important;
}

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

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

.text-muted {
    color: #6c757d !important;
}
/* 在 assets/css/style.css 中添加 */

/* 指标类型徽章 */
.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

/* 分类指标选择框样式 */
.categorical-indicator {
    border-left: 3px solid #198754;
    padding-left: 10px;
}

.numeric-indicator {
    border-left: 3px solid #0d6efd;
    padding-left: 10px;
}

/* 分类指标图表样式 */
.categorical-chart {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control,
    .input-group .form-select {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    .input-group-text {
        border-radius: 0.375rem;
        justify-content: center;
    }
}
/* AI分析样式 */
.ai-analysis-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-analysis-content h6 {
    color: #856404;
    border-bottom: 1px solid #ffeaa7;
    padding-bottom: 5px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.ai-analysis-content h6:first-child {
    margin-top: 0;
}

.ai-analysis-content strong {
    color: #495057;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.ai-analysis-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ai-analysis-content li {
    margin-bottom: 0.25rem;
}

/* 加载状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-analysis-content {
        padding: 15px;
        max-height: 400px;
    }
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
}
/* 个人信息页面样式优化 */
.profile-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.profile-card .card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* 用户信息概览样式 */
.bg-primary, .bg-success, .bg-warning, .bg-secondary {
    opacity: 0.9;
}

/* 报告页面用户信息卡片 */
.card .text-center .bi {
    display: block;
    margin: 0 auto 10px;
}

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

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

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-card {
        margin-bottom: 1rem;
    }
    
    .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .d-flex.align-items-center .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .card .text-center {
        margin-bottom: 1rem;
    }
}

/* AI分析样式 */
.ai-analysis-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-analysis-content h6 {
    color: #856404;
    border-bottom: 1px solid #ffeaa7;
    padding-bottom: 5px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.ai-analysis-content h6:first-child {
    margin-top: 0;
}

.ai-analysis-content strong {
    color: #495057;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.ai-analysis-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ai-analysis-content li {
    margin-bottom: 0.25rem;
}

/* 警告框样式 */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}
/* 分类区域样式 */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    color: #495057;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* 页签样式优化 */
.nav-tabs .nav-link {
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    border-bottom: 3px solid #0d6efd;
    color: #0d6efd;
}

.nav-tabs .nav-link:not(.active) {
    color: #6c757d;
}

.nav-tabs .nav-link:hover {
    border-bottom: 3px solid #dee2e6;
}

/* 指标卡片样式 */
.indicator-card {
    border-left: 4px solid #0d6efd;
    transition: all 0.2s ease-in-out;
}

.indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.indicator-card.categorical {
    border-left-color: #198754;
}

/* 临床意义文本样式 */
.clinical-notes {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-section {
        margin-bottom: 1.5rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .clinical-notes {
        font-size: 0.8rem;
    }
}

/* 表格内小字样式 */
.table-sm th, .table-sm td {
    font-size: 0.875rem;
}

/* 分类徽章样式 */
.badge-category {
    font-size: 0.7rem;
    background-color: #6c757d;
}