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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

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

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #3498db;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #3498db;
}

.nav-item.active {
    background-color: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
}

.nav-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
}

/* 主内容区样式 */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
    max-width: calc(100% - 250px);
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: #3498db;
}

.page-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-input {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdc3c7;
}

.search-input input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: #3498db;
}

.filter-buttons, .action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-ai {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-icon {
    padding: 8px;
    border: none;
    background: #ecf0f1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.btn-icon:hover {
    background: #3498db;
    color: white;
}

/* 护士列表样式 */
.nurse-list, .problem-list, .summary-list, .document-list {
    display: grid;
    gap: 20px;
}

.nurse-card, .problem-card, .summary-card, .document-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.nurse-card:hover, .problem-card:hover, .summary-card:hover, .document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 护士卡片样式 */
.nurse-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
}

.nurse-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nurse-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.nurse-details h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.job-title {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 2px;
}

.work-years {
    color: #7f8c8d;
    font-size: 13px;
}

.nurse-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
}

.stat-value.excellent { color: #27ae60; }
.stat-value.good { color: #f39c12; }
.stat-value.average { color: #e67e22; }
.stat-value.poor { color: #e74c3c; }

/* 问题卡片样式 */
.problem-card {
    border-left: 4px solid #3498db;
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.problem-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.problem-title h3 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

.problem-level {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.problem-level.high {
    background: #ffeaa7;
    color: #d63031;
}

.problem-level.medium {
    background: #fab1a0;
    color: #e17055;
}

.problem-level.low {
    background: #a7f3d0;
    color: #00b894;
}

.problem-date {
    color: #7f8c8d;
    font-size: 14px;
}

.problem-details {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    font-weight: 500;
    color: #7f8c8d;
    min-width: 80px;
}

/* 工作总结卡片样式 */
.summary-card {
    border-left: 4px solid #9b59b6;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-title h3 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

.summary-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.summary-status.completed {
    background: #a7f3d0;
    color: #00b894;
}

.summary-status.generating {
    background: #ffeaa7;
    color: #fdcb6e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.summary-date {
    color: #7f8c8d;
    font-size: 14px;
}

.summary-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.summary-stats .stat-item {
    text-align: left;
}

.summary-stats .stat-label {
    margin-bottom: 2px;
}

.summary-stats .stat-value {
    font-size: 16px;
    color: #2c3e50;
}

/* 文档管理样式 */
.document-categories {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ecf0f1;
}

.category-tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: #3498db;
}

.category-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.document-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
}

.document-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 20px;
}

.document-info h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.document-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.document-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #95a5a6;
}

.document-actions {
    display: flex;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        max-width: none;
    }
    
    .nurse-card, .problem-card, .summary-card, .document-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .nurse-info {
        flex-direction: column;
        text-align: center;
    }
    
    .nurse-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .summary-stats {
        justify-content: space-around;
    }
    
    .document-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .document-actions {
        justify-content: center;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 20px 30px;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

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

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 模态框内部元素样式 */
.profile-container, 
.analysis-container, 
.summary-container {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    margin: 0;
}

/* 雷达图样式 */
.radar-chart {
    width: 100%;
    height: 400px;
    margin: 20px 0;
}

/* 数据来源样式 */
.data-sources {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.data-sources h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.data-source-item {
    margin: 12px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-source-label {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
    display: block;
}

.data-source-value {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.data-source-date {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 为不同模块设置不同的主题颜色 */
.nurse-theme .modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.problem-theme .modal-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.summary-theme .modal-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* 功能说明页面样式 */
.function-intro-content {
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.markdown-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.markdown-content h1 {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.markdown-content h2 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e5e7eb;
}

.markdown-content h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.markdown-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content pre {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    white-space: pre-wrap;
}

.markdown-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1e3a8a;
}

.markdown-content strong {
    font-weight: 600;
    color: #4b5563;
}

/* 滚动条样式 */
.function-intro-content::-webkit-scrollbar {
    width: 8px;
}

.function-intro-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.function-intro-content::-webkit-scrollbar-thumb {
    background: #c5d0eb;
    border-radius: 4px;
}

.function-intro-content::-webkit-scrollbar-thumb:hover {
    background: #a3b8e0;
} 