/* ============================================================
   1. CSS Custom Properties — 设计令牌（红蓝双色系统）
   ============================================================ */
.bc-header { text-align: center; } .bc-title { font-size: 1.1rem; font-weight: 900; color: var(--c-text); margin-bottom: 4px; } .bc-desc { font-size: 0.78rem; color: var(--c-text-secondary); line-height: 1.5; margin: 0; } .bc-timer-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--c-white); border: 1px solid #dbe7f1; border-radius: 12px; } .bc-timer-icon { font-size: 1.2rem; } .bc-timer-num { font-size: 1.3rem; font-weight: 900; color: var(--c-text); font-family: var(--font-mono); min-width: 28px; } .bc-timer-label { font-size: 0.75rem; color: var(--c-text-secondary); font-weight: 600; } .bc-timer-bar { flex: 1; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; } .bc-timer-fill { height: 100%; width: 100%; background: var(--c-primary); border-radius: 3px; transition: width 1s linear; } .bc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .bc-step-card { background: var(--c-white); border: 2px solid #e8edf2; border-radius: 14px; padding: 14px 6px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 4px; user-select: none; -webkit-user-select: none; } .bc-step-card:hover { border-color: var(--c-secondary-light); } .bc-step-card:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 2px; } .bc-step-card.done { border-color: #bbf7d0; background: #f0fdf4; cursor: default; } .bc-step-num { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; font-size: 0.7rem; font-weight: 900; display: flex; align-items: center; justify-content: center; color: var(--c-text-secondary); } .bc-step-card.done .bc-step-num { background: var(--c-success); color: #fff; } .bc-step-icon { font-size: 1.4rem; } .bc-step-text { font-size: 0.72rem; font-weight: 700; color: var(--c-text); } .bc-step-status { font-size: 0.6rem; font-weight: 700; color: var(--c-text-light); } .bc-step-status.done { color: var(--c-success); } .bc-step-status.observing { color: var(--c-secondary); animation: dangerPulse 0.5s infinite; } .bc-shout-bubble { display: none; text-align: center; padding: 10px 16px; background: #eff6ff; border: 2px solid #93c5fd; border-radius: 16px; font-size: 0.88rem; font-weight: 700; color: #1e40af; } .bc-shout-bubble.show { display: block; } .bc-feedback { min-height: 36px; font-size: 0.82rem; line-height: 1.5; } .bc-observe-countdown { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #0f172a; border-radius: 14px; color: #10b981; font-family: var(--font-mono); } .bc-observe-icon { font-size: 1.2rem; } .bc-observe-text { flex: 1; font-size: 0.82rem; font-weight: 700; color: #94a3b8; } .bc-observe-timer { font-size: 1.5rem; font-weight: 900; color: #10b981; } @media (max-width: 639px) { .bc-steps { gap: 4px; } .bc-step-card { padding: 10px 4px; } .bc-step-text { font-size: 0.65rem; } .bc-step-icon { font-size: 1.1rem; } }

:root {
  /* 急救红为主色，医疗蓝为辅 */
  --c-primary: #e53935; --c-primary-light: #ef5350; --c-primary-dark: #c62828;
  --c-primary-50: #fff1f0;
  --c-secondary: #2563eb; --c-secondary-light: #3b82f6; --c-secondary-50: #eff6ff;
  --c-bg: #f4f8fb; --c-bg-dark: #e5edf5;
  --c-bg-gradient: radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 32rem), radial-gradient(circle at top right, rgba(229, 57, 53, .12), transparent 28rem), #f4f8fb;
  --c-danger: #dc2626; --c-danger-light: #fecaca; --c-danger-50: #fff1f0;
  --c-success: #16a34a; --c-success-light: #bbf7d0; --c-success-50: #ecfdf5;
  --c-warning: #f59e0b; --c-warning-light: #fef3c7;
  --c-info: #2563eb; --c-info-light: #bfdbfe;
  --soft-red: #fff1f0; --soft-blue: #eff6ff; --soft-green: #ecfdf5; --soft-yellow: #fffbeb;
  --c-text: #0f172a; --c-text-secondary: #64748b; --c-text-light: #94a3b8; --c-text-muted: #94a3b8;
  --c-card: rgba(255, 255, 255, 0.82); --c-card-solid: rgba(255, 255, 255, 1);
  --c-ecg-bg: #0f172a; --c-ecg-line: #10b981; --c-ecg-grid: rgba(16,185,129,0.08);
  --c-press: #fef3c7; --c-press-ring: #f59e0b;
  --c-white: #FFFFFF;
  --rule: #dbe5ef;
  --radius-card: 28px; --radius-btn: 18px; --radius-pill: 999px; --radius-sm: 16px; --radius-xs: 10px;
  --fs-h1: 2rem; --fs-h2: 1.5rem; --fs-h3: 1.2rem; --fs-body: 1rem;
  --fs-sm: 0.85rem; --fs-xs: 0.75rem; --fs-timer: 1.25rem;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 20px; --space-xl: 32px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.1);
  --shadow-btn: 0 4px 14px rgba(229, 57, 53, 0.35);
  --shadow-lg: 0 4px 8px rgba(15,23,42,.06), 0 12px 40px rgba(15,23,42,.14);
  --blur: blur(16px); --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}
/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: var(--font); font-size: 16px; line-height: 1.5; background: var(--c-bg); color: var(--c-text); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
body { display: flex; justify-content: center; align-items: center; background: var(--c-bg-gradient); }
/* 3. Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; } .text-danger { color: var(--c-danger); } .text-success { color: var(--c-success); } .text-muted { color: var(--c-text-secondary); } .mt-md { margin-top: var(--space-md); } .mb-md { margin-bottom: var(--space-md); }
/* 4. App Shell */
#app-container {
  width: 100%; max-width: 100%; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(229,57,53,0.04) 0%, transparent 55%),
    radial-gradient(circle at 85% 92%, rgba(37,99,235,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 45%, rgba(37,99,235,0.02) 0%, transparent 60%),
    var(--c-bg-gradient);
}
/* Subtle medical cross pattern */
#app-container::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(229,57,53,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}
/* 5. Global Header */
#global-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--c-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 100; flex-shrink: 0; min-height: 48px; }
#global-header.hidden { display: none; }
.header-back { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; color: var(--c-text-secondary); font-family: var(--font); }
.header-step { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-secondary); }
.header-timer { display: flex; align-items: center; gap: 4px; font-size: var(--fs-timer); font-weight: 700; color: var(--c-danger); font-family: var(--font-mono); }
.header-timer.urgent { animation: timer-blink 0.5s infinite alternate; }
@keyframes timer-blink { from { opacity: 1; } to { opacity: 0.3; } }
/* 6. Step Indicator */
#step-indicator { display: flex; align-items: center; justify-content: center; gap: 0; padding: 10px 16px; flex-shrink: 0; background: var(--c-card); border-bottom: 1px solid rgba(0,0,0,0.03); }
#step-indicator.hidden { display: none; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: #E2E8F0; color: var(--c-text-light); transition: all var(--ease); flex-shrink: 0; }
.step-dot.done { background: var(--c-success); color: #fff; }
.step-dot.active { background: var(--c-primary); color: #fff; transform: scale(1.2); box-shadow: 0 0 10px rgba(229,57,53,0.45); }
.step-line { width: 16px; height: 2px; background: #E2E8F0; transition: background var(--ease); flex-shrink: 0; }
.step-line.done { background: var(--c-success); }
/* 7. Page Layout — display-based, 100% reliable */
#page-wrapper { flex: 1; overflow: hidden; position: relative; }
.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: var(--space-md);
  display: none;
  -webkit-overflow-scrolling: touch;
}
.page.active { display: block; z-index: 1; background: var(--c-bg); }
.page.active.page--splash { display: flex; background: transparent; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page__inner { max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-md); }
/* Page decorative header */
.page__inner::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), transparent);
  border-radius: 2px; margin-bottom: 4px; opacity: 0.5;
}
/* Step badge */
.page-step-badge {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--c-card); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius-btn); font-size: var(--fs-sm);
  font-weight: 700; color: var(--c-primary);
  box-shadow: var(--shadow-card); margin-bottom: 4px;
}
.page-step-badge .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
/* Dark mode */
body.dark { background: #0f1119; }
body.dark #app-container::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: rgba(5,8,16,0.45); animation: darkOverlayIn 0.4s ease forwards; }
@keyframes darkOverlayIn { from { opacity: 0; } to { opacity: 1; } }
body.dark .card { background: rgba(22,24,38,0.9); color: #e0e4f0; border-color: rgba(255,255,255,0.06); }
body.dark .btn--primary { background: linear-gradient(135deg, #ef5350, #dc2626); }
body.dark .btn--secondary { background: rgba(25,28,44,0.95); color: #93C5FD; border-color: #3b82f6; }
body.dark #global-header, body.dark #global-footer { background: rgba(18,20,34,0.95); border-color: rgba(255,255,255,0.04); }
body.dark .dashboard-main #page-wrapper { background: rgba(22,24,38,0.9); border-color: rgba(255,255,255,0.06); }
body.dark .splash-main-title { filter: drop-shadow(0 2px 6px rgba(229,57,53,0.3)); }
body.dark .mini-card-item { background: rgba(22,24,38,0.6); border-color: rgba(255,255,255,0.06); }
.mobile-toolbar,.mobile-guide-panel,.mobile-guide-overlay,.mobile-toggle-btn{display:none}
/* Dark mode toggle */
.dark-toggle { position: fixed; top: 12px; right: 12px; z-index: 250; width: 40px; height: 40px; border-radius: 50%; background: var(--c-card); border: 1px solid #E2E8F0; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); }
/* 8. Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: none; border-radius: var(--radius-btn); font-family: var(--font); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: all 0.2s ease; outline: none; text-decoration: none; white-space: nowrap; min-height: 48px; }
.btn:active { transform: scale(0.96); }
.btn--primary { background: linear-gradient(135deg, #e53935, #dc2626); color: #fff; box-shadow: 0 2px 12px rgba(229,57,53,0.3); position: relative; overflow: hidden; }
.btn--primary:hover { box-shadow: 0 4px 20px rgba(229,57,53,0.45); transform: translateY(-1px); }
.btn--primary:active::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  animation: btnFlash 0.25s ease-out;
}
@keyframes btnFlash { from { opacity: 1; } to { opacity: 0; } }
.btn--primary::after { content: ''; position: absolute; inset: -3px; border-radius: var(--radius-btn); border: 2px solid rgba(229,57,53,0.3); opacity: 0; animation: btnGlow 2s ease-in-out infinite; pointer-events: none; }
@keyframes btnGlow { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.03); } }
.btn--secondary { background: #fff; color: var(--c-secondary); border: 2px solid var(--c-secondary); }
.btn--danger { background: #fff; color: var(--c-danger); border: 2px solid var(--c-danger); }
.btn--ghost { background: transparent; color: var(--c-text-secondary); border: 1px solid #e2e8f0; }
.btn--lg { padding: 16px 40px; font-size: 1.05rem; font-weight: 700; }
.btn--block { width: 100%; } .btn--sm { padding: 8px 16px; font-size: var(--fs-xs); min-height: 40px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
/* Focus visible for keyboard users */
.btn:focus-visible, button:focus-visible, [role="button"]:focus-visible, .bc-step-card:focus-visible, .aed-drag-pad:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 3px;
}
.cpr-hotspot-btn:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 6px;
}
/* 9. Cards */
.card {
  background: var(--c-white); border-radius: var(--radius-card); padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
  border: 1px solid rgba(15,23,42,.06);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(15,23,42,0.14); }
.card--solid { background: var(--c-white); }
.card--ecg { background: var(--c-ecg-bg); border-radius: var(--radius-sm); padding: 12px; position: relative; overflow: hidden; }
/* Card with left accent bar */
.card--highlight {
  background: var(--c-white);
  border-left: 4px solid var(--c-primary);
  padding-left: calc(var(--space-lg) - 4px);
}
.card--danger-border {
  background: var(--c-white);
  border-left: 4px solid var(--c-danger);
  padding-left: calc(var(--space-lg) - 4px);
}
/* Knowledge badge */
.knowledge-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-secondary-50); color: var(--c-secondary);
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; margin-top: 8px;
}
/* 10. Modal */
#modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--ease); }
#modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; border-radius: var(--radius-card); padding: var(--space-xl); width: 90%; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); }
.modal-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.modal-title { font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--space-sm); color: var(--c-text); }
.modal-text { font-size: var(--fs-body); color: var(--c-text-secondary); margin-bottom: var(--space-lg); line-height: 1.6; }
.modal-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }
/* 11. Footer */
#global-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; flex-shrink: 0; background: var(--c-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-top: 1px solid rgba(0,0,0,0.05); z-index: 100; min-height: 48px; }
#global-footer.hidden { display: none; }
.vib-toggle { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-text-secondary); cursor: pointer; }
.vib-toggle input { width: 16px; height: 16px; accent-color: var(--c-primary); }
.ai-helper-btn { background: var(--c-secondary); color: #fff; border: none; border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; font-family: var(--font); display: flex; align-items: center; gap: 4px; }
.ai-bubble { position: absolute; bottom: 60px; right: 16px; background: #fff; border-radius: var(--radius-sm); padding: 12px 16px; max-width: 260px; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); line-height: 1.5; z-index: 150; display: none; border: 1px solid #E2E8F0; }
.ai-bubble.show { display: block; animation: fadeInUp 0.2s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* 12. Loading */
#app-loading { position: fixed; inset: 0; z-index: 300; background: var(--c-bg-gradient); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.4s ease; }
#app-loading.hidden { opacity: 0; pointer-events: none; }
.loading-ecg { width: 200px; height: 60px; margin-bottom: var(--space-md); }
.loading-text { font-size: var(--fs-body); color: var(--c-text-secondary); font-weight: 500; }
/* 13. Particle Canvas */
#particle-canvas { position: fixed; inset: 0; z-index: 190; pointer-events: none; display: none; }
#particle-canvas.active { display: block; }
/* 14. PAGE 1 — 首页 (重设计) */
.page--splash { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 24px 20px 40px; }
.splash-ecg-bg { position: absolute; inset: 0; opacity: 0.12; pointer-events: none; }
/* Brand header */
.splash-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.splash-logo { width: 48px; height: 48px; flex-shrink: 0; }
.splash-tag {
  background: var(--soft-red); color: var(--c-primary);
  padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}
/* Title */
.splash-title { font-size: 1.85rem; font-weight: 800; color: var(--c-primary); letter-spacing: -0.3px; line-height: 1.25; margin-bottom: 8px; max-width: 320px; }
.splash-subtitle { font-size: 0.9rem; color: var(--c-text-secondary); line-height: 1.5; margin-bottom: 20px; max-width: 300px; }
/* Highlight cards row */
.highlight-row { display: flex; gap: 10px; margin-bottom: 16px; justify-content: center; flex-wrap: wrap; }
.highlight-card {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: var(--radius-sm); padding: 8px 14px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.04);
  font-size: 12px; font-weight: 700; color: var(--c-text);
}
.highlight-card .hl-icon { font-size: 16px; }
.highlight-card .hl-text { white-space: nowrap; }
/* Score */
.splash-score { font-size: 13px; color: var(--c-text-light); margin-bottom: 16px; }
.splash-score strong { color: var(--c-primary); font-size: 1rem; }
/* Secondary buttons */
.splash-secondary-btns { display: flex; gap: 10px; width: 100%; max-width: 320px; margin-bottom: 12px; }
.splash-secondary-btns .btn { flex: 1; }
/* Disclaimer */
.splash-disclaimer {
  font-size: 0.7rem; color: var(--c-warning); line-height: 1.4;
  max-width: 300px; margin-bottom: 20px;
  background: var(--soft-yellow); padding: 8px 14px; border-radius: var(--radius-sm);
}
/* Legacy */
.splash-heart { width: 90px; height: 90px; margin-bottom: var(--space-lg); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.splash-btns { display: flex; flex-direction: column; gap: var(--space-sm); width: 100%; max-width: 280px; }
/* 15. PAGE 2 — 情景引入 (重设计) */
.scene-card { border-radius: var(--radius-card); overflow: hidden; }
.scene-art {
  width: 100%; height: 200px; position: relative; overflow: hidden;
}
/* Bathroom background */
.scene-bathroom-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #E8E0D8 0%, #D9D0C5 25%, #C8BDB0 50%, #B0BCC8 100%);
}
/* Tile pattern */
.scene-bathroom-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.15) 39px, rgba(255,255,255,0.15) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.15) 39px, rgba(255,255,255,0.15) 40px);
}
/* Water heater */
.scene-heater {
  position: absolute; top: 16px; right: 28px; z-index: 3;
}
.scene-heater-body {
  width: 36px; height: 50px; background: #F5F5F5; border-radius: 6px;
  border: 2px solid #D0D0D0; position: relative;
}
.scene-heater-body::after {
  content: ''; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 4px; background: #A0AEC0; border-radius: 2px;
}
.scene-heater-light {
  width: 8px; height: 8px; border-radius: 50%; background: #E53E3E;
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(229,62,62,0.6);
  animation: heaterBlink 1.5s ease-in-out infinite;
}
@keyframes heaterBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* Faucet */
.scene-faucet {
  position: absolute; top: 22px; left: 24px; z-index: 3;
  width: 10px; height: 24px; background: #B0B8C0; border-radius: 3px 3px 0 0;
}
.scene-faucet::after {
  content: ''; position: absolute; top: 0; left: -5px;
  width: 20px; height: 6px; background: #B0B8C0; border-radius: 3px;
}
/* Puddles */
.scene-puddle {
  position: absolute; bottom: 8px; left: 20%; right: 20%; height: 12px;
  background: rgba(59,130,246,0.25); border-radius: 50%;
  z-index: 1;
}
.scene-puddle-2 {
  left: 50%; right: 8%; bottom: 18px; height: 8px;
  background: rgba(59,130,246,0.18);
}
/* Fallen person silhouette */
.scene-person-fallen {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scene-fallen-head {
  width: 18px; height: 18px; background: #3D5A80; border-radius: 50%;
  margin: 0 auto 2px;
}
.scene-fallen-body {
  width: 64px; height: 24px; background: #3D5A80; border-radius: 12px 12px 4px 4px;
}
/* Danger icons */
.scene-danger-icon {
  position: absolute; font-size: 32px; z-index: 3;
  top: 60px; left: 40px;
  animation: dangerFlash 0.8s ease-in-out infinite;
}
.scene-danger-icon-2 {
  top: 50px; left: auto; right: 50px;
  animation-delay: 0.4s; font-size: 24px;
}
@keyframes dangerFlash {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
/* Risk bar */
.scene-risk-bar {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 16px;
  background: var(--soft-red); color: var(--c-danger);
  border-top: 2px solid var(--c-danger-light);
  font-size: 13px; font-weight: 700;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
/* Narrative */
.scene-narrative {
  font-size: var(--fs-body); line-height: 1.8; color: var(--c-text);
  background: var(--c-white); border-radius: var(--radius-card); padding: var(--space-lg);
  box-shadow: var(--shadow-card); position: relative;
}
.scene-narrative .highlight { color: var(--c-danger); font-weight: 700; }

/* Legacy scene elements kept for backward JS compat (enterPage2 still references these) */
.scene-sky { position: absolute; top: 0; left: 0; right: 0; height: 50%; }
.scene-ground { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; }
.scene-sun { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: #FDE047; box-shadow: 0 0 30px #FDE04788; top: 16px; right: 30px; }
.scene-person { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 50px; height: 80px; }
.scene-person-body { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 38px; height: 55px; background: #E53E3E; border-radius: 16px 16px 4px 4px; }
.scene-person-head { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; background: #F5D0A9; border-radius: 50%; }
.scene-person-arm-left { position: absolute; bottom: 20px; left: 4px; width: 10px; height: 30px; background: #E53E3E; border-radius: 5px; transform: rotate(20deg); }
.scene-person-arm-right { position: absolute; bottom: 20px; right: 4px; width: 10px; height: 30px; background: #E53E3E; border-radius: 5px; transform: rotate(-20deg); }
.scene-tree { position: absolute; bottom: 40px; }
.scene-tree.trunk { width: 10px; height: 30px; background: #8B4513; border-radius: 2px; }
.scene-tree.crown { width: 40px; height: 40px; background: #228B22; border-radius: 50%; position: relative; left: -15px; top: -10px; }
.scene-court-line { position: absolute; bottom: 20px; left: 20%; right: 20%; height: 3px; background: #fff; opacity: 0.6; }
.scene-hoop { position: absolute; top: 30px; right: 20px; width: 30px; height: 30px; border: 3px solid #E53E3E; border-radius: 0 0 50% 50%; border-top: none; }
.scene-tile { position: absolute; background: rgba(255,255,255,0.3); }
.scene-art.park { background: linear-gradient(180deg, #87CEEB 0%, #B8E6B8 40%, #7CB342 70%, #5A8A32 100%); }
.scene-art.court { background: linear-gradient(180deg, #87CEEB 0%, #B0BEC5 30%, #F4A460 55%, #D2691E 80%, #8B4513 100%); }
.scene-art.bathroom { background: linear-gradient(180deg, #E8E0D8 0%, #D5CCC0 30%, #C4B8AC 60%, #B8C8D8 100%); }
.scene-narrative::before { content: '📍'; position: absolute; top: -15px; left: 20px; font-size: 1.5rem; }

/* ============================================================
   16. PAGE 3 — 环境评估 (Decision Cards)
   ============================================================ */
.quiz-question { font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--space-md); color: var(--c-text); }
/* Decision Card — 新决策卡片组件 */
.decision-card {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; padding: 16px; margin-bottom: 10px;
  border: 2px solid #E8ECF1; border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-family: var(--font);
  transition: all 0.2s ease; text-align: left; position: relative;
}
.decision-card:hover { border-color: #B0C4D8; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transform: translateX(2px); }
.decision-card:active { transform: scale(0.985); }
.dc-letter {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--c-primary);
  background: var(--c-primary-50); border: 2px solid #D0E0F0;
}
.dc-icon { font-size: 24px; flex-shrink: 0; line-height: 32px; }
.dc-body { flex: 1; min-width: 0; }
.dc-title { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 2px; }
.dc-desc { font-size: 12px; color: var(--c-text-secondary); line-height: 1.5; }
.dc-feedback { display: none; font-size: 12px; line-height: 1.6; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(0,0,0,0.05); }
/* Decision card states */
.decision-card.correct {
  border-color: var(--c-success); background: var(--c-success-50);
  border-left: 4px solid var(--c-success);
}
.decision-card.correct .dc-letter { background: var(--c-success); color: #fff; border-color: var(--c-success); }
.decision-card.correct .dc-feedback { display: block; color: #22543D; }
.decision-card.wrong {
  border-color: var(--c-danger); background: var(--c-danger-50);
  border-left: 4px solid var(--c-danger); animation: shake 0.4s ease;
}
.decision-card.wrong .dc-letter { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.decision-card.wrong .dc-feedback { display: block; color: #991B1B; }
@keyframes shake { 0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)} }
/* Legacy quiz-option — kept for backward compat in non-upgraded pages */
.quiz-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 16px 18px; margin-bottom: 10px;
  border: 2px solid #E2E8F0; border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-body); text-align: left;
  cursor: pointer; font-family: var(--font); transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
.quiz-option::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--c-secondary); transform: scaleY(0); transition: transform 0.2s ease;
}
.quiz-option:hover { border-color: var(--c-secondary); background: var(--soft-blue); transform: translateX(2px); }
.quiz-option:hover::before { transform: scaleY(1); }
.quiz-option.correct { border-color: var(--c-success); background: var(--c-success-light); animation: correctPulse 0.5s ease; }
.quiz-option.correct::before { background: var(--c-success); transform: scaleY(1); }
.quiz-option.selected { border-color: var(--c-secondary); background: var(--soft-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.quiz-option.wrong { border-color: var(--c-danger); background: var(--c-danger-light); animation: shake 0.4s ease; }
.quiz-option.wrong::before { background: var(--c-danger); transform: scaleY(1); }
@keyframes correctPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.quiz-feedback {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); line-height: 1.7; display: none;
  border-left: 4px solid transparent;
}
.quiz-feedback.show { display: block; animation: fadeInUp 0.3s ease; }
.quiz-feedback.error { background: var(--c-danger-light); color: #9B2C2C; border-left-color: var(--c-danger); }
.quiz-feedback.success { background: var(--c-success-light); color: #22543D; border-left-color: var(--c-success); }

/* ============================================================
   17. PAGE 4 — 呼救与AED
   ============================================================ */
.phone-ui {
  background: #f8fbff;
  border: 1px solid #dbe7f1;
  border-radius: 18px;
  padding: 16px;
  color: var(--c-text);
  text-align: left;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
}
.phone-screen {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
  position: relative;
}
.phone-screen::before {
  display: none;
}
.phone-call-status {
  font-size: var(--fs-sm); color: var(--c-success); font-weight: 700;
  margin-bottom: var(--space-sm); margin-top: 6px;
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
}
.phone-call-status::before { content: ''; width: 8px; height: 8px; background: var(--c-success); border-radius: 50%; animation: pulse 1.5s infinite; }
.phone-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-xs);
  background: #ffffff; color: var(--c-text);
  border: 1px solid #dbe7f1;
  font-size: var(--fs-body); font-family: var(--font);
  margin: 4px 0; text-align: left;
}
.phone-input:focus { border-color: var(--c-primary); outline: none; }
/* 120 Call Chat UI */
.call-chat { display: flex; flex-direction: column; gap: 10px; min-height: 120px; margin-bottom: 14px; }
.chat-bubble { display: flex; gap: 8px; animation: pageFadeIn 0.25s ease-out; }
.chat-bubble.user { flex-direction: row-reverse; }
.bubble-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--soft-blue); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.chat-bubble.user .bubble-avatar { background: var(--c-primary-50); }
.bubble-body { background: #f1f5f9; border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 0.85rem; line-height: 1.55; max-width: 80%; color: var(--c-text); }
.chat-bubble.user .bubble-body { background: var(--c-primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.call-options { display: flex; flex-direction: column; gap: 6px; }
.call-option-btn {
  width: 100%; padding: 10px 14px; border: 2px solid #E8ECF1; border-radius: var(--radius-sm);
  background: #fff; font-size: 0.82rem; text-align: left; cursor: pointer;
  font-family: var(--font); transition: all 0.15s;
}
.call-option-btn:hover { border-color: var(--c-secondary); background: var(--soft-blue); }
.call-option-btn:active { transform: scale(0.98); }
.call-option-btn.correct { border-color: var(--c-success); background: var(--c-success-50); }
.call-option-btn.wrong { border-color: var(--c-danger); background: var(--c-danger-50); }
.call-timer { font-family: var(--font-mono); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.call-check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #fff;
  border-radius: var(--radius-xs); cursor: pointer;
  font-size: var(--fs-sm); color: var(--c-text);
  border: 1.5px solid #dbe7f1; transition: all 0.15s;
}
.call-check:hover { border-color: var(--c-secondary); background: var(--soft-blue); }
.call-check.selected { border-color: var(--c-success); background: var(--c-success-50); color: var(--c-success); }
.call-check input { display: none; }
.aed-timer {
  font-size: 2.5rem; font-weight: 800; color: var(--c-danger);
  font-family: var(--font-mono); text-align: center;
}
.aed-icon-placeholder {
  width: 80px; height: 80px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; border: 3px solid var(--c-danger);
}

/* ============================================================
   18. PAGE 5 — 判断呼吸脉搏
   ============================================================ */
.body-model {
  position: relative; width: 100%; max-width: 300px;
  height: 400px; margin: 0 auto;
}
.body-model svg { pointer-events: none; }
.body-hotspot {
  position: absolute; border-radius: 50%;
  border: 3px dashed var(--c-primary); z-index: 10;
  background: rgba(229,57,53,0.08); cursor: pointer;
  transition: all 0.2s; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 12px; font-weight: 700;
  color: var(--c-primary); line-height: 1.3;
}
.body-hotspot:active { background: rgba(229,57,53,0.18); transform: translate(-50%, -50%) scale(0.95); }
.body-hotspot:hover { background: rgba(229,57,53,0.12); border-style: solid; }
.body-hotspot.done { border-color: var(--c-success); background: rgba(56,161,105,0.2); border-style: solid; color: var(--c-success); }
.body-hotspot.chest { width: 110px; height: 70px; top: 34%; left: 50%; transform: translate(-50%, -50%); border-radius: 45px; }
.body-hotspot.neck { width: 44px; height: 48px; top: 19%; left: 48%; transform: translate(-50%, -50%); border-radius: 24px; }
.check-timer { font-size: var(--fs-h2); font-weight: 800; color: var(--c-danger); text-align: center; font-family: var(--font-mono); }

/* ============================================================
   19. PAGE 6 — 胸外按压 (核心) — 重设计
   ============================================================ */
.press-layout { display: flex; flex-direction: column; gap: var(--space-md); }
/* Top status bar */
.press-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.press-step-badge {
  background: var(--c-primary); color: #fff; padding: 6px 14px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
}
.press-timer-badge {
  background: var(--c-danger-50); color: var(--c-danger); padding: 6px 14px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; font-family: var(--font-mono);
  display: flex; align-items: center; gap: 4px;
}
.press-timer-badge.urgent { animation: timerBlinkFast 0.4s infinite alternate; }
@keyframes timerBlinkFast { from { opacity: 1; } to { opacity: 0.35; } }
/* ECG panel */
.press-ecg { flex-shrink: 0; }
.press-ecg canvas { width: 100%; height: 56px; display: block; }
.ecg-overlay {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px 0 8px; font-size: 10px; color: #4ADE80; font-family: var(--font-mono);
  letter-spacing: 1px;
}
/* Circular press area */
.press-circle-container {
  display: flex; align-items: center; justify-content: center;
  position: relative; width: 200px; height: 200px; margin: 0 auto;
}
.press-progress-ring {
  position: absolute; inset: 0; width: 200px; height: 200px;
  transform: rotate(-90deg);
}
.press-progress-ring .ring-bg {
  fill: none; stroke: #E8ECF1; stroke-width: 8;
}
.press-progress-ring .ring-fill {
  fill: none; stroke: var(--c-primary); stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 0.15s ease;
}
.press-heart-btn {
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ef5350, #dc2626);
  box-shadow: 0 4px 32px rgba(229,57,53,0.35), 0 0 0 8px rgba(229,57,53,0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.08s ease;
  user-select: none; -webkit-user-select: none; z-index: 2;
  animation: heartBreathNew 2.5s ease-in-out infinite;
}
@keyframes heartBreathNew {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.press-heart-btn:active { transform: scale(0.9); animation: none; }
.press-heart-btn.good {
  background: radial-gradient(circle at 40% 35%, #4ade80, #16a34a);
  box-shadow: 0 0 40px rgba(22,163,74,0.45), 0 0 0 8px rgba(22,163,74,0.12);
  animation: none;
}
.press-heart-btn.bad {
  background: radial-gradient(circle at 40% 35%, #fca5a5, #dc2626);
  box-shadow: 0 0 40px rgba(220,38,38,0.45), 0 0 0 8px rgba(220,38,38,0.12);
  animation: none;
}
.press-heart-btn .heart-icon { font-size: 42px; line-height: 1; }
.press-heart-btn .press-count-badge {
  font-size: 14px; font-weight: 800; color: #fff; margin-top: 2px;
  font-family: var(--font-mono);
}
/* Stats row */
.press-stats-row {
  display: flex; gap: 12px; justify-content: center;
}
.press-stats-row .press-stat {
  flex: 1; background: #fff; border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(15,23,42,.04);
  max-width: 110px;
}
.press-stats-row .press-stat .stat-label { font-size: 11px; color: var(--c-text-light); font-weight: 500; }
.press-stats-row .press-stat .stat-value {
  font-size: 22px; font-weight: 800; color: var(--c-primary);
  font-family: var(--font-mono);
}
/* Feedback area */
.press-feedback-area {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 4px 0;
}
.press-feedback {
  text-align: center; font-size: 15px; font-weight: 700;
  min-height: 28px; transition: color 0.15s; color: var(--c-primary);
}
.press-feedback.warn { color: var(--c-danger); }
.press-rhythm-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-success);
  flex-shrink: 0;
}
.press-rhythm-dot.beating {
  animation: rhythmPulse 0.545s ease-in-out infinite;
}
@keyframes rhythmPulse {
  0% { transform: scale(0.8); background: var(--c-success); }
  30% { transform: scale(1.8); background: var(--c-primary); }
  100% { transform: scale(0.8); background: var(--c-success); }
}
.press-timer-bar {
  height: 4px; background: #E2E8F0; border-radius: 2px; overflow: hidden;
}
.press-timer-fill {
  height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-warning));
  transition: width 1s linear;
}

/* Legacy press-heart + press-area + press-ring — keep for JS backward compat */
.press-area-container {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 200px;
}
.press-heart {
  width: 130px; height: 130px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; cursor: pointer;
}
.press-ring {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  pointer-events: none;
}
.press-info {
  display: flex; justify-content: space-around; text-align: center;
}
.press-stat-label { font-size: var(--fs-xs); color: var(--c-text-secondary); }
.press-stat-val { font-size: var(--fs-h2); font-weight: 800; color: var(--c-primary); }
.press-stat-val.warn { color: var(--c-danger); }
/* BPM color coding */
.bpm-good { color: var(--c-success) !important; }
.bpm-warn { color: var(--c-warning) !important; }
.bpm-bad { color: var(--c-danger) !important; }
/* Visual shake for PC (no vibration API fallback) */
@keyframes visualShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
/* Press guide hint */
.press-guide-hint {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 600; color: #e2e8f0;
  background: rgba(15,23,42,0.85); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; padding: 5px 12px; white-space: nowrap;
  pointer-events: none; z-index: 10; opacity: 0; transition: opacity 0.3s;
}
.press-guide-hint.show { opacity: 1; }
@keyframes guideBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}
/* Ring fill pulse */
.cpr-pulse-glow-ring.beating {
  animation: ringFillPulse 0.545s ease-in-out infinite;
}
@keyframes ringFillPulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}
/* Patient face indicator */
.patient-face-indicator { font-size: 1.2rem; transition: all 0.3s; }
.patient-face-indicator.improving { filter: saturate(1.5); }
.patient-face-indicator.critical { filter: grayscale(0.8); }
/* Press particles */
.press-particles-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.press-particle-burst {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  animation: pressBurst 0.5s ease-out forwards;
}
@keyframes pressBurst {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
/* Life pillar */
.life-pillar-wrap { margin: 8px 0; }
.life-pillar {
  height: 14px; background: #E2E8F0; border-radius: 10px;
  overflow: hidden; position: relative;
}
.life-pillar-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--c-success), #4ade80);
  border-radius: 10px; transition: width 0.5s ease, background 0.5s;
}
.life-pillar-fill.warning { background: linear-gradient(90deg, var(--c-warning), #fbbf24); }
.life-pillar-fill.danger { background: linear-gradient(90deg, var(--c-danger), #ef4444); animation: dangerPulse 0.5s infinite; }
.life-pillar-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; color: var(--c-text); }
@keyframes dangerPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
/* Depth gauge */
.depth-gauge-wrap { margin: 6px 0; }
.depth-gauge-labels { display: flex; justify-content: space-between; font-size: 0.55rem; color: var(--c-text-light); margin-bottom: 2px; }
.depth-gauge-labels span:nth-child(2) { color: var(--c-success); font-weight: 700; }
.depth-gauge-track { height: 10px; background: linear-gradient(90deg, #fca5a5 0%, #fca5a5 20%, #bbf7d0 20%, #bbf7d0 50%, #bbf7d0 50%, #bbf7d0 80%, #fca5a5 80%, #fca5a5 100%); border-radius: 5px; position: relative; overflow: visible; }
.depth-gauge-target { position: absolute; top: -3px; bottom: -3px; width: 30%; left: 20%; background: rgba(34,197,94,0.2); border-left: 2px solid #16a34a; border-right: 2px solid #16a34a; border-radius: 3px; }
.depth-gauge-needle { position: absolute; top: -6px; width: 4px; height: 22px; background: var(--c-primary); border-radius: 2px; left: 50%; transform: translateX(-50%); transition: left 0.15s ease; box-shadow: 0 0 6px rgba(229,57,53,0.4); }
/* Screen edge glow */
.screen-glow { position: fixed; inset: 0; pointer-events: none; z-index: 180; transition: box-shadow 0.3s; border-radius: 0; }
.screen-glow.perfect { box-shadow: inset 0 0 60px rgba(22,163,74,0.2); }
.screen-glow.combo { box-shadow: inset 0 0 80px rgba(37,99,235,0.25); }
.screen-glow.danger { box-shadow: inset 0 0 80px rgba(229,57,53,0.35); animation: dangerPulse 0.5s infinite; }.screen-glow.perfect{background:radial-gradient(circle at 50% 60%,rgba(34,197,94,0.15) 0%,transparent 60%);animation:glowPulse 0.3s ease-out}.screen-glow.shallow{background:radial-gradient(circle at 50% 60%,rgba(234,179,8,0.12) 0%,transparent 60%)}.screen-glow.deep{background:radial-gradient(circle at 50% 60%,rgba(239,68,68,0.12) 0%,transparent 60%)}@keyframes glowPulse{0%{opacity:0}50%{opacity:1}100%{opacity:0}}
/* P5 breathing animation */
.breathing-chest { animation: chestBreathe 3s ease-in-out infinite; transform-origin: center center; }
@keyframes chestBreathe {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(0.92) translateY(2px); }
}
.pulse-neck { animation: neckPulse 1s ease-in-out infinite; }
@keyframes neckPulse {
  0%,100% { r: 4; opacity: 0.6; }
  50% { r: 6; opacity: 1; }
}
/* P5 Check Breathing */
.check-header { margin-bottom: 8px; }
.check-timer-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.check-timer-icon { font-size: 1.2rem; }
.check-timer { font-size: 2rem; font-weight: 900; color: var(--c-danger); font-family: var(--font-mono); }
.check-timer-label { font-size: 0.7rem; color: var(--c-text-light); }
.check-timer-bar { height: 6px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }
.check-timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--c-success), var(--c-danger)); border-radius: 3px; transform: scaleX(1); transform-origin: left; transition: transform 1s linear; }
.check-body-card { background: #fff; border-radius: 16px; padding: 0; overflow: hidden; margin-bottom: 10px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); }
.check-body-visual { position: relative; width: 100%; height: 260px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.check-body-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; pointer-events: none; }
@media (max-width: 380px) {
  .check-body-visual { height: 180px; }
}
/* Breathing overlay — chest expansion animation */
.breathing-overlay {
  position: absolute; top: 48%; left: 50%; width: 20%; height: 16%;
  border-radius: 50%; background: rgba(56,161,105,0.1);
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.breathing-overlay.active {
  opacity: 1;
  animation: chestBreatheImg 0.8s ease-in-out 3;
}
@keyframes chestBreatheImg {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(0.85); }
}
/* Pulse overlay — neck pulse dot */
.pulse-overlay {
  position: absolute; top: 48%; left: 44%; width: 8px; height: 8px;
  border-radius: 50%; background: #ef4444;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.pulse-overlay.active {
  opacity: 0.7;
  animation: neckPulseImg 0.6s ease-in-out 4;
}
@keyframes neckPulseImg {
  0%,100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.8); opacity: 0.9; }
}
/* ── 三按钮统一脉冲定位针风格 ── */
.check-hotspot {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px;
  cursor: pointer; transition: all 0.25s ease; text-align: center;
  width: 48px; padding: 6px 4px; border-radius: 14px; border: 2px dashed;
  background: rgba(255,255,255,0.7);
}
.check-hotspot::before {
  content: ''; position: absolute; inset: -5px; border-radius: 18px;
  border: 2px solid currentColor; animation: locPing 2s ease-out infinite; pointer-events: none;
}
.check-hotspot:hover { transform: scale(1.12); }
.check-hotspot:active { transform: scale(0.9); }
.check-hotspot.done { border-style: solid; background: rgba(22,163,74,0.08); border-color: #16a34a !important; }
.check-hotspot.done::before { display: none; }
.check-hotspot.done .hs-label { color: #16a34a; }
.hs-icon { font-size: 1rem; }
.hs-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2px; }
.hs-step { font-size: 0.38rem; font-weight: 500; }

/* 三色定位 */
.shoulder-hs { top: 10%; left: 35%; border-color: rgba(234,88,12,0.5); color: #c2410c; }
.shoulder-hs::before { border-color: rgba(234,88,12,0.2); }
.shoulder-hs .hs-step { color: rgba(234,88,12,0.7); }

.neck-hs     { top: 46%; left: 42%; border-color: rgba(6,182,212,0.5); color: #0891b2; }
.neck-hs::before { border-color: rgba(6,182,212,0.2); }
.neck-hs .hs-step { color: rgba(6,182,212,0.7); }

.chest-hs    { top: 52%; left: 62%; transform: translateX(-50%); border-color: rgba(59,130,246,0.5); color: #2563eb; }
.chest-hs::before { border-color: rgba(59,130,246,0.2); }
.chest-hs .hs-step { color: rgba(59,130,246,0.7); }

@keyframes locPing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.shoulder-hs { top: 16%; right: 12%; }
.chest-hs { top: 54%; left: 48%; transform: translateX(-50%); }
.neck-hs { top: 34%; left: 16%; }
.check-status { text-align: center; padding: 8px 0; font-size: 0.82rem; color: var(--c-text-secondary); }
.check-status p strong { color: var(--c-primary); }
.check-listen { text-align: center; padding: 8px 0; }
.check-verdict { text-align: center; padding: 8px 0; }
/* P7 lung inflation */
.lung-inflate { transition: r 0.3s ease; }
.lung-particle {
  position: absolute; width: 3px; height: 3px; background: rgba(37,99,235,0.4);
  border-radius: 50%; animation: lungFlow 0.8s ease-out forwards; pointer-events: none;
}
@keyframes lungFlow {
  0% { transform: translate(0,0) scale(1); opacity: 0.6; }
  100% { transform: translate(var(--lx), var(--ly)) scale(0); opacity: 0; }
}
/* P7 Rescue Breathing */
.rescue-step-bar { display: flex; align-items: center; gap: 0; margin-bottom: 10px; }
.rescue-step { display: flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700; color: var(--c-text-light); padding: 4px 0; }
.rescue-step span { width: 20px; height: 20px; border-radius: 50%; background: #E2E8F0; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.rescue-step.active { color: var(--c-primary); } .rescue-step.active span { background: var(--c-primary); color: #fff; }
.rescue-step.done { color: var(--c-success); } .rescue-step.done span { background: var(--c-success); color: #fff; }
.rescue-step-conn { flex: 1; height: 2px; background: #E2E8F0; min-width: 10px; }
.rescue-step-conn.done { background: var(--c-success); }
.rescue-body-card { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 10px; border: 1px solid rgba(15,23,42,.06); box-shadow: var(--shadow-sm); }
.rescue-head-zone { position: relative; width: 100%; height: 170px; background: #fcfdfe; }
.rescue-head-zone svg { pointer-events: none; }
.rescue-hotspot {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 0.6rem; font-weight: 700; color: var(--c-text-secondary); cursor: pointer;
  padding: 4px 6px; border-radius: 10px; border: 2px dashed transparent; transition: all 0.15s;
}
.rescue-hotspot:hover { border-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary); }
.rescue-hotspot.done { border-color: var(--c-success); background: var(--c-success-50); color: var(--c-success); border-style: solid; }
.forehead-hs { top: 6px; left: 50%; transform: translateX(-50%); }
.chin-hs { bottom: 15px; left: 50%; transform: translateX(-50%); }
.nose-hs { top: 62px; left: 50%; transform: translateX(-50%); }
/* Lung inflation */
.lung-inflated { fill: #bbf7d0 !important; stroke: #4ade80 !important; transform: scale(1.2); transition: all 0.3s; }
.press-ring-progress {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  pointer-events: none;
}
.press-ring.beating { animation: ringBeat 0.545s ease-in-out infinite; }
@keyframes ringBeat {
  0% { transform: scale(1); opacity: 1; }
  15% { transform: scale(0.85); opacity: 0.9; }
  30% { transform: scale(0.72); opacity: 1; }
  50% { transform: scale(0.78); opacity: 0.85; }
  70% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.5; }
}
@keyframes heartBreath {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ============================================================
   20. PAGE 7 — 人工呼吸
   ============================================================ */
.airway-btns { display: flex; gap: var(--space-md); justify-content: center; }
.airway-btns .btn { flex: 1; }
#airwayModel svg { pointer-events: none; }
.airway-hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px dashed var(--c-secondary);
  background: rgba(37,99,235,0.06); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--c-secondary);
  transition: all 0.2s; text-align: center; line-height: 1.3;
  z-index: 5; pointer-events: auto;
}
.airway-hotspot:hover { background: rgba(37,99,235,0.12); border-style: solid; transform: translate(-50%, -50%) scale(1.08); }
.airway-hotspot.done { border-color: var(--c-success); background: rgba(56,161,105,0.2); border-style: solid; color: var(--c-success); pointer-events: none; }
.breath-hold-area {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e0f2fe, #7dd3fc);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  margin: 0 auto; cursor: pointer; font-size: 2.5rem;
  transition: transform 0.1s, box-shadow 0.3s; user-select: none;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 28px rgba(14,165,233,0.3);
  animation: breathGlow 3s ease-in-out infinite;
}
.breath-hold-area:active { transform: scale(0.92); animation: none; }
@keyframes breathGlow {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.breath-progress {
  width: 100%; height: 12px; background: #E2E8F0;
  border-radius: 6px; overflow: hidden; margin-top: var(--space-md);
}
.breath-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  width: 0%; transition: width 0.05s linear;
}
.breath-threshold-marker {
  position: absolute; width: 2px; height: 16px; background: var(--c-warning);
  top: -2px; left: 60%;
}
.breath-count { text-align: center; font-size: var(--fs-h2); font-weight: 800; color: var(--c-primary); }

/* ============================================================
   21. PAGE 8 — AED使用
   ============================================================ */
.aed-panel {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  border-radius: var(--radius-card); padding: var(--space-lg);
  border: 3px solid #718096; box-shadow: var(--shadow-lg);
}
.aed-screen {
  background: #1A202C; border-radius: var(--radius-sm);
  padding: var(--space-md); color: var(--c-success);
  font-family: var(--font-mono); text-align: center;
  margin-bottom: var(--space-md); min-height: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.aed-screen .aed-msg { font-size: var(--fs-h3); font-weight: 700; }
.aed-screen .aed-sub { font-size: var(--fs-xs); opacity: 0.7; margin-top: 4px; }
.aed-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.aed-btn {
  padding: 14px; border-radius: var(--radius-xs);
  background: #4A5568; color: #fff; border: none;
  font-weight: 700; font-family: var(--font); cursor: pointer;
  font-size: var(--fs-sm); transition: all 0.15s;
}
.aed-btn:active { background: #2D3748; transform: scale(0.96); }
.aed-btn.done { background: var(--c-success); }
.aed-btn.current { background: var(--c-primary); box-shadow: 0 0 12px rgba(229,57,53,0.5); }
.aed-body-zones { display: flex; gap: 40px; justify-content: center; margin: var(--space-md) 0; }
.aed-zone {
  width: 70px; height: 70px; border-radius: 50%;
  border: 3px dashed var(--c-primary);
  background: rgba(229,57,53,0.06); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-primary);
}
.aed-zone.placed { border-color: var(--c-success); background: rgba(56,161,105,0.15); border-style: solid; }
/* AED pad zones on body model */
#aedBodyModel svg { pointer-events: none; }
.aed-pad-zone {
  position: absolute; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px dashed #E53E3E;
  background: rgba(229,62,62,0.12); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #E53E3E;
  transition: all 0.2s; text-align: center; line-height: 1.3; z-index: 5; pointer-events: auto;
}
.aed-pad-zone:hover { background: rgba(229,62,62,0.25); border-style: solid; transform: translate(-50%, -50%) scale(1.1); }
.aed-pad-zone.placed { border-color: var(--c-success); background: rgba(56,161,105,0.2); border-style: solid; color: var(--c-success); pointer-events: none; box-shadow: 0 0 12px rgba(56,161,105,0.3); }
.aed-shock-flash { animation: shock-flash 0.1s; }
@keyframes shock-flash { 0%, 100% { background: transparent; } 50% { background: #fff; } }

/* AED Step Flow (new) */
.aed-device-card {
  background: linear-gradient(135deg, #1A202C, #2D3748);
  border-radius: var(--radius-card); padding: var(--space-lg);
  text-align: center; box-shadow: var(--shadow-lg);
}
.aed-device-visual {
  font-size: 48px; margin-bottom: 8px;
}
.aed-steps {
  display: flex; align-items: center; gap: 0; justify-content: center;
  padding: 16px 4px;
}
.aed-step-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 64px; flex-shrink: 0;
}
.aed-step-item .step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: #E8ECF1; color: var(--c-text-light);
  transition: all 0.3s ease;
}
.aed-step-item.done .step-num {
  background: var(--c-success); color: #fff;
}
.aed-step-item.current .step-num {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 0 12px rgba(229,57,53,0.5);
}
.aed-step-item .step-label {
  font-size: 10px; color: var(--c-text-light); font-weight: 500; white-space: nowrap;
}
.aed-step-item.done .step-label { color: var(--c-success); }
.aed-step-item.current .step-label { color: var(--c-primary); font-weight: 700; }
/* AED draggable electrode pads */
.aed-body-zone { position: relative; width: 150px; height: 220px; margin: 0 auto 8px; }
.aed-target-zone {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 3px dashed var(--c-danger); background: rgba(229,57,53,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--c-danger);
  transition: all 0.2s; pointer-events: none;
  animation: zonePulse 1.5s ease-in-out infinite;
}
@keyframes zonePulse {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}
/* ====== AED Realistic Device ====== */
.aed-step-bar { display: flex; align-items: center; gap: 0; margin-bottom: 12px; }
.aed-step-node {
  display: flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700;
  color: var(--c-text-light); padding: 4px 0;
}
.aed-step-node span {
  width: 20px; height: 20px; border-radius: 50%; background: #E2E8F0;
  display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0;
}
.aed-step-node.active { color: var(--c-primary); }
.aed-step-node.active span { background: var(--c-primary); color: #fff; }
.aed-step-node.done { color: var(--c-success); }
.aed-step-node.done span { background: var(--c-success); color: #fff; }
.aed-step-conn { flex: 1; height: 2px; background: #E2E8F0; min-width: 12px; }
.aed-step-conn.done { background: var(--c-success); }
/* AED Device */
.aed-device {
  background: linear-gradient(180deg, #e8ecf1, #d5dbe3);
  border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1); margin-bottom: 10px;
  border: 3px solid #b0bec5;
}
.aed-lid {
  background: linear-gradient(180deg, #f0f4f8, #dce3ea);
  padding: 20px; text-align: center; cursor: pointer; position: relative;
  transition: all 0.4s ease; transform-origin: top center;
  border-bottom: 2px solid #c0c8d0;
}
.aed-lid.opened { transform: rotateX(-110deg); opacity: 0; pointer-events: none; max-height: 0; padding: 0; margin: 0; border: 0; }
.aed-lid-label { font-size: 1rem; font-weight: 800; color: #37474f; letter-spacing: 2px; }
.aed-lid-handle { width: 50px; height: 8px; background: #90a4ae; border-radius: 4px; margin: 10px auto 0; position: relative; }
.aed-lid-handle::after { content:""; position:absolute; inset:-5px; border-radius:6px; border:2px solid rgba(59,130,246,0.6); animation:lidPulse 1.5s ease-in-out infinite; }
@keyframes lidPulse { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.12)} }
.aed-lid.opened .aed-lid-handle::after { display:none; }
.aed-lid-light { width: 12px; height: 12px; border-radius: 50%; background: #4caf50; margin: 8px auto 0; animation: statusGreen 2s infinite; }
@keyframes statusGreen { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
/* AED Body interior */
.aed-body-interior {
  background: #1a2332; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.aed-screen {
  background: #0a0f14; border-radius: 8px; padding: 14px; text-align: center;
  border: 2px solid #2a3a4a; min-height: 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.aed-screen.on { box-shadow: 0 0 20px rgba(76,175,80,0.3); }
.aed-screen-text { font-size: 0.9rem; font-weight: 800; color: #4caf50; font-family: var(--font-mono); }
.aed-screen-sub { font-size: 0.7rem; color: #8bc34a; margin-top: 4px; }
.aed-battery { font-size: 0.6rem; color: #4caf50; margin-top: 6px; font-family: var(--font-mono); }
/* Power button */
.aed-power-btn-wrap { display: flex; justify-content: center; }
.aed-power-btn.locked { opacity:0.35; filter:grayscale(0.6); cursor:not-allowed; pointer-events:none; }
.aed-power-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #66bb6a, #2e7d32);
  border: 4px solid #1b5e20; color: #fff; font-size: 0.7rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 4px 12px rgba(46,125,50,0.5);
  transition: all 0.1s; font-family: var(--font);
}
.aed-power-btn:active { transform: scale(0.92); box-shadow: 0 1px 4px rgba(46,125,50,0.3); background: radial-gradient(circle at 40% 35%, #81c784, #388e3c); }
.aed-power-btn.pressed { transform: scale(0.9); background: radial-gradient(circle at 40% 35%, #a5d6a7, #43a047); box-shadow: 0 1px 4px rgba(46,125,50,0.3), inset 0 2px 4px rgba(0,0,0,0.2); }
.aed-speaker { text-align: center; font-size: 0.6rem; color: #546e7a; letter-spacing: 2px; }
/* Electrode package */
.aed-package {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  overflow: hidden; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.aed-package.opened { border-color: #c8e6c9; }
.aed-package-tear {
  background: linear-gradient(90deg, #ffecb3, #fff8e1, #ffecb3);
  padding: 8px 16px; text-align: center; font-size: 0.75rem; font-weight: 700;
  color: #e65100; cursor: pointer; letter-spacing: 2px;
  border-bottom: 1px dashed #ffcc02;
}
.aed-package-tear.torn { opacity: 0.4; pointer-events: none; text-decoration: line-through; }
.aed-package-content { padding: 12px; }
.aed-package-pads { display: flex; gap: 10px; justify-content: center; }
.aed-pack-pad {
  width: auto; min-width: 64px; height: 48px; border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #ef5350, #dc2626);
  color: #fff; display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 16px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(229,57,53,0.3);
  cursor: grab; user-select: none;
  touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.aed-pack-pad:active { cursor: grabbing; box-shadow: 0 6px 20px rgba(229,57,53,0.5); }
.aed-pack-pad.placed {
  opacity: 0.5; filter: grayscale(0.6);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); cursor: default;
}
.aed-pack-pad .pad-num { font-size: 16px; margin-right: 2px; }
.aed-target-zone.matched { border-color: var(--c-success); background: rgba(22,163,74,0.2); color: var(--c-success); border-style: solid; animation: none; }
.zone-right-clavicle { top: 25px; right: 14px; }
.zone-left-axillary { top: 90px; left: 12px; }
.aed-pads-tray { display: flex; gap: 10px; justify-content: center; margin-bottom: 4px; }
.aed-drag-pad {
  padding: 8px 14px; border-radius: var(--radius-btn); background: linear-gradient(135deg, #ef5350, #dc2626);
  color: #fff; font-size: 12px; font-weight: 700; cursor: grab;
  box-shadow: 0 3px 12px rgba(229,57,53,0.3); user-select: none;
  touch-action: none; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; transition: box-shadow 0.15s;
}
.aed-drag-pad:active { cursor: grabbing; box-shadow: 0 6px 20px rgba(229,57,53,0.5); }
.aed-drag-pad.placed {
  background: var(--c-success); box-shadow: 0 2px 8px rgba(22,163,74,0.3); cursor: default; opacity: 0.7;
}
.aed-drag-pad .pad-num { font-size: 16px; margin-right: 2px; }
.aed-step-connector {
  width: 20px; height: 2px; background: #E8ECF1; flex-shrink: 0; margin: 0 2px;
}
.aed-step-connector.done { background: var(--c-success); }
/* AED safety bar */
.aed-safety-bar {
  background: var(--c-danger-50); color: var(--c-danger);
  border: 1px solid var(--c-danger-light); border-radius: var(--radius-sm);
  padding: 12px 16px; text-align: center; font-size: 14px; font-weight: 700;
  margin: 8px 0;
}

/* ============================================================
   22. PAGE 9 — 循环管理
   ============================================================ */
.cycle-progress {
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
  font-size: var(--fs-h2); font-weight: 800;
}
.cycle-circle {
  width: 100px; height: 100px; border-radius: 50%;
  border: 6px solid #E2E8F0; display: flex;
  align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--c-primary);
}
.cycle-bar {
  height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden;
}
.cycle-bar-fill {
  height: 100%; background: var(--c-primary);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s;
}

/* ============================================================
   22b. Knowledge Card — 知识点学习卡片
   ============================================================ */
.knowledge-card {
  background: linear-gradient(135deg, #F0F7FF, #E8F4FD);
  border: 2px solid var(--c-primary);
  border-left: 6px solid var(--c-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
  display: none;
  animation: knowledgeIn 0.4s ease;
  position: relative;
}
.knowledge-card.show { display: block; animation: slideInUp 0.3s ease-out; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.knowledge-card .kc-icon { font-size: 1.8rem; margin-bottom: 4px; }
.knowledge-card .kc-title { font-size: 1rem; font-weight: 800; color: var(--c-primary); margin-bottom: 6px; }
.knowledge-card .kc-body { font-size: 0.85rem; color: var(--c-text-secondary); line-height: 1.7; margin-bottom: 12px; }
.knowledge-card .kc-source { font-size: 0.7rem; color: var(--c-text-light); margin-bottom: 8px; font-style: italic; }
@keyframes knowledgeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fatigue-warn {
  background: var(--c-warning-light); border: 2px solid var(--c-warning);
  border-radius: var(--radius-sm); padding: var(--space-md);
  text-align: center; font-weight: 600; display: none;
}
.fatigue-warn.show { display: block; }

/* ============================================================
   23. PAGE 10 — 结局判定
   ============================================================ */
.outcome-icon { font-size: 5rem; text-align: center; animation: float 2s ease-in-out infinite; }
.outcome-title { font-size: var(--fs-h1); font-weight: 800; text-align: center; }
.outcome-detail { font-size: var(--fs-body); color: var(--c-text-secondary); text-align: center; line-height: 1.8; }

/* ============================================================
   24. PAGE 11 — 敢救训练报告 (重设计)
   ============================================================ */
.report-hero { position: relative; width: 160px; height: 160px; margin: 16px auto 0; }
.score-ring { width: 160px; height: 160px; }
.score-ring .ring-fill { transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-center .report-score { font-size: 2.6rem; font-weight: 800; color: var(--c-primary); }
.score-center .report-grade { font-size: 0.9rem; font-weight: 700; padding: 4px 14px; border-radius: var(--radius-pill); margin-top: 2px; }
.radar-container {
  width: 280px; height: 280px; margin: 0 auto; position: relative;
}
.radar-container canvas { width: 100%; height: 100%; }
.report-grade.excellent { background: var(--c-success-light); color: #14532d; }
.report-grade.good { background: var(--soft-blue); color: #1e3a5f; }
.report-grade.poor { background: var(--c-danger-light); color: #7f1d1d; }
.report-advice {
  background: #f1f5f9; border-left: 4px solid var(--c-secondary);
  padding: var(--space-md); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: var(--fs-sm); line-height: 1.8; color: var(--c-text-secondary);
}

/* ============================================================
   25. PAGE 12 — 知识库与证书
   ============================================================ */
.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kb-card { background: #fff; border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.2s ease; border: 1px solid rgba(15,23,42,.04); text-align: center; }
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.kb-card .kb-icon { font-size: 32px; margin-bottom: 8px; }
.kb-card .kb-title { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.kb-card .kb-summary { font-size: 11px; color: var(--c-text-secondary); line-height: 1.4; margin-bottom: 8px; }
.kb-card.open { border-color: var(--c-primary); background: var(--c-primary-50); }
.kb-card .kb-detail { display: none; font-size: 12px; color: var(--c-text-secondary); line-height: 1.7; text-align: left; padding-top: 8px; border-top: 1px solid #EEF1F5; margin-top: 8px; }
.kb-card.open .kb-detail { display: block; }
.cert-preview {
  background: linear-gradient(135deg, #FFFDF5, #FFF8E1);
  border: 4px solid #D4A853; border-radius: var(--radius-sm);
  padding: var(--space-xl); text-align: center;
}
.cert-title { font-size: 1.3rem; font-weight: 800; color: #8B6914; }
.cert-name { font-size: 1.6rem; font-weight: 800; color: #5C4A0E; margin: var(--space-md) 0; border-bottom: 2px solid #D4A853; display: inline-block; padding-bottom: 4px; }
.cert-desc { font-size: var(--fs-sm); color: #8B6914; }

/* ============================================================
   26. Shared Feedback Elements
   ============================================================ */
.feedback-toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: var(--fs-sm); z-index: 150;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 1.5s forwards;
  white-space: nowrap; pointer-events: none;
}
.feedback-toast.success { background: var(--c-success); color: #fff; }
.feedback-toast.error { background: var(--c-danger); color: #fff; }
.feedback-toast.info { background: var(--c-primary); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   27. Animations
   ============================================================ */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
.ripple-elem {
  position: absolute; border-radius: 50%;
  border: 2px solid var(--c-success);
  animation: ripple 0.4s ease-out forwards; pointer-events: none;
}

/* ============================================================
   28. Responsive
   ============================================================ */
@media (min-width: 600px) {
  #app-container { max-width: 100%; border-radius: 0; }
}
@media (max-width: 360px) {
  :root { --fs-h1: 1.6rem; --fs-h2: 1.2rem; --fs-h3: 1rem; --fs-body: 0.85rem; }
  .page { padding: 10px; }
  .page__inner { gap: 10px; }
  .press-heart-btn { width: 120px; height: 120px; }
  .press-heart-btn .heart-icon { font-size: 34px; }
  .press-circle-container { width: 170px; height: 170px; }
  .press-progress-ring { width: 170px; height: 170px; }
  .card { padding: 14px; }
  .breath-hold-area { width: 130px; height: 130px; font-size: 2rem; }
  .quiz-option { padding: 12px 14px; font-size: 0.85rem; }
  .decision-card { padding: 12px; }
  .scene-art { height: 150px; }
  .body-model { height: 320px; }
  .airway-hotspot { width: 48px; height: 48px; font-size: 9px; }
  .aed-pad-zone { width: 46px; height: 46px; font-size: 8px; }
  .splash-title { font-size: 1.45rem; }
  .kb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .splash-title { font-size: 1.35rem; }
  .splash-subtitle { font-size: 0.8rem; }
  .highlight-card { padding: 6px 10px; font-size: 11px; }
  .press-stats-row .press-stat .stat-value { font-size: 18px; }
  .aed-steps { gap: 0; }
  .aed-step-item { width: 56px; }
  .press-circle-container { width: 170px; height: 170px; }
  .press-heart-btn { width: 120px; height: 120px; }
  .splash-secondary-btns { flex-direction: column; }
  .check-hotspot { font-size: 0.55rem; padding: 4px 6px; }
  .check-hotspot span { font-size: 1rem; }
  .rescue-hotspot { font-size: 0.5rem; padding: 3px 5px; }
  .aed-target-zone { width: 40px; height: 40px; font-size: 13px; }
  .aed-drag-pad { font-size: 10px; padding: 6px 10px; }
  .aed-power-btn { width: 52px; height: 52px; font-size: 0.6rem; }
}

/* ============================================================
   29. Platform Fixes
   ============================================================ */
/* WeChat / iOS backdrop-filter fallback */
@supports not (backdrop-filter: blur(16px)) {
  .card, #global-header, #global-footer { background: rgba(255,255,255,0.95); }
}
/* iOS smooth scrolling */
.page { -webkit-overflow-scrolling: touch; }
/* Prevent callout on long-press */
.press-heart, .breath-hold-area, .aed-btn {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

/* ============================================================
/* Dashboard Layout — 通用样式（在 @media 之前） */
.dashboard-body{display:flex;flex:1;overflow:hidden}
.dashboard-sidebar{width:220px;flex-shrink:0;overflow-y:auto;background:rgba(255,255,255,0.98);border-right:1px solid #E2E8F0;padding:14px;display:flex;flex-direction:column;gap:4px}
.sidebar-section-title{font-size:10px;color:var(--c-text-light);letter-spacing:2px;padding:8px 4px 2px;font-weight:700}
.sidebar-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;font-size:13px;color:var(--c-text-secondary);font-weight:500;cursor:pointer;transition:all var(--ease);border:1px solid transparent;background:rgba(255,255,255,0.5)}
.sidebar-item:hover{background:var(--soft-red);color:var(--c-text)}
.sidebar-item.active{background:var(--soft-red);border-color:rgba(229,57,53,0.15);color:var(--c-primary);font-weight:600}
.sidebar-item.done{color:var(--c-success)}
.sidebar-item.locked{opacity:0.35;pointer-events:none;cursor:not-allowed}
.sidebar-item-num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;background:#F1F5F9;flex-shrink:0}
.sidebar-item.active .sidebar-item-num{background:rgba(229,57,53,0.12);color:var(--c-primary)}
.sidebar-item.done .sidebar-item-num{background:var(--c-success-light);color:var(--c-success)}
.sidebar-item.locked .sidebar-item-num{background:#e8edf2;color:var(--c-text-light)}
.dashboard-main{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}
.dashboard-panel{width:290px;flex-shrink:0;overflow-y:auto;background:rgba(255,255,255,0.98);border-left:1px solid #E2E8F0;padding:18px 16px;display:flex;flex-direction:column;gap:10px}
.panel-title{font-size:13px;font-weight:700;color:var(--c-text);letter-spacing:.5px}
.panel-text{font-size:12px;color:var(--c-text-secondary);line-height:1.8}
.panel-divider{border-top:1px solid #E8ECF1}
.panel-metric{text-align:center;padding:8px 0}
.panel-metric-val{font-size:36px;font-weight:900;font-family:var(--font-mono);color:var(--c-primary)}
.panel-metric-lbl{font-size:10px;color:var(--c-text-light);letter-spacing:1px;margin-top:2px}
.panel-tip,.tip-card{padding:10px 12px;background:var(--c-warning-light);border-radius:8px;border:1px solid rgba(230,126,34,0.15);font-size:11px;color:var(--c-warning);line-height:1.6}
.tip-card.red{background:var(--soft-red);color:var(--c-danger);border-color:rgba(220,38,38,0.12)}
.tip-card.amber{background:var(--soft-yellow);color:#92400e;border-color:rgba(245,158,11,0.15)}
.tip-card.green{background:var(--soft-green);color:#166534;border-color:rgba(22,163,74,0.12)}
.tip-card.blue{background:var(--soft-blue);color:#1e3a5f;border-color:rgba(37,99,235,0.12)}
.rotate-hint{display:none;position:fixed;inset:0;z-index:9998;background:rgba(0,0,0,0.95);flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center}
.rotate-hint__icon{font-size:64px;animation:rotatePhone 2s ease-in-out infinite}
@keyframes rotatePhone{0%,100%{transform:rotate(0deg)}50%{transform:rotate(90deg)}}
.rotate-hint__text{font-size:16px;color:#fff;font-weight:700}
.rotate-hint__sub{font-size:12px;color:#94A3B4}
/* 全局：减少动画偏好 */
@media(prefers-reduced-motion:reduce){.cpr-hotspot-btn,.cpr-press-ring-wrap,.cpr-press-core,#cprHotspotGlow,.screen-glow,.pulse,.rhythm-beat-dot.beat,.cpr-depth-indicator,.hero-cross-pulsate,.hero-ring-glow,.hero-ring-glow-2,.tap-ripple{animation:none!important;transition:none!important}}
@media(max-width:1100px){.dashboard-sidebar{width:150px}.dashboard-panel{width:220px}}
/* ══════════ Mobile ≤1023px ══════════ */
@media(max-width:1023px){
  html,body{overflow-x:hidden}
  #app-container,.dashboard-body,.dashboard-main{width:100%!important;max-width:none!important;border-radius:0!important;box-shadow:none!important;border:none!important;padding:0!important;margin:0!important}
  #app-container::before{display:none}
  .dashboard-main{overflow-y:auto!important;overflow-x:hidden!important}
  .dashboard-main #page-wrapper{width:100%!important;max-width:100%!important;border-radius:0!important;background:var(--c-bg)!important;border:none!important;box-shadow:none!important;min-height:auto!important;padding:0 8px 80px 8px!important}
  .dashboard-main .page{min-height:auto!important;border-radius:0!important;padding:8px!important}
  .dashboard-main .page.active{display:block!important}
  .dashboard-main .page.active.page--splash{display:flex!important}
  .dark-toggle{position:fixed;top:env(safe-area-inset-top,56px);right:8px;width:32px;height:32px;font-size:0.9rem;z-index:250;display:flex!important}
  #mobileDrawerOverlay{display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,0.4)}
  #mobileDrawerOverlay.show{display:block}
  .dashboard-sidebar{position:fixed;top:0;left:0;width:280px;height:100vh;z-index:1001;overflow-y:auto;background:#fff;padding:20px 16px;transform:translateX(-100%);transition:transform 0.3s ease;box-shadow:4px 0 24px rgba(0,0,0,0.15);pointer-events:all}
  .dashboard-sidebar.open{transform:translateX(0)}
  .dashboard-panel{position:fixed;top:0;right:0;width:280px;height:100vh;z-index:1001;overflow-y:auto;background:#fff;padding:24px 20px;transform:translateX(100%);transition:transform 0.3s ease;box-shadow:-4px 0 24px rgba(0,0,0,0.15);pointer-events:all}
  .dashboard-panel.open{transform:translateX(0)}
  .mobile-toggle-btn{display:flex;position:fixed;z-index:998;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,rgba(229,57,53,0.9),rgba(220,38,38,0.9));color:#fff;border:2px solid rgba(255,255,255,0.25);align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer;box-shadow:0 4px 16px rgba(229,57,53,0.4)}.mobile-toggle-btn.left{top:env(safe-area-inset-top,44px);left:2px}.mobile-toggle-btn.right{top:env(safe-area-inset-top,44px);right:2px}

  .mobile-toolbar{position:fixed;right:8px;bottom:80px;z-index:999;display:flex!important;flex-direction:column;gap:8px;align-items:flex-end}
  .mobile-toolbar .dark-toggle{position:static;width:40px;height:40px;border-radius:50%;background:rgba(15,23,42,0.85);color:#e2e8f0;border:1px solid rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,0.25)}
  @keyframes capsulePulse{0%,100%{box-shadow:0 4px 16px rgba(0,0,0,0.25)}50%{box-shadow:0 4px 24px rgba(34,197,94,0.3)}}.mobile-guide-capsule{animation:capsulePulse 3s ease-in-out infinite;background:rgba(15,23,42,0.9);color:#e2e8f0;border:2px solid rgba(34,197,94,0.4);border-radius:22px;padding:8px 14px;font-size:0.75rem;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:6px;box-shadow:0 4px 16px rgba(0,0,0,0.25);white-space:nowrap}
  .mobile-guide-capsule .capsule-score{color:#22c55e;font-weight:900;font-size:0.8rem;border-left:1px solid rgba(255,255,255,0.2);padding-left:8px;margin-left:2px}
  .mobile-guide-panel{display:none;position:fixed;top:0;right:0;width:75%;height:100vh;height:100dvh;z-index:1000;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(22,24,38,0.97);padding:20px 16px 32px;color:#e2e8f0;box-shadow:-8px 0 32px rgba(0,0,0,0.4);animation:slideRight 0.3s ease}
  .mobile-guide-panel.show{display:block}
  .mobile-guide-panel .panel-close{float:right;background:none;border:none;color:#94a3b8;font-size:1.4rem;cursor:pointer;padding:0;line-height:1}
  .mobile-guide-panel h4{font-size:0.82rem;font-weight:800;margin:0 0 6px;color:#94a3b8}
  .mobile-guide-panel .guide-content{font-size:0.76rem;line-height:1.7;margin-bottom:12px}
  .mobile-guide-overlay{display:none;position:fixed;top:0;left:0;width:25%;height:100vh;height:100dvh;z-index:999;background:rgba(0,0,0,0.5)}
  .mobile-guide-overlay.show{display:block}
  @keyframes slideRight{from{transform:translateX(100%)}to{transform:translateX(0)}}
  /* Hide non-essential P6 elements on mobile */
  .cpr-disclaimer,.knowledge-card{font-size:0.6rem;padding:6px 8px}
  .press-guide-hint{font-size:0.68rem;padding:4px 10px}
  /* P7 touch-friendly */
  .rb-action-btn{min-height:48px;padding:14px 12px;font-size:0.9rem}
  .rb-vent-btn{min-height:96px;padding:18px 8px}
  .rb-vent-ring{width:56px;height:56px}
  .rb-vent-btns{gap:8px}
  .rb-feedback{font-size:0.78rem}
  /* Page inner safe bottom */
  .page__inner{padding-bottom:env(safe-area-inset-bottom,16px)}
  /* Full-width cards */
  .card,.cpr-illustration-card,.rb-vent-card,.bc-step-card{max-width:100%!important}
  /* Buttons */
  .btn{min-height:44px}
  .btn--block{padding:14px 24px}
  /* Header */
  #global-header{padding:8px 12px;border-radius:0}
  /* P6 mobile optimizations */
  .cpr-dashboard-panel{grid-template-columns:repeat(3,1fr);gap:4px}
  .cpr-dash-card{padding:8px 4px}
  .cpr-dash-val{font-size:1rem}
  .cpr-depth-bar-wrap{height:60px}
  .cpr-depth-vertical{padding:6px 4px}
  .cpr-depth-scale{width:30px;padding-right:4px;font-size:0.55rem}
  .cpr-hotspot-btn{width:76px;height:76px}.cpr-press-ring-wrap{width:100px;height:100px}.cpr-press-core{width:52px;height:52px}.cpr-illustration-frame{max-width:100%;max-height:180px}
  .cpr-trainer-container{gap:6px}
}

/* ============================================================
   28b. PC Showcase — 三栏展示台 @media(min-width:1024px)
   ============================================================ */
@media (min-width: 1024px) {
  body {
    background: var(--c-bg);
    font-size: 16px;
  }
  #app-container {
    max-width: 100%; height: 100vh; height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  #app-container::before { display: none; }
  .dashboard-body {
    display: flex; flex: 1; height: 100%; overflow: hidden;
  }
  .dashboard-sidebar {
    width: 220px; flex-shrink: 0; overflow-y: auto;
    background: #fff; padding: 20px 16px;
    display: flex; flex-direction: column; gap: 10px;
    border-right: 1px solid #E2E8F0;
    font-size: 13px;
  }
  .dashboard-main {
    flex: 1;
    display: flex; align-items: flex-start; justify-content: center;
    background: transparent; position: relative;
    overflow-y: auto; overflow-x: hidden;
    padding: 20px 24px;
  }
  .dashboard-main #page-wrapper {
    width: 100%; max-width: 960px; height: auto;
    border-radius: 0; overflow-y: auto; position: relative; z-index: 1;
    background: var(--c-bg); border: none; box-shadow: none;
    padding: 0 24px;
    margin: 0 auto;
  }
  .dashboard-main .page {
    position: relative; inset: auto; display: none;
    border-radius: 0; min-height: auto;
  }
  .dashboard-main .page.active { display: block; }
  .dashboard-main .page.active.page--splash { display: flex; background: transparent; }
  .dashboard-panel {
    width: 340px; flex-shrink: 0; overflow-y: auto;
    background: #fff; padding: 24px 22px;
    display: flex; flex-direction: column; gap: 16px;
    border-left: 1px solid #E2E8F0;
    font-size: 15px;
  }
  .dark-toggle { display: flex; }
  #global-header { background: #fff; }
  #global-footer { background: #fff; }
  .page.active { background: var(--c-bg); }
  .mobile-guide-panel,.mobile-guide-overlay{display:none!important}
  /* P6 CPR trainer — larger image on PC */
  .cpr-illustration-frame { max-height: 260px; }
  .scene-visual-container { height: 260px; }
  .scene-photo, .env-photo { transform: scale(2); }
  #envScene { height: 260px; }
}

/* Multi-module hub cards */
.hub-section-title{font-size:.8rem;font-weight:700;letter-spacing:1px;color:var(--c-text-light);padding:12px 4px 4px}
.module-grid{display:flex;flex-direction:column;gap:10px}
.module-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:16px;background:var(--c-card);box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.04);cursor:pointer;transition:all var(--ease);border:1.5px solid transparent}
.module-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.08);transform:translateY(-2px)}
.module-card:active{transform:scale(.985)}
.module-card .card-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0;box-shadow:0 4px 12px rgba(0,0,0,.1);color:#fff}
.module-card .card-icon.cpr{background:linear-gradient(135deg,#DC2626,#EF4444)}
.module-card .card-icon.aed{background:linear-gradient(135deg,#2563EB,#3B82F6)}
.module-card .card-icon.choke{background:linear-gradient(135deg,#D97706,#F59E0B)}
.module-card .card-icon.trauma{background:linear-gradient(135deg,#059669,#10B981)}
.module-card .card-body{flex:1;min-width:0}
.module-card .card-title{font-size:16px;font-weight:800;color:var(--c-text);margin-bottom:2px}
.module-card .card-desc{font-size:12px;color:var(--c-text-secondary);line-height:1.4}
.module-card .card-badge{font-size:10px;font-weight:700;padding:4px 12px;border-radius:9999px;flex-shrink:0}
.module-card .card-badge.ready{background:var(--c-success-light);color:var(--c-success)}
.module-card .card-badge.soon{background:#F1F5F9;color:#94A3B8}
.module-card.locked{opacity:.55;pointer-events:none;filter:grayscale(.3)}
/* 拓展学习通用组件 */
.cpr-hero{text-align:center;padding:16px 0 8px}
.cpr-hero h2{font-size:1.25rem;font-weight:800;margin:6px 0 4px;color:var(--c-text)}
.cpr-hero p{font-size:0.8rem;color:var(--c-text-secondary)}
.cpr-step{font-size:0.7rem;font-weight:700;color:var(--c-secondary);letter-spacing:1px;text-transform:uppercase;margin-bottom:4px}
.score-circle{width:100px;height:100px;border-radius:50%;background:linear-gradient(135deg,var(--c-primary),var(--c-primary-dark,#1d4ed8));display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(37,99,235,.25)}
.big-num{font-size:2.2rem;font-weight:900;color:#fff;line-height:1}
.big-label{font-size:0.75rem;color:rgba(255,255,255,.75);font-weight:600}
.advice-card{background:linear-gradient(135deg,#fef3c7,#fef9c3);border:1px solid #fcd34d;border-radius:var(--radius-sm);padding:16px;font-size:0.82rem;line-height:1.8;color:#92400e;margin-top:16px}
.card--danger{background:linear-gradient(135deg,#fef2f2,#fee2e2);border:2px solid #fca5a5;border-radius:var(--radius-sm);padding:16px;margin-top:12px}
.info-chip{padding:12px 16px;background:var(--c-white);border:1px solid var(--rule);border-radius:var(--radius-sm);font-size:0.82rem;line-height:1.6;color:var(--c-text);margin-bottom:8px;cursor:default}
.info-chip.danger{border-color:var(--c-danger);background:var(--c-danger-light)}
/* 竖屏不再强制横屏提示 */
/* Gemini-inspired visual components */
/* Page 1 Hero */
.splash-container { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; padding: 10px 4px; }
.hero-ill-zone { position: relative; width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.hero-cross-pulsate { font-size: 72px; position: relative; z-index: 2; animation: heartbeatPulse 1.2s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(229,57,53,0.35)); will-change: transform; }
.page:not(.active) .hero-cross-pulsate,
.page:not(.active) .hero-ring-glow,
.page:not(.active) .hero-ring-glow-2 { display: none; }
@keyframes heartbeatPulse { 0%,100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } 60% { transform: scale(1); } }
.hero-ring-glow { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 2px solid rgba(229,57,53,0.25); animation: rotateRing 12s linear infinite; will-change: transform; }
.hero-ring-glow::after { content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: rgba(229,57,53,0.6); box-shadow: 0 0 10px rgba(229,57,53,0.4); }
.hero-ring-glow-2 { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1.5px solid rgba(37,99,235,0.18); animation: rotateRing 18s linear infinite reverse; will-change: transform; }
.hero-ring-glow-2::after { content: ''; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: rgba(37,99,235,0.5); box-shadow: 0 0 8px rgba(37,99,235,0.3); }
/* Floating particles around hero */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; animation: floatUp 3.5s ease-in-out infinite; will-change: transform, opacity; }
.hero-particle:nth-child(1) { left: 18%; top: 62%; background: rgba(229,57,53,0.5); animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 72%; top: 48%; background: rgba(37,99,235,0.5); animation-delay: 0.7s; }
.hero-particle:nth-child(3) { left: 38%; top: 72%; background: rgba(229,57,53,0.35); animation-delay: 1.4s; }
.hero-particle:nth-child(4) { left: 62%; top: 52%; background: rgba(245,158,11,0.4); animation-delay: 2.1s; }
.hero-particle:nth-child(5) { left: 28%; top: 42%; background: rgba(37,99,235,0.4); animation-delay: 2.8s; }
.hero-particle:nth-child(6) { left: 55%; top: 64%; background: rgba(229,57,53,0.3); animation-delay: 0.4s; }
@keyframes floatUp { 0% { transform: translateY(0) scale(1); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 0.6; } 100% { transform: translateY(-50px) scale(0.4); opacity: 0; } }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--c-white); border: 1px solid var(--rule); padding: 6px 16px; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 800; color: var(--c-text-secondary); box-shadow: var(--shadow-sm); margin-bottom: 16px; letter-spacing: 0.5px; }
.pill-eyebrow span { color: var(--c-primary); font-weight: 900; }
/* Highlighted Warning Panel */
.tip-card { padding:12px 14px; border-radius:0 12px 12px 0; font-size:0.78rem; line-height:1.7; }
.tip-card.red { border-left:5px solid #dc2626; background:linear-gradient(135deg,#fef2f2 0%,#fff5f5 100%); font-weight:600; color:#991b1b; border-top:1px solid #fecaca; border-right:1px solid #fecaca; border-bottom:1px solid #fecaca; }
.tip-card.amber { border-left:5px solid #f59e0b; background:linear-gradient(135deg,#fffbeb 0%,#fefce8 100%); font-weight:600; color:#92400e; border-top:1px solid #fde68a; border-right:1px solid #fde68a; border-bottom:1px solid #fde68a; }
#panelWarning { font-size:0.82rem; }
#panelWarning::before { content:"⚠️ "; color:#dc2626; font-weight:900; }
.splash-main-title { font-size: 2.8rem; font-weight: 900; background: linear-gradient(135deg, #e53935, #dc2626 35%, #2563eb 70%, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 1px; line-height: 1.1; margin-bottom: 4px; filter: drop-shadow(0 2px 4px rgba(229,57,53,0.12)); }
.splash-sub-lead { font-size: 1.05rem; color: var(--c-text-secondary); max-width: 380px; margin-bottom: 4px; line-height: 1.4; }
.mini-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-bottom: 24px; }
.mini-card-item { background: rgba(255,255,255,0.95); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; transition: all 0.2s; }
.mini-card-icon { font-size: 18px; margin-bottom: 4px; }
.mini-card-title { font-size: 0.72rem; font-weight: 800; color: var(--c-text); margin-bottom: 2px; }
.mini-card-desc { font-size: 0.65rem; color: var(--c-text-secondary); transform: scale(0.9); }
.bottom-disclaimer-strip { background: var(--soft-yellow); border: 1px solid rgba(245,158,11,0.15); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.72rem; color: var(--c-warning); line-height: 1.45; text-align: left; width: 100%; margin-top: 10px; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Page 2 Scene */
.scenario-card-premium { border-radius: var(--radius-card); overflow: hidden; background: var(--c-white); border: 1px solid var(--rule); box-shadow: var(--shadow-card); }
.scene-visual-container { width: 100%; height: 155px; position: relative; overflow: hidden; background: #f5f7fa !important; }
.scene-visual-container *::before,
.scene-visual-container *::after { display: none !important; content: none !important; }
.scene-photo { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 1; }
.water-puddles { position: absolute; bottom: 0; left: 25%; right: 25%; height: 10px; background: rgba(37,99,235,0.25); border-radius: 50%; filter: blur(1px); }
.heater-box-ui { position: absolute; top: 15px; right: 20px; width: 32px; height: 44px; background: #f8fafc; border: 2px solid #cbd5e1; border-radius: 6px; }
.heater-indicator-dot { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; background: #ef4444; border-radius: 50%; box-shadow: 0 0 8px #ef4444; }
.danger-warning-strip { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 16px; background: var(--soft-red); color: var(--c-danger); border-top: 1px solid rgba(220,38,38,0.1); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
@keyframes boltFlash { 0% { opacity: 0.2; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1.1); } }
/* Page 6 CPR Heart Zone */
:root {
  --compression-hotspot-left: 50%;
  --compression-hotspot-top: 42%;
  --compression-hotspot-width: 118px;
  --compression-hotspot-height: 86px;
  --cpr-obj-pos-x: 34%;
  --cpr-obj-pos-y: 50%;
}
.cpr-trainer-container { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cpr-illustration-card { background: var(--c-white); border: 1px solid #dbe7f1; border-radius: 24px; padding: 0; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04); position: relative; }
.cpr-illustration-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(224,242,254,0.12) 0%, transparent 55%); pointer-events: none; z-index: 2; border-radius: 24px; }
.cpr-illustration-frame { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 3/2; max-height: 210px; background: #0f172a; overflow: hidden; }
.cpr-scene-image { width: 100%; height: 100%; object-fit: cover; object-position: var(--cpr-obj-pos-x) var(--cpr-obj-pos-y); display: block; filter: saturate(0.85) brightness(1.02); transition: transform 0.1s ease; }
.cpr-scene-placeholder { display: none; width: 100%; height: 100%; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f1f5f9 100%); flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--c-text-secondary); font-size: 0.82rem; font-weight: 600; line-height: 1.6; }
.cpr-scene-placeholder .ph-icon { font-size: 2.4rem; margin-bottom: 10px; opacity: 0.6; }
.cpr-scene-placeholder.show { display: flex; }
.cpr-lock-overlay { display: none; position: absolute; inset: 0; z-index: 10; background: rgba(15,23,42,0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.cpr-lock-overlay.show { display: flex; }
.cpr-lock-icon { font-size: 2.4rem; animation: lockPopIn 0.35s ease-out; }
@keyframes lockPopIn { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.cpr-lock-title { font-size: 0.9rem; font-weight: 800; color: #f8fafc; }
.cpr-lock-sub { font-size: 0.7rem; color: #94a3b8; }
.cpr-hotspot-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cpr-hotspot-anchor { position: absolute; left: var(--compression-hotspot-left); top: var(--compression-hotspot-top); transform: translate(-50%, -50%); pointer-events: auto; }
.cpr-press-ring-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; pointer-events: none; z-index: 3; opacity: 0.6; } .cpr-press-ring-wrap.pulse { animation: ringPulse 0.55s ease-out forwards; } .cpr-press-ring-svg { width: 100%; height: 100%; } @keyframes ringPulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } }
.cpr-hotspot-btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, #ef5350 0%, #e53935 50%, #c62828 100%); border: none; cursor: pointer; z-index: 5; -webkit-tap-highlight-color: transparent; outline: none; box-shadow: 0 8px 24px rgba(229,57,53,0.4), inset 0 3px 8px rgba(255,255,255,0.25); transform: translate(-50%, -50%); transition: background 0.2s ease; animation: heartIdle 1.5s ease-in-out infinite; }@keyframes heartIdle { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.04); } }.cpr-hotspot-btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 24px; height: 3px; background: rgba(255,255,255,0.7); border-radius: 1.5px; transform: translate(-50%, -50%); }.cpr-hotspot-btn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 24px; background: rgba(255,255,255,0.7); border-radius: 1.5px; transform: translate(-50%, -50%); }.cpr-hotspot-btn.good-press { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; box-shadow: 0 8px 24px rgba(34,197,94,0.5), inset 0 3px 8px rgba(255,255,255,0.3) !important; transform: translate(-50%, -50%) scale(1.08) !important; animation: none; }.cpr-hotspot-btn.good-press::before, .cpr-hotspot-btn.good-press::after { background: rgba(255,255,255,1) !important; }.cpr-hotspot-btn.deep-press { background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%) !important; box-shadow: 0 8px 24px rgba(127,29,29,0.5), inset 0 3px 8px rgba(0,0,0,0.3) !important; transform: translate(-50%, -50%) scale(0.92) !important; animation: none; }
.cpr-hotspot-btn:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 4px; border-radius: 50%; }
.cpr-illustration-card.pressing .cpr-scene-image { transform: translateY(5px); filter: saturate(0.85) brightness(0.95); }
.cpr-illustration-card.pressing { box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04), inset 0 0 50px rgba(229,57,53,0.12); }
.cpr-illustration-card.pressing .cpr-hotspot-btn { transform: translate(-50%, -50%) scale(0.93); box-shadow: 0 2px 8px rgba(229,57,53,0.25), inset 0 1px 3px rgba(0,0,0,0.2); } .cpr-illustration-card.pressing .cpr-press-ring { animation: ringPulse 0.55s ease-out forwards; }
.cpr-depth-vertical { display: flex; align-items: stretch; gap: 0; background: var(--c-white); border: 1px solid #dbe7f1; border-radius: 12px; padding: 8px 6px; box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
.cpr-depth-scale { display: flex; flex-direction: column; justify-content: space-between; width: 30px; padding-right: 6px; font-size: 0.52rem; font-weight: 700; color: var(--c-text-light); text-align: right; line-height: 1; }
.cpr-depth-scale .cm-ok { color: #16a34a; font-weight: 800; }
.cpr-depth-bar-wrap { flex: 1; height: 70px; background: linear-gradient(to bottom, #fca5a5 0%, #fca5a5 14%, #fed7aa 14%, #fed7aa 43%, #bbf7d0 43%, #bbf7d0 71%, #22c55e 71%, #22c55e 86%, #fed7aa 86%, #fed7aa 93%, #fca5a5 93%, #fca5a5 100%); border-radius: 8px; position: relative; overflow: visible; }
.cpr-depth-target-zone { position: absolute; left: 0; right: 0; top: 71%; height: 15%; border-left: 3px solid #16a34a; border-right: 3px solid #16a34a; background: rgba(34,197,94,0.12); border-radius: 2px; pointer-events: none; }
.cpr-depth-indicator { position: absolute; left: -6px; right: -6px; height: 3px; background: #eab308; border-radius: 2px; top: 0%; transition: top 0.3s ease; box-shadow: 0 0 8px rgba(234,179,8,0.5); }
.cpr-depth-indicator.shallow { background: #f59e0b; }
.cpr-depth-indicator.good { background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.6); }
.cpr-depth-indicator.deep { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.6); }
.cpr-depth-label { text-align: center; font-size: 0.7rem; font-weight: 800; margin-top: 2px; min-height: 16px; }
.cpr-depth-label.ok { color: var(--c-success); } .cpr-depth-label.warn { color: var(--c-warning); } .cpr-depth-label.bad { color: var(--c-danger); }
.cpr-dashboard-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cpr-dash-card { background: var(--c-white); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; box-shadow: var(--shadow-sm); }
.cpr-dash-val { font-size: 1.05rem; font-weight: 900; color: var(--c-primary); font-family: var(--font-mono); line-height: 1.1; }
.cpr-dash-lbl { font-size: 0.58rem; color: var(--c-text-secondary); font-weight: 700; margin-top: 1px; }
.cpr-progress-wrap { margin: 2px 0; }
.cpr-progress-bar { height: 5px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.cpr-progress-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary)); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.cpr-interrupt-warn { background: var(--soft-red); border: 1px solid rgba(220,38,38,0.12); border-radius: 6px; padding: 5px 10px; font-size: 0.7rem; font-weight: 700; color: var(--c-danger); text-align: center; display: none; animation: fadeIn 0.3s ease; }
.cpr-interrupt-warn.show { display: block; }
.rb-header { text-align: center; } .rb-title { font-size: 1.1rem; font-weight: 900; color: var(--c-text); margin-bottom: 4px; } .rb-desc { font-size: 0.78rem; color: var(--c-text-secondary); line-height: 1.5; margin: 0; } .rb-steps { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; } .rb-step-node { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; font-size: 0.7rem; font-weight: 700; color: var(--c-text-secondary); background: #f8fafc; border: 1px solid #e8edf2; } .rb-step-node.active { border-color: var(--c-secondary); color: var(--c-secondary); background: #eff6ff; } .rb-step-node.done { border-color: #bbf7d0; color: var(--c-success); background: #f0fdf4; } .rb-step-num { width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 900; } .rb-step-node.done .rb-step-num { background: var(--c-success); color: #fff; } .rb-step-node.active .rb-step-num { background: var(--c-secondary); color: #fff; } .rb-step-conn { width: 16px; height: 2px; background: #e8edf2; margin: 0 2px; } .rb-actions { display: flex; flex-direction: column; gap: 6px; } .rb-action-btn { width: 100%; padding: 12px; border: 2px solid #dbe7f1; border-radius: 14px; background: var(--c-white); font-size: 0.88rem; font-weight: 700; cursor: pointer; text-align: center; color: var(--c-text); transition: all 0.2s; } .rb-action-btn:hover { border-color: var(--c-secondary-light); } .rb-action-btn:disabled { cursor: default; opacity: 0.8; } .rb-vent-card { background: var(--c-white); border: 1px solid #dbe7f1; border-radius: 16px; padding: 16px; text-align: center; } .rb-lungs{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px 0 10px;position:relative}.rb-lungs::before{content:"气管";position:absolute;top:-8px;left:50%;transform:translateX(-50%);font-size:0.45rem;color:rgba(180,200,220,0.5)}.rb-lung{width:52px;height:64px;border-radius:50% 50% 45% 45%;background:linear-gradient(180deg,rgba(200,215,230,0.5) 0%,rgba(180,200,220,0.35) 100%);border:2px solid rgba(180,200,215,0.7);position:relative;transition:transform 0.3s ease,background 0.3s ease,border-color 0.3s ease,box-shadow 0.3s ease;transform:scaleY(0.55);overflow:hidden}.rb-lung::after{content:"";position:absolute;top:6px;left:50%;width:3px;height:28px;background:rgba(180,200,220,0.6);transform:translateX(-50%);border-radius:2px}.rb-lung.inflate{transform:scaleY(1.2);background:linear-gradient(180deg,rgba(34,197,94,0.35) 0%,rgba(22,163,74,0.25) 100%);border-color:rgba(34,197,94,0.8);box-shadow:0 0 20px rgba(34,197,94,0.25),inset 0 0 16px rgba(34,197,94,0.1)}.rb-lung.inflate::after{background:rgba(34,197,94,0.7)}.rb-lung.over{transform:scaleY(1.25);background:linear-gradient(180deg,rgba(239,68,68,0.35) 0%,rgba(220,38,38,0.25) 100%);border-color:rgba(239,68,68,0.7);box-shadow:0 0 20px rgba(239,68,68,0.25)}.rb-lung.over::after{background:rgba(239,68,68,0.7)}.rb-vent-header { font-size: 0.9rem; font-weight: 800; margin-bottom: 12px; } .rb-vent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .rb-vent-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border: 2px solid #dbe7f1; border-radius: 16px; background: var(--c-white); cursor: pointer; transition: all 0.2s; min-height: 130px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } .rb-vent-btn:hover:not(:disabled) { border-color: var(--c-success); } .rb-vent-btn:disabled { cursor: default; opacity: 0.7; } .rb-vent-label { font-size: 0.82rem; font-weight: 800; color: var(--c-text); } .rb-vent-hint { font-size: 0.62rem; color: var(--c-text-light); } .rb-vent-ring { width: 60px; height: 60px; margin-top: 4px; } .rb-vent-ring svg { width: 100%; height: 100%; } .rb-vent-ring.done circle:last-child { stroke: var(--c-success); } .rb-vent-count { margin-top: 10px; font-size: 0.8rem; font-weight: 700; color: var(--c-text-secondary); } .rb-chest-indicator { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: #f0fdf4; border-radius: 10px; } .rb-chest-icon { font-size: 1.3rem; } .rb-chest-text { font-size: 0.78rem; font-weight: 700; color: var(--c-success); } .rb-feedback { min-height: 24px; font-size: 0.82rem; line-height: 1.5; text-align: center; font-weight: 600; } @keyframes chestBreathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.15); } } @media (max-width: 639px) { .rb-steps { gap: 2px; } .rb-step-node { padding: 4px 6px; font-size: 0.62rem; } .rb-step-conn { width: 10px; } .rb-vent-btns { gap: 6px; } .rb-vent-btn { padding: 12px 4px; min-height: 110px; } .rb-vent-ring { width: 50px; height: 50px; } }

.cpr-disclaimer { font-size: 0.75rem; color: var(--c-warning); text-align: center; padding: 6px 8px; line-height: 1.5; opacity: 0.9; background: var(--soft-yellow); border-radius: 8px; border: 1px solid rgba(245,158,11,0.15); }
.press-ecg { flex-shrink: 0; } .press-ecg canvas { width: 100%; height: 56px; display: block; }
.bpm-good { color: var(--c-success) !important; } .bpm-warn { color: var(--c-warning) !important; } .bpm-bad { color: var(--c-danger) !important; }
@media (max-width: 639px) { .cpr-trainer-container { gap: 6px; } .cpr-illustration-frame { max-height: 170px; } .cpr-dashboard-panel { gap: 4px; } .cpr-dash-card { padding: 6px 3px; } .cpr-dash-val { font-size: 0.95rem; } .cpr-dash-lbl { font-size: 0.52rem; } .cpr-depth-bar-wrap { height: 60px; } .cpr-depth-vertical { padding: 6px 4px; } .cpr-depth-scale { width: 24px; padding-right: 4px; font-size: 0.45rem; } .cpr-depth-label { font-size: 0.62rem; } }
@media (prefers-reduced-motion: reduce) { .cpr-hotspot-glow { transition: none; } .cpr-illustration-card.pressing .cpr-scene-image { transform: none; } .cpr-illustration-card.pressing .cpr-hotspot-btn { transform: translate(-50%, -50%) scale(1); box-shadow: 0 8px 24px rgba(229,57,53,0.4); } .cpr-press-ring-wrap { animation: none !important; } .cpr-press-core { transition: none !important; } .cpr-depth-indicator { transition: none; } .cpr-progress-fill { transition: none; transform: none; } }
/* P6 Rhythm Coach */
.rhythm-coach-bar { display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); border-radius: 10px; margin: 2px 0; border: 1px solid rgba(139,92,246,0.3); box-shadow: 0 4px 16px rgba(139,92,246,0.15); }
.rhythm-coach-icon { font-size: 1.2rem; animation: rhythmBounce 0.55s ease-in-out infinite; flex-shrink: 0; }
.rhythm-coach-text { flex: 1; min-width: 0; }
.rhythm-coach-title { font-size: 0.7rem; font-weight: 800; color: #e0e7ff; letter-spacing: 0.3px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhythm-coach-sub { font-size: 0.58rem; color: #a5b4fc; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhythm-coach-bpm { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 900; color: #fbbf24; min-width: 60px; text-align: center; }
.rhythm-coach-bpm span { font-size: 0.55rem; color: #a5b4fc; display: block; }
.rhythm-beat-dots { display: flex; gap: 5px; align-items: center; }
.rhythm-beat-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(139,92,246,0.3); transition: all 0.08s ease; }
.rhythm-beat-dot.beat { background: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,0.7); transform: scale(1.5); }
.rhythm-beat-dot.downbeat { width: 10px; height: 10px; background: #f59e0b; }
@keyframes rhythmBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.rhythm-countdown-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; z-index: 10; pointer-events: all; }
.rhythm-countdown-num { font-size: 5rem; font-weight: 900; color: #fbbf24; font-family: var(--font-mono); text-shadow: 0 0 40px rgba(251,191,36,0.5); animation: rhythmCountPop 0.45s ease-out; }
@keyframes rhythmCountPop { 0%{transform:scale(0.3);opacity:0} 60%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
.rhythm-countdown-label { font-size: 0.85rem; color: #a5b4fc; margin-top: 8px; letter-spacing: 1px; }
@media (max-width: 639px) { .rhythm-coach-bar { gap: 4px; padding: 4px 6px; } .rhythm-coach-title { font-size: 0.65rem; } .rhythm-coach-sub { font-size: 0.52rem; } .rhythm-coach-bpm { font-size: 0.9rem; } .rhythm-beat-dot { width: 6px; height: 6px; } .rhythm-coach-icon { font-size: 1rem; } }
/* Page 8 AED Timeline */
.aed-modular-flow-card { background: var(--c-white); border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow-card); }
.aed-hardware-screen-emulation { background: #0f172a; border-radius: var(--radius-sm); padding: 16px; color: #10b981; font-family: var(--font-mono); text-align: center; margin-bottom: 20px; box-shadow: inset 0 4px 12px rgba(0,0,0,0.4); border: 1px solid rgba(16,185,129,0.15); min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.aed-hardware-screen-emulation .main-msg { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.5px; }
.aed-hardware-screen-emulation .sub-msg { font-size: 0.72rem; opacity: 0.75; margin-top: 4px; }
.aed-4step-vertical-timeline { display: flex; flex-direction: column; gap: 10px; position: relative; margin: 10px 2px; }
.timeline-step-row-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: #f8fafc; border: 1px solid var(--rule); transition: all 0.3s var(--ease); position: relative; }
.timeline-step-row-item .badge-index { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; background: #e2e8f0; color: var(--c-text-light); transition: all 0.3s; }
.timeline-step-row-item .label-text { font-size: 0.9rem; font-weight: 750; color: var(--c-text-secondary); transition: all 0.3s; }
.timeline-step-row-item.step--active { background: var(--c-primary-50); border-color: rgba(229,57,53,0.25); box-shadow: 0 4px 12px rgba(229,57,53,0.05); }
.timeline-step-row-item.step--active .badge-index { background: var(--c-primary); color: #fff; box-shadow: 0 0 8px rgba(229,57,53,0.3); }
.timeline-step-row-item.step--active .label-text { color: var(--c-primary); font-weight: 800; }
.timeline-step-row-item.step--done { background: var(--c-success-50); border-color: rgba(22,163,74,0.2); }
.timeline-step-row-item.step--done .badge-index { background: var(--c-success); color: #fff; }
.timeline-step-row-item.step--done .label-text { color: var(--c-success); text-decoration: none; opacity: 0.85; }
/* Page 11 Report Dashboard */
.dashboard-score-annulus-zone { display: flex; flex-direction: column; align-items: center; padding: 16px 0; }
.score-annulus-relative-frame { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.score-svg-annulus-object { transform: rotate(-90deg); width: 140px; height: 140px; }
.score-svg-annulus-object circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.score-svg-annulus-object .track-bg { stroke: #f1f5f9; }
.score-svg-annulus-object .fill-bar { stroke: url(#scoreGrad); stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 1s ease-out; }
.score-absolute-inner-content { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.score-absolute-inner-content .numeric-aggregate { font-size: 2.4rem; font-weight: 900; color: var(--c-text); font-family: var(--font-mono); line-height: 1; }
.score-absolute-inner-content .alphabetical-rating-badge { font-size: 0.72rem; font-weight: 800; background: var(--c-primary); color: #fff; padding: 1px 8px; border-radius: var(--radius-pill); margin-top: 3px; box-shadow: 0 2px 6px rgba(229,57,53,0.2); }
.bar-charts-linear-metrics-panel { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 8px 0; }
.linear-chart-row-node { width: 100%; }
.linear-chart-meta-row { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 750; color: var(--c-text-secondary); margin-bottom: 4px; }
.linear-chart-meta-row .val-num { color: var(--c-text); font-weight: 800; font-family: var(--font-mono); }
.deduction-reason { font-size: 0.68rem; color: var(--c-danger); line-height: 1.5; margin-top: 2px; padding: 4px 8px; background: var(--soft-red); border-radius: 6px; } body.dark .deduction-reason { color: #f87171; background: rgba(248,113,113,0.15); }
.linear-track-base-wire { width: 100%; height: 8px; background: #f1f5f9; border-radius: var(--radius-pill); overflow: hidden; position: relative; }
.linear-track-fill-core { height: 100%; background: linear-gradient(90deg, var(--c-secondary-light), var(--c-secondary)); width: 100%; border-radius: var(--radius-pill); transform: scaleX(0); transform-origin: left; transition: transform 0.8s ease-out; }
.linear-chart-row-node:nth-child(even) .linear-track-fill-core { background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary)); }
.bar-rating { font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.rating-excellent { background: #d1fae5; color: #059669; }
.rating-good { background: #dbeafe; color: #2563eb; }
.rating-warn { background: #fef3c7; color: #d97706; }
.rating-bad { background: #fee2e2; color: #dc2626; }
.tag-cloud-fluid-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.fluid-tag-pill-node { font-size: 0.76rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); background: #f1f5f9; color: var(--c-text-secondary); border: 1px solid var(--rule); }
.fluid-tag-pill-node.tag--positive { background: var(--soft-green); color: var(--c-success); border-color: rgba(22,163,74,0.12); }
.fluid-tag-pill-node.tag--negative { background: var(--soft-red); color: var(--c-danger); border-color: rgba(220,38,38,0.1); }
/* Page 11 Report — PC dual-column grid */
@media (min-width: 700px) {
  .report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .report-grid > * { min-width: 0; }
  .report-grid .card { margin-bottom: 0; }
  .report-grid .report-full-width { grid-column: 1 / -1; }
  .report-grid .btn--block { grid-column: 1 / -1; margin-top: 4px; }
  @media (max-width: 699px) {
    .report-grid { grid-template-columns: 1fr; }
    .report-grid .report-full-width { grid-column: 1; }
  }
}
/* Page 12 Knowledge Cards */
.knowledge-responsive-grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; margin: 4px 0; align-items: start; }
.knowledge-card-premium-node { background: var(--c-white); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); transition: all 0.25s var(--ease); cursor: pointer; display: flex; flex-direction: column; position: relative; }
.knowledge-card-premium-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--c-secondary-light); }
.knowledge-card-header-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.knowledge-card-badge-icon { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--soft-blue), #dbeafe); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(37,99,235,0.1); }
.knowledge-card-premium-node:nth-child(odd) .knowledge-card-badge-icon { background: linear-gradient(135deg, var(--soft-red), #fee2e2); box-shadow: 0 2px 8px rgba(229,57,53,0.1); }
.knowledge-card-main-title { font-size: 0.88rem; font-weight: 800; color: var(--c-text); line-height: 1.3; }
.knowledge-card-body-summary { font-size: 0.76rem; color: var(--c-text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.knowledge-card-expanded-drawer { font-size: 0.75rem; color: var(--c-text); line-height: 1.6; background: #f8fafc; border-radius: var(--radius-xs); padding: 10px; margin-top: 8px; border: 1px dashed var(--rule); display: none; animation: fadeIn 0.2s ease; }
.knowledge-card-premium-node.expanded .knowledge-card-expanded-drawer { display: block; }
.knowledge-card-premium-node.expanded .knowledge-card-body-summary { display: none; }
.knowledge-card-footer-source { font-size: 0.65rem; color: var(--c-text-light); font-weight: 600; margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.knowledge-card-footer-source::after { content: '展开详情 ▾'; color: var(--c-secondary); font-weight: 700; font-size: 0.65rem; }
.knowledge-card-premium-node.expanded .knowledge-card-footer-source::after { content: '收起详情 ▴'; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
/* Risk Replay Card */
.risk-replay-card { background:var(--soft-red); border:1px solid rgba(220,38,38,.12); border-radius:var(--radius-sm); padding:14px; margin:10px 0; font-size:.82rem; line-height:1.55; box-shadow:var(--shadow-sm); display:none; }
.risk-replay-card.show { display:block; animation:fadeIn .3s ease; }
.risk-replay-card .rr-title { font-weight:800; color:var(--c-danger); margin-bottom:8px; font-size:.9rem; }
.risk-replay-card .rr-row { margin-bottom:6px; display:flex; flex-wrap:wrap; gap:4px; }
.risk-replay-card .rr-label { font-weight:700; color:var(--c-text); white-space:nowrap; }
.risk-replay-card .rr-correct { background:var(--soft-green); color:var(--c-success); border-radius:var(--radius-xs); padding:2px 8px; font-weight:700; }
.risk-replay-card .rr-knowledge { color:var(--c-secondary); font-weight:600; margin-top:6px; padding-top:6px; border-top:1px dashed rgba(220,38,38,.15); font-size:.75rem; }
.bc-observe-body{display:flex;flex-direction:column;align-items:center;gap:0;flex-shrink:0}.bc-body-head{width:28px;height:28px;border-radius:50%;border:2px solid rgba(148,163,184,0.85);margin-bottom:1px}.bc-body-torso{position:relative;width:32px;height:50px;border:2px solid rgba(148,163,184,0.75);border-radius:6px 6px 2px 2px}.bc-body-chest{position:absolute;left:4px;right:4px;top:12px;height:14px;border:1px dashed rgba(148,163,184,0.9);border-radius:3px;transition:transform 0.15s ease, border-color 0.3s ease, background 0.3s ease}.bc-body-chest.twitch{transform:translateY(-4px);border-color:#bbf7d0;background:rgba(187,247,208,0.25)}
.bc-body-chest.breathing{animation:chestBreathing 2s ease-in-out infinite}.bc-body-chest.not-breathing{animation:none;transform:translateY(0);border-color:rgba(239,68,68,0.7);background:rgba(239,68,68,0.1)}
@keyframes chestBreathing{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes bodyTwitch{0%{transform:translateY(0)}30%{transform:translateY(-4px)}60%{transform:translateY(-1px)}100%{transform:translateY(0)}}
/* P5 voice wave animation */
.bc-shout-bubble .voice-wave { display: inline-block; animation: voiceWave 0.3s ease-in-out infinite alternate; }
.bc-shout-bubble .voice-wave:nth-child(1){animation-delay:0s}.bc-shout-bubble .voice-wave:nth-child(2){animation-delay:0.1s}.bc-shout-bubble .voice-wave:nth-child(3){animation-delay:0.2s}
@keyframes voiceWave{0%{transform:translateY(0) scaleY(1)}100%{transform:translateY(-2px) scaleY(1.4)}}
/* P5 tap ripple */
.tap-ripple{position:absolute;width:60px;height:60px;border-radius:50%;border:2px solid rgba(59,130,246,0.6);pointer-events:none;animation:tapRippleOut 0.5s ease-out forwards}
@keyframes tapRippleOut{0%{transform:scale(0.3);opacity:1}100%{transform:scale(2);opacity:0}}
*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;height:100%;overflow:hidden}
/* 开机品牌名 */
#bootBrand{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10;font-size:clamp(1.6rem,5vw,2.4rem);font-weight:900;color:rgba(61,213,152,0.35);letter-spacing:8px;pointer-events:none;opacity:0;transition:opacity 0.4s ease}
#bootBrand.visible{opacity:1}

/* 开机圆点 */
#bootDot{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:4px;border-radius:50%;background:rgba(61,213,152,0.6);z-index:10;opacity:0;transition:opacity 0.3s ease}
#bootDot.visible{opacity:1}

/* 作品名称水印 */
#brand{position:absolute;top:3%;left:4%;z-index:3;font-size:clamp(0.65rem,1.5vw,0.8rem);font-weight:400;color:rgba(180,195,220,0.2);letter-spacing:4px;pointer-events:none}

/* Canvas */
#ecgCanvas{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;pointer-events:none}

/* 光裂扩散遮罩 */
#lightBurst{position:absolute;top:0;left:0;width:100%;height:100%;z-index:5;pointer-events:none;opacity:0;background:radial-gradient(ellipse 0% 0% at 50% 55%,rgba(255,255,255,0.95),rgba(255,255,255,0.4) 40%,transparent 70%);transition:none}

/* 文字流容器 */
#textFlow{position:absolute;top:12%;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:clamp(3px,0.7vh,5px);max-height:58vh;overflow:hidden;z-index:2;pointer-events:none;width:90%;transition:filter 0.8s ease,opacity 0.8s ease}
#textFlow.blur{filter:blur(2px);opacity:0.2}
.line{opacity:0;transform:translateY(10px);transition:opacity 0.5s ease,transform 0.5s ease,filter 1.2s ease;text-align:center;white-space:nowrap}
.line.visible{opacity:1;transform:translateY(0)}
.line.dim{opacity:0.15;filter:blur(0.5px);transform:scale(0.96)}

/* 文字样式 */
.line-time{font-size:clamp(0.75rem,1.9vw,0.9rem);font-weight:400;color:#ff8a65;display:block;letter-spacing:3px;margin-bottom:2px}
.line-num{font-size:clamp(2rem,7vw,3.2rem);font-weight:900;color:#e53935;display:block;line-height:1.1;letter-spacing:5px}
.line-desc{font-size:clamp(0.75rem,1.8vw,0.9rem);font-weight:400;color:rgba(180,195,220,0.55);display:block;letter-spacing:2px;margin-top:1px}
.line-highlight{font-size:clamp(0.95rem,2.6vw,1.25rem);font-weight:700;color:#e8edf5;display:block;letter-spacing:1.5px;line-height:1.3}
.line-highlight span{color:#ef5350;font-weight:900}


/* 抉择玻璃卡片 */
#choiceCard{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.95);z-index:4;background:rgba(255,255,255,0.98);border:1px solid rgba(255,255,255,0.1);border-top:1px solid rgba(255,255,255,0.15);border-radius:20px;padding:clamp(32px,6vh,44px) clamp(36px,7vw,56px);text-align:center;box-shadow:0 8px 32px rgba(0,0,0,0.3),inset 0 1px 0 rgba(255,255,255,0.05);opacity:0;transition:opacity 0.6s ease,transform 0.6s cubic-bezier(0.34,1.56,0.64,1);pointer-events:none;min-width:280px;width:85%;max-width:420px}
#choiceCard.visible{opacity:1;transform:translate(-50%,-50%) scale(1);pointer-events:auto}
.card-question{font-size:clamp(1.2rem,3.8vw,1.7rem);font-weight:900;color:#0f172a;letter-spacing:2px;margin-bottom:clamp(6px,1.5vh,10px);line-height:1.4}
.card-sub{font-size:clamp(0.78rem,2vw,0.92rem);font-weight:500;color:#1d4ed8;letter-spacing:1px;margin-bottom:clamp(18px,3.5vh,24px);line-height:1.4}
.card-btns{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:clamp(12px,3vw,20px)}
.card-btn{padding:clamp(12px,2.5vh,16px) clamp(24px,5vw,36px);font-size:clamp(0.9rem,2.6vw,1.05rem);font-weight:700;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;font-family:inherit;letter-spacing:2px;transition:transform 0.2s ease,box-shadow 0.2s ease;border:none;white-space:nowrap;border-radius:12px}
.card-btn:active{transform:scale(0.96)!important}
.card-btn-r{background:linear-gradient(135deg,#e53935,#c62828);color:#fff;box-shadow:0 4px 20px rgba(229,57,53,0.35)}
.card-btn-r:hover{transform:translateY(-2px);box-shadow:0 6px 28px rgba(229,57,53,0.5)}
.card-btn-p{background:transparent;border:1.5px solid rgba(0,0,0,0.12);color:#475569}
.card-btn-p:hover{background:rgba(0,0,0,0.03);border-color:rgba(0,0,0,0.2);transform:translateY(-1px)}

/* 安抚卡片 */
#comfortOv{position:absolute;top:0;left:0;width:100%;height:100%;z-index:20;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity 0.4s ease}
#comfortOv.visible{opacity:1;pointer-events:auto}
.cc{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:24px;padding:clamp(32px,6vh,48px) clamp(28px,5vw,44px);text-align:center;max-width:380px;width:88%;transform:scale(0.92) translateY(12px);opacity:0;transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1),opacity 0.35s ease}
#comfortOv.visible .cc{transform:scale(1) translateY(0);opacity:1}
.cc-line{width:36px;height:2px;background:rgba(255,255,255,0.1);border-radius:1px;margin:0 auto 18px}
.cc-t{font-size:clamp(0.95rem,2.5vw,1.1rem);font-weight:600;color:rgba(232,237,245,0.85);line-height:1.8;margin-bottom:6px;letter-spacing:1px}
.cc-s{font-size:clamp(0.8rem,2vw,0.9rem);color:rgba(180,195,220,0.35);font-weight:400;margin-bottom:24px;letter-spacing:0.5px}
.cc-btn{padding:14px 40px;border-radius:14px;background:linear-gradient(135deg,#e53935,#c62828);color:#fff;font-size:clamp(0.9rem,2.4vw,1rem);font-weight:700;cursor:pointer;border:none;outline:none;-webkit-tap-highlight-color:transparent;font-family:inherit;letter-spacing:1px;transition:transform 0.15s ease,box-shadow 0.15s ease;box-shadow:0 4px 20px rgba(229,57,53,0.35)}
.cc-btn:hover{transform:translateY(-1px);box-shadow:0 6px 28px rgba(229,57,53,0.45)}
.cc-btn:active{transform:scale(0.96)}

@media(max-width:480px){
.line{white-space:normal;padding:0 12px}
.line-time{font-size:0.7rem;letter-spacing:2px}
.line-num{font-size:clamp(1.6rem,10vw,2.4rem)}
.line-desc{font-size:0.7rem;white-space:normal}
.line-highlight{font-size:clamp(0.85rem,4vw,1.1rem);white-space:normal}
#textFlow{top:8%;gap:4px;max-height:52vh;width:94%}
.card-btns{flex-direction:column;gap:10px}
.card-btn{width:100%;white-space:normal}
.card-btn-r{font-size:1rem;padding:14px 20px}
.card-btn-p{font-size:0.9rem;padding:12px 20px;color:#475569;border-color:rgba(0,0,0,0.15)}
#choiceCard{padding:28px 24px;min-width:auto;width:88%}
.card-question{font-size:1.1rem}
.card-sub{font-size:0.8rem}
#ecgCanvas{touch-action:none}
}

@media(prefers-reduced-motion:reduce){*{transition-duration:0.01ms!important;animation-duration:0.01ms!important}}
