/* AeroEar · 舷窗天空主题（明亮） */
:root {
  --ink: #12264a;
  --sub: rgba(18, 38, 74, 0.68);
  --mute: rgba(18, 38, 74, 0.44);
  --sky: #2f7cff;
  --violet: #7c4dff;
  --L: #2f7cff;
  --R: #ff6f61;
  --Lt: #1d63e0;
  --Rt: #e0483b;
  --mint: #12b886;
  --amber: #f59f00;
  --red: #f03e3e;
  --card: rgba(255, 255, 255, 0.74);
  --card-line: rgba(255, 255, 255, 0.95);
  --line: rgba(30, 60, 120, 0.1);
  --shadow: 0 10px 30px rgba(47, 100, 200, 0.13);
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: ui-rounded, "SF Pro Rounded", -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; color: var(--ink); font-family: var(--font); background: #dcedff; }
body { overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }
h2 { font-size: 26px; font-weight: 750; margin: 2px 0 6px; letter-spacing: .2px; }
h4 { font-size: 13px; font-weight: 700; color: var(--sky); margin: 18px 0 8px; }
p { line-height: 1.6; }
.muted { color: var(--mute); }
.small { font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }
.mag { color: var(--violet) !important; }
.grn { color: var(--mint) !important; }
.amb { color: var(--amber) !important; }
.red { color: var(--red) !important; }
.wht { color: var(--ink) !important; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--sky); font-weight: 700; text-transform: uppercase; }

/* 背景：晨光天空 + 漂浮色块 */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #bfe2ff 0%, #e4f2ff 40%, #fff2e8 100%); }
.bg i { position: absolute; border-radius: 50%; filter: blur(50px); }
.bg i:nth-child(1) { width: 300px; height: 300px; left: -100px; top: -60px; background: #a9d3ff; opacity: .7; }
.bg i:nth-child(2) { width: 280px; height: 280px; right: -110px; top: 38%; background: #ffd4c4; opacity: .65; }
.bg i:nth-child(3) { width: 260px; height: 260px; left: 10%; bottom: -100px; background: #d9ccff; opacity: .6; }
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + var(--safe-t)) 16px 8px; background: linear-gradient(180deg, rgba(210,232,255,.92), rgba(210,232,255,0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 11px; box-shadow: 0 6px 14px rgba(70,110,255,.35); }
.brand b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(90deg, #1d63e0, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 11px; color: var(--mute); font-weight: 600; letter-spacing: .5px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.conn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 18px; font-size: 12px; font-weight: 650;
  background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(47,100,200,.14); color: var(--sub); max-width: 160px; overflow: hidden; white-space: nowrap; }
.conn span { overflow: hidden; text-overflow: ellipsis; }
.lamp { width: 8px; height: 8px; border-radius: 50%; background: #b8c4d8; flex: none; }
.conn.on .lamp { background: var(--mint); box-shadow: 0 0 0 3px rgba(18,184,134,.2); }
.conn.sim .lamp { background: var(--violet); box-shadow: 0 0 0 3px rgba(124,77,255,.2); animation: blink 1.8s infinite; }
.conn.off .lamp { background: var(--amber); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(47,100,200,.14); flex: none; color: var(--sub); }
.icon-btn svg { width: 20px; height: 20px; }

#views { padding: 6px 16px calc(var(--tab-h) + var(--safe-b) + 34px); }
.view { display: none; }
.view.active { display: block; animation: rise .4s cubic-bezier(.2,.8,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* 玻璃卡片 */
.panel { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; margin-top: 14px;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow); }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; color: var(--ink); padding: 14px 16px 6px; }
.panel-title .muted { font-weight: 500; font-size: 11.5px; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 6px 8px; font-size: 16px; font-weight: 800; }
.sec-title em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--mute); }

/* 舷窗 */
.hero { position: relative; margin-top: 4px; }
.win { position: relative; width: 100%; aspect-ratio: 1 / 1.04; max-height: 64vh; margin: 0 auto; padding: 13px;
  border-radius: 44% / 33%; background: linear-gradient(160deg, #ffffff, #dde6f3 70%, #cdd9ea);
  box-shadow: 0 26px 50px rgba(40,90,190,.28), inset 0 2px 0 #fff, inset 0 -8px 14px rgba(90,120,170,.18); }
.win-in { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42% / 31%; background: #8fc8ff;
  box-shadow: inset 0 8px 22px rgba(10,40,110,.35), inset 0 0 0 2px rgba(255,255,255,.4); cursor: pointer; touch-action: pan-y; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.shade { position: absolute; left: 0; right: 0; top: 0; height: var(--shpx, 0px); background: linear-gradient(180deg, #f6f0e6, #e6dccb); box-shadow: 0 8px 14px rgba(0,0,0,.18); z-index: 3; }
.shade-lines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(120,100,70,.12) 9px 10px); }
.shade-tab { position: absolute; left: 50%; top: var(--shpx, 0px); transform: translateX(-50%); width: 76px; height: 26px; z-index: 4; display: grid; place-items: center; touch-action: none;
  background: linear-gradient(180deg, #efe7d9, #d9cdb8); border-radius: 0 0 14px 14px; box-shadow: 0 4px 8px rgba(0,0,0,.2); cursor: grab; }
.shade-tab i { width: 28px; height: 4px; border-radius: 3px; background: rgba(110,90,60,.45); }
.win-top { position: absolute; left: 16%; right: 16%; top: 32px; z-index: 5; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.phase-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12.5px; font-weight: 750; color: var(--ink);
  background: rgba(255,255,255,.82); box-shadow: 0 4px 10px rgba(20,70,160,.18); }
.phase-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.phase-pill[data-k="up"]::before { background: var(--violet); }
.phase-pill[data-k="down"]::before { background: var(--amber); }
.win-hint { font-size: 11px; font-weight: 650; color: #fff; text-shadow: 0 1px 6px rgba(20,60,140,.5); }
.win-hud { position: absolute; left: 0; right: 0; bottom: 13%; text-align: center; z-index: 5; pointer-events: none; color: #fff; text-shadow: 0 2px 14px rgba(20,60,140,.45); }
.p-big { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.p-big b { font-size: 60px; font-weight: 250; letter-spacing: -1.5px; line-height: 1; }
.p-big small { font-size: 15px; font-weight: 600; opacity: .9; }
.p-sub { font-size: 13px; font-weight: 600; margin-top: 4px; opacity: .95; }
.p-sub b { font-size: 16px; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -30px 6px 0; }
.hero-stats > div { background: rgba(255,255,255,.88); border-radius: 18px; padding: 10px 6px 9px; text-align: center; box-shadow: 0 10px 22px rgba(47,100,200,.18); backdrop-filter: blur(14px); }
.hero-stats small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 600; }
.hero-stats b { display: block; font-size: 21px; font-weight: 700; margin: 1px 0; }
.hero-stats i { font-style: normal; font-size: 10px; color: var(--mute); }
.hero-stats .mag b { color: var(--violet); }

.status-row { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.status-row::-webkit-scrollbar { display: none; }
.sp { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(255,255,255,.7); white-space: nowrap; flex: none; box-shadow: 0 3px 10px rgba(47,100,200,.08); }
.sp small { font-size: 11px; color: var(--mute); font-weight: 600; }
.sp b { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }

/* 提示 */
.caution { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); animation: rise .3s; border-left: 5px solid; }
.caution b { display: block; font-size: 14px; }
.caution small { display: block; font-size: 12px; color: var(--sub); margin-top: 1px; }
.caution > div { flex: 1; min-width: 0; }
.cap-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; padding: 4px 8px; border-radius: 8px; color: #fff; flex: none; }
.caution.caut { border-color: var(--amber); background: #fff8e8; } .caution.caut .cap-tag { background: var(--amber); }
.caution.warn { border-color: var(--red); background: #fff0f0; } .caution.warn .cap-tag { background: var(--red); animation: blink 1s steps(2) infinite; }
.caution.info { border-color: var(--sky); background: #eef5ff; } .caution.info .cap-tag { background: var(--sky); }
.caution.caut b { color: #b87400; } .caution.warn b { color: var(--red); } .caution.info b { color: var(--Lt); }
.cap-btn { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--amber); color: #fff; font-weight: 750; font-size: 13px; }

/* 水球 */
.ears { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.orb-card { padding: 12px 10px 12px; border-radius: 26px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .3s; }
.orb-card:active { transform: scale(.98); }
.orb-card[data-st="warn"] { box-shadow: 0 0 0 2px rgba(245,159,0,.5), var(--shadow); }
.orb-card[data-st="risk"] { box-shadow: 0 0 0 2px rgba(240,62,62,.6), 0 10px 30px rgba(240,62,62,.25); }
.oc-head { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.oc-head b { font-weight: 750; }
.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff; flex: none; }
.badge.L { background: linear-gradient(135deg, #6db3ff, #2f7cff); box-shadow: 0 3px 8px rgba(47,124,255,.4); }
.badge.R { background: linear-gradient(135deg, #ff9d8f, #ff6f61); box-shadow: 0 3px 8px rgba(255,111,97,.4); }
.st { margin-left: auto; font-size: 10.5px; font-weight: 750; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.st.ok { color: #0b8a65; background: rgba(18,184,134,.14); }
.st.warn { color: #b87400; background: rgba(245,159,0,.18); }
.st.risk { color: #fff; background: var(--red); animation: blink 1s steps(2) infinite; }
.orb { width: 100%; max-width: 168px; height: auto; margin: 6px auto 0; display: block; overflow: visible; filter: drop-shadow(0 10px 14px rgba(40,90,190,.2)); }
.orb-glass { fill: rgba(255,255,255,.55); stroke: rgba(255,255,255,.9); stroke-width: 1; }
.orb-ring { fill: none; stroke: rgba(47,100,200,.28); stroke-width: 2.5; transition: stroke .3s; }
.orb-card[data-st="warn"] .orb-ring { stroke: var(--amber); } .orb-card[data-st="risk"] .orb-ring { stroke: var(--red); }
.orb-band { fill: rgba(18,184,134,.16); }
.orb-zero { stroke: rgba(30,60,120,.3); stroke-width: 1; stroke-dasharray: 3 4; }
.liq { transition: transform .5s cubic-bezier(.3,1.2,.5,1); }
.wv { animation: wv var(--wave, 3.6s) linear infinite; }
.wv.w2 { animation-direction: reverse; animation-duration: calc(var(--wave, 3.6s) * 1.4); }
@keyframes wv { to { transform: translateX(-60px); } }
.bubs { opacity: 0; transition: opacity .3s; }
.orb-card.venting .bubs { opacity: 1; }
.bub { fill: rgba(255,255,255,.75); animation: bub 1.8s ease-in infinite; }
@keyframes bub { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-34px); opacity: 0; } }
.oc-read { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 2px; }
.oc-read b { font-size: 28px; font-weight: 700; }
.orb-card.L .oc-read b { color: var(--Lt); } .orb-card.R .oc-read b { color: var(--Rt); }
.oc-read small { font-size: 11px; color: var(--mute); }
.oc-valve { display: flex; align-items: center; gap: 6px; margin: 4px 4px 8px; font-size: 10.5px; color: var(--mute); }
.vbar { flex: 1; height: 6px; border-radius: 4px; background: rgba(30,60,120,.1); overflow: hidden; }
.vbar i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .25s; }
.orb-card.L .vbar i { background: linear-gradient(90deg, #8cc4ff, var(--L)); }
.orb-card.R .vbar i { background: linear-gradient(90deg, #ffb8a8, var(--R)); }
.oc-valve em { font-style: normal; width: 30px; text-align: right; font-weight: 700; color: var(--sub); }
.oc-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; border-radius: 20px; font-size: 13.5px; font-weight: 750; overflow: hidden; transition: transform .1s; }
.oc-btn svg { width: 18px; height: 18px; }
.oc-btn:active { transform: scale(.96); }
.orb-card.L .oc-btn { background: rgba(47,124,255,.12); color: var(--Lt); }
.orb-card.R .oc-btn { background: rgba(255,111,97,.14); color: var(--Rt); }
.oc-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; background: radial-gradient(circle, rgba(255,255,255,.9), transparent 70%); }
.oc-btn.hit::after { animation: ping .6s ease-out; }
@keyframes ping { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.8); } }

/* 圆形控制键 */
.ctrls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px 10px; border-radius: 24px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); text-align: center; transition: transform .12s; }
.ctl:active { transform: scale(.95); }
.bub-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; color: var(--violet); background: rgba(124,77,255,.12); transition: .25s; }
.bub-ic svg { width: 24px; height: 24px; }
.bub-ic.mint { color: var(--mint); background: rgba(18,184,134,.14); }
.bub-ic.amber { color: #d98300; background: rgba(245,159,0,.16); }
.ctl b { font-size: 13.5px; font-weight: 750; }
.ctl small { font-size: 10.5px; color: var(--mute); font-weight: 500; }
#btnPredict:not(.on) .bub-ic { color: var(--mute); background: rgba(30,60,120,.08); }
#btnPredict.on { box-shadow: 0 0 0 2px rgba(124,77,255,.4), var(--shadow); }
#btnPredict.on small { color: var(--violet); font-weight: 650; }
.ctl.vent { background: repeating-linear-gradient(-45deg, rgba(245,159,0,.1) 0 7px, transparent 7px 14px), var(--card); }

.nd { padding-bottom: 8px; }
.chart { width: 100%; height: 170px; display: block; }
.chart.small { height: 132px; }
.nd .chart, .preview .chart, .hud .chart { padding: 0 8px; }
.legend { display: flex; gap: 10px; font-size: 11px; color: var(--mute); font-weight: 600; }
.legend.wide { margin: 6px 0; }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 12px; height: 4px; border-radius: 3px; display: inline-block; }
i.l { background: var(--L); } i.r { background: var(--R); }
i.band { background: rgba(18,184,134,.4); height: 8px !important; }
i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
i.l.dash { color: var(--L); } i.r.dash { color: var(--R); }

.seg { display: inline-flex; padding: 3px; border-radius: 14px; background: rgba(30,60,120,.08); }
.seg button { padding: 6px 12px; font-size: 12.5px; font-weight: 650; border-radius: 11px; color: var(--sub); transition: .2s; }
.seg button.on { background: #fff; color: var(--Lt); box-shadow: 0 3px 8px rgba(47,100,200,.18); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; padding: 10px; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 25px; font-size: 15.5px; font-weight: 750; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn[disabled] { opacity: .4; }
.btn.primary { background: linear-gradient(135deg, #3d8bff, #7c4dff); color: #fff; box-shadow: 0 10px 22px rgba(80,100,255,.38); }
.btn.ghost { background: rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(47,100,200,.12); }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.danger-text { color: var(--red) !important; }
.chip-btn { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 17px; background: rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(47,100,200,.12); gap: 6px; font-weight: 650; }
.chip-btn svg { width: 16px; height: 16px; }
.chip-btn.on { background: var(--sky); color: #fff; }
.footnote { font-size: 11.5px; color: var(--mute); text-align: center; margin: 16px 10px 0; line-height: 1.6; }

.switch { width: 52px; height: 32px; border-radius: 16px; background: rgba(30,60,120,.16); position: relative; transition: .25s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: .25s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch.on { background: linear-gradient(135deg, #34d3a6, #12b886); }
.switch.on i { left: 23px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { display: block; font-size: 15px; font-weight: 700; }
.toggle-row small { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.lock svg { width: 22px; height: 22px; color: var(--mint); }

.page-head { margin: 8px 4px 12px; }
.page-head p { margin: 0; color: var(--sub); font-size: 13.5px; }
.page-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ti { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; flex: none; background: rgba(47,124,255,.12); color: var(--sky); }
.ti svg { width: 24px; height: 24px; }
.code-tag { font-weight: 800; font-size: 12px; letter-spacing: 1px; padding: 5px 9px; border-radius: 9px; background: linear-gradient(135deg, #ffc64a, #ff9f1a); color: #fff; flex: none; }

/* 翻牌出发屏（深色岛，作为点睛） */
.fids { background: linear-gradient(180deg, #1a2a4a, #0f1a33); border: 0; padding: 6px 0 8px; overflow: hidden; border-radius: 26px; }
.fids-row { display: grid; grid-template-columns: 64px 1fr 1fr 78px; align-items: center; gap: 6px; width: 100%; padding: 14px 14px; text-align: left; border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; color: #fff; }
.fids-row.hdr { padding: 10px 14px 6px; font-size: 10.5px; color: rgba(255,224,150,.6); border-top: 0; letter-spacing: 1px; }
.fids-row:not(.hdr):active { background: rgba(255,255,255,.06); }
.f-name { color: #ffe9b0; font-weight: 700; }
.f-dest { color: rgba(255,233,176,.65); font-size: 12px; }
.flap { display: flex; gap: 2px; font-weight: 800; }
.flap i { font-style: normal; display: inline-grid; place-items: center; min-width: 15px; height: 24px; padding: 0 1px; border-radius: 4px; background: linear-gradient(180deg, #2a3a5c 50%, #1f2d4b 50%); color: #ffd25e; font-size: 13px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.4); animation: flip .55s both; }
.flap.status i { color: #5ff0b8; font-size: 11px; min-width: 11px; }
.flap.status.amb i { color: #ffb84d; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 60% { transform: rotateX(-20deg); opacity: 1; } 100% { transform: rotateX(0); } }
.tip { display: flex; gap: 12px; padding: 16px; }
.tip b { font-size: 14.5px; }
.tip p { margin: 4px 0 0; font-size: 13px; color: var(--sub); }

/* 登机牌 */
.bpass { position: relative; margin-top: 36px; border-radius: 26px; overflow: hidden; color: #0b1a35; background: #fff; box-shadow: 0 16px 36px rgba(47,100,200,.25); }
.bp-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: linear-gradient(110deg, #3d8bff, #7c4dff); color: #fff; font-size: 11.5px; letter-spacing: 1px; font-weight: 700; }
.bp-top span:first-child { display: flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: 1.5px; font-weight: 800; }
.bp-top svg { width: 18px; height: 18px; }
.bp-route { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
.bp-route > div:not(.bp-line) b { display: block; font-size: 34px; font-weight: 850; letter-spacing: 1px; }
.bp-route > div:not(.bp-line) small { font-size: 11.5px; color: #6b7a95; }
.bp-route > div:last-child { text-align: right; }
.bp-line { flex: 1; display: flex; align-items: center; gap: 6px; margin: 0 12px; color: var(--violet); }
.bp-line i { flex: 1; border-top: 2px dotted #b9c6e0; }
.bp-line svg { width: 24px; height: 24px; transform: rotate(90deg); }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 10px 20px 16px; }
.bp-grid small { display: block; font-size: 10.5px; color: #6b7a95; font-weight: 600; }
.bp-grid b { font-size: 14.5px; }
.bp-grid .L b { color: var(--Lt); } .bp-grid .R b { color: var(--Rt); }
.bp-grid input { width: 100%; border: 0; border-bottom: 2px solid #c9d6ee; background: transparent; padding: 4px 0; font-size: 16px; font-weight: 800; color: #0b1a35; outline: none; border-radius: 0; }
.bp-perf { position: relative; height: 0; border-top: 2px dashed #c9d6ee; margin: 0 16px; }
.bp-perf::before, .bp-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: #eaf3ff; }
.bp-perf::before { left: -30px; } .bp-perf::after { right: -30px; }
.bp-stub { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 11.5px; color: #6b7a95; }
.barcode { width: 120px; height: 36px; flex: none; background: repeating-linear-gradient(90deg, #0b1a35 0 2px, transparent 2px 4px, #0b1a35 4px 5px, transparent 5px 8px, #0b1a35 8px 11px, transparent 11px 12px); }

/* 滑动确认 */
.slide { position: relative; height: 64px; margin-top: 16px; border-radius: 32px; background: rgba(255,255,255,.9); box-shadow: inset 0 2px 6px rgba(47,100,200,.16); overflow: hidden; user-select: none; touch-action: none; --p: 0; }
.slide-fill { position: absolute; inset: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, rgba(61,139,255,.1), rgba(124,77,255,.4)); }
.slide-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; color: var(--sub); opacity: calc(1 - var(--p)); padding-left: 40px; }
.slide-text em { font-style: normal; color: var(--violet); animation: chev 1.4s infinite; letter-spacing: -2px; }
@keyframes chev { 0%, 100% { opacity: .3; transform: translateX(-3px); } 50% { opacity: 1; transform: translateX(3px); } }
.knob { position: absolute; top: 5px; left: 5px; width: 66px; height: 54px; border-radius: 27px; display: grid; place-items: center; color: #fff; touch-action: none;
  background: linear-gradient(135deg, #3d8bff, #7c4dff); box-shadow: 0 8px 16px rgba(80,100,255,.45); }
.knob svg { width: 26px; height: 26px; transform: rotate(90deg); }
.slide.land .knob { background: linear-gradient(135deg, #ffc64a, #ff8a1a); box-shadow: 0 8px 16px rgba(255,150,30,.45); }
.slide.land .knob svg { transform: rotate(90deg) scaleX(-1); }
.slide.land .slide-fill { background: linear-gradient(90deg, rgba(255,198,74,.1), rgba(255,138,26,.4)); }
.slide.land .slide-text em { color: var(--amber); }
.slide.done .slide-text { opacity: 0; }

/* 航程 */
.hud { padding: 0 0 12px; overflow: hidden; }
.hud-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.hud-top b { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--red); letter-spacing: 1px; }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(240,62,62,.18); animation: blink 1.2s infinite; }
.hud .chart { height: 170px; }
.hud-legend { display: flex; gap: 12px; padding: 4px 16px 0; font-size: 11px; color: var(--mute); font-weight: 600; }
.hud-legend span { display: flex; align-items: center; gap: 4px; }
.hud-legend .ph { width: 12px; height: 6px; border-radius: 3px; }
.ph.up { background: #8e7bff; } .ph.level { background: #7fd0ff; } .ph.down { background: #ffb020; }
.hud-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sub); }
.hud-legend .sq { width: 9px; height: 9px; background: var(--sub); }
.hud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 12px 0; }
.hud-grid > div { background: rgba(255,255,255,.7); border-radius: 18px; padding: 12px 14px; }
.hud-grid small { display: block; font-size: 11px; color: var(--mute); font-weight: 600; }
.hud-grid b { display: block; font-size: 26px; font-weight: 700; margin-top: 2px; }
.hud-grid .L b { color: var(--Lt); } .hud-grid .R b { color: var(--Rt); }
#tripTimer { color: var(--mint); }
#tripPhase { font-size: 19px; }
.evlog { padding-bottom: 10px; }
.evlog #evList, .evlog-in { padding: 0 16px; }
.ev { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ev-t { color: var(--mint); font-size: 12.5px; width: 50px; font-weight: 750; }
.ev b { font-weight: 700; }
.ev-ph { color: var(--sub); font-size: 12px; }
.ev-dp { margin-left: auto; font-size: 12px; color: var(--sub); }
.exp { padding: 0 16px 14px; }
.exp .panel-title { padding-left: 0; }
.warn-note { font-size: 12px; color: #b87400; margin: 8px 0; }
.marker-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.coach-cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; }
.coach-cta .ti { background: rgba(18,184,134,.14); color: var(--mint); }
.coach-cta > div { flex: 1; }
.coach-cta b { display: block; font-size: 15.5px; }
.coach-cta small { font-size: 12px; color: var(--mute); }
.coach-cta > svg { width: 20px; height: 20px; color: var(--mute); }

textarea, input[type=number], select { width: 100%; border-radius: 16px; border: 2px solid transparent; background: rgba(255,255,255,.9); box-shadow: inset 0 2px 5px rgba(47,100,200,.1); padding: 12px 14px; font-size: 14.5px; outline: none; resize: none; }
textarea:focus, input:focus, select:focus { border-color: rgba(47,124,255,.5); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 13px; color: var(--sub); font-weight: 600; }
.inline { display: flex; gap: 8px; margin: 6px 0; }
.inline .btn { height: auto; flex: none; }

/* 头像（后方视角） */
.head { width: 100%; max-width: 230px; margin: 0 auto; overflow: visible; }
.h-skull { stroke: rgba(30,60,120,.25); stroke-width: 1.5; }
.h-hair { fill: #c9d8f0; stroke: rgba(30,60,120,.15); }
.h-mid { stroke: rgba(30,60,120,.18); stroke-dasharray: 3 4; }
.h-neck { fill: #e3ecf9; stroke: rgba(30,60,120,.2); }
.ear-hit { cursor: pointer; }
.ear-hit .hit { fill: transparent; }
.ear-shape { stroke-width: 2.5; transition: fill .25s, filter .25s; }
.ear-hit.L .ear-shape { fill: rgba(47,124,255,.18); stroke: var(--L); }
.ear-hit.R .ear-shape { fill: rgba(255,111,97,.2); stroke: var(--R); }
.ear-lbl { font: 800 14px var(--font); }
.ear-hit.L .ear-lbl { fill: var(--L); } .ear-hit.R .ear-lbl { fill: var(--R); }
.head.sel-L .ear-hit.L .ear-shape { fill: var(--L); filter: drop-shadow(0 4px 8px rgba(47,124,255,.5)); }
.head.sel-R .ear-hit.R .ear-shape { fill: var(--R); filter: drop-shadow(0 4px 8px rgba(255,111,97,.5)); }
.head.sel-L .ear-hit.R, .head.sel-R .ear-hit.L { opacity: .5; }
.ear-hit.lv0 .ear-shape { fill: #34d3a6 !important; stroke: #12b886 !important; }
.ear-hit.lv1 .ear-shape { fill: #b8e04a !important; stroke: #8cbf1f !important; }
.ear-hit.lv2 .ear-shape { fill: #ffb84d !important; stroke: #f59f00 !important; }
.ear-hit.lv3 .ear-shape { fill: #ff6b6b !important; stroke: #f03e3e !important; animation: blink 1s steps(2) infinite; }
.fb-head { margin: 8px auto 4px; }
.fb-scale { display: flex; justify-content: center; gap: 12px; font-size: 11.5px; color: var(--sub); flex-wrap: wrap; font-weight: 600; }
.fb-scale span { display: flex; align-items: center; gap: 4px; }
.fb-scale i { width: 11px; height: 11px; border-radius: 4px; }
.lv0 i, .fbdots i.lv0 { background: #12b886; } .lv1 i, .fbdots i.lv1 { background: #8cbf1f; }
.lv2 i, .fbdots i.lv2 { background: #f59f00; } .lv3 i, .fbdots i.lv3 { background: #f03e3e; }
.fb-read { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.fb-read > div { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(47,100,200,.1); }
.fb-read b { font-size: 13px; font-weight: 700; }

/* 双耳设定 */
.crew { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8px; align-items: center; padding: 14px; }
.crew-head p { margin: 2px 0 0; }
.cmp-h { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 4px; font-size: 11px; font-weight: 750; margin-bottom: 6px; }
.cmp-h .L { color: var(--Lt); } .cmp-h .R { color: var(--Rt); }
.cbar { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 4px; align-items: center; margin: 9px 0; font-size: 11.5px; color: var(--sub); font-weight: 600; }
.cb-track { height: 9px; border-radius: 5px; background: rgba(30,60,120,.1); overflow: hidden; }
.cb-track i { display: block; height: 100%; border-radius: 5px; transition: width .2s; }
.cb-track i.L { background: linear-gradient(90deg, #8cc4ff, var(--L)); }
.cb-track i.R { background: linear-gradient(90deg, #ffb8a8, var(--R)); }
.editor { padding: 14px 16px 8px; }
.editor.L { box-shadow: 0 0 0 2px rgba(47,124,255,.35), var(--shadow); } .editor.R { box-shadow: 0 0 0 2px rgba(255,111,97,.4), var(--shadow); }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.9); color: var(--sub); }
.slider-row { padding: 12px 0 4px; }
.sr-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; }
.sr-top span { font-size: 13px; color: var(--Lt); font-weight: 700; }
.editor.R .sr-top span { color: var(--Rt); }
.slider-row small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; margin: 14px 0 6px; outline: none; background: rgba(30,60,120,.1); }
input[type=range].L { background: linear-gradient(90deg, rgba(47,124,255,.15), rgba(47,124,255,.6)); }
input[type=range].R { background: linear-gradient(90deg, rgba(255,111,97,.15), rgba(255,111,97,.65)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(30,60,120,.35); border: 3px solid var(--sky); }
.editor.R input[type=range]::-webkit-slider-thumb { border-color: var(--R); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--sky); }
.preview { padding-bottom: 10px; }
.preview p { padding: 0 16px; margin: 6px 0 0; }
.pv-read { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px 0; }
.pv-read > div { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 16px; background: rgba(255,255,255,.75); }
.pv-read small { display: block; font-size: 10px; color: var(--mute); }
.pv-read b { font-size: 16px; }
.pv-read i { font-style: normal; font-size: 10px; color: var(--mute); }
.pv-read .L b { color: var(--Lt); } .pv-read .R b { color: var(--Rt); }
.pv-note { list-style: none; margin: 8px 16px 0; padding: 0; }
.pv-note li { position: relative; padding: 4px 0 4px 18px; font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.pv-note li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; }
.pv-note li.ok::before { background: var(--mint); } .pv-note li.warn::before { background: var(--amber); } .pv-note li.risk::before { background: var(--red); }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.action-grid .ctl svg { width: 24px; height: 24px; color: var(--violet); margin-bottom: 4px; }
.list { padding-bottom: 8px; }
.list > p, .hist { margin: 0 16px; }
.hist { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.hist b { display: block; font-size: 13.5px; font-weight: 650; }
.hist small { font-size: 11px; color: var(--mute); }
.hist-v { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 650; }
.hist-v .L, .s-side .L, .params .L { color: var(--Lt); }
.hist-v .R, .s-side .R, .params .R { color: var(--Rt); }

/* 日志 */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0; }
.counters > div { padding: 12px 4px; text-align: center; border-left: 1px solid var(--line); }
.counters > div:first-child { border-left: 0; }
.counters small { display: block; font-size: 11px; color: var(--mute); font-weight: 600; }
.counters b { display: block; font-size: 22px; font-weight: 750; margin-top: 3px; background: linear-gradient(135deg, #2f7cff, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counters i { font-style: normal; font-size: 11px; }
.strips { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.strip { display: grid; grid-template-columns: 58px 1fr auto; align-items: stretch; width: 100%; text-align: left; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); transition: .15s; }
.strip:active { transform: scale(.985); }
.strip.sel { box-shadow: 0 0 0 3px var(--sky), var(--shadow); }
.s-code { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(160deg, #6db3ff, #2f7cff); color: #fff; border-right: 2px dashed rgba(255,255,255,.7); }
.s-code b { font-size: 15px; font-weight: 850; letter-spacing: 1px; }
.s-code small { font-size: 10.5px; opacity: .85; }
.strip.elevator .s-code { background: linear-gradient(160deg, #b19cff, #7c4dff); }
.strip.mountain .s-code { background: linear-gradient(160deg, #4fdcb4, #12b886); }
.strip.experiment .s-code { background: linear-gradient(160deg, #ffc64a, #ff9f1a); }
.s-main { padding: 12px 10px 9px; min-width: 0; }
.s-main b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-main small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.spark { width: 100%; height: 26px; margin-top: 6px; }
.spark line { stroke: rgba(30,60,120,.15); stroke-dasharray: 2 3; }
.spark polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.spark .L { stroke: var(--L); } .spark .R { stroke: var(--R); }
.s-side { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 3px; padding: 8px 14px 8px 0; font-size: 12px; font-weight: 700; }
.fbdots { display: flex; gap: 3px; margin-top: 2px; }
.fbdots i { width: 10px; height: 10px; border-radius: 50%; }
.empty { padding: 40px 20px; text-align: center; color: var(--sub); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--sky); opacity: .6; }
.empty p { margin: 4px 0 0; font-size: 13px; color: var(--mute); }

.mt { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.mt th { font-weight: 700; font-size: 12px; padding: 6px; text-align: right; }
.mt th.L { color: var(--Lt); } .mt th.R { color: var(--Rt); }
.mt td { padding: 10px 6px; text-align: right; border-top: 1px solid var(--line); font-weight: 650; }
.mt td:first-child { text-align: left; color: var(--sub); font-weight: 500; }
.mt td small { margin-left: 4px; font-size: 10px; color: var(--mute); }
.params { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 650; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.8); margin-top: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.pill { font-size: 11px; font-weight: 650; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.85); color: var(--sub); }
.pill.on { color: var(--violet); background: rgba(124,77,255,.12); }
.det-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.det-head h2 { font-size: 18px; margin: 0; }
.sheet .panel-title { padding-left: 0; padding-right: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.duo > div { padding: 14px; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(47,100,200,.1); display: flex; flex-direction: column; gap: 3px; }
.duo label { font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.duo b { font-size: 22px; font-weight: 750; }
.duo .L b { color: var(--Lt); } .duo .R b { color: var(--Rt); }
.duo small { font-size: 11.5px; color: var(--mute); }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 20px; margin: 12px 0; }
.alert svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.alert b { font-size: 14.5px; }
.alert p { margin: 4px 0 0; font-size: 13px; color: var(--sub); }
.alert.ok { background: rgba(18,184,134,.12); } .alert.ok svg, .alert.ok b { color: #0b8a65; }
.alert.warn { background: rgba(245,159,0,.14); } .alert.warn svg, .alert.warn b { color: #b87400; }
.alert.risk { background: rgba(240,62,62,.1); } .alert.risk svg, .alert.risk b { color: var(--red); }

/* 底部胶囊导航 */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); z-index: 30; width: calc(100% - 28px); max-width: 520px; height: var(--tab-h);
  display: flex; gap: 4px; padding: 7px; border-radius: 33px; background: rgba(255,255,255,.86); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 16px 36px rgba(40,90,190,.26), inset 0 1px 0 #fff; }
.tabbar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 26px; color: var(--mute); font-size: 14px; font-weight: 750; transition: flex .4s cubic-bezier(.3,1.2,.5,1), background .3s, color .3s; }
.tabbar button span:first-child svg { width: 24px; height: 24px; }
.tabbar button:not(.on) .tl { display: none; }
.tabbar button.on { flex: 2.3; color: #fff; background: linear-gradient(135deg, #3d8bff, #7c4dff); box-shadow: 0 8px 18px rgba(80,100,255,.42); }

/* 弹层 */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,40,90,.35); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; transform: translate(-50%, 100%); transition: transform .35s cubic-bezier(.2,.9,.3,1);
  background: linear-gradient(180deg, #f6faff, #eaf3ff); border-radius: 30px 30px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); box-shadow: 0 -20px 60px rgba(30,60,140,.3); }
.sheet.full { top: 0; max-height: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, #bfe2ff, #eaf4ff 55%, #fff2e8); }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.grip { width: 42px; height: 5px; border-radius: 3px; background: rgba(30,60,120,.18); margin: 0 auto 12px; }
.sheet.full .grip { display: none; }
.sheet-x { position: absolute; right: 16px; top: 16px; }
.sheet-body h2 { padding-right: 44px; }
.set-group { padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
.set-group:last-child { border-bottom: 0; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.dev-row > div { flex: 1; }
.dev-row b { display: block; }
.dev-row small { font-size: 12px; color: var(--mute); }
.dev-row .btn { height: 40px; }
.list-check { padding: 0; margin: 8px 0; list-style: none; }
.list-check li { position: relative; padding: 5px 0 5px 22px; font-size: 14px; color: var(--sub); line-height: 1.6; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #3d8bff, #7c4dff); }

/* 简报 */
.onb { max-width: 440px; margin: 0 auto; width: 100%; padding: 12px 0; }
.onb-top { display: flex; justify-content: space-between; margin-bottom: 10px; }
.onb-body { color: var(--sub); font-size: 14.5px; line-height: 1.7; }
.onb-body p { margin: 8px 0; }
.dots { display: flex; gap: 6px; margin-bottom: 14px; }
.dots i { height: 5px; flex: 1; border-radius: 3px; background: rgba(30,60,120,.12); transition: .3s; }
.dots i.on { background: linear-gradient(90deg, #3d8bff, #7c4dff); }
.onb-actions { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
.onb-actions .btn { flex: 1; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: #2f7cff; }
.ear-diag { width: 100%; height: auto; margin: 8px 0 4px; background: rgba(255,255,255,.85); border-radius: 20px; padding: 8px; box-shadow: 0 3px 10px rgba(47,100,200,.1); }
.d-canal { fill: rgba(47,124,255,.14); stroke: var(--sky); stroke-width: 1.5; }
.d-plug { fill: rgba(255,159,26,.3); stroke: var(--amber); stroke-width: 1.5; }
.d-drum { fill: none; stroke: #5b6b88; stroke-width: 3.5; stroke-linecap: round; }
.d-middle { fill: rgba(124,77,255,.12); stroke: var(--violet); stroke-width: 1.5; }
.d-tube { fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; opacity: .45; }
.d-t { fill: var(--sub); font-size: 10.5px; font-family: var(--font); font-weight: 600; }
.d-t.c { text-anchor: middle; } .d-t.s { fill: var(--mute); font-size: 9px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bg-item { padding: 14px; border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 4px 12px rgba(47,100,200,.1); display: flex; flex-direction: column; gap: 4px; }
.bg-item svg { width: 26px; height: 26px; color: var(--sky); }
.bg-item.risk svg { color: var(--red); }
.bg-item b { font-size: 14.5px; color: var(--ink); }
.bg-item small { font-size: 12px; line-height: 1.5; }
.brief-steps > div { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.brief-steps span { grid-row: span 2; width: 36px; height: 36px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3d8bff, #7c4dff); }
.brief-steps b { color: var(--ink); font-size: 15.5px; }
.brief-steps small { font-size: 13px; }

/* 吞咽教练 */
.coach { max-width: 420px; margin: 0 auto; width: 100%; }
.coach-ring { position: relative; width: 240px; height: 240px; margin: 14px auto; }
.coach-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cr-track { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 9; }
.cr-prog { fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 3px 6px rgba(18,184,134,.4)); }
.cr-pulse { position: absolute; inset: 28px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.4)); box-shadow: 0 10px 30px rgba(47,100,200,.2); opacity: .9; }
.cr-pulse.d2 { inset: 54px; background: rgba(124,77,255,.1); box-shadow: none; }
.coach-ring.beat .cr-pulse { animation: breathe 6s ease-in-out; }
@keyframes breathe { 0% { transform: scale(.88); } 40% { transform: scale(1.06); } 100% { transform: scale(.88); } }
.cr-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px; z-index: 2; }
.cr-text b { font-size: 36px; font-weight: 800; background: linear-gradient(135deg, #2f7cff, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cr-text small { font-size: 13px; color: var(--sub); margin-top: 6px; }
.coach-live { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coach-live > div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 20px; background: rgba(255,255,255,.9); }
.coach-live b { font-size: 21px; font-weight: 750; }
.coach-live .L b { color: var(--Lt); } .coach-live .R b { color: var(--Rt); }
.coach-live small { font-size: 10.5px; color: var(--mute); }
.btn.relief { background: rgba(255,255,255,.9); }
.btn.relief.L { color: var(--Lt); box-shadow: inset 0 0 0 2px rgba(47,124,255,.4); } .btn.relief.R { color: var(--Rt); box-shadow: inset 0 0 0 2px rgba(255,111,97,.5); }
.btn.relief.hit { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.07); } }

/* 问卷 */
.quiz .progress { height: 6px; border-radius: 3px; background: rgba(30,60,120,.1); margin: 4px 0 16px; overflow: hidden; }
.quiz .progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3d8bff, #7c4dff); transition: width .3s; }
.quiz h2 { margin: 8px 0 16px; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 3px 10px rgba(47,100,200,.1); text-align: left; font-size: 15.5px; font-weight: 600; transition: .15s; }
.opt span { width: 30px; height: 30px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--sky); background: rgba(47,124,255,.12); flex: none; }
.opt:active { background: #e6f0ff; transform: scale(.98); }
.quiz-done h2 { margin-bottom: 0; }

#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 30px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 60;
  padding: 11px 18px; border-radius: 22px; background: rgba(18,38,74,.92); color: #fff; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; max-width: 88vw; text-align: center; box-shadow: 0 12px 30px rgba(18,38,74,.35); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) { .brand small { display: none; } .p-big b { font-size: 48px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
