:root {
  --primary: #4A90E2;
  --primary-dark: #2C5282;
  --primary-light: #63B3ED;
  --primary-hover: #357ABD;
  --bg: #F0F7FF;
  --bg-slate: #f8fafc;
  --success: #149174;
  --success-bg: #D8F9F1;
  --warning: #F59E0B;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --teal: #14b8a6;
  --teal-500: #2DD4BF;
  --orange: #f97316;
  --purple: #a855f7;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-blue: #dbeafe;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-3xl: 3rem;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
img, video { max-width: 100%; display: block; }

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-blue);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.header-logo-icon svg { width: 24px; height: 24px; }

.header-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 10px;
  color: var(--primary-light);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .header-nav { display: flex; }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover { background: rgba(74,144,226,0.05); }
.nav-item.active { background: #eff6ff; color: var(--primary); font-weight: 700; }
.nav-item.locked { opacity: 0.4; cursor: not-allowed; }
.nav-item.debug-unlocked { cursor: pointer; opacity: 1; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-separator {
  width: 1rem;
  height: 1px;
  background: var(--border-blue);
  margin: 0 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-display { text-align: right; }

.score-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.score-value {
  font-size: 1.25rem;
  font-family: ui-monospace, monospace;
  font-weight: 900;
  color: var(--primary-dark);
}

.score-value.good { color: var(--teal); }
.score-value.warn { color: var(--orange); }

.header-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #dbeafe;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.header-avatar svg { width: 20px; height: 20px; }

.sub-nav {
  background: rgba(248,250,252,0.8);
  backdrop-filter: blur(8px);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-top: 1px solid #eff6ff;
  flex-wrap: wrap;
}

.sub-nav-item {
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.sub-nav-item:hover {
  color: var(--primary);
  background: rgba(74,144,226,0.08);
}

.sub-nav-item.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.sub-nav-sep { color: #e2e8f0; }

.progress-bar-track {
  height: 4px;
  width: 100%;
  background: #eff6ff;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  box-shadow: 0 0 8px rgba(74,144,226,0.5);
  transition: width 0.5s ease;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-blue);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

.footer-status-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-student {
  font-size: 10px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.footer-right {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.medical-card {
  background: #fff;
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-blue);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(74,144,226,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 16px rgba(74,144,226,0.3);
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-danger {
  background: var(--danger);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px rgba(239,68,68,0.2);
  transition: all 0.2s;
  border: none;
}

.btn-danger:hover { background: var(--danger-hover); }
.btn-danger:active { transform: scale(0.95); }

.btn-blue {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px rgba(74,144,226,0.2);
  transition: all 0.2s;
  border: none;
  width: 100%;
}

.btn-blue:hover { background: var(--primary-hover); }
.btn-blue:active { transform: scale(0.95); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.badge-orange { background: #fff7ed; color: #ea580c; }
.badge-blue { background: #dbeafe; color: #2563eb; }
.badge-teal { background: #ccfbf1; color: #0d9488; }
.badge-purple { background: #f3e8ff; color: #9333ea; }
.badge-red { background: #fef2f2; color: #dc2626; }

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title svg { flex-shrink: 0; }

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #0f172a;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container.object-contain video { object-fit: contain; }

.video-overlay-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: #2563eb;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 900;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  font-size: 1.125rem;
}

.video-overlay-btn:hover { background: #1d4ed8; }
.video-overlay-btn:active { transform: scale(0.95); }

.video-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.blue { background: rgba(44,82,130,0.8); backdrop-filter: blur(4px); }
.modal-overlay.dark { background: rgba(15,23,42,0.8); backdrop-filter: blur(4px); }
.modal-overlay.red { background: rgba(76,5,25,0.8); backdrop-filter: blur(4px); }

.modal-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 2.5rem;
  text-align: center;
  max-width: 28rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-blue);
  animation: modalIn 0.2s ease;
  width: 100%;
}

.modal-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon svg { width: 32px; height: 32px; }

.modal-icon.success { background: var(--success-bg); color: var(--success); }
.modal-icon.danger { background: #fef2f2; color: var(--danger); }
.modal-icon.blue { background: #dbeafe; color: var(--primary); }

.modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.modal-title.red { color: var(--danger); }

.modal-body {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-align: left;
}

.modal-body.center { text-align: center; }

.video-modal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: fadeIn 0.2s ease;
}

.video-modal-overlay.blue { background: rgba(44,82,130,0.9); backdrop-filter: blur(8px); }
.video-modal-overlay.dark { background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }

.toast {
  position: fixed;
  z-index: 300;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  font-weight: 900;
  color: #fff;
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}

.toast.top { top: 6rem; left: 50%; transform: translateX(-50%); }
.toast.bottom { bottom: 2.5rem; left: 50%; transform: translateX(-50%); }
.toast.success { background: var(--teal); }
.toast.error { background: var(--danger); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.info-box {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.info-box-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--primary-light);
  font-weight: 900;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.info-box-value {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.125rem;
}

.alert-box {
  background: rgba(239,246,255,0.5);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
  white-space: pre-line;
}

.foreword-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 3rem 2rem;
  margin: -2rem -2rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.foreword-hero-tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.foreword-hero h2 {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.foreword-hero-line {
  width: 4rem;
  height: 4px;
  background: #fff;
  border-radius: 9999px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.foreword-hero p {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  max-width: 28rem;
}

.foreword-hero .hero-bg-icon {
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  color: #fff;
  opacity: 0.1;
  width: 16rem;
  height: 16rem;
  transform: rotate(12deg);
}

.symptom-pool {
  padding: 2rem;
  background: rgba(239,246,255,0.5);
  border: 2px dashed var(--border-blue);
  border-radius: var(--radius-3xl);
}

.symptom-pool-title {
  text-align: center;
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.symptom-pool-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  min-height: 3rem;
}

.symptom-item {
  display: flex;
  gap: 0;
}

.symptom-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  border: 1px solid var(--border-blue);
  transition: all 0.2s;
  font-size: 0.75rem;
  cursor: pointer;
}

.symptom-btn.left { border-radius: var(--radius-xl) 0 0 var(--radius-xl); color: #0891b2; }
.symptom-btn.left:hover { background: #ecfeff; }
.symptom-btn.right { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; color: var(--danger); }
.symptom-btn.right:hover { background: #fef2f2; }

.symptom-text {
  padding: 0.5rem 1.25rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--primary-dark);
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
}

.classify-zone {
  padding: 1.5rem;
  border-radius: var(--radius-3xl);
  min-height: 160px;
}

.classify-zone.light { background: rgba(207,250,254,0.3); border: 2px solid #bae6fd; }
.classify-zone.heavy { background: rgba(254,242,242,0.3); border: 2px solid #fecaca; }

.classify-zone-title {
  text-align: center;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.classify-zone-title.light { color: #0891b2; }
.classify-zone-title.heavy { color: var(--danger); }

.classify-zone-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.classified-tag {
  position: relative;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  animation: tagIn 0.2s ease;
}

.classified-tag.light { background: #0891b2; border: 1px solid #06b6d4; }
.classified-tag.heavy { background: var(--danger); border: 1px solid #f87171; }

.classified-tag .remove-btn {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classified-tag:hover .remove-btn { opacity: 1; }
.classified-tag .remove-btn svg { width: 10px; height: 10px; }

.pressure-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pressure-section { flex-direction: row; justify-content: center; gap: 4rem; }
}

.pressure-gauge {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
  height: 16rem;
  position: relative;
}

.gauge-bar {
  width: 3.5rem;
  height: 100%;
  background: #f1f5f9;
  border-radius: var(--radius-xl);
  border: 4px solid #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.gauge-fill {
  width: 100%;
  transition: height 0.15s ease, background-color 0.3s ease;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
}

.gauge-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0.25rem 0;
}

.gauge-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.gauge-label.warn { color: var(--orange); }
.gauge-label.target { color: var(--teal); }
.gauge-label.input { color: var(--primary-light); }

.gauge-title {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.1em;
}

.bottle-model {
  position: relative;
  width: 16rem;
  height: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottle-hint {
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  animation: hintBounce 1.5s ease infinite;
}

.bottle-hint-label {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.bottle-hint-icon {
  color: var(--primary);
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.bottle-neck {
  width: 4rem;
  height: 3rem;
  border-left: 4px solid #bfdbfe;
  border-right: 4px solid #bfdbfe;
  border-top: 4px solid #bfdbfe;
  border-radius: 0.5rem 0.5rem 0 0;
  background: rgba(239,246,255,0.2);
  margin-bottom: -4px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bottle-neck::before {
  content: '';
  position: absolute;
  inset: 0;
  top: 0;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 0.5rem 0.5rem 0 0;
}

.bottle-cork {
  width: 2.5rem;
  height: 2rem;
  background: var(--danger);
  border-radius: 0.25rem;
  box-shadow: var(--shadow);
  border-bottom: 2px solid #b91c1c;
  position: relative;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottle-cork.ejected {
  transform: translateY(-180px) scale(0.4) rotate(35deg);
  opacity: 0;
}

.bottle-body {
  width: 8rem;
  height: 16rem;
  border: 4px solid #bfdbfe;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  touch-action: none;
  background: #fff;
  transition: transform 0.1s ease, background-color 0.1s ease;
}

.bottle-body.squeezing {
  transform: scaleX(0.8);
  background: rgba(74,144,226,0.1);
}

.bottle-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(239,246,255,0.2), transparent);
  pointer-events: none;
}

.bottle-body::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 1rem;
  width: 4px;
  height: 8rem;
  background: rgba(191,219,254,0.5);
  border-radius: 9999px;
  filter: blur(2px);
}

.bottle-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(96,165,250,0.05);
  transition: height 0.15s ease;
}

.pressure-dots {
  display: flex;
  gap: 0.375rem;
  justify-content: center;
}

.pressure-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  background: #e2e8f0;
}

.pressure-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.pressure-label {
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}

.sorting-area {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.sorting-timeline {
  min-width: 600px;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0.25rem 0;
}

.sorting-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #f1f5f9;
  z-index: 0;
}

.sort-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 5rem;
}

.slot-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  color: #cbd5e1;
  background: #fff;
}

.slot-number.filled {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.slot-box {
  width: 3.5rem;
  height: 10rem;
  border-radius: 0.25rem;
  border: 2px dashed #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  text-align: center;
  background: transparent;
}

.slot-box:hover { border-color: var(--primary); }

.slot-box.filled {
  background: #fff;
  border: 2px solid var(--primary-dark);
  border-style: solid;
  box-shadow: var(--shadow-sm);
}

.slot-box.shake {
  animation: shake 0.4s ease;
  border-color: var(--danger);
  background: #fef2f2;
}

.slot-text {
  font-weight: 900;
  color: var(--primary-dark);
  font-size: 1rem;
  writing-mode: vertical-lr;
  letter-spacing: normal;
  line-height: 1;
  white-space: pre-line;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slot-placeholder {
  opacity: 0.05;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.candidate-pool {
  border-top: 1px solid #f8fafc;
  padding-top: 1.25rem;
}

.candidate-pool-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.candidate-pool-title-bar {
  width: 4px;
  height: 0.75rem;
  background: var(--primary-dark);
  border-radius: 9999px;
}

.candidate-pool-title h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.candidate-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 160px;
  padding: 0 0.5rem 0.5rem;
  min-width: 600px;
  position: relative;
}

.candidate-item {
  width: 5rem;
  display: flex;
  justify-content: center;
}

.candidate-card {
  cursor: grab;
  padding: 0.375rem;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  border-radius: 0.25rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 3.5rem;
  height: 10rem;
}

.candidate-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.candidate-card:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.candidate-card .slot-text { font-size: 1rem; }

.candidate-empty {
  width: 3.5rem;
  height: 10rem;
}

.candidate-all-placed {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  padding: 1rem 0;
  position: absolute;
  inset: 0;
}

.local-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.local-progress-item {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.local-progress-bar {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 0.5s;
  background: #f1f5f9;
}

.local-progress-bar.done { background: var(--primary); }

.local-progress-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  color: #e2e8f0;
}

.local-progress-label.active { color: var(--primary); }

.pitfall-card {
  cursor: pointer;
  padding: 2rem;
  border-radius: 2.5rem;
  border: 4px solid #f8fafc;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(241,245,249,0.5);
}

.pitfall-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pitfall-card.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.pitfall-type {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #fef2f2;
  color: var(--danger);
}

.pitfall-card.active .pitfall-type {
  background: #fff;
  color: var(--primary-dark);
}

.pitfall-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.pitfall-card.active .pitfall-title { display: none; }

.pitfall-line {
  width: 2.5rem;
  height: 4px;
  background: #fee2e2;
  margin: 0 auto;
  border-radius: 9999px;
}

.pitfall-card.active .pitfall-line { display: none; }

.pitfall-detail {
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  display: none;
}

.pitfall-card.active .pitfall-detail { display: block; }

.pitfall-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: #e2e8f0;
}

.pitfall-card.active .pitfall-arrow { display: none; }

.chat-container {
  background: rgba(248,250,252,0.5);
  border: 1px solid #f1f5f9;
  border-radius: 2.5rem;
  padding: 2rem;
  height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 0.5rem;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: var(--shadow-md);
  border: 1px solid;
  flex-shrink: 0;
}

.chat-avatar.parent {
  background: #fff;
  color: var(--primary);
  border-color: var(--border-blue);
}

.chat-avatar.teacher {
  background: var(--teal);
  color: #fff;
  border-color: #5eead4;
}

.chat-bubble {
  padding: 1.5rem;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-sm);
  max-width: 80%;
  line-height: 1.6;
}

.chat-bubble.parent {
  background: #fff;
  border: 1px solid var(--border-blue);
  border-top-left-radius: 0;
  color: var(--primary-dark);
  font-weight: 500;
}

.chat-bubble.teacher {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-top-right-radius: 0;
  color: #134e4a;
  font-weight: 700;
}

.chat-bubble-time {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 0.5rem;
  display: block;
  text-transform: uppercase;
  font-weight: 900;
}

.chat-input-area {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-blue);
}

.chat-input {
  flex: 1;
  background: transparent;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-weight: 500;
  color: var(--primary-dark);
  font-size: 1rem;
}

.chat-send-btn {
  background: #2563eb;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.chat-send-btn:hover { background: #1d4ed8; }
.chat-send-btn:active { transform: scale(0.95); }

.hazard-container {
  background: #fff;
  border: 1px solid var(--border-blue);
  border-radius: 2.5rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.hazard-image-area {
  position: relative;
  aspect-ratio: 2/1;
  width: 100%;
  background: #f1f5f9;
  border-radius: var(--radius-3xl);
  overflow: hidden;
}

.hazard-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 1s;
}

.hazard-image-area:hover img { transform: scale(1.02); }

.hazard-hotspot {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 4px dashed transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transform: translate(-50%, -50%);
}

.hazard-hotspot:hover {
  background: rgba(96,165,250,0.2);
  border-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.25);
}

.hazard-hotspot.found {
  background: var(--danger);
  border: 4px solid #fff;
  border-style: solid;
  cursor: default;
  box-shadow: 0 10px 15px -3px rgba(239,68,68,0.2);
  transform: translate(-50%, -50%) scale(1);
}

.hazard-hotspot .plus-icon {
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--primary);
}

.hazard-hotspot:hover .plus-icon { opacity: 1; }
.hazard-hotspot.found .plus-icon { display: none; }

.hazard-hotspot .found-icon {
  display: none;
  color: #fff;
  animation: scaleIn 0.2s ease;
}

.hazard-hotspot.found .found-icon { display: block; }

.hazard-progress {
  display: flex;
  gap: 0.5rem;
}

.hazard-progress-dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 0.5s;
  background: #e2e8f0;
  width: 1rem;
}

.hazard-progress-dot.found {
  width: 2.5rem;
  background: var(--primary);
}

.coze-container {
  width: 100%;
  height: 100%;
}

.report-score-box {
  background: rgba(239,246,255,0.5);
  border-radius: var(--radius-3xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-blue);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.report-score-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.report-score-value {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.report-certified {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.report-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.report-certified-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.report-diagnosis {
  background: #fff;
  border: 1px solid var(--border-blue);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  text-align: left;
}

.report-diagnosis-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.report-diagnosis-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.report-diagnosis-label {
  font-weight: 900;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.report-diagnosis-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  font-size: 0.875rem;
}

.chat-page-container {
  max-width: 800px;
  margin: 0 auto;
}

.chat-page-frame {
  background: #fff;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border-blue);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 600px;
  position: relative;
}

.chat-page-frame #coze-container {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-3xl);
}

.interactive-area {
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(44,82,130,0.1);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 2px dashed rgba(44,82,130,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.interactive-area h4 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.interactive-area p {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.interactive-btns {
  display: flex;
  gap: 1rem;
}

.interactive-btn {
  padding: 1rem 2rem;
  background: #fff;
  border: 2px solid var(--border-blue);
  border-radius: var(--radius-xl);
  font-weight: 900;
  color: var(--primary-dark);
  transition: all 0.2s;
  cursor: pointer;
  font-size: 1rem;
}

.interactive-btn:hover { border-color: var(--primary); }
.interactive-btn:active { transform: scale(0.95); }
.interactive-btn.correct:hover { border-color: var(--primary); }
.interactive-btn.wrong:hover { border-color: var(--danger); }

.tip-box {
  padding: 1.5rem;
  background: #eff6ff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-blue);
}

.tip-box p {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip-box .tip-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-blue);
}

.status-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.status-indicator .text {
  font-size: 10px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.assessment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .assessment-grid { grid-template-columns: 1fr 1fr; }
}

.assessment-card {
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid;
}

.assessment-card.light {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.assessment-card.heavy {
  background: #fef2f2;
  border-color: #fee2e2;
}

.assessment-card-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.assessment-card-title.light { color: #2563eb; }
.assessment-card-title.heavy { color: var(--danger); }

.assessment-card-text {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.font-black { font-weight: 900; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary-dark { color: var(--primary-dark); }
.italic { font-style: italic; }

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

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

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

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes tagIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

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

.animate-pulse { animation: pulse 2s infinite; }
.animate-shake { animation: shake 0.4s ease; }
.animate-slide-up { animation: slideUp 0.3s ease; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 9999px; }

@media (max-width: 767px) {
  .header-inner { padding: 0.75rem 1rem; }
  .header-title { font-size: 1rem; }
  .site-main { padding: 1rem 0.75rem; }
  .medical-card { padding: 1.25rem; border-radius: var(--radius-xl); }
  .foreword-hero { padding: 2rem 1.25rem; margin: -1.25rem -1.25rem 1.5rem; border-radius: var(--radius-xl); }
  .foreword-hero h2 { font-size: 1.5rem; }
  .modal-content { padding: 1.5rem; border-radius: var(--radius-xl); }
  .section-title { font-size: 1.25rem; }
  .video-container { border-radius: var(--radius-xl); }
  .sorting-timeline { min-width: 500px; }
  .chat-container { height: 400px; border-radius: var(--radius-xl); }
  .site-footer { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
}
