/* 培训系统样式 */

/* 基础重置 */
.training-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* 培训系统头部 */
.training-header {
    background: #1a1a2e;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.training-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.back-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
}

.training-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.training-logo i {
    color: #00A8E8;
    font-size: 24px;
}

.user-info {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* 培训系统容器 */
.training-container {
    display: flex;
    padding-top: 60px;
    min-height: 100vh;
}

/* 左侧边栏 */
.training-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-group {
    margin-bottom: 5px;
}

.nav-title {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    font-weight: 500;
    color: #4a5568;
}

.nav-title:hover {
    background: #f5f7fa;
    color: #0066CC;
}

.nav-title.active {
    background: #0066CC;
    color: #fff;
}

.nav-title i:first-child {
    width: 20px;
    text-align: center;
}

.nav-title i:last-child {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-title.active i:last-child {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    background: #f8f9fa;
}

.nav-submenu.hidden {
    display: none;
}

.nav-submenu li a {
    display: block;
    padding: 10px 20px 10px 50px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-submenu li a:hover {
    background: #e8f4fd;
    color: #0066CC;
    border-left-color: #0066CC;
}

.nav-submenu li a.active {
    background: #e8f4fd;
    color: #0066CC;
    border-left-color: #0066CC;
    font-weight: 500;
}

/* 右侧内容区 */
.training-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    max-width: calc(100% - 280px);
}

.content-section {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section.hidden {
    display: none;
}

.section-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
}

.section-breadcrumb i {
    font-size: 10px;
}

.content-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.content-desc {
    font-size: 16px;
    color: #718096;
    margin-bottom: 40px;
}

/* SOP模块 */
.sop-module {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.module-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-title i {
    color: #0066CC;
}

.module-title.alert-title i {
    color: #e53e3e;
}

/* 表格样式 */
.sop-table-wrapper {
    overflow-x: auto;
}

.sop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sop-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e8e8e8;
}

.sop-table td {
    padding: 15px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}

.sop-table tr:hover {
    background: #f8f9fa;
}

.time-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #0066CC;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.script-box {
    background: #f0fff4;
    border-left: 3px solid #48bb78;
    padding: 10px 15px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #2d3748;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e8e8;
}

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

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

.timeline-time {
    position: absolute;
    left: -30px;
    width: 60px;
    height: 60px;
    background: #0066CC;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.timeline-content {
    margin-left: 50px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.timeline-content ul {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
}

.timeline-content li {
    margin-bottom: 5px;
}

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

.highlight {
    color: #0066CC;
    font-weight: 600;
}

/* 日程网格 */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.schedule-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.schedule-time {
    background: #0066CC;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    height: fit-content;
}

.schedule-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.schedule-content h4 small {
    font-weight: 400;
    color: #718096;
    margin-left: 5px;
}

.schedule-content p {
    font-size: 13px;
    color: #718096;
}

/* 警告框 */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.alert-box i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-info {
    background: #ebf8ff;
    color: #2c5282;
}

.alert-info i {
    color: #3182ce;
}

.alert-warning {
    background: #fffaf0;
    color: #744210;
}

.alert-warning i {
    color: #dd6b20;
}

.alert-danger {
    background: #fff5f5;
    color: #742a2a;
}

.alert-danger i {
    color: #e53e3e;
}

/* 饮食卡片 */
.diet-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.diet-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.diet-icon {
    width: 50px;
    height: 50px;
    background: #0066CC;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.diet-icon i {
    font-size: 24px;
    color: #fff;
}

.diet-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.diet-standard {
    color: #0066CC;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.diet-desc {
    color: #718096;
    font-size: 12px;
    margin-bottom: 10px;
}

.diet-example {
    font-size: 12px;
    color: #4a5568;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
}

/* 供餐流程 */
.meal-flow {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.meal-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.meal-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-section h4 i {
    color: #0066CC;
}

.meal-section ul {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
}

.flow-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-time {
    background: #0066CC;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.step-action {
    font-size: 12px;
    color: #4a5568;
}

.flow-arrow {
    color: #cbd5e0;
}

/* 特殊处理 */
.special-handling {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.handling-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.handling-item.alert-danger {
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

.handling-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.handling-item h4 i {
    color: #e53e3e;
}

.handling-item.alert-danger h4 {
    color: #c53030;
}

.handling-item ol {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #4a5568;
}

.handling-item li {
    margin-bottom: 5px;
}

/* 康复计划 */
.rehab-plan {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.plan-intro {
    margin-bottom: 20px;
    color: #4a5568;
}

.plan-goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.goal-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid;
}

.goal-card.short {
    border-top-color: #48bb78;
}

.goal-card.medium {
    border-top-color: #ed8936;
}

.goal-card.long {
    border-top-color: #4299e1;
}

.goal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: #fff;
}

.goal-card.short .goal-icon {
    background: #48bb78;
}

.goal-card.medium .goal-icon {
    background: #ed8936;
}

.goal-card.long .goal-icon {
    background: #4299e1;
}

.goal-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.goal-card .example {
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

/* 训练类型 */
.training-types {
    margin-top: 25px;
}

.training-types h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.type-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.type-item i {
    font-size: 28px;
    color: #0066CC;
    margin-bottom: 10px;
}

.type-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.type-item small {
    color: #718096;
    font-size: 12px;
}

/* 应急流程 */
.emergency-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flow-step-item {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.flow-step-item.urgent {
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

.step-num {
    width: 40px;
    height: 40px;
    background: #0066CC;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-step-item.urgent .step-num {
    background: #e53e3e;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: #4a5568;
    font-size: 14px;
}

.step-content ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 14px;
}

.step-content li {
    margin-bottom: 5px;
}

.danger {
    color: #e53e3e;
    font-weight: 600;
}

/* 海姆立克法 */
.heimlich-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.heimlich-type {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.heimlich-type h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heimlich-type h4 i {
    color: #0066CC;
}

.procedure-list {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 14px;
}

.procedure-list li {
    margin-bottom: 10px;
}

/* 协同流程 */
.coop-flow {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.coop-flow h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.flow-steps-num {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step-num-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.step-num-item .num {
    width: 28px;
    height: 28px;
    background: #0066CC;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.step-num-item .text {
    font-size: 14px;
    color: #4a5568;
}

/* 转诊级别 */
.referral-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.referral-card {
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.referral-card.light {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.referral-card.medium {
    background: #fffaf0;
    border: 1px solid #fbd38d;
}

.referral-card.urgent {
    background: #fff5f5;
    border: 1px solid #fc8181;
}

.referral-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.referral-card.light .referral-icon {
    background: #48bb78;
    color: #fff;
}

.referral-card.medium .referral-icon {
    background: #ed8936;
    color: #fff;
}

.referral-card.urgent .referral-icon {
    background: #e53e3e;
    color: #fff;
}

.referral-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.referral-examples {
    font-size: 13px;
    color: #718096;
    margin-bottom: 15px;
}

.referral-process {
    text-align: left;
}

.referral-process p {
    font-size: 13px;
    color: #4a5568;
    padding: 8px 0;
    border-bottom: 1px dashed #e8e8e8;
}

.referral-process p:last-child {
    border-bottom: none;
}

/* 信息共享 */
.info-sharing {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-item {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    align-items: center;
}

.share-frequency {
    width: 60px;
    height: 60px;
    background: #0066CC;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.share-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.share-content p {
    color: #718096;
    font-size: 14px;
}

/* 表单卡片 */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.form-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.form-card i {
    font-size: 36px;
    color: #0066CC;
    margin-bottom: 15px;
}

.form-card.alert i {
    color: #e53e3e;
}

.form-card.alert {
    border-color: #fc8181;
    background: #fff5f5;
}

.form-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-card p {
    font-size: 13px;
    color: #718096;
}

/* 考核卡片 */
.assessment-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.assess-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.assess-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.assess-header.new {
    background: #48bb78;
}

.assess-header.veteran {
    background: #4299e1;
}

.assess-header i {
    font-size: 28px;
}

.assess-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.assess-content {
    padding: 20px;
}

.assess-content p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a5568;
}

.assess-content p:last-child {
    margin-bottom: 0;
}

/* 质量监控 */
.quality-monitor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.monitor-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.monitor-role {
    width: 100px;
    font-weight: 600;
    color: #0066CC;
    flex-shrink: 0;
}

.monitor-task {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
}

.monitor-task i {
    color: #48bb78;
}

/* 响应式 */
@media (max-width: 1200px) {
    .diet-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .forms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .training-sidebar {
        width: 240px;
    }
    
    .training-content {
        margin-left: 240px;
        max-width: calc(100% - 240px);
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-goals {
        grid-template-columns: 1fr;
    }
    
    .special-handling {
        grid-template-columns: 1fr;
    }
    
    .referral-levels {
        grid-template-columns: 1fr;
    }
    
    .heimlich-section {
        grid-template-columns: 1fr;
    }
    
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .assessment-cards {
        grid-template-columns: 1fr;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .training-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .training-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .training-container {
        flex-direction: column;
    }
    
    .diet-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-time {
        position: relative;
        left: 0;
        margin-bottom: 10px;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
    }
    
    .monitor-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
