/* ============================================================
   CareSim · 护理虚拟仿真协作教学平台
   设计系统 / 组件 / 页面样式
   ============================================================ */

:root {
  --teal-50: #f0fbf8;
  --teal-100: #d8f5ee;
  --teal-200: #b0ebdf;
  --teal-300: #78dccd;
  --teal-400: #3bc7b5;
  --teal-500: #17ab9b;
  --teal-600: #0d8a7f;
  --teal-700: #0f7068;
  --teal-800: #115a55;
  --teal-900: #0c3f3c;

  --ink: #0c2027;
  --ink-2: #17353f;
  --muted: #5c7480;
  --muted-2: #8299a3;
  --line: #e2ebef;
  --line-2: #eff4f6;
  --bg: #f4f8fa;
  --bg-2: #eaf2f5;
  --card: #ffffff;

  --ok: #0f9d8a;
  --warn: #d98b2b;
  --danger: #dc4f5f;
  --violet: #7a6cf0;
  --blue: #3d7ef0;
  --pink: #d8467f;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(9, 54, 64, .05);
  --shadow-sm: 0 4px 16px rgba(9, 54, 64, .06);
  --shadow: 0 14px 36px rgba(9, 54, 64, .08);
  --shadow-lg: 0 30px 70px rgba(9, 54, 64, .14);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 66px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal-200); color: var(--teal-900); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbdde3; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a9c4cc; }

/* ---------- 图标基线 ---------- */
svg.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

/* ---------- 工具类 ---------- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fade-in { animation: fadeUp .45s cubic-bezier(.2,.7,.3,1) both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .75; transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dash { to { stroke-dashoffset: -1000; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* ---------- 启动屏 ---------- */
.boot {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--teal-700); background: radial-gradient(1200px 600px at 50% 20%, #ffffff, #eef7f6);
}
.boot-logo { width: 64px; height: 64px; color: var(--teal-600); animation: floaty 2.4s ease-in-out infinite; }
.boot-logo svg { width: 100%; height: 100%; }
.boot-title { font-size: 24px; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.boot-sub { color: var(--muted); font-size: 13px; }
.boot-bar { width: 160px; height: 4px; border-radius: 99px; background: var(--teal-100); overflow: hidden; margin-top: 14px; }
.boot-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--teal-500); animation: bootSlide 1.1s ease-in-out infinite; }
@keyframes bootSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 14px;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { --btn-bg: linear-gradient(135deg, var(--teal-600), var(--teal-500)); --btn-fg: #fff; box-shadow: 0 10px 22px rgba(13, 138, 127, .26); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(13, 138, 127, .34); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-outline { --btn-bd: #cfdee3; --btn-bg: #fff; --btn-fg: var(--ink-2); }
.btn-outline:hover { --btn-bd: var(--teal-300); --btn-fg: var(--teal-700); background: var(--teal-50); }
.btn-ghost { --btn-fg: var(--ink-2); }
.btn-ghost:hover { background: rgba(15, 112, 104, .07); }
.btn-soft { --btn-bg: var(--teal-50); --btn-fg: var(--teal-700); }
.btn-danger { --btn-bg: #fdf0f1; --btn-fg: var(--danger); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); transition: .18s;
}
.icon-btn:hover { background: var(--teal-50); color: var(--teal-700); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- 徽标 / 标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px;
  background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 1.4;
}
.chip svg { width: 14px; height: 14px; }
.chip-soft { background: var(--teal-50); color: var(--teal-700); }
.chip-warn { background: #fdf5e8; color: #a8691c; }
.chip-danger { background: #fdeff1; color: #b33a49; }
.chip-violet { background: #f0eefe; color: #5b4dd0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--muted); font-size: 11.5px; font-weight: 500; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); display: inline-block; }
.level-stars { display: inline-flex; gap: 2px; color: #f0b429; }
.level-stars svg { width: 14px; height: 14px; }

/* ---------- 头像 ---------- */
.avatar {
  --av-size: 38px;
  width: var(--av-size); height: var(--av-size); border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: calc(var(--av-size) * .4);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); letter-spacing: .02em;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.08);
}
.avatar-lg { --av-size: 64px; }
.avatar-xl { --av-size: 84px; }
.avatar-sm { --av-size: 28px; }
.avatar-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal-200); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.card-flat { box-shadow: none; }
.card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3e6e9; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- 页面骨架 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(214, 229, 233, .8);
}
.topbar-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--teal-500), var(--teal-700)); box-shadow: 0 8px 18px rgba(13,138,127,.28); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: .16s; position: relative;
}
.nav a:hover { color: var(--ink); background: var(--line-2); }
.nav a.active { color: var(--teal-700); background: var(--teal-50); }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  background: #effaf7; border: 1px solid #d1f0e9; color: var(--teal-700); font-size: 12.5px; font-weight: 600;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #18b79b; box-shadow: 0 0 0 0 rgba(24,183,155,.5); animation: livePulse 2.2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(24,183,155,.45); } 70% { box-shadow: 0 0 0 8px rgba(24,183,155,0); } 100% { box-shadow: 0 0 0 0 rgba(24,183,155,0); } }
.user-trigger { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: #fff; transition: .18s; flex: none; }
.user-trigger:hover { border-color: var(--teal-300); box-shadow: var(--shadow-xs); }
.user-trigger .name { font-size: 13.5px; font-weight: 600; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 0 auto; }
.menu {
  position: absolute; right: 24px; top: calc(var(--header-h) - 6px); width: 232px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 8px; transform-origin: top right;
}
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-head strong { display: block; font-size: 14px; }
.menu-head span { color: var(--muted); font-size: 12px; }
.menu a, .menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink-2); background: none; border: 0; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--bg); color: var(--teal-700); }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu .danger { color: var(--danger); }

.page { max-width: 1280px; margin: 0 auto; padding: 30px 24px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--teal-600); text-transform: uppercase; margin-bottom: 7px; }
.page-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.page-sub { color: var(--muted); margin-top: 7px; font-size: 14px; max-width: 680px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { font-size: 19px; font-weight: 800; letter-spacing: -.015em; display: flex; align-items: center; gap: 9px; }
.section-title .bar { width: 4px; height: 18px; border-radius: 4px; background: var(--teal-500); }
.section-link { color: var(--teal-700); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.section-link:hover { gap: 8px; }
.section-link svg { width: 15px; height: 15px; }

/* ---------- 登录 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.06fr .94fr; background: #fff; }
.auth-brand {
  position: relative; overflow: hidden; padding: 54px 58px; color: #eafaf6;
  background: radial-gradient(900px 500px at 10% 0%, #12796f 0%, #0b4f4a 55%, #082f2d 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(700px 500px at 30% 30%, #000, transparent 80%);
}
.auth-brand::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,199,181,.34), transparent 68%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.auth-logo span.mark { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; }
.auth-logo svg { width: 22px; height: 22px; }
.auth-copy h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
.auth-copy h1 em { font-style: normal; color: #6fe6d2; }
.auth-copy p { color: rgba(234,250,246,.72); font-size: 15px; max-width: 470px; line-height: 1.8; }
.auth-points { display: grid; gap: 12px; margin-top: 30px; max-width: 440px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(234,250,246,.9); }
.auth-point i { width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(111,230,210,.14); color: #6fe6d2; display: grid; place-items: center; }
.auth-point i svg { width: 14px; height: 14px; }
.auth-point small { display: block; color: rgba(234,250,246,.55); font-size: 12px; margin-top: 1px; }
.auth-foot { display: flex; gap: 26px; font-size: 12px; color: rgba(234,250,246,.5); flex-wrap: wrap; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 44px 24px; background: linear-gradient(180deg, #fff, #fafdfd); }
.auth-card { width: min(430px, 100%); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 12px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); transition: .18s; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.auth-title { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.auth-desc { color: var(--muted); font-size: 13.5px; margin: 7px 0 22px; }
.field { margin-bottom: 15px; }
.field label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8e5e9; border-radius: 11px; background: #fff;
  font-size: 14px; transition: .18s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(59,199,181,.15); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: #a8bcc4; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit { margin-top: 8px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-hint { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--teal-50); border: 1px solid #d3f1ea; font-size: 12.5px; color: var(--teal-800); line-height: 1.7; }
.auth-error { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fdeff1; color: #b33a49; font-size: 13px; }
.auth-error.show { display: block; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 44px 46px;
  color: #eafaf6; background: radial-gradient(900px 460px at 8% -10%, #14857a 0%, #0b4a45 58%, #072d2b 100%);
  display: grid; grid-template-columns: 1.18fr .82fr; gap: 30px; align-items: center;
  box-shadow: 0 26px 60px rgba(7, 45, 43, .22);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(620px 420px at 20% 20%, #000, transparent 78%);
}
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -150px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(59,199,181,.32), transparent 66%); }
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(111,230,210,.12); border: 1px solid rgba(111,230,210,.22); color: #8defdd; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.22; letter-spacing: -.038em; margin: 18px 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #6fe6d2; }
.hero p { color: rgba(234,250,246,.72); max-width: 500px; font-size: 14.5px; line-height: 1.8; }
.hero-actions { display: flex; gap: 11px; margin-top: 24px; flex-wrap: wrap; }
.hero-actions .btn-primary { --btn-bg: #6fe6d2; --btn-fg: #073d38; box-shadow: 0 12px 26px rgba(111,230,210,.24); }
.hero-actions .btn-outline { --btn-bd: rgba(255,255,255,.26); --btn-bg: rgba(255,255,255,.06); --btn-fg: #eafaf6; }
.hero-actions .btn-outline:hover { --btn-bd: rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; }
.hero-stats { display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.hero-stat span { font-size: 12px; color: rgba(234,250,246,.55); }
.hero-visual { position: relative; min-height: 250px; }
.monitor-card {
  background: linear-gradient(160deg, #0d2b2c, #123b3a); border: 1px solid rgba(111,230,210,.22);
  border-radius: 18px; padding: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.3); transform: rotate(-1.2deg);
}
.monitor-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: rgba(234,250,246,.55); letter-spacing: .08em; margin-bottom: 8px; }
.monitor-head b { color: #6fe6d2; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.monitor-ecg { width: 100%; height: 78px; margin: 4px 0 2px; }
.monitor-ecg path { fill: none; stroke: #4fe0c0; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(79,224,192,.45)); }
.monitor-ecg .spot { fill: #8defdd; filter: drop-shadow(0 0 6px rgba(111,230,210,.9)); }
.monitor-vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.monitor-vital { background: rgba(255,255,255,.045); border-radius: 10px; padding: 8px 10px; }
.monitor-vital label { font-size: 10px; color: rgba(234,250,246,.45); letter-spacing: .08em; display: block; }
.monitor-vital b { font-family: var(--mono); font-size: 19px; color: #eafaf6; font-weight: 500; }
.monitor-vital b span { font-size: 10px; color: rgba(234,250,246,.45); margin-left: 3px; font-family: var(--font); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 16px 32px rgba(0,0,0,.16);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip svg { width: 15px; height: 15px; color: var(--teal-600); }
.float-chip.one { left: -34px; bottom: -16px; animation-delay: .6s; }
.float-chip.two { right: -26px; top: -20px; }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

/* ---------- 模块入口 ---------- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s, border-color .22s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2e8ea; }
.module-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--module-tint, var(--teal-50)); opacity: .7; }
.module-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--module-tint, var(--teal-50)); color: var(--module-color, var(--teal-700)); position: relative; z-index: 1; }
.module-icon svg { width: 22px; height: 22px; }
.module-card h3 { font-size: 16.5px; font-weight: 800; position: relative; z-index: 1; }
.module-card p { color: var(--muted); font-size: 12.8px; line-height: 1.65; flex: 1; position: relative; z-index: 1; }
.module-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted-2); position: relative; z-index: 1; }
.module-meta .go { color: var(--module-color, var(--teal-700)); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.module-meta svg { width: 14px; height: 14px; }

/* ---------- 场景卡片 ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scenario-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2e8ea; }
.scenario-thumb { position: relative; aspect-ratio: 900 / 470; overflow: hidden; background: linear-gradient(160deg, #e8f4f4, #d6e9ec); }
.scenario-thumb svg { width: 100%; height: 100%; display: block; }
.scenario-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,38,40,.42)); }
.scenario-thumb .thumb-top { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.scenario-thumb .thumb-play { position: absolute; right: 14px; bottom: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; color: var(--teal-700); box-shadow: var(--shadow-sm); }
.scenario-thumb .thumb-play svg { width: 17px; height: 17px; margin-left: 2px; }
.scenario-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.scenario-body h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.scenario-body .desc { color: var(--muted); font-size: 13px; line-height: 1.7; flex: 1; }
.scenario-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.scenario-meta span { display: inline-flex; align-items: center; gap: 5px; }
.scenario-meta svg { width: 14px; height: 14px; color: var(--muted-2); }
.scenario-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.best-score { font-size: 12px; color: var(--muted); }
.best-score b { color: var(--teal-700); font-size: 15px; }

/* ---------- 数据 / 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-num { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.stat-num small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.stat-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--teal-600); margin-top: 8px; }
.stat-trend svg { width: 13px; height: 13px; }

/* ---------- 课程 ---------- */
.course-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 26px; align-items: start; }
.course-nav { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.course-nav h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); padding: 8px 12px; }
.course-nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; transition: .16s; }
.course-nav-item:hover { background: var(--bg); }
.course-nav-item.active { background: var(--teal-50); }
.course-nav-item i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; }
.course-nav-item i svg { width: 16px; height: 16px; }
.course-nav-item b { display: block; font-size: 13.5px; font-weight: 700; }
.course-nav-item small { color: var(--muted); font-size: 11.5px; }
.course-nav-item .progress-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); }
.course-hero { border-radius: var(--radius); padding: 26px 28px; color: #fff; position: relative; overflow: hidden; }
.course-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -80px; top: -100px; background: rgba(255,255,255,.12); }
.course-hero .eyebrow { font-size: 11px; letter-spacing: .16em; opacity: .7; font-weight: 700; text-transform: uppercase; }
.course-hero h2 { font-size: 25px; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.02em; }
.course-hero p { font-size: 13.5px; opacity: .82; max-width: 640px; line-height: 1.75; position: relative; z-index: 1; }
.course-hero .row { margin-top: 16px; position: relative; z-index: 1; }
.lesson-list { display: flex; flex-direction: column; gap: 12px; }
.lesson-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: .2s; }
.lesson-item:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.lesson-index { font-family: var(--mono); font-size: 13px; color: var(--muted-2); width: 26px; flex: none; }
.lesson-main { flex: 1; min-width: 0; }
.lesson-main h3 { font-size: 15.5px; font-weight: 700; }
.lesson-main .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 12px; }
.lesson-main .meta span { display: inline-flex; align-items: center; gap: 4px; }
.lesson-main .meta svg { width: 13px; height: 13px; }
.lesson-state { flex: none; display: flex; align-items: center; gap: 10px; }
.progress-ring { width: 38px; height: 38px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 4; }
.progress-ring .bg { stroke: var(--line); }
.progress-ring .fg { stroke: var(--teal-500); stroke-linecap: round; transition: stroke-dashoffset .5s; }

/* ---------- 微课详情 ---------- */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.lesson-head { margin-bottom: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--teal-700); }
.breadcrumb svg { width: 13px; height: 13px; }
.lesson-head h1 { font-size: clamp(24px, 2.4vw, 31px); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; }
.demo-player { position: relative; border-radius: var(--radius); overflow: hidden; background: #0d2b2c; aspect-ratio: 900 / 500; box-shadow: var(--shadow); }
.demo-player svg { width: 100%; height: 100%; display: block; }
.demo-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 14px; background: linear-gradient(180deg, transparent, rgba(4,26,28,.86)); color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.demo-caption { font-size: 13px; line-height: 1.5; }
.demo-caption small { display: block; color: rgba(230,250,246,.6); font-size: 11px; margin-bottom: 3px; letter-spacing: .06em; }
.demo-controls { display: flex; align-items: center; gap: 8px; }
.demo-controls button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.demo-controls button:hover { background: rgba(255,255,255,.2); }
.demo-controls svg { width: 16px; height: 16px; }
.demo-dots { position: absolute; top: 14px; left: 16px; display: flex; gap: 5px; }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.32); transition: .2s; }
.demo-dots i.on { background: #6fe6d2; width: 18px; border-radius: 99px; }
.lesson-section { margin-top: 26px; }
.lesson-section h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.lesson-section h2 .num { font-family: var(--mono); font-size: 12px; color: var(--teal-600); background: var(--teal-50); padding: 3px 8px; border-radius: 6px; }
.objective-list { display: grid; gap: 9px; }
.objective-list li { position: relative; padding-left: 26px; font-size: 13.8px; color: var(--ink-2); line-height: 1.75; }
.objective-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal-100); }
.objective-list li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 5px; height: 3px; border-left: 1.6px solid var(--teal-700); border-bottom: 1.6px solid var(--teal-700); transform: rotate(-45deg); }
.kp-grid { display: grid; gap: 12px; }
.kp-card { border: 1px solid var(--line); border-left: 3px solid var(--teal-400); border-radius: 12px; padding: 14px 16px; background: #fff; }
.kp-card h4 { font-size: 13.5px; font-weight: 800; color: var(--teal-800); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.kp-card h4 span { font-family: var(--mono); font-size: 10.5px; color: var(--teal-600); background: var(--teal-50); border-radius: 5px; padding: 1px 6px; }
.kp-card p { font-size: 13.3px; color: #35525c; line-height: 1.85; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--teal-200), var(--line)); }
.timeline-item { position: relative; padding: 0 0 16px 4px; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--teal-400); }
.timeline-item b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.timeline-item p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.pitfall-list { display: grid; gap: 9px; background: #fffaf3; border: 1px solid #f6e7cf; border-radius: 14px; padding: 16px 18px; }
.pitfall-list li { position: relative; padding-left: 24px; font-size: 13.3px; line-height: 1.75; color: #6b4a1c; }
.pitfall-list li::before { content: "!"; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: #f5c66d; color: #6b4a1c; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.think-list { display: grid; gap: 10px; }
.think-list li { border: 1px dashed #cfdfe4; border-radius: 12px; padding: 12px 15px; font-size: 13.4px; line-height: 1.75; color: var(--ink-2); background: #fbfdfe; }
.think-list li b { color: var(--teal-700); margin-right: 6px; }
.lesson-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.aside-card h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.aside-card h4 svg { width: 15px; height: 15px; color: var(--teal-600); }
.aside-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12.8px; color: var(--muted); border-bottom: 1px dashed var(--line-2); }
.aside-nav a:last-child { border: 0; }
.aside-nav a:hover { color: var(--teal-700); }
.aside-nav a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--teal-300); }
.note-area { width: 100%; min-height: 120px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12.8px; line-height: 1.7; resize: vertical; outline: none; }
.note-area:focus { border-color: var(--teal-300); }
.note-state { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }

/* ---------- 实操页 ---------- */
.practice-hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.6fr); gap: 20px; align-items: start; }
.practice-hero .stat-grid { align-content: start; align-self: start; }
.practice-hero .stat-card { padding: 20px 22px; }
.practice-note { background: linear-gradient(150deg, #0f766e, #0c4b47); color: #eafaf6; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.practice-note h3 { font-size: 16px; font-weight: 800; }
.practice-note p { font-size: 12.8px; color: rgba(234,250,246,.72); line-height: 1.75; }
.practice-note .row { gap: 8px; flex-wrap: wrap; }
.practice-note .chip { background: rgba(255,255,255,.1); color: #cfeee8; border: 1px solid rgba(255,255,255,.14); }

/* ---------- 仿真运行器 ---------- */
.sim-page { padding-top: 18px; }
.sim-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.sim-topline .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sim-topline h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sim-topline .meta { color: var(--muted); font-size: 12.5px; }
.sim-timer { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 7px 11px; border-radius: 10px; }
.sim-timer svg { width: 15px; height: 15px; color: var(--teal-600); }
.sim-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, .88fr); gap: 18px; align-items: start; }
.sim-stage { position: sticky; top: calc(var(--header-h) + 16px); border-radius: var(--radius); overflow: hidden; background: #0d2b2c; box-shadow: var(--shadow); }
.sim-stage-inner { position: relative; aspect-ratio: 900 / 560; }
.sim-stage svg.scene { width: 100%; height: 100%; display: block; }
.sim-stage-badge { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; z-index: 3; }
.sim-stage-badge .chip { background: rgba(7,32,34,.62); color: #dff8f2; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); }
.sim-stage-hint { position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 11px; background: rgba(7,32,34,.72); border: 1px solid rgba(255,255,255,.12); color: #dff8f2; font-size: 12.5px; backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: .25s; pointer-events: none; }
.sim-stage-hint.show { opacity: 1; transform: none; }
.sim-stage-hint svg { width: 16px; height: 16px; color: #6fe6d2; flex: none; }
.sim-panel { display: grid; gap: 14px; }
.sim-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.sim-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sim-progress .bar { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sim-progress .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); transition: width .4s ease; }
.sim-progress .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--teal-600); text-transform: uppercase; }
.step-title { font-size: 18px; font-weight: 800; margin: 5px 0 8px; letter-spacing: -.01em; }
.step-prompt { font-size: 13.8px; color: #35525c; line-height: 1.8; }
.step-hint { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: #f7fbfc; border: 1px dashed #d8e7ea; color: var(--muted); font-size: 12.2px; line-height: 1.65; }
.step-hint svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--teal-500); }
.option-list { display: grid; gap: 9px; margin-top: 14px; }
.option {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #dde8ec; border-radius: 11px;
  background: #fff; font-size: 13.3px; line-height: 1.6; text-align: left; transition: .16s; width: 100%;
}
.option:hover { border-color: var(--teal-300); background: var(--teal-50); }
.option.sel { border-color: var(--teal-500); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(23,171,155,.1); }
.option .mark { width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid #c4d6dc; flex: none; margin-top: 1px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: transparent; }
.option.sel .mark { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.option.multi .mark { border-radius: 5px; }
.option.right { border-color: #74cdb8; background: #f2fbf8; }
.option.wrong { border-color: #efb3bb; background: #fdf3f4; }
.option.right .mark { background: #0f9d8a; border-color: #0f9d8a; color: #fff; }
.option.wrong .mark { background: #dc4f5f; border-color: #dc4f5f; color: #fff; }
.option:disabled { cursor: default; }
.slider-wrap { margin-top: 18px; padding: 6px 2px; }
.slider-value { display: flex; align-items: baseline; justify-content: center; gap: 5px; font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--teal-700); }
.slider-value small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 38px; background: transparent; margin-top: 8px; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--teal-200), var(--teal-400)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); margin-top: -9px; box-shadow: 0 3px 10px rgba(9,54,64,.2); cursor: grab; }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--teal-200); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); }
.slider-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); font-family: var(--mono); margin-top: 2px; }
.order-list { display: grid; gap: 8px; margin-top: 14px; }
.order-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dde8ec; border-radius: 10px; background: #fff; font-size: 13px; text-align: left; transition: .16s; }
.order-item:hover { border-color: var(--teal-300); }
.order-item.picked { background: var(--teal-50); border-color: var(--teal-300); }
.order-item .ord { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.order-item.picked .ord { background: var(--teal-600); color: #fff; }
.order-item .txt { flex: 1; }
.order-item .handle { color: var(--muted-2); font-size: 15px; }
.sim-actions { display: flex; gap: 9px; margin-top: 16px; }
.sim-actions .btn { flex: 1; }
.feedback { margin-top: 14px; border-radius: 12px; padding: 13px 15px; font-size: 13px; line-height: 1.75; border: 1px solid; animation: fadeUp .3s ease both; }
.feedback.good { background: #f1fbf7; border-color: #b7e7db; color: #12655a; }
.feedback.bad { background: #fdf4f5; border-color: #f2c3c9; color: #8d2f3b; }
.feedback .fb-head { display: flex; align-items: center; gap: 7px; font-weight: 800; margin-bottom: 5px; }
.feedback .fb-head svg { width: 16px; height: 16px; }
.feedback .fb-points { float: right; font-family: var(--mono); font-weight: 600; opacity: .8; }
.score-card { display: flex; align-items: center; justify-content: space-between; }
.score-card .label { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.score-card .value { font-size: 26px; font-weight: 800; color: var(--teal-700); line-height: 1.1; }
.score-card .sub { font-size: 11.5px; color: var(--muted-2); }
.log-list { max-height: 190px; overflow: auto; display: grid; gap: 6px; }
.log-item { display: flex; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.log-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); margin-top: 7px; flex: none; }
.log-item.err i { background: var(--danger); }
.log-item.ok i { background: var(--ok); }

/* 节律训练 */
.rhythm-box { margin-top: 16px; text-align: center; }
.rhythm-pulse { position: relative; width: 132px; height: 132px; margin: 0 auto 10px; display: grid; place-items: center; }
.rhythm-pulse .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--teal-100); }
.rhythm-pulse .ring.active { border-color: var(--teal-400); animation: pulse .28s ease-out; }
.rhythm-pulse .heart { font-size: 34px; color: var(--teal-600); }
.rhythm-rate { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; }
.rhythm-rate small { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 500; }
.rhythm-meta { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.rhythm-meta b { color: var(--ink-2); }
.rhythm-btn { width: 100%; margin-top: 14px; padding: 20px; font-size: 16px; border-radius: 14px; border: 0; background: linear-gradient(135deg, #0d8a7f, #17ab9b); color: #fff; font-weight: 800; letter-spacing: .04em; box-shadow: 0 12px 26px rgba(13,138,127,.28); }
.rhythm-btn:active { transform: scale(.985); }
.rhythm-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 34px; margin-top: 12px; }
.rhythm-bars i { width: 4px; border-radius: 2px; background: var(--teal-200); transition: height .2s; }
.rhythm-bars i.hot { background: var(--teal-500); }
.rhythm-keys { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; }

/* 场景热点 */
.scene .hotspot { fill: rgba(23,171,155,.02); stroke: rgba(23,171,155,.55); stroke-width: 2; stroke-dasharray: 7 6; cursor: pointer; transition: fill .18s, stroke .18s; rx: 10; }
.scene .hotspot:hover { fill: rgba(23,171,155,.16); stroke: rgba(23,171,155,.95); }
.scene .hotspot.sel { fill: rgba(23,171,155,.24); stroke: #0d8a7f; stroke-width: 2.6; }
.scene .hotspot.correct { fill: rgba(15,157,138,.24); stroke: #0f9d8a; stroke-dasharray: none; }
.scene .hotspot.wrongpick { fill: rgba(220,79,95,.18); stroke: #dc4f5f; stroke-dasharray: none; }
.scene .scene-label { font-family: var(--font); font-size: 13px; fill: #0c4b47; font-weight: 600; }
.scene .pose-mark { opacity: 0; transition: opacity .4s ease; }
.scene.show-pose .pose-mark { opacity: 1; }
.scene [data-pose] { opacity: 0; transition: opacity .35s ease; }
.scene.pose-check [data-pose~="check"], .scene.pose-tourniquet [data-pose~="tourniquet"],
.scene.pose-antiseptic [data-pose~="antiseptic"], .scene.pose-puncture [data-pose~="puncture"],
.scene.pose-fix [data-pose~="fix"], .scene.pose-regulate [data-pose~="regulate"],
.scene.pose-observe [data-pose~="observe"], .scene.pose-complication [data-pose~="complication"],
.scene.pose-compress [data-pose~="compress"], .scene.pose-compress-site [data-pose~="compress-site"],
.scene.pose-aed [data-pose~="aed"], .scene.pose-cuff [data-pose~="cuff"],
.scene.pose-clean [data-pose~="clean"], .scene.pose-gloves [data-pose~="gloves"],
.scene.pose-assess-wound [data-pose~="assess-wound"] { opacity: 1; }

/* ---------- 结果页 ---------- */
.result-wrap { max-width: 940px; margin: 0 auto; }
.result-hero { text-align: center; padding: 34px 24px 26px; border-radius: var(--radius-lg); background: radial-gradient(700px 320px at 50% 0%, #ffffff, #f2faf8); border: 1px solid #dbeee9; }
.result-score { position: relative; width: 156px; height: 156px; margin: 0 auto 12px; }
.result-score svg { transform: rotate(-90deg); }
.result-score .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--teal-800); }
.result-score .num small { font-size: 13px; font-weight: 600; color: var(--muted); display: block; text-align: center; }
.result-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.result-stars svg { width: 26px; height: 26px; color: #e9eef1; }
.result-stars svg.on { color: #f4b740; fill: #f4b740; }
.result-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.result-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; }
.metric .m-label { font-size: 11.5px; color: var(--muted); }
.metric .m-val { font-size: 21px; font-weight: 800; margin: 3px 0 7px; }
.metric .m-bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.metric .m-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); }
.review-list { display: grid; gap: 8px; }
.review-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.8px; line-height: 1.6; }
.review-item .st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; color: #fff; font-size: 10px; }
.review-item.ok .st { background: var(--ok); }
.review-item.bad .st { background: var(--danger); }
.review-item .txt { flex: 1; }
.review-item .pts { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }

/* ---------- 考核 ---------- */
.exam-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.exam-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.exam-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.exam-card .top { display: flex; align-items: center; justify-content: space-between; }
.exam-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.exam-ico svg { width: 20px; height: 20px; }
.exam-card h3 { font-size: 15.5px; font-weight: 800; }
.exam-card p { font-size: 12.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.exam-card .foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.exam-runner { max-width: 980px; margin: 0 auto; }
.exam-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; box-shadow: var(--shadow-xs); }
.exam-timer { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--teal-800); }
.exam-timer.warn { color: var(--danger); }
.exam-timer svg { width: 16px; height: 16px; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.q-index { font-family: var(--mono); font-size: 12px; color: var(--teal-700); background: var(--teal-50); padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.q-type { font-size: 11.5px; color: var(--muted); background: var(--bg-2); padding: 3px 8px; border-radius: 6px; }
.q-stem { font-size: 16px; font-weight: 600; line-height: 1.8; margin-bottom: 16px; }
.q-options { display: grid; gap: 10px; }
.q-opt { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border: 1px solid #dde8ec; border-radius: 11px; background: #fff; font-size: 14px; line-height: 1.65; text-align: left; transition: .16s; }
.q-opt:hover { border-color: var(--teal-300); background: var(--teal-50); }
.q-opt.sel { border-color: var(--teal-500); background: var(--teal-50); }
.q-opt .k { width: 24px; height: 24px; border-radius: 7px; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; flex: none; }
.q-opt.sel .k { background: var(--teal-600); color: #fff; }
.q-opt.right { border-color: #74cdb8; background: #f2fbf8; }
.q-opt.right .k { background: var(--ok); color: #fff; }
.q-opt.wrong { border-color: #efb3bb; background: #fdf3f4; }
.q-opt.wrong .k { background: var(--danger); color: #fff; }
.exam-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; }
.q-map { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.q-map button { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); font-weight: 600; }
.q-map button.done { background: var(--teal-50); border-color: var(--teal-200); color: var(--teal-700); }
.q-map button.cur { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.exam-review { display: grid; gap: 14px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.review-card .stem { font-size: 14px; font-weight: 600; line-height: 1.75; margin-bottom: 10px; }
.review-opts { display: grid; gap: 6px; font-size: 13px; }
.review-opt { padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.review-opt.right { background: #f1fbf7; color: #12655a; font-weight: 600; }
.review-opt.picked-wrong { background: #fdf4f5; color: #8d2f3b; }
.explain { margin-top: 10px; padding: 10px 12px; background: #f8fbfc; border-left: 3px solid var(--teal-300); border-radius: 0 8px 8px 0; font-size: 12.8px; color: #35525c; line-height: 1.75; }

/* ---------- 协作大厅 ---------- */
.room-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) 340px; gap: 18px; align-items: start; }
.room-main { display: grid; gap: 16px; }
.room-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.room-code { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .16em; color: var(--teal-800); background: var(--teal-50); border: 1px dashed var(--teal-300); padding: 7px 13px; border-radius: 10px; }
.room-code button { border: 0; background: none; color: var(--teal-600); display: grid; place-items: center; }
.room-code svg { width: 16px; height: 16px; }
.member-list { display: grid; gap: 6px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; }
.member:hover { background: var(--bg); }
.member .info { flex: 1; min-width: 0; }
.member b { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member small { font-size: 11px; color: var(--muted); }
.member .role { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: var(--bg-2); color: var(--muted); font-weight: 600; }
.member .role.host { background: #fdf3e5; color: #a8691c; }
.chat-box { display: flex; flex-direction: column; height: 340px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.chat-msg { font-size: 12.8px; line-height: 1.6; }
.chat-msg b { color: var(--teal-700); font-weight: 700; margin-right: 6px; font-size: 12px; }
.chat-msg.sys { color: var(--muted); font-size: 11.5px; text-align: center; padding: 2px 0; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; outline: none; }
.chat-form input:focus { border-color: var(--teal-300); }
.chat-form button { width: 38px; height: 38px; border-radius: 9px; border: 0; background: var(--teal-600); color: #fff; display: grid; place-items: center; }
.chat-form button svg { width: 16px; height: 16px; }
.lobby-list { display: grid; gap: 10px; }
.lobby-item { display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: .18s; }
.lobby-item:hover { border-color: var(--teal-300); box-shadow: var(--shadow-xs); }
.lobby-item .code { font-family: var(--mono); font-weight: 700; letter-spacing: .1em; color: var(--teal-800); background: var(--teal-50); padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.lobby-item .info { flex: 1; min-width: 0; }
.lobby-item b { display: block; font-size: 13.5px; }
.lobby-item small { color: var(--muted); font-size: 11.5px; }
.room-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0d2b2c; }
.room-stage .sim-stage-inner { aspect-ratio: 900 / 500; }
.room-stage-badge { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.room-stage-badge .chip { background: rgba(7,32,34,.6); color: #dff8f2; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(4px); }
.room-controls { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.room-controls .grow { flex: 1; }
.room-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.presence-dots { display: inline-flex; align-items: center; }
.presence-dots .avatar { margin-left: -8px; border: 2px solid #fff; }
.presence-dots .avatar:first-child { margin-left: 0; }

/* ---------- 排行榜 ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.14fr 1fr; gap: 14px; align-items: end; margin-bottom: 22px; }
.podium-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; text-align: center; position: relative; }
.podium-card.first { border-color: #f2d8a0; background: linear-gradient(180deg, #fffdf6, #fff); padding-top: 28px; box-shadow: 0 18px 40px rgba(196,148,60,.12); }
.podium-card .crown { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f7c95c, #ebaa2f); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(235,170,47,.4); }
.podium-card .crown svg { width: 17px; height: 17px; }
.podium-card .avatar { margin: 0 auto 10px; }
.podium-card b { display: block; font-size: 15px; }
.podium-card .xp { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--teal-700); }
.podium-card .lbl { font-size: 11px; color: var(--muted); }
.podium-rank { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.rank-table td { padding: 12px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table .num { font-family: var(--mono); font-weight: 600; color: var(--teal-700); }
.rank-table .who { display: flex; align-items: center; gap: 11px; }
.rank-table .who b { font-weight: 700; }
.rank-table .who small { color: var(--muted); display: block; font-size: 11px; }
.rank-table .me { background: var(--teal-50); }

/* ---------- 个人中心 ---------- */
.profile-hero { display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, #0f7068, #0b4f4a); color: #eafaf6; position: relative; overflow: hidden; }
.profile-hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -80px; top: -140px; background: radial-gradient(circle, rgba(111,230,210,.28), transparent 65%); }
.profile-hero .info { flex: 1; position: relative; z-index: 1; }
.profile-hero h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.profile-hero p { font-size: 12.5px; color: rgba(234,250,246,.6); margin-top: 2px; }
.profile-hero .row { margin-top: 12px; }
.profile-hero .chip { background: rgba(255,255,255,.1); color: #cfeee8; border: 1px solid rgba(255,255,255,.14); }
.xp-badge { text-align: center; position: relative; z-index: 1; }
.xp-badge strong { display: block; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.xp-badge span { font-size: 11px; color: rgba(234,250,246,.55); letter-spacing: .1em; }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge-item { text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.badge-item .ico { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted-2); }
.badge-item.on .ico { background: linear-gradient(135deg, #ffe6a8, #f4c14f); color: #7a5510; box-shadow: 0 8px 18px rgba(244,193,79,.3); }
.badge-item .ico svg { width: 22px; height: 22px; }
.badge-item b { display: block; font-size: 12.5px; }
.badge-item small { font-size: 11px; color: var(--muted); }
.badge-item:not(.on) { opacity: .55; }
.history-list { display: grid; gap: 8px; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; background: #fff; }
.history-item .ico { width: 32px; height: 32px; border-radius: 9px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.history-item .ico svg { width: 15px; height: 15px; }
.history-item .info { flex: 1; min-width: 0; }
.history-item b { display: block; font-size: 13px; font-weight: 600; }
.history-item small { color: var(--muted); font-size: 11.5px; }
.history-item .score { font-family: var(--mono); font-weight: 700; color: var(--teal-700); }
.progress-course { margin-bottom: 12px; }
.progress-course .row-between { font-size: 12.5px; margin-bottom: 6px; }
.progress { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); transition: width .4s; }

/* ---------- 表格 / 空态 ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--bg-2); color: var(--muted-2); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .ico svg { width: 24px; height: 24px; }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.empty p { font-size: 12.8px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(6, 34, 38, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(460px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; animation: modalUp .25s cubic-bezier(.2,.8,.3,1) both; max-height: 88vh; overflow: auto; }
.modal.wide { width: min(620px, 100%); }
@keyframes modalUp { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.modal-head h3 { font-size: 18px; font-weight: 800; }
.modal-head p { color: var(--muted); font-size: 12.8px; margin-top: 3px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 13px; max-width: 340px; animation: toastIn .3s cubic-bezier(.2,.8,.3,1) both; pointer-events: auto; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast.success svg { color: var(--ok); }
.toast.error svg { color: var(--danger); }
.toast.info svg { color: var(--blue); }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- 移动端标签栏 ---------- */
.tabbar { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 36px 32px; }
  .hero-visual { display: none; }
  .course-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .sim-layout { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .9fr); }
  .room-layout { grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 32px 20px; min-height: 100vh; }
  .course-layout { grid-template-columns: 1fr; }
  .course-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .course-nav h4 { display: none; }
  .course-nav-item { flex: none; padding: 8px 12px; }
  .course-nav-item small, .course-nav-item .progress-dot { display: none; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { position: static; grid-template-columns: 1fr 1fr; }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-layout { grid-template-columns: 1fr; }
  .sim-stage { position: static; }
  .room-layout { grid-template-columns: 1fr; }
  .room-side { position: static; }
  .practice-hero { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .page { padding: 20px 16px 92px; }
  .topbar-inner { padding: 0 14px; gap: 12px; }
  .brand-text small { display: none; }
  .live-pill { display: none; }
  .user-trigger .name { display: none; }
  .user-trigger { padding: 3px; border: 0; }
  .scenario-grid { grid-template-columns: 1fr; }
  .exam-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 28px 22px; border-radius: 20px; }
  .hero-stats { gap: 22px; }
  .hero-stat strong { font-size: 20px; }
  .course-hero { padding: 20px; }
  .lesson-aside { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-card.first { order: -1; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .q-map { grid-template-columns: repeat(6, 1fr); }
  .q-card { padding: 18px; }
  .exam-bar { position: static; }
  .result-score { width: 132px; height: 132px; }
  .result-score .num { font-size: 36px; }
  .sim-page { padding-bottom: 96px; }
  .sim-stage-inner { aspect-ratio: 900 / 560; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 10.5px; color: var(--muted); border-radius: 10px; }
  .tabbar a.active { color: var(--teal-700); background: var(--teal-50); }
  .tabbar svg { width: 20px; height: 20px; }
  .toast-root { bottom: 84px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .modal { padding: 20px; }
  .room-code { font-size: 16px; }
  .chat-box { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   补充组件（场景容器 / 课程卡 / 房间聊天等）
   ============================================================ */
.sim-scene { position: absolute; inset: 0; }
.sim-scene svg { width: 100%; height: 100%; display: block; }
.demo-canvas { position: absolute; inset: 0; }
.demo-canvas svg { width: 100%; height: 100%; display: block; }
.scene-thumb svg { width: 100%; height: 100%; display: block; }
.scenario-thumb { aspect-ratio: 900 / 560; }
.demo-player { aspect-ratio: 900 / 560; }
.room-stage .sim-stage-inner { aspect-ratio: 900 / 560; }
.rhythm-pulse .heart svg { width: 40px; height: 40px; }
.order-item .handle svg { width: 14px; height: 14px; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5e8ea; }
.course-card::after { content: ""; position: absolute; right: -46px; top: -56px; width: 150px; height: 150px; border-radius: 50%; background: var(--c, #0d9488); opacity: .07; }
.course-card .top { display: flex; align-items: center; gap: 12px; }
.course-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #0d9488) 12%, white); color: var(--c, #0d9488); flex: none; }
.course-ico svg { width: 21px; height: 21px; }
.course-card h3 { font-size: 16px; font-weight: 800; }
.course-card .code { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .1em; }
.course-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.course-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.course-meta b { color: var(--ink-2); }
.course-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.course-progress i { display: block; height: 100%; background: var(--c, #0d9488); border-radius: 99px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.mini-lesson { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: .18s; }
.mini-lesson:hover { border-color: var(--teal-300); box-shadow: var(--shadow-sm); }
.mini-lesson .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.mini-lesson .ico svg { width: 19px; height: 19px; }
.mini-lesson .info { flex: 1; min-width: 0; }
.mini-lesson b { display: block; font-size: 13.8px; font-weight: 700; line-height: 1.5; }
.mini-lesson small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.mini-lesson .pbar { height: 5px; border-radius: 99px; background: var(--line); margin-top: 9px; overflow: hidden; }
.mini-lesson .pbar i { display: block; height: 100%; background: var(--teal-500); border-radius: 99px; }

.notice-list { display: grid; gap: 2px; }
.notice-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.notice-item:last-child { border-bottom: 0; }
.notice-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); margin-top: 7px; flex: none; }
.notice-item small { display: block; color: var(--muted-2); font-size: 11px; margin-top: 2px; }

.member-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.member-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.member-chip.host { border-color: #f2d8a0; background: #fffdf6; }
.member-chip .avatar { --av-size: 22px; }
.member-chip small { color: var(--muted); font-size: 10.5px; }

.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #0d8a7f, #17ab9b); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(13,138,127,.34); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #e04f5f; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.chat-panel { position: fixed; right: 22px; bottom: 88px; z-index: 81; width: 360px; max-width: calc(100vw - 28px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; animation: modalUp .22s ease both; }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line-2); }
.chat-panel-head b { font-size: 13.5px; }
.chat-panel-log { height: 280px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-panel form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.chat-panel input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 13px; outline: none; }
.chat-panel button[type="submit"] { width: 38px; height: 38px; border-radius: 9px; border: 0; background: var(--teal-600); color: #fff; display: grid; place-items: center; }

.room-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.room-banner .code { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .14em; color: var(--teal-800); background: var(--teal-50); border: 1px dashed var(--teal-300); padding: 6px 11px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; }
.room-banner .code button { border: 0; background: none; color: var(--teal-600); display: grid; place-items: center; }
.room-banner .code svg { width: 15px; height: 15px; }
.room-banner h1 { font-size: 19px; font-weight: 800; }
.room-banner .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.room-wait { text-align: center; padding: 54px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.room-wait .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin: 0 auto 16px; }
.room-wait .ico svg { width: 30px; height: 30px; }
.room-wait h2 { font-size: 20px; font-weight: 800; }
.room-wait p { color: var(--muted); font-size: 13.5px; margin: 6px auto 18px; max-width: 460px; line-height: 1.8; }

.result-pass { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.result-pass.yes { background: #eafaf5; color: #0f7a62; }
.result-pass.no { background: #fdeff1; color: #b33a49; }

.stat-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-inline .item { text-align: center; padding: 10px; border-radius: 10px; background: var(--bg); }
.stat-inline b { display: block; font-size: 18px; font-weight: 800; }
.stat-inline span { font-size: 11px; color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filter-btn:hover { border-color: var(--teal-300); color: var(--teal-700); }
.filter-btn.active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

.badge-hero { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, #f4fffc, #eafaf5); border: 1px solid #d5f0e8; font-size: 12.5px; color: #14695d; }

@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .course-grid { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .chat-fab { bottom: 86px; right: 16px; width: 48px; height: 48px; }
}

/* ============================================================
   内容工作室
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin-bottom: 0; }
.studio-lessons { display: grid; gap: 6px; margin-top: 12px; }
.studio-lesson { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 12.5px; }
.studio-lesson:hover { background: var(--bg); }
.studio-error { display: none; margin-top: 12px; padding: 9px 12px; border-radius: 9px; background: #fdeff1; color: #b33a49; font-size: 12.5px; line-height: 1.6; }
.studio-error.show { display: block; }
.studio-q .row .tag { white-space: nowrap; }
.modal .textarea { min-height: 88px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}


/* interactive scene controls */
.scene-tools { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.scene-tool { position: absolute; pointer-events: auto; background: rgba(255,255,255,.95); border: 1px solid #bcdbe2; border-radius: 14px; box-shadow: 0 12px 28px rgba(11,61,69,.22); padding: 9px 11px; backdrop-filter: blur(8px); font-family: inherit; }
.scene-tool .tool-head { display: flex; align-items: baseline; gap: 4px; color: #0f766e; }
.scene-tool .tool-head b { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.scene-tool .tool-head span { font-size: 10.5px; color: #5b7b7a; }
.scene-tool input[type=range] { accent-color: #0f9d8a; cursor: pointer; }
.scene-tool small { display: block; margin-top: 4px; font-size: 9.5px; color: #6b8584; text-align: center; white-space: nowrap; }
.angle-tool { width: 156px; }
.angle-tool input[type=range] { width: 100%; margin: 4px 0 2px; }
.angle-gauge { position: relative; height: 24px; margin: 1px 0 0; }
.angle-gauge .angle-needle { position: absolute; left: 50%; bottom: 0; width: 2px; height: 21px; border-radius: 2px; background: #0f766e; transform-origin: bottom center; transition: transform .12s ease-out; }
.angle-gauge:before { content: ''; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #0f766e; }
.rate-tool { width: 88px; text-align: center; }
.rate-tool input.vertical { display: block; width: 22px; height: 78px; margin: 6px auto 2px; writing-mode: vertical-lr; direction: rtl; }
.scene .hotspot { animation: hotspotPulse 2.6s ease-in-out infinite; }
@keyframes hotspotPulse { 0%, 100% { stroke-opacity: .55; } 50% { stroke-opacity: 1; } }
.iv-drop { animation: ivDrip var(--drip-duration, 2.4s) linear infinite; transform-box: fill-box; transform-origin: center; }
.iv-drop.drop2 { animation-delay: calc(var(--drip-duration, 2.4s) / 2); }
@keyframes ivDrip { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }
@media (max-width: 640px) {
  .angle-tool { width: 126px; padding: 6px 8px; }
  .rate-tool { width: 72px; padding: 6px 8px; }
  .scene-tool .tool-head b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .hotspot, .iv-drop { animation: none; }
}


/* attachments */
.attach-block { margin-top: 14px; }
.attach-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.attach-head b { font-size: 13px; }
.attach-list { display: grid; gap: 7px; }
.attach-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.attach-item .ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #e8f4f1; color: #0f766e; flex: none; }
.attach-item .ico svg { width: 16px; height: 16px; }
.attach-item .meta { min-width: 0; flex: 1; }
.attach-item .meta b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #17353f; }
.attach-item .meta small { display: block; color: #6b8584; font-size: 10.5px; margin-top: 1px; }
.attach-actions { display: flex; gap: 4px; flex: none; }
.attach-video { margin-top: 8px; border-radius: 12px; overflow: hidden; background: #0b2b2c; }
.attach-video video { width: 100%; max-height: 340px; display: block; }
.attach-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; color: #7a8f8d; font-size: 12px; }
.attach-drop { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; background: #f8fbfa; margin-top: 10px; }
.attach-drop label { cursor: pointer; color: #0f766e; font-weight: 600; font-size: 12.5px; }
.attach-drop input { display: none; }
.attach-progress { font-size: 11px; color: #0f766e; margin-top: 6px; }
.attach-tip { font-size: 10.5px; color: #7a8f8d; margin-top: 4px; line-height: 1.5; }
.attach-section { margin-top: 20px; }
@media (max-width: 640px) {
  .attach-item .meta b { max-width: 180px; }
}


/* video questions */
.video-judge { padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #f8fbfa; }
.video-judge .q-opt { display: inline-flex; width: auto; min-width: 150px; margin: 0; }
.video-judge .q-opt .k { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e8f4f1; color: #0f766e; }
.video-judge .q-opt.sel .k { background: rgba(255,255,255,.22); color: #fff; }
.review-card .chip { margin: 3px 4px 0 0; }


/* image attachments */
.attach-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--line-2); background: #f2f8f6; }
.attach-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0 0 9px; }
.attach-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); background: #0b2b2c; }
.attach-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.attach-gallery a:hover img { transform: scale(1.04); }
.attach-image-card { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.attach-image-card img { width: 100%; max-height: 380px; object-fit: contain; display: block; background: #0b2b2c; }


/* image question */
.quiz-image { border-radius: 12px; overflow: hidden; background: #0b2b2c; border: 1px solid var(--line-2); }
.quiz-image img { width: 100%; max-height: 420px; object-fit: contain; display: block; }


/* custom animation scene */
.custom-scene { position: relative; width: 100%; height: 100%; min-height: 320px; overflow: hidden; background: #0b2b2c; }
.custom-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.custom-media video, .custom-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.custom-media-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9fc7c0; font-size: 13px; }
.custom-media-empty svg { width: 34px; height: 34px; }
.custom-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-thumb video, .scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.custom-thumb-empty { display: grid; place-items: center; height: 100%; color: #7aa39c; font-size: 12px; }
