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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.game-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4ade80;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.score-display {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.game-main {
    padding: 40px;
    min-height: 500px;
}

.screen {
    animation: fadeIn 0.5s ease;
}

.screen.hidden {
    display: none;
}

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

.welcome-content {
    text-align: center;
    padding: 40px;
}

.welcome-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #667eea;
}

.welcome-content p {
    font-size: 1.2em;
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #667eea;
    text-align: center;
}

.hint {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 1.2em;
    color: #78350f;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 0.3px;
}

.question-container {
    margin: 30px 0;
}

.question-text {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.option-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.option-card.selected {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.option-card.wrong-selected {
    background: #fee2e2;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.option-card.correct {
    background: #d1fae5;
    border-color: #10b981;
}

.option-card.wrong {
    background: #fee2e2;
    border-color: #ef4444;
}

.option-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.option-card input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.option-card label {
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1;
    user-select: none;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin: 20px 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.6);
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 163, 184, 0.6);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-back {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 231, 183, 0.4);
}

.btn-back:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 231, 183, 0.6);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-back:active:not(:disabled) {
    transform: translateY(0);
}

.btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.button-group .btn {
    margin: 0;
    flex: 0 0 auto;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-answers {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.selected-answers p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #0369a1;
}

#selectedConsultationList,
#selectedEntryQuestionsList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-tag {
    background: #0ea5e9;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.scenario-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.scenario-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.scenario-card.selected {
    background: #dbeafe;
    border-color: #3b82f6;
}

.scenario-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.team-info {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.1em;
}

.equipment-categories {
    margin: 30px 0;
}

.equipment-list {
    margin: 30px 0;
}

.equipment-falling-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(to bottom, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #0ea5e9;
}

.equipment-item-falling {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
    animation: fallDown linear infinite;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipment-item-falling:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.equipment-item-falling.selected {
    background: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
    font-weight: bold;
    animation-play-state: paused;
}

.equipment-item-falling.wrong-selected {
    background: #fee2e2;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    /* 错误选项继续飘落，不停止动画 */
    animation-play-state: running;
}

.equipment-item-falling {
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipment-item-falling .item-icon {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 4px;
}

.equipment-item-falling .item-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes fallDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    to {
        transform: translateY(550px);
        opacity: 0.8;
    }
}

.category {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.category h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.equipment-summary {
    background: #fef3c7;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.steps-container {
    margin: 30px 0;
}

.step-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.step-item.completed {
    background: #d1fae5;
    border-color: #10b981;
}

.step-item.dragging {
    opacity: 0.5;
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.step-item::before {
    content: '⋮⋮';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2em;
    line-height: 0.5;
    cursor: move;
}

.step-item h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.step-options {
    margin-top: 15px;
    padding-left: 20px;
}

.step-options label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

.step-options input[type="radio"] {
    margin-right: 10px;
}

.steps-order {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.steps-order h3 {
    color: #0369a1;
    margin-bottom: 15px;
}

#stepsOrderList {
    display: flex;
    flex-direction: column; /* 改为纵向排列 */
    gap: 15px; /* 纵向间距 */
    align-items: flex-start; /* 左对齐 */
}

.order-tag {
    background: #0ea5e9;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
    width: 100%; /* 让标签占满宽度，方便拖拽 */
    max-width: 300px; /* 限制最大宽度 */
    text-align: center; /* 文字居中 */
    position: relative; /* 为拖拽提供定位参考 */
}

.order-tag:hover {
    background: #0284c7;
    transform: scale(1.05);
}

.order-tag.dragging {
    opacity: 0.5;
}

.scenario-prompt {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.3em;
    line-height: 1.6;
    font-weight: 600;
    color: #78350f;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 0.5px;
}

.pressure-controls {
    margin: 30px 0;
}

.pressure-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.pressure-item label {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.pressure-item input[type="range"] {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.pressure-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.pressure-item input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.pressure-item span {
    display: inline-block;
    margin-left: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    min-width: 50px;
}

.circulation-technique {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.circulation-technique h3 {
    color: #0c4a6e;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.circulation-technique ul {
    list-style: none;
    padding: 0;
}

.circulation-technique li {
    padding: 10px 0;
    border-bottom: 1px solid #bae6fd;
    color: #075985;
    font-size: 1.1em;
}

.circulation-technique li:last-child {
    border-bottom: none;
}

.circulation-technique li::before {
    content: '✓ ';
    color: #0ea5e9;
    font-weight: bold;
    margin-right: 10px;
}

.success-content {
    text-align: center;
    padding: 40px;
}

.success-content h2 {
    font-size: 2.5em;
    color: #10b981;
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.5em;
    color: #059669;
    margin: 15px 0;
    font-weight: bold;
}

.final-score {
    background: #f0f9ff;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    font-size: 1.3em;
}

.final-score p {
    margin: 10px 0;
    font-weight: bold;
}

.weakness-analysis {
    background: #fef3c7;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
}

.weakness-analysis h3 {
    color: #92400e;
    margin-bottom: 15px;
}

.weakness-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 4px solid #f59e0b;
}

.assistant-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.assistant-panel.hidden {
    display: none;
}

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

.assistant-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.btn-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.assistant-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.assistant-content p {
    line-height: 1.6;
    margin: 10px 0;
    color: #333;
}

.reward-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    text-align: center;
    animation: popIn 0.5s ease;
}

.reward-popup.hidden {
    display: none;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.reward-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.reward-content p {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 1.8em;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .game-main {
        padding: 20px;
    }
    
    .assistant-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* 呼吸频率 - 气囊模型样式 */
.bag-mask-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin: 20px 0;
}

.bag-mask-operation-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 800px;
}

.bag-mask-model {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.bag-body {
    position: relative;
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 60px 60px 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bag-body:active {
    transform: scale(0.95);
}

.bag-handle {
    position: absolute;
    top: -10px;
    width: 40px;
    height: 20px;
    background: #1e40af;
    border-radius: 10px 10px 0 0;
}

.bag-inflate {
    width: 100px;
    height: 160px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50px 50px 15px 15px;
    transition: transform 0.2s ease, height 0.2s ease;
    position: relative;
}

.bag-inflate.inflating {
    transform: scale(0.9);
    height: 140px;
}

.mask-part {
    position: absolute;
    left: 140px;
    width: 80px;
    height: 60px;
    background: #94a3b8;
    border-radius: 0 30px 30px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.operation-button-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.operation-button-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.operation-button-left #breathPhase,
.operation-button-right #breathPhase {
    background: #f0f9ff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #0369a1;
}

.breathing-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.stat-item label {
    display: block;
    color: #64748b;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-item span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #0ea5e9;
}

.breathing-instructions {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
}

.breathing-instructions p {
    margin: 5px 0;
    color: #92400e;
    font-size: 0.95em;
}

.hint {
    text-align: center;
    color: #78350f;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 0.5px;
}

/* 呼吸频率 - 规则说明面板 */
.breathing-rules-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.breathing-rules-panel h3 {
    color: #0369a1;
    margin-bottom: 15px;
    text-align: center;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
}

.rule-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.rule-text {
    flex: 1;
}

.rule-text strong {
    color: #0369a1;
    font-size: 1.1em;
}

.rule-text p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 0.95em;
}

.btn-demo {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-demo:hover {
    transform: scale(1.02);
}

.btn-demo:active {
    transform: scale(0.98);
}

/* 示范界面 */
.demo-panel {
    background: white;
    border: 3px solid #0ea5e9;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.demo-panel.hidden {
    display: none;
}

.demo-panel h3 {
    color: #0369a1;
    text-align: center;
    margin-bottom: 20px;
}

.demo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.demo-bag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.demo-bag-mask-model {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.demo-bag-body {
    position: relative;
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 60px 60px 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-bag-handle {
    position: absolute;
    top: -10px;
    width: 40px;
    height: 20px;
    background: #1e40af;
    border-radius: 10px 10px 0 0;
}

.demo-bag-inflate {
    width: 100px;
    height: 160px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50px 50px 15px 15px;
    transition: transform 0.3s ease, height 0.3s ease;
    position: relative;
}

.demo-bag-inflate.inflating {
    transform: scale(0.9);
    height: 140px;
}

.demo-mask-part {
    position: absolute;
    left: 140px;
    width: 80px;
    height: 60px;
    background: #94a3b8;
    border-radius: 0 30px 30px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.demo-breathing-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #f0f9ff;
    border-radius: 20px;
    font-weight: bold;
    color: #0369a1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.demo-instruction {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
}

.demo-instruction p {
    margin: 0;
    color: #92400e;
    font-size: 1em;
    font-weight: bold;
}

.btn-demo-action {
    padding: 12px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-demo-action:hover:not(:disabled) {
    transform: scale(1.05);
}

.btn-demo-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-demo-close {
    padding: 10px 25px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-demo-close:hover {
    background: #475569;
}

/* 操作提示 */
.operation-hint {
    text-align: center;
    margin-bottom: 20px;
}

.hint-text {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.25em;
    color: #78350f;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* 点击指示器 */
.click-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #0369a1;
    font-weight: bold;
    pointer-events: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 实时时间显示面板 */
.time-display-panel {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    max-width: 600px;
    width: 100%;
}

.time-display-item {
    margin-bottom: 20px;
}

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

.time-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.time-label-group label {
    font-weight: bold;
    color: #475569;
    font-size: 0.95em;
}

.time-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #0ea5e9;
    min-width: 50px;
    text-align: right;
}

.time-unit {
    color: #64748b;
    font-size: 0.9em;
}

.time-hint {
    color: #64748b;
    font-size: 0.85em;
    font-style: italic;
}

/* 时间进度条 */
.time-progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 5px;
}

.time-progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 15px;
    transition: width 0.1s linear, background 0.3s ease;
    min-width: 2px;
}

.time-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.time-marker::after {
    content: attr(data-label);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #64748b;
    white-space: nowrap;
}

.time-marker-min {
    background: #10b981;
    width: 3px;
}

.time-marker-max {
    background: #f59e0b;
    width: 3px;
}

/* 开始操作按钮容器 */
.start-operation-container {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
}

.btn-start-operation {
    padding: 20px 50px;
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-start-operation:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.btn-start-operation:active {
    transform: scale(0.98);
}

.btn-end-operation {
    padding: 20px 50px;
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-end-operation:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
}

.btn-end-operation:active {
    transform: scale(0.98);
}

.start-hint {
    margin-top: 15px;
    color: #64748b;
    font-size: 1.1em;
}

/* 氧浓度选择屏幕 */
.oxygen-concentration-info {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.oxygen-concentration-info .hint {
    margin: 5px 0;
    color: #0c4a6e;
}

/* 模态弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content h3 {
    color: #1e40af;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.2em;
    color: #475569;
    margin-bottom: 30px;
}

/* 血氧饱和度监测部位选择 */
.saturation-location-modal {
    max-width: 700px;
}

.baby-monitoring-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    min-height: 400px;
}

.baby-figure {
    position: relative;
    width: 300px;
    height: 400px;
}

.baby-body {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #fbbf24;
}

/* 监测部位点 */
.monitoring-point {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.2);
    border: 3px solid #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.monitoring-point:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

.monitoring-point.selected {
    background: rgba(16, 185, 129, 0.4);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    transform: scale(1.3);
}

.monitoring-point .point-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9em;
    font-weight: bold;
    color: #1e40af;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.monitoring-point.selected .point-label {
    color: #059669;
    background: #d1fae5;
}

/* 左上肢 */
.monitoring-point.left-arm-top {
    top: 15%;
    left: -10%;
}

/* 右上肢 */
.monitoring-point.right-arm-top {
    top: 15%;
    right: -10%;
}

/* 左下肢 */
.monitoring-point.left-leg {
    bottom: 10%;
    left: 20%;
}

/* 右下肢 */
.monitoring-point.right-leg {
    bottom: 10%;
    right: 20%;
}

/* 添加一些装饰性的线条来指示部位 */
.monitoring-point::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background: #3b82f6;
    opacity: 0.5;
}

.monitoring-point.left-arm-top::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%) rotate(-45deg);
}

.monitoring-point.right-arm-top::before {
    top: 50%;
    right: 50%;
    transform: translate(50%, -100%) rotate(45deg);
}

.monitoring-point.left-leg::before {
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 100%) rotate(45deg);
}

.monitoring-point.right-leg::before {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 100%) rotate(-45deg);
}

.monitoring-point.selected::before {
    background: #10b981;
    opacity: 0.8;
}

/* MRSOPA配对游戏样式 */
.mrsopa-game-container {
    margin: 30px 0;
}

.mrsopa-pairing-area {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.letters-column,
.meanings-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.mrsopa-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #1e40af;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mrsopa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.mrsopa-card.selected {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.letter-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #5a67d8;
}

.letter-card:hover {
    border-color: #4c51bf;
}

.letter-card.selected {
    background: linear-gradient(135deg, #4c51bf 0%, #5a67d8 100%);
    border-color: #434190;
}

.meaning-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #e91e63;
}

.meaning-card:hover {
    border-color: #c2185b;
}

.meaning-card.selected {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    border-color: #ad1457;
}

.mrsopa-pairs-display {
    margin-top: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 10px;
    border: 2px solid #bfdbfe;
    min-height: 100px;
}

.mrsopa-pair-item {
    background: white;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    color: #1e40af;
}

.mrsopa-pair-item strong {
    color: #059669;
    font-size: 1.3em;
    margin-right: 10px;
}

/* Mr.Sopa形象样式 */
.mr-sopa-character {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    border: 3px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mr-sopa-character h4 {
    color: #92400e;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.character-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.character-container svg {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.character-hint {
    margin-top: 20px;
    font-size: 1.3em;
    color: #92400e;
    font-weight: bold;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 判断通气有效性游戏样式 */
.effectiveness-game-container {
    margin: 30px 0;
}

.game-instruction {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 15px;
    border: 2px solid #0284c7;
}

.classification-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.classification-area {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    min-height: 250px;
    transition: all 0.3s ease;
}

.classification-area.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.required-area {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.required-area.drag-over {
    border-color: #059669;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.optional-area {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.optional-area.drag-over {
    border-color: #d97706;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.wrong-area {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.wrong-area.drag-over {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.area-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.area-header h3 {
    flex: 1;
    margin: 0;
    color: #1e40af;
    font-size: 1.3em;
}

.area-count {
    background: #3b82f6;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    min-width: 30px;
    text-align: center;
}

.required-area .area-count {
    background: #10b981;
}

.optional-area .area-count {
    background: #f59e0b;
}

.wrong-area .area-count {
    background: #ef4444;
}

.area-content {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.area-hint {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    margin: auto 0;
}

/* 选项卡片样式 */
.options-cards-container {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.options-cards-container h3 {
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.options-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.effectiveness-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: move;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.effectiveness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.effectiveness-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.effectiveness-card.in-area {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    cursor: pointer;
}

.effectiveness-card.in-area:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.3em;
}

.card-text {
    font-size: 1.1em;
    font-weight: 500;
    color: #1e40af;
    flex: 1;
}

/* 拖拽动画 */
@keyframes cardDrop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 设备盒子样式 */
.equipment-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.equipment-box {
    position: relative;
    width: 600px;
    min-height: 300px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5b47 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: all 0.5s ease;
    overflow: hidden;
}

.equipment-box.open {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.box-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b7355 0%, #6b5b47 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease;
    z-index: 10;
    cursor: pointer;
}

.equipment-box.open .box-lid {
    transform: rotateX(-120deg);
    transform-origin: top;
    pointer-events: none;
}

.lid-handle {
    font-size: 4em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.box-content {
    display: none;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.equipment-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.equipment-section h4 {
    color: #1e40af;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.equipment-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.equipment-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 3px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.equipment-item.selected {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.item-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.item-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #1e40af;
}

.btn-open-box {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.btn-open-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.7);
}

.btn-open-box:active {
    transform: translateY(0);
}

.btn-open-box span {
    font-size: 1.2em;
    margin-right: 10px;
}

.selection-hint {
    margin: 20px 0;
    padding: 15px;
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 10px;
}

.selected-equipment {
    margin: 20px 0;
    padding: 20px;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-item label {
    font-weight: bold;
    color: #059669;
}

.selected-item span {
    font-size: 1.2em;
    color: #1e40af;
    font-weight: bold;
    padding: 5px 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #10b981;
}

/* 插管深度表格样式 */
.intubation-depth-instruction {
    margin: 20px 0;
    padding: 15px;
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 10px;
}

.intubation-depth-instruction .hint {
    margin: 0;
    color: #0c4a6e;
    font-size: 1em;
}

.depth-table-container {
    margin: 30px 0;
    overflow-x: auto;
}

.depth-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.depth-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.depth-table th {
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.depth-table th:last-child {
    border-right: none;
}

.depth-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.depth-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

.depth-table tbody tr.selected {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.depth-table tbody tr.matched-row {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.depth-table tbody tr.matched-row:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.depth-table td {
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1em;
    color: #1e40af;
    border-right: 1px solid #e2e8f0;
}

.depth-table td:last-child {
    border-right: none;
    font-weight: bold;
    color: #059669;
    font-size: 1.2em;
}

.arrow-icon {
    color: #94a3b8;
    margin-left: 5px;
    font-size: 0.9em;
}

.selected-depth {
    margin: 20px 0;
    padding: 20px;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 10px;
    text-align: center;
}

.selected-depth p {
    margin: 0;
    font-size: 1.2em;
    color: #059669;
}

.selected-depth strong {
    color: #1e40af;
    font-size: 1.3em;
    padding: 5px 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #10b981;
}

/* 深度选择区域样式 */
.depth-selection-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.depth-selection-container h3 {
    color: #1e40af;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
}

.depth-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.depth-option-card {
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.depth-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.depth-option-card.selected {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.depth-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #1e40af;
}

.depth-option-card.selected .depth-value {
    color: #059669;
}

/* 判断插管成功检查清单样式 */
.checklist-container {
    margin: 30px 0;
}

.checklist-instruction {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid #0284c7;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.checklist-progress {
    margin-top: 10px;
    font-size: 1.1em;
    color: #0c4a6e;
    font-weight: bold;
}

.checklist-progress span:last-child {
    color: #0284c7;
    font-size: 1.2em;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.checklist-item {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.checklist-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.checklist-item:hover::before {
    left: 100%;
}

.checklist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.checklist-item.checked {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.checklist-item-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.check-icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checklist-item.checked .check-icon-container {
    background: #10b981;
    border-color: #059669;
    transform: scale(1.1);
}

.check-icon {
    font-size: 1.5em;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.checklist-item.checked .check-icon {
    color: white;
    font-weight: bold;
}

.check-item-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
}

.checklist-item.checked .item-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.item-text {
    font-size: 1.2em;
    color: #1e40af;
    font-weight: 500;
}

.checklist-item.checked .item-text {
    color: #059669;
}

.check-status {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-icon {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    animation: checkMarkAppear 0.5s ease-out;
}

.checklist-complete {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid #10b981;
    border-radius: 15px;
    text-align: center;
    animation: completeSlideIn 0.5s ease-out;
}

.complete-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.complete-icon {
    font-size: 4em;
    animation: completeBounce 0.6s ease-out;
}

.complete-animation p {
    font-size: 1.5em;
    color: #059669;
    font-weight: bold;
    margin: 0;
}

/* 动画效果 */
@keyframes checkItemPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkMarkAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes completeBounce {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.2) translateY(-10px);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    75% {
        transform: scale(1.15) translateY(-8px);
    }
}

@keyframes completeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 胸外按压部位和深度样式 */
.compression-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.compression-section h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.instruction-text {
    text-align: center;
    color: #475569;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 500;
}

.baby-chest-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.baby-chest-svg,
.baby-chest-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 3px solid #cbd5e1;
    border-radius: 15px;
    background: white;
    cursor: crosshair;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.baby-chest-svg:hover,
.baby-chest-image:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.position-feedback,
.depth-feedback {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.position-feedback span,
.depth-status {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

.depth-progress {
    width: 100%;
    margin-top: 15px;
}

.depth-bar-container {
    position: relative;
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.depth-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 15px;
}

.depth-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #667eea 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 15px;
}

.depth-marker {
    position: absolute;
    left: 33.3%;
    top: 0;
    width: 3px;
    height: 100%;
    background: #10b981;
    z-index: 10;
}

.depth-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    color: #475569;
    margin-top: 5px;
}

.depth-text span {
    font-weight: 500;
}

.depth-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #f1f5f9;
}

/* 胸外按压频率和正压通气配合界面 */
.compression-frequency-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin: 20px 0;
}

.operation-hint {
    text-align: center;
    margin-bottom: 20px;
}

.hint-text {
    font-size: 1.25em;
    color: #78350f;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 0.5px;
}

.operation-buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.start-operation-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px dashed #cbd5e1;
}

.btn-start-operation {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-weight: bold;
}

.btn-start-operation:hover {
    transform: scale(1.05);
}

.btn-start-operation:active {
    transform: scale(0.95);
}

.start-hint {
    margin-top: 15px;
    color: #64748b;
    font-size: 0.95em;
}

.compression-frequency-operation {
    width: 100%;
    max-width: 800px;
}

.rhythm-indicator {
    text-align: center;
    margin-bottom: 30px;
}

.rhythm-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 15px;
    border: 3px solid #0ea5e9;
    min-width: 200px;
}

.rhythm-text {
    font-size: 3em;
    font-weight: bold;
    color: #0369a1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rhythm-beat {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0ea5e9;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.operation-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.btn-compression,
.btn-ventilation {
    flex: 1;
    max-width: 250px;
    padding: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-ventilation {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-compression:hover,
.btn-ventilation:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-compression:active,
.btn-ventilation:active,
.btn-compression.pressing,
.btn-ventilation.pressing {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 3em;
}

.btn-label {
    font-size: 1.3em;
}

.btn-hint {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: normal;
}

.compression-frequency-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.compression-frequency-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.compression-frequency-stats .stat-item label {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 5px;
}

.compression-frequency-stats .stat-item span {
    font-size: 1.3em;
    font-weight: bold;
    color: #1e293b;
}

.cycle-progress-container {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.cycle-progress-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cycle-progress-fill {
    height: 100%;
    background: #10b981;
    width: 0%;
    transition: width 0.1s ease, background 0.3s ease;
    border-radius: 20px;
}

.cycle-progress-marker {
    position: absolute;
    top: 0;
    left: 33.3%;
    width: 3px;
    height: 100%;
    background: #ef4444;
    z-index: 10;
}

.cycle-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    color: #475569;
}

.cycle-progress-text span:first-child {
    font-weight: bold;
    color: #1e293b;
}

/* 胸外按压频率示范界面 */
.demo-compression-frequency-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.demo-rhythm-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.demo-rhythm-text {
    font-size: 4em;
    font-weight: bold;
    color: #0369a1;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 15px;
    border: 3px solid #0ea5e9;
    min-width: 200px;
}

.demo-operation-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.demo-btn-compression,
.demo-btn-ventilation {
    flex: 1;
    max-width: 200px;
    padding: 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.demo-btn-ventilation {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.demo-btn-compression.pressing,
.demo-btn-ventilation.pressing {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.demo-btn-icon {
    font-size: 2.5em;
}

.demo-btn-label {
    font-size: 1.2em;
}

/* 结束操作按钮 */
.end-operation-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.btn-end-operation {
    padding: 12px 30px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-end-operation:hover {
    transform: scale(1.05);
}

.btn-end-operation:active {
    transform: scale(0.95);
}

.end-hint {
    margin-top: 10px;
    color: #64748b;
    font-size: 0.95em;
}

.end-hint span {
    font-weight: bold;
    color: #3b82f6;
    font-size: 1.1em;
}

