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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    font-size: 20px;
}

.user-info {
    font-size: 16px;
    font-weight: bold;
}

.time {
    font-size: 14px;
    opacity: 0.9;
}

.header-center {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.patient-count {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.bed-info {
    font-size: 12px;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 导航标签样式 */
.nav-tabs {
    background: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.tabs-left {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.tab.red {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.tabs-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.simple-btn, .refresh-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.simple-btn:hover, .refresh-btn:hover {
    background: #5a6268;
}

/* 加载指示器 */
.loading-indicator {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    font-size: 12px;
    color: #28a745;
    margin-left: 10px;
    animation: pulse 1.5s infinite;
}

.loading-indicator.show {
    display: flex;
}

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

/* 进度指示器容器 */
.progress-container {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

/* 患者网格布局 */
.patient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

/* 患者卡片样式 */
.patient-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    transition: all 0.3s;
    border-left: 4px solid #007bff;
}

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

.patient-card.critical {
    border-left-color: #dc3545;
}

.patient-card.serious {
    border-left-color: #fd7e14;
}

.patient-card.normal {
    border-left-color: #28a745;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bed-number {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.patient-name {
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.status-badges {
    display: flex;
    gap: 5px;
}

.badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: white;
}

.badge.critical {
    background: #dc3545;
}

.badge.serious {
    background: #fd7e14;
}

.badge.fall-risk {
    background: #6f42c1;
}

.patient-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 500;
}

.diagnosis {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    margin-bottom: 12px;
    line-height: 1.4;
}

.doctor-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

/* 新增按钮 */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.card-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.education-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.education-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.sbar-btn {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.sbar-btn:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

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

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    animation: slideIn 0.3s;
    overflow-y: auto !important;
    box-sizing: border-box;
}

.modal-content h2 {
    margin-top: 0;
    position: sticky;
    top: 0;
    background: white;
    padding: 5px 0;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1020;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.modal-close:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

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

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

/* 健康教育内容样式 */
.education-content {
    line-height: 1.6;
}

.education-content h3 {
    color: #007bff;
    margin: 15px 0 10px 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
}

.education-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.education-content li {
    margin: 5px 0;
}

.highlight {
    background: #fff3cd;
    padding: 10px;
    border-left: 4px solid #ffc107;
    margin: 10px 0;
    border-radius: 4px;
}

/* SBAR报告样式 */
.sbar-content {
    line-height: 1.6;
}

.sbar-section {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.sbar-section h4 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 16px;
}

.sbar-section.situation {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.sbar-section.background {
    background: #f3e5f5;
    border-left-color: #9c27b0;
}

.sbar-section.assessment {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.sbar-section.recommendation {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.sbar-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.sbar-content li {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .patient-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tabs-left {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 功能说明卡片 */
.feature-card {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0;
    padding: 0;
    font-size: 20px;
}

/* 功能说明内容样式 */
.feature-content {
    line-height: 1.6;
}

.feature-content h1 {
    color: #2575fc;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.feature-content h2 {
    color: #6a11cb;
    margin-top: 30px;
    margin-bottom: 15px;
}

.feature-content h3 {
    color: #17a2b8;
    margin-top: 20px;
    margin-bottom: 10px;
}

.feature-content p, .feature-content li {
    margin-bottom: 8px;
}

.feature-content ul {
    padding-left: 20px;
}

.feature-content hr {
    margin: 30px 0;
    border: none;
    border-top: 1px dashed #ddd;
} 