/* 云端塔台 · 鸿蒙 7 液态玻璃视觉层
   原则：大圆角连续曲率、胶囊控件、双层柔和投影 + 内高光、弹簧回弹、逐项入场、粒子消散。 */

:root {
  --bg: #05070d;
  --ink: #0a0f18;
  --text: #e9eef8;
  --muted: rgba(233, 238, 248, 0.62);
  --dim: rgba(233, 238, 248, 0.4);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --gold: #e8c98f;
  --gold-deep: #c9a366;
  --cyan: #7fdcf0;
  --green: #63d9a8;
  --amber: #ffc46b;
  --red: #ff7d76;
  --glass: rgba(16, 22, 34, 0.6);
  --glass-deep: rgba(10, 15, 24, 0.82);
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 26px 70px -34px rgba(0, 0, 0, 0.95);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 10% -12%, rgba(232, 201, 143, 0.12), transparent 62%),
    radial-gradient(900px 560px at 92% -6%, rgba(96, 168, 232, 0.14), transparent 58%),
    radial-gradient(700px 500px at 50% 110%, rgba(126, 214, 168, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 201, 143, 0.28); }

/* 极光层：缓慢漂移的光带，给玻璃背后的颜色层次 */
.aurora {
  position: fixed; inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(420px 240px at 22% 28%, rgba(232, 201, 143, 0.10), transparent 70%),
    radial-gradient(520px 300px at 74% 62%, rgba(127, 220, 240, 0.08), transparent 72%),
    radial-gradient(380px 220px at 46% 84%, rgba(198, 140, 255, 0.06), transparent 72%);
  filter: blur(6px);
  animation: drift 26s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

.app {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}

/* ---------------- 玻璃基础 ---------------- */
.glass, .glass-thin {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.05)),
    var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.11), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}
.glass::before, .glass-thin::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 18% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(80% 50% at 88% 8%, rgba(232, 201, 143, 0.10), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.glass { border-radius: var(--r-xl); }
.glass-thin {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(12, 17, 26, 0.55);
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brandMark {
  width: 34px; height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(150deg, #f0d9a8, #b98f52 62%, #7d5f36);
  box-shadow: 0 10px 26px -10px rgba(232, 201, 143, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
}
.brandMark::after {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 14, 5, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 14, 5, 0.18);
}
.brandText { display: flex; flex-direction: column; line-height: 1.15; }
.brandText b { font-size: 16px; letter-spacing: 0.02em; }
.brandText span { font-size: 9px; letter-spacing: 0.22em; color: var(--dim); }

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.25s var(--ease), transform 0.2s var(--spring);
  position: relative;
}
.segmented button:hover { color: var(--text); }
.segmented button:active { transform: scale(0.95); }
.segmented button.active {
  color: #1a1408;
  background: linear-gradient(180deg, #f6e3ba, #dcb672);
  box-shadow: 0 8px 18px -10px rgba(232, 201, 143, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.segmented button .lock { font-size: 10px; opacity: 0.7; margin-left: 4px; }

.meters { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.meter {
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 84px;
}
.meter span { font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.meter b { font-size: 14px; font-variant-numeric: tabular-nums; font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace; }
.meter.hot b { color: var(--amber); }
.meter.bad b { color: var(--red); }

/* v1.8.27 HUD 三级分层：常驻只留时钟 / 安全分 / 冲突 */
.hudMore {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; min-height: 40px;
  border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(233,238,248,0.62);
  font-size: 11.5px; letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hudMore:hover, .hudMore:focus-visible {
  background: rgba(232,201,143,0.08);
  border-color: rgba(232,201,143,0.28);
  color: #f2dfb4;
}
.hudMore[aria-expanded="true"] {
  background: rgba(232,201,143,0.10);
  border-color: rgba(232,201,143,0.30);
  color: #f2dfb4;
}
.hudMore i { font-style: normal; font-size: 10px; opacity: 0.72; transition: transform 0.22s; }
.hudMore[aria-expanded="true"] i { transform: rotate(180deg); }

.app[data-hud="compact"] .meters .meter.detail { display: none; }
.app[data-hud="wide"] .meters .meter.detail { display: flex; }
.app[data-hud="compact"] .hudLeft { display: none; }
.app[data-hud="compact"] .hudLeft.roomOn { display: flex; }
.app[data-hud="wide"] .hudLeft .hudRow,
.app[data-hud="compact"] .hudLeft.roomOn .hudRow { display: flex; }
.app[data-hud="compact"] .hudRight .hudRow.detail { display: none; }

.topActions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.tier {
  font-size: 11px; letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 201, 143, 0.4);
  color: var(--gold);
  background: rgba(232, 201, 143, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tier.pro {
  color: #0f0b05;
  background: linear-gradient(180deg, #f4e0b4, #d9b173);
  border-color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

/* ---------------- 按钮 ---------------- */
.btn {
  appearance: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 15px;
  cursor: pointer;
  transition: transform 0.18s var(--spring), background 0.22s var(--ease), border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.ghost { background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.primary {
  color: #1a1408;
  font-weight: 650;
  background: linear-gradient(180deg, #f6e3ba, #dcb672);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 26px -14px rgba(232, 201, 143, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.btn.primary:hover { filter: brightness(1.04); }
.btn.pill { padding: 6px 13px; font-size: 12px; }
.btn.danger { color: #ffd9d6; border-color: rgba(255, 125, 118, 0.4); background: rgba(255, 125, 118, 0.12); }
.btn.small { padding: 5px 11px; font-size: 11.5px; }

/* ---------------- 主布局 ---------------- */
.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 12px;
}

.scopeWrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
}
#scope {
  display: block;
  width: 100%;
  height: 100%;
  /* 交给 Scope 自己处理平移/缩放，避免浏览器把双指手势当滚动 */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.scopeWrap::after {
  /* 屏幕边缘的柔和暗角 */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 120px 30px rgba(3, 5, 9, 0.55);
}

.hud {
  position: absolute;
  padding: 9px 12px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 118px;
  border-radius: var(--r-sm);
  animation: rise 0.5s var(--spring) both;
}
.hudLeft { top: 14px; left: 14px; }
.hudRight { top: 14px; right: 14px; }
.hudRow { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.hudRow b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.alerts {
  position: absolute;
  left: 14px; bottom: 64px;
  display: flex; flex-direction: column-reverse; gap: 6px;
  max-width: 46%;
  pointer-events: none;
}
.alert {
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--text);
  background: rgba(12, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.9);
  animation: alertIn 0.45s var(--spring) both;
  backdrop-filter: blur(14px);
}
.alert.danger { border-color: rgba(255, 125, 118, 0.5); box-shadow: 0 0 0 1px rgba(255, 125, 118, 0.15), 0 16px 34px -22px #000; }
.alert.warning { border-color: rgba(255, 196, 107, 0.45); }
.alert.success { border-color: rgba(99, 217, 168, 0.4); }
.alert.fade { animation: alertOut 0.5s var(--ease) forwards; }

@keyframes alertIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes alertOut {
  to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.scopeBar {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 18px;
  flex-wrap: wrap;
}
.segmented.mini button { padding: 5px 11px; font-size: 11.5px; }
.scopeBarHint { margin-left: auto; font-size: 11px; color: var(--dim); }

/* ---------------- 侧栏 ---------------- */
.side {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0;
  /* 指令历史加进来后侧栏变高，允许内部滚动，避免航班条被压扁裁切 */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 201, 143, 0.3) transparent;
  padding-right: 2px;
}
.card { border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; animation: rise 0.55s var(--spring) both; }
.commandCard { flex: 0 0 auto; }
.stripCard { flex: 1 1 auto; min-height: 160px; }
.logCard { flex: 0 0 156px; }
.cardHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cardHead h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; }
.chips { display: flex; gap: 6px; }
.chip {
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  white-space: nowrap;
}
.chip.gold { color: var(--gold); border-color: rgba(232, 201, 143, 0.3); background: rgba(232, 201, 143, 0.08); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* 选中航班面板 */
.selPanel { display: flex; flex-direction: column; gap: 7px; }
.selCs {
  font-size: 19px; font-weight: 650; letter-spacing: 0.02em;
  font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  display: flex; align-items: center; gap: 8px;
}
.selCs .tag { font-size: 10px; letter-spacing: 0.1em; padding: 3px 7px; border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--muted); font-family: inherit; }
.selMeta { font-size: 11.5px; color: var(--dim); }
.selGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.selGrid > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.selGrid span { font-size: 10px; color: var(--dim); letter-spacing: 0.08em; }
.selGrid b { font-size: 13.5px; font-variant-numeric: tabular-nums; font-family: "JetBrains Mono", ui-monospace, monospace; }
/* 指定值两段数字，窄格子里单独缩一号，避免折行 */
.selGrid > div:nth-child(4) b { font-size: 12px; white-space: nowrap; }

.quickRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quickRow .btn { padding: 7px 4px; font-size: 11.5px; }

.cmdInputRow { display: flex; gap: 8px; }
.input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.input::placeholder { color: rgba(233, 238, 248, 0.34); }
.input:focus { border-color: rgba(232, 201, 143, 0.55); box-shadow: 0 0 0 4px rgba(232, 201, 143, 0.12); background: rgba(255, 255, 255, 0.075); }
.cmdHint { font-size: 10.5px; color: var(--dim); line-height: 1.5; }
.cmdVoiceRow { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.cmdVoiceRow .chip { font-size: 11px; padding: 3px 10px; min-height: 24px; }
.cmdVoiceRow .chip.on { color: var(--gold); border-color: rgba(232, 201, 143, 0.34); background: rgba(232, 201, 143, 0.09); }
.cmdVoiceRow .chip:disabled { opacity: 0.45; }
.cmdVoiceTip { font-size: 10.5px; color: var(--dim); }

/* 航班条 */
.strips { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; }
.stripGroup { font-size: 10px; letter-spacing: 0.14em; color: var(--dim); padding: 4px 2px 2px; }
.strip {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--spring), border-color 0.2s var(--ease);
  animation: rowIn 0.4s var(--ease) both;
}
.strip:hover { background: rgba(255, 255, 255, 0.07); transform: translateX(2px); }
.strip.selected { border-color: rgba(232, 201, 143, 0.5); background: rgba(232, 201, 143, 0.12); }
.strip .cs { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600; }
.stripMid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stripMid b { font-size: 10.5px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.stripStatus { font-size: 10px; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); color: var(--muted); white-space: nowrap; }
.stripStatus.arr { color: var(--cyan); border-color: rgba(127, 220, 240, 0.35); background: rgba(127, 220, 240, 0.08); }
.stripStatus.dep { color: var(--gold); border-color: rgba(232, 201, 143, 0.32); background: rgba(232, 201, 143, 0.08); }
.stripStatus.warn { color: var(--amber); border-color: rgba(255, 196, 107, 0.4); background: rgba(255, 196, 107, 0.1); }
.stripStatus.bad { color: var(--red); border-color: rgba(255, 125, 118, 0.45); background: rgba(255, 125, 118, 0.1); }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* 事件日志 */
.logList { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 4px; font-size: 11.5px; }
.logItem { display: flex; gap: 8px; color: var(--muted); line-height: 1.45; animation: rowIn 0.35s var(--ease) both; }
.logItem span:first-child { color: var(--dim); font-family: "JetBrains Mono", ui-monospace, monospace; flex: 0 0 auto; }
.logItem.danger { color: #ffb3ad; }
.logItem.warning { color: #ffd79a; }
.logItem.success { color: #a7ecc9; }
.logItem.cmd { color: var(--gold); }
.logItem.combo { color: #ffcf9a; }

/* 滚动条 */
.strips::-webkit-scrollbar, .logList::-webkit-scrollbar, .modalBody::-webkit-scrollbar { width: 6px; }
.strips::-webkit-scrollbar-thumb, .logList::-webkit-scrollbar-thumb, .modalBody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14); border-radius: 99px;
}
.strips::-webkit-scrollbar-thumb:hover, .logList::-webkit-scrollbar-thumb:hover, .modalBody::-webkit-scrollbar-thumb:hover { background: rgba(232, 201, 143, 0.4); }

/* ---------------- 弹层 ---------------- */
.modalLayer { position: fixed; inset: 0; z-index: 40; display: none; }
.modalLayer.open { display: block; }
.modalMask {
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 50% 40%, rgba(10, 15, 24, 0.72), rgba(3, 5, 9, 0.92));
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.05)),
    rgba(12, 17, 27, 0.86);
  backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: modalIn 0.5s var(--spring) both;
  overflow: hidden;
}
.modal.wide { width: min(760px, calc(100vw - 32px)); }
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal.closing { animation: modalOut 0.34s var(--ease) forwards; }
@keyframes modalOut {
  to { opacity: 0; transform: translate(-50%, -52%) scale(0.94); }
}
.modalHead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 12px;
}
.modalHead h3 { margin: 0; font-size: 17px; letter-spacing: 0.02em; }
.modalHead .sub { font-size: 11px; color: var(--dim); margin-top: 3px; }
.modalBody { padding: 4px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modalFoot { padding: 12px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.closeBtn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted); cursor: pointer; font-size: 15px;
  transition: transform 0.2s var(--spring), background 0.2s var(--ease);
}
.closeBtn:hover { background: rgba(255, 125, 118, 0.14); color: #ffd9d6; }
.closeBtn:active { transform: scale(0.92); }

.sectionTitle { font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
.priceRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.priceCard {
  padding: 14px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex; flex-direction: column; gap: 6px;
}
.priceCard.hot { border-color: rgba(232, 201, 143, 0.4); background: linear-gradient(180deg, rgba(232, 201, 143, 0.14), rgba(232, 201, 143, 0.04)); }
.priceCard b { font-size: 22px; color: var(--gold); font-weight: 650; }
.priceCard span { font-size: 11px; color: var(--dim); }
.featureList { display: flex; flex-direction: column; gap: 7px; }
.feature { display: flex; gap: 9px; font-size: 12.5px; color: var(--muted); align-items: flex-start; }
.feature i {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-style: normal;
  background: rgba(99, 217, 168, 0.16); color: var(--green);
  border: 1px solid rgba(99, 217, 168, 0.35);
}
.feature.off i { background: rgba(255, 125, 118, 0.12); color: var(--red); border-color: rgba(255, 125, 118, 0.3); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; color: var(--dim); letter-spacing: 0.08em; }
.seatGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seatGrid button {
  padding: 10px 4px; border-radius: 14px; font-size: 12px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: var(--muted); cursor: pointer;
  transition: transform 0.18s var(--spring), background 0.2s var(--ease), color 0.2s var(--ease);
}
.seatGrid button.active { color: #1a1408; background: linear-gradient(180deg, #f6e3ba, #dcb672); border-color: rgba(255,255,255,0.45); font-weight: 650; }
.seatGrid button:active { transform: scale(0.95); }
.peerList { display: flex; flex-direction: column; gap: 5px; }
.peerRow { display: flex; justify-content: space-between; padding: 8px 11px; border-radius: 12px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05); font-size: 12px; }
.peerRow span { color: var(--dim); }

.seasonCard {
  display: flex; flex-direction: column; gap: 8px;
  padding: 13px 15px; border-radius: 18px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(232,201,143,0.1), rgba(127,220,240,0.05) 55%, rgba(255,255,255,0.03));
  border: 1px solid rgba(232,201,143,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.seasonTop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seasonTag {
  font-size: 9.5px; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 999px;
  color: #1a1408; background: linear-gradient(180deg, #f6e3ba, #dcb672); font-weight: 700;
}
.seasonTop b { font-size: 13px; color: var(--text); }
.seasonTop em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--gold); }
.seasonBar { display: block; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.seasonBar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #dcb672, #f6e3ba); box-shadow: 0 0 12px rgba(232,201,143,0.4); }
.seasonStats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 2px; padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.seasonStat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seasonStat span { font-size: 9.5px; letter-spacing: 0.06em; color: var(--muted); }
.seasonStat b {
  font-size: 15px; font-weight: 600; color: #f2e6cc;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seasonStat em { font-style: normal; font-size: 9.5px; color: var(--dim); }
.mySeason {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px;
  margin-top: 1px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 10.5px; color: var(--muted);
}
.myLabel {
  font-size: 9px; letter-spacing: 0.1em; color: var(--gold);
  padding: 2px 6px; border-radius: 999px; background: rgba(232,201,143,0.1);
}
.mySeason b { color: #f2e6cc; font-weight: 600; font-variant-numeric: tabular-nums; }
/* v1.8.32 PRO 赛季洞察 */
.seasonInsight {
  display: flex; flex-direction: column; gap: 8px;
  margin: -2px 0 10px; padding: 11px 13px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,201,143,0.065), rgba(255,255,255,0.02));
  border: 1px solid rgba(232,201,143,0.18);
}
.insightHead { display: flex; align-items: center; gap: 7px; }
.insightHead b { font-size: 12px; color: var(--text); letter-spacing: 0.04em; }
.insightHead em {
  margin-left: auto; font-style: normal; font-size: 8.5px; letter-spacing: 0.12em;
  padding: 2px 7px; border-radius: 999px; color: #1a1408; font-weight: 700;
  background: linear-gradient(180deg, #f6e3ba, #dcb672);
}
.insightStats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding-top: 7px; border-top: 1px solid rgba(255,255,255,0.06);
}
.insightStats div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.insightStats span { font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.insightStats b {
  font-size: 16px; color: #f2e6cc; font-weight: 650; white-space: nowrap;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis;
}
.insightStats em { font-style: normal; font-size: 9px; color: var(--dim); white-space: nowrap; }
.insightLine { font-size: 10px; color: var(--dim); line-height: 1.45; }
.insightLock { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,0.06); }
.insightLockTag {
  font-size: 8.5px; letter-spacing: 0.12em; padding: 2px 6px; border-radius: 6px;
  color: var(--gold); border: 1px solid rgba(232,201,143,0.35); background: rgba(232,201,143,0.08);
}
.insightLock span:not(.insightLockTag) { flex: 1 1 120px; font-size: 10.5px; color: var(--dim); }
.insightLock .btn { flex: 0 0 auto; }
.insightEmpty { display: flex; flex-direction: column; gap: 2px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,0.06); }
.insightEmpty b { font-size: 11px; color: var(--muted); font-weight: 500; }
.insightEmpty span { font-size: 9.5px; color: var(--dim); line-height: 1.4; }
.boardTabs .onlyMe {
  flex: 0 0 auto; padding: 5px 11px; font-size: 11px;
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--dim);
}
.boardTabs .onlyMe.on {
  color: var(--gold); border-color: rgba(232,201,143,0.45);
  background: rgba(232,201,143,0.1);
  box-shadow: none; font-weight: 600;
}
.seasonHint { font-size: 10.5px; color: var(--muted); }
.boardTabs { display: flex; margin: 0 0 10px; width: 100%; flex: 0 0 auto; }
.boardTabs button { flex: 1 1 0; }
.boardTabs em { font-style: normal; font-size: 10px; opacity: 0.7; margin-left: 3px; }
.monthChips {
  display: flex; gap: 6px; margin: -2px 0 10px;
  overflow-x: auto; padding: 1px 1px 3px;
  scrollbar-width: none;
}
.monthChips::-webkit-scrollbar { display: none; }
.monthChip {
  flex: 0 0 auto; appearance: none; cursor: pointer;
  padding: 4px 10px; border-radius: 999px;
  font: inherit; font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.monthChip:hover { color: var(--text); border-color: rgba(255,255,255,0.14); }
.monthChip.active {
  color: var(--gold); border-color: rgba(232,201,143,0.42);
  background: rgba(232,201,143,0.1);
}
.monthChip em { font-style: normal; font-size: 9.5px; opacity: 0.7; margin-left: 3px; }
.boardList { display: flex; flex-direction: column; gap: 6px; }
.seasonSharePreview { display: flex; justify-content: center; padding: 6px 0 12px; }
.seasonSharePreview img {
  width: min(100%, 390px); border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px -34px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.1);
}
.boardSub { color: rgba(233,238,248,0.4); }
.boardRow {
  display: grid; grid-template-columns: 34px 1fr 60px 56px;
  gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--spring);
}
.boardRow:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.boardRow:active { transform: scale(0.99); }
.boardRow:focus-visible { outline: 2px solid rgba(232,201,143,0.55); outline-offset: 2px; }
.runDetail { display: flex; flex-direction: column; gap: 16px; }
.runDetailTop { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.runDetailWho { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.runDetailWho b { font-size: 20px; font-weight: 600; color: var(--text); }
.runDetailWho span { font-size: 12px; color: var(--muted); }
.runDetailWho i {
  font-style: normal; font-size: 10.5px; letter-spacing: 0.02em;
  color: rgba(127,220,240,0.66);
}
.runDetailScore { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.runDetailScore strong {
  font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.runDetailScore em {
  font-style: normal; font-size: 13px; color: var(--gold);
  padding: 2px 8px; border-radius: 8px; background: rgba(232,201,143,0.1);
}
.runDetailStats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 11px 13px; border-radius: 16px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07);
}
.runDetailStats > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.runDetailStats span { font-size: 9.5px; color: var(--muted); letter-spacing: 0.05em; }
.runDetailStats b { font-size: 13px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boardRow.rank1 { border-color: rgba(232,201,143,0.45); background: rgba(232,201,143,0.09); }
.boardRow .rk { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--gold); }
.boardRow .score { font-variant-numeric: tabular-nums; text-align: right; font-family: "JetBrains Mono", ui-monospace, monospace; }
.boardRow .grade { text-align: right; color: var(--muted); }
.boardEmpty { font-size: 12px; color: var(--dim); padding: 18px 2px; line-height: 1.6; }

.replayWrap { display: flex; flex-direction: column; gap: 10px; }
.replayCanvasBox { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: rgba(5, 8, 14, 0.6); }
#replayCanvas { display: block; width: 100%; height: 240px; }
.replayControls { display: flex; align-items: center; gap: 10px; }
.replayControls input[type=range] { flex: 1 1 auto; accent-color: var(--gold); }
.replayScrub { position: relative; flex: 1 1 auto; min-width: 120px; display: flex; align-items: center; }
.replayScrub input[type=range] { width: 100%; }
.replayMarks { position: absolute; left: 0; right: 0; top: 50%; height: 14px; transform: translateY(-50%); pointer-events: none; z-index: 2; }
.repMark { position: absolute; top: 50%; width: 14px; height: 14px; padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.repMark i { display: block; width: 2px; height: 9px; margin: 0 auto; border-radius: 2px; background: var(--amber); box-shadow: 0 0 5px rgba(255, 196, 107, 0.35); transition: height 0.15s var(--ease), width 0.15s var(--ease); }
.repMark.danger i { background: var(--red); box-shadow: 0 0 6px rgba(255, 125, 118, 0.55); }
.repMark:hover i, .repMark:focus-visible i { width: 3px; height: 13px; }
.replayMeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.replaySpeeds { flex: 0 0 auto; }
.replaySpeeds button { padding: 5px 10px; font-size: 11.5px; }
.replayMeta .repJump { font-size: 11.5px; padding: 6px 11px; }
.replayMeta .repJump[disabled] { opacity: 0.4; cursor: default; }
.replayStat { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.replayMeta .repAnnot { font-size: 11.5px; padding: 6px 11px; color: var(--muted); }
.replayMeta .repAnnot.on {
  color: #a9ecf8;
  border-color: rgba(127, 220, 240, 0.34);
  background: rgba(127, 220, 240, 0.08);
  box-shadow: inset 0 0 0 1px rgba(127, 220, 240, 0.06);
}
.rCause {
  display: flex; flex-direction: column; gap: 7px;
  margin-top: 2px; padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(127, 220, 240, 0.18);
  background: rgba(127, 220, 240, 0.045);
}
.rCause[hidden] { display: none; }
.rCauseHead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rCauseHead b { font-size: 13px; color: var(--gold); letter-spacing: 0.04em; }
.rCauseHead span { font-size: 10.5px; color: var(--muted); }
.rCauseHead em {
  margin-left: auto; font-style: normal; font-size: 9.5px; padding: 2px 7px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); color: var(--muted); white-space: nowrap;
}
.rCauseHead em.bad { color: #ffb1aa; border-color: rgba(255,125,118,0.4); background: rgba(255,125,118,0.1); }
.rCauseHead em.warn { color: #ffd08a; border-color: rgba(255,196,107,0.35); background: rgba(255,196,107,0.08); }
.rCauseHead em.ok { color: #8fe6c2; border-color: rgba(99,217,168,0.3); background: rgba(99,217,168,0.07); }
.rCauseRow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 10.5px; line-height: 1.5; }
.rCauseRow > span { min-width: 46px; color: var(--dim); }
.rCauseRow b { font-weight: 600; color: var(--text); }
.rCauseRow i { font-style: normal; color: var(--muted); }
.rCauseRow i.hot { color: #ffb1aa; }
.gateNote { font-size: 11.5px; color: var(--amber); line-height: 1.6; }

.resultGrade { font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1; }
.resultGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.resultGrid > div { padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.04); display: flex; flex-direction: column; gap: 2px; }
.resultGrid span { font-size: 10px; color: var(--dim); letter-spacing: 0.1em; }
.resultGrid b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* toast */
.toastLayer {
  position: fixed;
  left: 50%;
  bottom: 96px;              /* 让开雷达底部控制条，也不再压住右栏事件卡 */
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: min(520px, calc(100vw - 24px));
}
.toast {
  padding: 10px 15px; border-radius: 16px; font-size: 12.5px;
  background: rgba(12, 17, 27, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 46px -26px rgba(0,0,0,0.95);
  animation: toastIn 0.4s var(--spring) both;
  max-width: 320px;
}
.toast.ok { border-color: rgba(99,217,168,0.4); }
.toast.warn { border-color: rgba(255,196,107,0.45); }
.toast.bad { border-color: rgba(255,125,118,0.5); }
.toast.tip { border-color: rgba(127,220,240,0.35); color: var(--cyan); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* 粒子层（面板关闭消散） */
.particleLayer { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
.particle {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(232,201,143,0.5) 45%, transparent 70%);
  animation: particleFly var(--dur, 620ms) cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}
@keyframes particleFly {
  from { opacity: 0.9; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100%; }
  .layout { grid-template-columns: 1fr; }
  .scopeWrap { height: clamp(360px, 58vh, 620px); }
  .side { overflow: visible; }
  .logCard { flex-basis: 200px; }
}
@media (max-width: 860px) {
  .app { padding: 10px; gap: 10px; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .brandText span { display: none; }
  .meters { order: 3; width: 100%; justify-content: space-between; }
  .meter { min-width: 0; flex: 1 1 0; padding: 5px 9px; }
  .meter b { font-size: 12.5px; }
  .topActions { margin-left: auto; }
  .segmented { order: 4; width: 100%; overflow-x: auto; }
  .segmented button { flex: 1 0 auto; }
  .quickRow { grid-template-columns: repeat(2, 1fr); }
  .selGrid { grid-template-columns: repeat(2, 1fr); }
  .alerts { left: 10px; right: 10px; max-width: none; bottom: 66px; }
  .scopeBarHint { display: none; }
  .priceRow { grid-template-columns: 1fr; }
  .resultGrid { grid-template-columns: repeat(2, 1fr); }
  .modalBody { padding: 4px 14px 14px; }
  .modalHead, .modalFoot { padding-left: 14px; padding-right: 14px; }
}

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

/* ---------------- 关卡库 ---------------- */
.segmented .levelEntry {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 999px 999px 0;
  color: var(--gold);
}
.segmented .levelEntry .lockSoft,
.segmented .levelTab .lockSoft {
  margin-left: 5px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(232, 201, 143, 0.14);
  color: var(--gold);
}
.segmented .levelTab { color: var(--text); background: rgba(232, 201, 143, 0.1); }

.lvStats {
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 2px 10px;
  letter-spacing: 0.01em;
}
.lvTools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-bottom: 10px; }
.lvChips { display: flex; gap: 4px; flex-wrap: wrap; }
.lvChips .chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lvChips .chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.lvChips .chip.active {
  color: #1a1408;
  background: linear-gradient(180deg, #f6e3ba, #dcb672);
  border-color: transparent;
  box-shadow: 0 6px 14px -10px rgba(232, 201, 143, 0.8);
}
.lvSearch {
  flex: 1 1 220px;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 7px 13px;
  outline: none;
}
.lvSearch:focus { border-color: rgba(232, 201, 143, 0.45); background: rgba(255, 255, 255, 0.08); }
.lvCount { font-size: 11px; color: var(--dim); padding: 2px 2px 8px; }

/* v1.8.33 情景编辑器 */
.edCard {
  display: flex; flex-direction: column; gap: 11px;
  padding: 14px 16px 15px; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(232,201,143,0.075), rgba(127,220,240,0.035) 60%, rgba(255,255,255,0.02));
  border: 1px solid rgba(232,201,143,0.2);
}
.edHead { display: flex; align-items: center; gap: 8px; }
.edHead .edCancel { margin-left: auto; }
.edCard.editing { border-color: rgba(232,201,143,0.45); box-shadow: 0 0 0 1px rgba(232,201,143,0.10) inset; }
.edHead b { font-size: 13px; color: var(--text); }
.edHead em {
  font-style: normal; font-size: 8.5px; letter-spacing: 0.12em; padding: 2px 7px; border-radius: 999px;
  color: #1a1408; font-weight: 700; background: linear-gradient(180deg, #f6e3ba, #dcb672);
}
.edForm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.edField .input { width: 100%; box-sizing: border-box; }
.edField select.input {
  appearance: none; padding: 9px 12px; border-radius: 14px; color: var(--text);
  background-color: rgba(255,255,255,0.055); cursor: pointer;
}
.edField select.input option { color: #17202e; background: #f3f0e8; }
.edRow { display: flex; align-items: flex-start; gap: 10px; }
.edRow > label { flex: 0 0 46px; padding-top: 6px; font-size: 10px; letter-spacing: 0.08em; color: var(--dim); }
.edChips { display: flex; flex-wrap: wrap; gap: 5px; }
.edChips .chip {
  appearance: none; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: var(--muted); font: inherit; font-size: 11px; padding: 5px 10px; border-radius: 999px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.edChips .chip em { font-style: normal; font-size: 9px; opacity: 0.62; margin-left: 3px; }
.edChips .chip.active {
  color: #1a1408; background: linear-gradient(180deg, #f6e3ba, #dcb672);
  border-color: transparent; font-weight: 600;
}
.edChips .chip.active em { opacity: 0.72; }
.edPreview {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07);
}
.edPreview div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.edPreview span { font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.edPreview b {
  font-size: 11px; color: #f2e6cc; font-weight: 550; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.edSaved { display: flex; flex-direction: column; gap: 6px; }
.edSectHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.edSectHead .sectionTitle { min-width: 0; }
.edBkActions { display: flex; gap: 6px; flex: 0 0 auto; }
.edSavedRow {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 14px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06);
}
.edSavedMain { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.edSavedMain b { font-size: 12px; color: var(--text); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edSavedMain span { font-size: 9.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edBest { font-style: normal; font-size: 9.5px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edBest.empty { color: var(--dim); }
.edSavedRow .btn { flex: 0 0 auto; }
.edEmpty { padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px dashed rgba(255,255,255,0.09); font-size: 11px; color: var(--dim); }
.edImport { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.edImport label { font-size: 10px; color: var(--dim); letter-spacing: 0.08em; }
.edImportRow { display: flex; gap: 7px; align-items: center; }
.edImportRow .input { flex: 1 1 auto; min-width: 0; font-family: "JetBrains Mono", "Cascadia Mono", monospace; font-size: 11px; }
.edImportRow .btn { flex: 0 0 auto; }
.edImportErr { min-height: 13px; font-style: normal; font-size: 10px; color: var(--red); }
.edShareCard { display: flex; flex-direction: column; gap: 10px; }
.edShareBest {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 13px;
  background: rgba(232,201,143,0.07); border: 1px solid rgba(232,201,143,0.22);
}
.edShareBest span { font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.edShareBest b { font-size: 16px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.edShareBest em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); }
.edCodeBox {
  width: 100%; box-sizing: border-box; min-height: 92px; resize: none;
  padding: 11px 13px; border-radius: 14px;
  border: 1px solid rgba(232,201,143,0.22); background: rgba(0,0,0,0.22);
  color: #f2e6cc; font: 11px/1.55 "JetBrains Mono", "Cascadia Mono", monospace;
  word-break: break-all; outline: none;
}
.edCodeBox:focus { border-color: rgba(232,201,143,0.5); }
.edShareNote { font-size: 10.5px; color: var(--dim); line-height: 1.5; }
.edLinkRow { display: flex; gap: 7px; align-items: center; }
.edLinkRow .input { flex: 1 1 auto; min-width: 0; font-size: 10.5px; font-family: "JetBrains Mono", "Cascadia Mono", monospace; color: var(--muted); }
.edLinkRow .btn { flex: 0 0 auto; }

/* v1.8.35 分享链接落地页 */
.scRecv { display: flex; flex-direction: column; gap: 12px; }
.scRecvHero {
  position: relative; overflow: hidden; padding: 18px 20px 17px;
  border-radius: 22px; border: 1px solid rgba(232,201,143,0.2);
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(232,201,143,0.16), transparent 58%),
    radial-gradient(90% 120% at 100% 10%, rgba(96,168,232,0.12), transparent 62%),
    rgba(255,255,255,0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 18px 46px -30px rgba(0,0,0,0.9);
}
.scRecvHero::after {
  content: ""; position: absolute; right: -28px; bottom: -42px; width: 150px; height: 150px;
  border-radius: 50%; border: 1px solid rgba(232,201,143,0.16);
  box-shadow: 0 0 0 18px rgba(232,201,143,0.03), 0 0 0 38px rgba(232,201,143,0.02);
}
.scRecvKicker { display: block; font-size: 8.5px; letter-spacing: 0.2em; color: var(--gold); opacity: 0.85; }
.scRecvName { display: block; margin: 6px 0 5px; font-size: 22px; line-height: 1.18; letter-spacing: -0.015em; color: #f6ecd8; font-weight: 600; }
.scRecvApt { font-size: 10.5px; color: var(--dim); letter-spacing: 0.03em; }
.scRecordCard {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 15px; border-radius: 17px;
  background: rgba(232,201,143,0.07); border: 1px solid rgba(232,201,143,0.24);
}
.scRecordTop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scRecordTop span { font-size: 9px; letter-spacing: 0.09em; color: var(--gold); }
.scRecordTop em { font-style: normal; font-size: 9px; color: var(--muted); }
.scRecordMain { display: flex; align-items: baseline; gap: 8px; }
.scRecordMain b { font-size: 24px; line-height: 1; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.scRecordMain span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--gold);
  background: rgba(232,201,143,0.13); border: 1px solid rgba(232,201,143,0.34);
}
.scRecordMain em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); }
.scRecordNote { font-size: 10px; color: var(--dim); line-height: 1.5; }
.scRecvGrid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 12px 13px; border-radius: 18px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07);
}
.scRecvStat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scRecvStat span { font-size: 9px; color: var(--muted); letter-spacing: 0.05em; }
.scRecvStat b { font-size: 13px; color: #f2e6cc; font-weight: 550; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scRecvStat em { font-style: normal; font-size: 9.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scRecvErr { min-height: 14px; font-style: normal; font-size: 10px; color: var(--red); }
.scRecvLock {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(232,201,143,0.28); background: rgba(232,201,143,0.08);
}
.scRecvLock b { font-size: 12px; color: var(--gold); }
.scRecvLock span { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.scTrialUsed { font-style: normal; font-size: 10.5px; color: var(--gold); padding: 0 2px; }
.scRecvInvalid { padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,125,118,0.26); background: rgba(255,125,118,0.06); }
.scRecvInvalid b { display: block; margin-bottom: 6px; font-size: 14px; color: var(--red); }
.scRecvInvalid p { margin: 0 0 6px; font-size: 12px; color: var(--text); }
.scRecvInvalid span { font-size: 10.5px; color: var(--dim); line-height: 1.5; }


.lvList { max-height: 54vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.lvRow {
  display: grid;
  flex: 0 0 auto;              /* 列表里 263 行，绝不能被 flex 压缩成一条线 */
  grid-template-columns: 78px minmax(150px, 1fr) 96px 46px 54px 64px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--spring);
  cursor: pointer;
}
.lvRow:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 201, 143, 0.28);
  transform: translateY(-1px);
}
.lvRow[data-current="1"] { border-color: rgba(232, 201, 143, 0.55); background: rgba(232, 201, 143, 0.08); }
.lvRow.locked { opacity: 0.82; }
.lvStar { color: var(--gold); font-size: 11px; letter-spacing: 1px; font-family: var(--mono, "JetBrains Mono", monospace); }
.lvMain { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lvMain b { font-size: 13px; letter-spacing: 0.04em; }
.lvMain span { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvMain em { font-style: normal; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvNums { font-size: 11px; color: var(--muted); text-align: right; font-family: var(--mono, "JetBrains Mono", monospace); }
.lvTier { font-size: 9.5px; text-align: center; padding: 2px 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--muted); }
.lvTier.pro { color: var(--gold); border-color: rgba(232, 201, 143, 0.4); background: rgba(232, 201, 143, 0.1); }
.lvTier.free { color: var(--green, #63d9a8); border-color: rgba(99, 217, 168, 0.35); }
.lvRow .btn { justify-self: end; }

@media (max-width: 860px) {
  .lvRow { grid-template-columns: 56px 1fr 46px 58px; row-gap: 3px; }
  .lvNums { display: none; }
  .lvTier { display: none; }
  .lvMain { flex-wrap: wrap; }
  .lvList { max-height: 48vh; }
  .edForm { grid-template-columns: minmax(0, 1fr); }
  .edPreview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edRow > label { flex: 0 0 38px; }
  .edSavedRow { flex-wrap: wrap; }
  .edSavedMain { flex: 1 1 100%; }
  .edSavedRow .btn { flex: 1 1 0; }
  .scRecvHero { padding: 16px 17px; }
  .scRecvName { font-size: 20px; }
  .scRecvGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edLinkRow { flex-wrap: wrap; }
  .edLinkRow .input { flex: 1 1 100%; }
  .edLinkRow .btn { flex: 1 1 0; }
}


/* =====================================================================
   HarmonyOS 7 系统动效层（v1.2.0）
   1) 玻璃折射边  2) 分段控件胶囊指示器  3) 点击涟漪  4) 仪表数字跳变
   5) 弹层景深    6) 卡片按压回弹       7) 胶囊开关  8) 动效强度降级
   ===================================================================== */

/* 1. 玻璃"厚度"：1px 锥形渐变折射边，随视角有轻微色散 */
.glass::after,
.modal::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: conic-gradient(from 148deg at 50% 40%,
    rgba(255, 255, 255, 0.5), rgba(232, 201, 143, 0.24) 20%,
    rgba(255, 255, 255, 0.05) 44%, rgba(127, 220, 240, 0.18) 66%,
    rgba(255, 255, 255, 0.42) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  mix-blend-mode: screen;
}

/* 2. 分段控件：金色胶囊滑到当前项（替代原来的 active 底） */
.segmented { position: relative; }
.segPill {
  position: absolute; left: 0; top: 4px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, #f6e3ba, #dcb672);
  box-shadow: 0 10px 22px -12px rgba(232, 201, 143, 0.85),
              inset 0 1px 0 rgba(255, 255, 255, 0.8),
              inset 0 -1px 0 rgba(120, 84, 30, 0.35);
  z-index: 0;
  opacity: 0;
  transition: transform 0.46s var(--spring), width 0.46s var(--spring),
              height 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s var(--ease);
}
.segmented.hasPill button { position: relative; z-index: 1; }
.segmented.hasPill button.active {
  background: transparent;
  box-shadow: none;
  color: #1a1408;
}
.segmented.hasPill button.active:hover { color: #1a1408; }
.segmented.hasPill .segPill::after {
  content: "";
  position: absolute; inset: 1px 6px auto 6px; height: 45%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}

/* 3. 点击涟漪：从指针位置扩散，颜色跟随控件 */
.btn, .chip, .segmented button, .seatGrid button, .lvRow, .quickRow .btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.66) 0%,
    rgba(255, 255, 255, 0.34) 38%, rgba(255, 255, 255, 0.1) 62%, transparent 78%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: scale(0.12);
  opacity: 1;
  animation: rippleOut 0.56s cubic-bezier(0.16, 0.8, 0.28, 1) forwards;
  z-index: 2;
}
.chip .ripple, .lvRow .ripple {
  background: radial-gradient(circle, rgba(232, 201, 143, 0.42) 0%, transparent 72%);
}
@keyframes rippleOut {
  0% { transform: scale(0.14); opacity: 0.9; }
  40% { transform: scale(0.68); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}

/* 4. 仪表数字跳变：变化时上浮一线并短暂发金光 */
.meter b { display: inline-block; will-change: transform; }
.meter b.pop { animation: meterPop 0.56s var(--spring); }
@keyframes meterPop {
  0% { transform: translateY(0); }
  28% { transform: translateY(-3.5px); color: var(--gold); text-shadow: 0 0 14px rgba(232, 201, 143, 0.55); }
  100% { transform: translateY(0); }
}

/* 5. 弹层景深：打开弹层时底层整体后退并虚化 */
.app { transition: transform 0.5s var(--spring), filter 0.5s var(--ease); }
body.modalOpen .app {
  transform: scale(0.982);
  filter: blur(7px) saturate(0.86) brightness(0.92);
}

/* 6. 卡片：悬停上浮、按下回弹（squash & stretch） */
.card {
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, 0.98),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.card:active {
  transform: scale(0.986, 0.976);
  transition-duration: 0.16s;
}
.btn:active, .chip:active, .lvRow:active { transform: scale(0.965, 0.945); }

/* 7. 胶囊开关（控制中心式） */
.hsSwitchRow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 10px 2px; margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hsSwitchRow .hsText { display: flex; flex-direction: column; gap: 3px; }
.hsSwitchRow .hsText b { font-size: 13px; font-weight: 600; }
.hsSwitchRow .hsText span { font-size: 11px; color: var(--dim); }

.hsSwitch {
  position: relative;
  flex: 0 0 auto;
  width: 52px; height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: background 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.3s var(--ease);
}
.hsSwitch .knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dfe6f0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 #fff;
  transition: transform 0.44s var(--spring), width 0.24s var(--ease), background 0.3s var(--ease);
}
.hsSwitch:active .knob { width: 26px; }
.hsSwitch.on {
  background: linear-gradient(180deg, #f4dfb4, #d6ae6b);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
              0 8px 22px -12px rgba(232, 201, 143, 0.9);
}
.hsSwitch.on .knob { transform: translateX(22px); }
.hsSwitch.on:active .knob { transform: translateX(18px); width: 26px; }

/* 8. 动效强度降级（设置里可切"减弱"，也尊重系统偏好） */
body.reduceMotion *,
body.reduceMotion *::before,
body.reduceMotion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
body.reduceMotion .app { filter: none; transform: none; }
body.reduceMotion .glass, body.reduceMotion .glass-thin {
  -webkit-backdrop-filter: blur(14px) saturate(126%);
  backdrop-filter: blur(14px) saturate(126%);
}
body.reduceMotion .card:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .aurora { animation: none; }
}

/* ---------------- 指令历史（选中面板内 tab） ---------------- */
.traceHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 8px;
}
.traceHead .segmented { flex: 0 0 auto; }
.traceHead .segmented button { padding: 4px 12px; font-size: 11px; }
.traceHint {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.traceList {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 116px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 201, 143, 0.35) transparent;
  /* 上下淡出，滚动时像系统列表 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9px, #000 calc(100% - 9px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9px, #000 calc(100% - 9px), transparent 100%);
}
.traceRow {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  font: inherit;
  text-align: left;
  animation: traceIn 0.26s var(--ease) both;
}
.traceRow.fillable {
  cursor: pointer;
  appearance: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--spring);
}
.traceRow.fillable:active { transform: scale(0.985); background: rgba(232, 201, 143, 0.14); }
.traceTime {
  font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.traceText {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.traceRow.fillable .traceText { color: var(--text); }
.traceSeat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.traceSeat.app { color: var(--cyan); border-color: rgba(127, 220, 240, 0.35); background: rgba(127, 220, 240, 0.08); }
.traceSeat.twr { color: var(--gold); border-color: rgba(232, 201, 143, 0.35); background: rgba(232, 201, 143, 0.08); }
.traceSeat.gnd { color: var(--green); border-color: rgba(99, 217, 168, 0.35); background: rgba(99, 217, 168, 0.08); }
.traceSeat.obs { color: var(--dim); border-color: var(--stroke); }
.traceEmpty {
  padding: 12px 8px;
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  line-height: 1.5;
}
@keyframes traceIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
/* 只有真悬停设备才给 hover，触屏不会卡在悬停态 */
@media (hover: hover) and (pointer: fine) {
  .traceRow.fillable:hover {
    background: rgba(232, 201, 143, 0.1);
    border-color: rgba(232, 201, 143, 0.28);
  }
}

/* ---------------- 结算：指令分布 ---------------- */
.seatDist { margin-top: 14px; }
.seatDist h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.seatDist h3 em { font-style: normal; font-size: 10px; color: var(--dim); font-weight: 500; }
.seatBar {
  display: grid;
  grid-template-columns: 58px 1fr 68px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
  color: var(--muted);
}
.seatBar i.seatBarTrack {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.seatBar i.seatBarFill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.6s var(--spring);
}
.seatBarFill.app { background: linear-gradient(90deg, rgba(127, 220, 240, 0.5), var(--cyan)); }
.seatBarFill.twr { background: linear-gradient(90deg, rgba(232, 201, 143, 0.5), var(--gold)); }
.seatBarFill.gnd { background: linear-gradient(90deg, rgba(99, 217, 168, 0.5), var(--green)); }
.seatBarFill.obs { background: linear-gradient(90deg, rgba(233, 238, 248, 0.3), rgba(233, 238, 248, 0.6)); }
.seatBar b { text-align: right; font-size: 10.5px; color: var(--text); font-weight: 600; }

/* ---------------- 回放：指令时间线 ---------------- */
.replayCmds {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 124px;
  overflow-y: auto;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
}
.rCmd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: traceIn 0.24s var(--ease) both;
}
.rCmd i {
  font-style: normal;
  font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  font-size: 10px;
  color: var(--dim);
}
.rCmd em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(232, 201, 143, 0.3);
  border-radius: 999px;
  padding: 0 5px;
}
.rCmd.empty { color: var(--dim); }
button.rCmd {
  width: 100%; padding: 2px 5px; margin-left: -5px;
  border: 0; border-radius: 6px; background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
button.rCmd:hover, button.rCmd:focus-visible { background: rgba(255, 255, 255, 0.045); }
button.rCmd.last { color: #ffe0aa; }

/* ---------------- 长按上下文快捷条 ---------------- */
.sheetMask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 5, 9, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.sheetMask.in { opacity: 1; }
.sheetMask.out { opacity: 0; }
.sheetCard {
  width: min(340px, calc(100vw - 28px));
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 22, 34, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px -40px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s var(--spring), opacity 0.2s var(--ease);
}
.sheetMask.in .sheetCard { transform: none; opacity: 1; }
.sheetMask.out .sheetCard { transform: translateY(10px) scale(0.97); opacity: 0; }
.sheetHead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sheetHead b {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
}
.sheetHead span { font-size: 10.5px; color: var(--dim); }
.sheetGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheetBtn {
  padding: 11px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--spring), border-color 0.18s var(--ease);
}
.sheetBtn:active { transform: scale(0.96); background: rgba(232, 201, 143, 0.16); border-color: rgba(232, 201, 143, 0.34); }
.sheetFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  color: var(--dim);
}
@media (hover: hover) and (pointer: fine) {
  .sheetBtn:hover { background: rgba(232, 201, 143, 0.1); border-color: rgba(232, 201, 143, 0.26); }
}
@media (max-width: 480px) {
  .sheetMask { align-items: flex-end; padding: 0; }
  .sheetCard {
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(28px);
  }
  .sheetMask.in .sheetCard { transform: none; }
}

/* 触屏没有真悬停：所有 hover 位移一律取消，避免"点完还卡在悬停态" */
@media (hover: none) {
  .card:hover, .btn:hover, .strip:hover, .btn.pill:hover { transform: none; }
}

/* ---------------- 操作体感（v1.5.0） ---------------- */
/* 1. 事件面板可折叠：把高度让给航班条 */
.headActions { display: flex; align-items: center; gap: 6px; }
.headIcon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--spring), color 0.18s var(--ease);
}
.headIcon:active { transform: scale(0.9); background: rgba(232, 201, 143, 0.16); color: var(--gold); }
.logCard.collapsed { flex: 0 0 auto; }
.logCard.collapsed .logList { display: none; }
.logCard { transition: flex-basis 0.3s var(--ease); }

/* 2. 指令回执：航班条闪一下 */
.strip.hit-ok { animation: stripOk 0.8s var(--ease) both; }
.strip.hit-bad { animation: stripBad 0.8s var(--ease) both; }
@keyframes stripOk {
  0% { background: rgba(232, 201, 143, 0.34); border-color: rgba(232, 201, 143, 0.6); }
  55% { background: rgba(232, 201, 143, 0.12); }
  100% { background: transparent; }
}
@keyframes stripBad {
  0%, 30% { background: rgba(255, 125, 118, 0.3); border-color: rgba(255, 125, 118, 0.6); }
  15%, 45% { transform: translateX(-3px); }
  100% { background: transparent; transform: none; }
}

/* 3. 输入框错误抖动 */
.input.shake { animation: shakeX 0.46s var(--ease); border-color: rgba(255, 125, 118, 0.5) !important; }
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-5px); }
  36% { transform: translateX(4px); }
  54% { transform: translateX(-3px); }
  72% { transform: translateX(2px); }
}

/* 4. 首启引导 */
.onbMask {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(3, 5, 9, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.onbMask.in { opacity: 1; }
.onbCard {
  width: min(460px, calc(100vw - 24px));
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 22, 34, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 34px 90px -44px #000;
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s var(--spring), opacity 0.26s var(--ease);
}
.onbMask.in .onbCard { transform: none; opacity: 1; }
.onbCard .kicker {
  display: inline-block; margin-bottom: 10px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232, 201, 143, 0.3);
  border-radius: 999px; padding: 3px 9px;
}
.onbCard h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0.02em; }
.onbCard p.sub { margin: 0 0 14px; font-size: 11.5px; color: var(--muted); }
.onbStep { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.onbStep i {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 700;
  color: var(--gold); background: rgba(232, 201, 143, 0.12);
  border: 1px solid rgba(232, 201, 143, 0.28);
}
.onbStep b { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 2px; }
.onbStep span { font-size: 11px; color: var(--muted); line-height: 1.55; }
.onbFoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.onbFoot .mini { font-size: 10.5px; color: var(--dim); }

/* 5. 快捷键表 */
.kbdList { display: grid; grid-template-columns: 96px 1fr; gap: 7px 12px; align-items: center; font-size: 11.5px; }
.kbdList b {
  justify-self: start;
  font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 7px;
  color: var(--gold);
  border: 1px solid rgba(232, 201, 143, 0.28);
  background: rgba(232, 201, 143, 0.08);
}
.kbdList span { color: var(--muted); }

/* 6. 窄屏：toast 抬到操作区之上，输入行吸底 */
@media (max-width: 480px) {
  .toastLayer {
    left: 10px; right: 10px; bottom: 16px;
    transform: none;
    align-items: stretch;
    max-width: none;
  }
  .commandCard .cmdInputRow { position: sticky; bottom: 6px; z-index: 6; background: rgba(10, 15, 24, 0.72); border-radius: 14px; padding: 4px; }
  .onbCard { padding: 16px; }
}

/* ---------------- 窄屏（480px） ---------------- */
@media (max-width: 480px) {
  .app { padding: 8px; gap: 8px; }
  .topbar { padding: 8px 10px; gap: 8px; }
  .brandMark { width: 30px; height: 30px; }
  .meters { gap: 6px; }
  .meter { padding: 4px 7px; }
  .meter span { font-size: 9px; }
  .meter b { font-size: 11.5px; }
  .scopeWrap { height: clamp(272px, 50vh, 420px); }
  .selGrid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .selGrid b { font-size: 15px; }
  .quickRow { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .quickRow .btn { padding: 8px 6px; font-size: 11px; }
  .traceList { max-height: 112px; }
  .traceRow { grid-template-columns: 56px 1fr auto; gap: 6px; padding: 5px 6px; }
  .traceTime { font-size: 9.5px; }
  .traceText { font-size: 11px; }
  /* 雷达底部控制条在窄屏收紧，别占掉半屏 */
  .scopeBar { left: 8px; right: 8px; bottom: 8px; padding: 6px; gap: 6px; }
  .scopeBar .btn { padding: 6px 10px; font-size: 11px; }
  .scopeBar .segmented { width: auto; }
  .traceHint { display: none; }
  .strip { grid-template-columns: 66px 1fr auto; padding: 7px 8px; }
  .strip .cs { font-size: 11px; }
  .cmdHint { display: none; }
  .modalCard { width: calc(100vw - 20px); max-height: 88vh; }
}


/* ================= v1.6.0 娱乐性 ================= */

/* 1. 顶栏等级徽章 */
.lvBadge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px 5px 10px; border-radius: 12px;
  background: rgba(232, 201, 143, 0.1);
  border: 1px solid rgba(232, 201, 143, 0.26);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--spring);
}
.lvBadge:hover { background: rgba(232, 201, 143, 0.18); border-color: rgba(232, 201, 143, 0.46); }
.lvBadge:active { transform: scale(0.96); }
.lvBadge .lvNum {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  color: #f6e7c3;
}
.lvTrack {
  width: 34px; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden; position: relative; display: block;
}
.lvTrack .lvFill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(232, 201, 143, 0.55), #f6e7c3);
  box-shadow: 0 0 8px rgba(232, 201, 143, 0.5);
  transition: width 0.5s var(--ease);
}

/* 2. 连击浮标：不占侧栏，压在雷达右上 */
.comboBadge {
  position: absolute; top: 14px; left: 50%;
  transform: translate(-50%, -8px);
  display: flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: 14px;
  background: rgba(10, 15, 24, 0.72);
  border: 1px solid rgba(232, 201, 143, 0.22);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.9);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.36s var(--spring);
  z-index: 4;
}
.comboBadge.on { opacity: 1; transform: translate(-50%, 0); }
.comboBadge b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 17px; line-height: 1; color: #f6e7c3;
}
.comboBadge span { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.comboBadge i {
  font-style: normal; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 7px;
  color: var(--gold); background: rgba(232, 201, 143, 0.14);
  border: 1px solid rgba(232, 201, 143, 0.24);
}
.comboBadge.hot { border-color: rgba(255, 176, 92, 0.55); box-shadow: 0 0 0 1px rgba(255, 176, 92, 0.2), 0 18px 40px -22px rgba(255, 150, 60, 0.65); }
.comboBadge.hot i { color: #ffcf9a; border-color: rgba(255, 176, 92, 0.5); background: rgba(255, 150, 60, 0.16); }
.comboBadge.pulse { animation: comboPulse 0.42s var(--spring); }
@keyframes comboPulse {
  0% { transform: translate(-50%, 0) scale(1); }
  38% { transform: translate(-50%, 0) scale(1.12); }
  100% { transform: translate(-50%, 0) scale(1); }
}

/* 3. 局内目标清单 */
.goalPanel {
  position: absolute; right: 14px; bottom: 76px;
  width: 206px; padding: 9px 11px 10px;
  border-radius: 14px; z-index: 3;
}
.goalHead { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.goalHead span { font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted); }
.goalHead b { margin-left: auto; font-size: 11px; color: var(--gold); letter-spacing: 0.1em; }
.goalCombo {
  display: none; font-style: normal; font-size: 9.5px; letter-spacing: 0.04em;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--dim);
}
.goalCombo.on { color: #ffcf9a; }
.goalList { display: flex; flex-direction: column; gap: 5px; }
.goalRow {
  display: grid; grid-template-columns: 12px 1fr auto;
  align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--muted);
  position: relative; padding-bottom: 4px;
}
.goalRow .goalMark { font-style: normal; color: var(--dim); text-align: center; }
.goalRow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goalRow em { font-style: normal; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; color: var(--dim); }
.goalRow .goalBar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.goalRow .goalBar i { display: block; height: 100%; border-radius: 99px; background: rgba(232, 201, 143, 0.45); transition: width 0.4s var(--ease); }
.goalRow.done { color: #a7ecc9; }
.goalRow.done .goalMark { color: #7fe0b0; }
.goalRow.done em { color: #7fe0b0; }
.goalRow.done .goalBar i { background: linear-gradient(90deg, rgba(127, 224, 176, 0.5), #7fe0b0); }

/* 4. 结算：星级 / 目标 / XP / 新成就 */
.resStars { font-size: 22px !important; color: var(--gold); letter-spacing: 0.06em; }
.resPrice { grid-template-columns: repeat(3, 1fr); }
.toast.renew { animation: toastRenew 0.34s var(--spring); }
@keyframes toastRenew {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
.newBest {
  font-size: 9px; padding: 1px 5px; border-radius: 6px; margin-left: 4px;
  color: #ffcf9a; border: 1px solid rgba(255, 176, 92, 0.45); background: rgba(255, 150, 60, 0.14);
}
.resGoals { margin-top: 12px; }
.resGoals h3 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 7px;
}
.resGoals h3 em { font-style: normal; font-size: 10px; color: var(--dim); }
.resGoal {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center;
  padding: 6px 9px; border-radius: 10px; margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px; color: var(--muted);
}
.resGoal i { font-style: normal; color: var(--dim); text-align: center; }
.resGoal b { font-size: 11px; font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--dim); }
.resGoal.done { border-color: rgba(127, 224, 176, 0.28); background: rgba(127, 224, 176, 0.07); color: #c9f5df; }
.resGoal.done i, .resGoal.done b { color: #7fe0b0; }

.xpBlock {
  margin-top: 12px; padding: 10px 11px; border-radius: 12px;
  background: rgba(232, 201, 143, 0.06); border: 1px solid rgba(232, 201, 143, 0.18);
}
.xpTop { display: flex; align-items: baseline; gap: 8px; }
.xpTop span { font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }
.xpTop b { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 19px; color: #f6e7c3; }
.xpTop .xpMult {
  font-style: normal; font-size: 9.5px; padding: 1px 6px; border-radius: 6px;
  color: #ffcf9a; border: 1px solid rgba(255, 176, 92, 0.45); background: rgba(255, 150, 60, 0.16);
}
.xpBreak { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 5px 0 7px; font-size: 9.5px; color: var(--dim); }
.xpBarRow { display: flex; align-items: center; gap: 8px; }
.xpBar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; }
.xpBar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(232, 201, 143, 0.55), #f6e7c3); transition: width 0.6s var(--ease); }
.xpBarRow span { font-size: 9.5px; font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--muted); white-space: nowrap; }
.xpUp { margin-top: 7px; font-size: 11px; color: #ffcf9a; letter-spacing: 0.06em; }

.freshRow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.freshRow > span { font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.achvChip {
  font-size: 10.5px; padding: 2px 8px; border-radius: 8px;
  color: #f6e7c3; background: rgba(232, 201, 143, 0.14);
  border: 1px solid rgba(232, 201, 143, 0.34);
}

/* 5. 成长面板 */
.growthTop { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.growthLv, .growthStat {
  padding: 10px 11px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 4px;
}
.growthLv > span, .growthStat > span { font-size: 9.5px; letter-spacing: 0.16em; color: var(--dim); }
.growthLv b { font-size: 22px; color: #f6e7c3; }
.growthLv em, .growthStat em { font-style: normal; font-size: 9.5px; color: var(--dim); }
.growthStat b { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 18px; color: var(--text); }
.achvGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.achv {
  display: flex; gap: 7px; align-items: flex-start;
  padding: 9px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.55;
}
.achv.got { opacity: 1; border-color: rgba(232, 201, 143, 0.3); background: rgba(232, 201, 143, 0.09); }
.achv i {
  font-style: normal; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--dim); border: 1px solid rgba(255, 255, 255, 0.12);
}
.achv.got i { color: #f6e7c3; border-color: rgba(232, 201, 143, 0.5); }
.achv div b { display: block; font-size: 11.5px; color: var(--text); margin-bottom: 2px; }
.achv div span { font-size: 9.5px; color: var(--dim); line-height: 1.4; }
.growthFoot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.growthFoot em { font-style: normal; font-size: 9.5px; color: var(--dim); }

/* 6. 关卡库：每日挑战条 + 我的最佳星级 */
.dailyCard {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: 14px; margin-bottom: 10px;
  background: linear-gradient(100deg, rgba(232, 201, 143, 0.14), rgba(232, 201, 143, 0.04) 62%);
  border: 1px solid rgba(232, 201, 143, 0.3);
}
.dailyCard.done { border-color: rgba(127, 224, 176, 0.32); background: linear-gradient(100deg, rgba(127, 224, 176, 0.12), rgba(127, 224, 176, 0.03) 62%); }
.dailyCard > div { display: flex; flex-direction: column; gap: 3px; }
.dailyCard .kicker { font-size: 9.5px; letter-spacing: 0.16em; color: var(--dim); }
.dailyCard b { font-size: 13.5px; color: var(--text); }
.dailyCard em { font-style: normal; font-size: 10px; color: var(--muted); }
.lvBest { font-size: 10px; color: var(--gold); letter-spacing: 0.06em; white-space: nowrap; }
.lvRow.daily { box-shadow: inset 2px 0 0 rgba(232, 201, 143, 0.7); }

@media (max-width: 900px) {
  .growthTop { grid-template-columns: 1fr 1fr; }
  .achvGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .lvBadge { padding: 4px 7px; gap: 5px; }
  .lvTrack { width: 22px; }
  .lvBadge .lvNum { font-size: 9.5px; }
  .comboBadge { display: none; }
  .goalCombo { display: inline; }
  .goalPanel { left: 8px; right: 8px; width: auto; bottom: 100px; padding: 6px 9px 7px; border-radius: 12px; }
  .goalHead { margin-bottom: 4px; }
  .goalRow { font-size: 9.5px; padding-bottom: 0; gap: 4px; }
  .goalRow .goalBar { display: none; }
  .goalList { gap: 3px; }
  .growthTop { grid-template-columns: 1fr; }
  .achvGrid { grid-template-columns: 1fr 1fr; }
  .dailyCard { flex-direction: column; align-items: flex-start; }
  .resPrice { grid-template-columns: 1fr; }
}


/* ============================= v1.7.0 机型图鉴 ============================= */
.catalogCount {
  margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 9.5px; letter-spacing: .04em; color: var(--gold);
  background: rgba(232, 201, 143, .13); border: 1px solid rgba(232, 201, 143, .3);
}
.catalogCount.full { color: #06120c; background: linear-gradient(180deg, #8ee9c0, #55c79a); border-color: transparent; }
body[data-motion="off"] .catCard { transition: none !important; }

.catStats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.catProg {
  padding: 11px 13px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.016));
  border: 1px solid var(--stroke);
}
.catProg span { display: block; font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }
.catProg b { display: block; margin-top: 2px; font-size: 19px; font-variant-numeric: tabular-nums; }
.catProg em { display: block; margin-top: 2px; font-size: 10px; color: var(--dim); font-style: normal; }
.catBar { display: block; height: 4px; margin-top: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.09); }
.catBar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--gold)); transition: width .5s var(--ease); }

.catTools { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.catChips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.catChips .chip {
  padding: 5px 11px; border-radius: 999px; font-size: 11px; cursor: pointer;
  color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
  transition: background .22s var(--ease), color .22s var(--ease), transform .3s var(--spring);
}
.catChips .chip.on { color: #0a0f18; background: linear-gradient(180deg, #f3e3c4, var(--gold)); border-color: transparent; }
.catChips .chip:active { transform: scale(.94); }
.catSearch {
  flex: 0 0 210px; height: 32px; padding: 0 12px; border-radius: 999px;
  color: var(--text); font-size: 12px; background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke); outline: none;
}
.catSearch:focus { border-color: rgba(127,220,240,.55); box-shadow: 0 0 0 3px rgba(127,220,240,.12); }

.catBody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.catBody.split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.catGrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 9px;
  max-height: 48vh; overflow-y: auto; padding: 2px 4px 4px 2px;
  scrollbar-width: thin; overscroll-behavior: contain;
  flex: 0 0 auto; align-content: start;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, rgba(0,0,0,.15) 100%);
  mask-image: linear-gradient(to bottom, #000 88%, rgba(0,0,0,.15) 100%);
}
.catCard {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border-radius: var(--r-md); text-align: left; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  border: 1px solid var(--stroke); color: var(--text);
  transition: transform .32s var(--spring), border-color .22s var(--ease), background .22s var(--ease);
}
.catCard:hover { border-color: var(--stroke-strong); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); }
.catCard:active { transform: scale(.97); }
.catCard.active { border-color: rgba(232,201,143,.6); box-shadow: 0 0 0 2px rgba(232,201,143,.16); }
.catCard.got .catShape { color: var(--cyan); }
.catCard.ref { opacity: .72; }
.catCard.ref .catShape { color: var(--dim); }
.catShape { flex: 0 0 54px; height: 58px; display: grid; place-items: center; color: var(--muted); }
.catShape .acSilhouette { width: 50px; height: 54px; }
.catMeta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.catMeta b { font-size: 13.5px; letter-spacing: .03em; }
.catMeta span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catMeta em { font-size: 10px; color: var(--dim); font-style: normal; }
.catMeta i { margin-top: 2px; font-size: 9.5px; font-style: normal; color: var(--gold); }
.catCard.got .catMeta i { color: var(--green); }

.catDetailWrap { margin-top: 0; position: sticky; top: 0; }
.catEmpty {
  padding: 22px; text-align: center; font-size: 11.5px; color: var(--dim);
  border: 1px dashed var(--stroke); border-radius: var(--r-md);
}
.catHint {
  padding: 16px; text-align: center; font-size: 11.5px; color: var(--dim);
  border: 1px dashed var(--stroke); border-radius: var(--r-md);
}
.catDetail {
  padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  animation: catIn .42s var(--ease) both;
}
@keyframes catIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.catHero { display: flex; gap: 14px; align-items: center; }
.catBig { flex: 0 0 118px; height: 128px; display: grid; place-items: center; color: var(--gold); }
.catHeroText { min-width: 0; }
.catHeroText .kicker { font-size: 10px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.catHeroText b { display: block; font-size: 21px; margin: 3px 0 6px; }
.catTags { display: flex; gap: 6px; flex-wrap: wrap; }
.catTags span {
  padding: 2px 8px; border-radius: 999px; font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
}
.catTags span.on { color: var(--cyan); border-color: rgba(127,220,240,.35); background: rgba(127,220,240,.1); }
.catOwn { display: block; margin-top: 6px; font-size: 10.5px; color: var(--gold); font-style: normal; }

.catSpecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 7px; margin-top: 12px; }
.catSpecs > div { padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); }
.catSpecs span { display: block; font-size: 9.5px; color: var(--dim); }
.catSpecs b { font-size: 12.5px; font-variant-numeric: tabular-nums; }

.catSim { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.catSim > span { font-size: 10px; color: var(--dim); letter-spacing: .06em; }
.catSim > div { padding: 5px 9px; border-radius: 10px; background: rgba(127,220,240,.07); border: 1px solid rgba(127,220,240,.18); }
.catSim em { font-size: 9.5px; color: var(--dim); font-style: normal; display: block; }
.catSim b { font-size: 11.5px; color: var(--cyan); font-variant-numeric: tabular-nums; }

.catNote { display: flex; gap: 8px; margin-top: 11px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.catNote > i {
  flex: 0 0 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; font-style: normal; color: var(--gold); border: 1px solid rgba(232,201,143,.4);
}

.resTypes { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; color: var(--dim); flex-wrap: wrap; }
.resTypes > span { letter-spacing: .06em; }
.resTypes em { font-style: normal; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); color: var(--text); }
.resTypesGo { margin-left: auto; color: var(--gold); cursor: pointer; border-bottom: 1px dashed rgba(232,201,143,.45); font-style: normal; }
.typeChip { color: var(--cyan); border-color: rgba(127,220,240,.35); background: rgba(127,220,240,.1); }

@media (max-width: 900px) {
  .catStats { grid-template-columns: 1fr 1fr; }
  .catBody { grid-template-columns: 1fr !important; }
  .catDetailWrap { position: static; }
  .catGrid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); max-height: 34vh; }
  .catSearch { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .catStats { grid-template-columns: 1fr 1fr; gap: 7px; }
  .catStats .catProg:last-child { display: none; }
  .catHint { padding: 10px; }
  .catProg b { font-size: 16px; }
  .catGrid { grid-template-columns: 1fr 1fr; max-height: 26vh; gap: 7px; }
  .catCard { padding: 7px 8px; gap: 5px; }
  .catShape { flex: 0 0 34px; height: 40px; }
  .catShape .acSilhouette { width: 32px; height: 36px; }
  .catMeta b { font-size: 12px; }
  .catMeta span, .catMeta em { font-size: 9px; }
  .catHero { flex-direction: column; align-items: flex-start; }
  .catBig { flex: none; height: 96px; }
  .catSpecs { grid-template-columns: 1fr 1fr; }
  .catSim > span { flex: 0 0 100%; }
  .catHeroText b { font-size: 17px; }
  .catalogCount { display: none; }
  .topActions { gap: 5px; }
  .topActions .btn { padding: 4px 8px; font-size: 10.5px; }
}
/* ============================= v1.8.0 转化与关卡包 ============================= */
.upsellCard {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 13px 15px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(232,201,143,.16), rgba(232,201,143,.05) 55%, rgba(127,220,240,.08));
  border: 1px solid rgba(232,201,143,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.upsellTxt { min-width: 0; flex: 1 1 auto; }
.upsellTxt .kicker { font-size: 10px; letter-spacing: .14em; color: var(--gold); }
.upsellTxt b { display: block; margin: 3px 0 4px; font-size: 16px; }
.upsellTxt b em { font-style: normal; font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.upsellTxt > em { font-size: 10.5px; color: var(--muted); font-style: normal; line-height: 1.5; }
.upsellCard .btn { flex: 0 0 auto; white-space: nowrap; }

/* v1.8.36 免费试飞结算 */
.trialCard {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 13px 15px;
  border-radius: var(--r-lg);
  background: linear-gradient(125deg, rgba(127,220,240,.14), rgba(127,220,240,.04) 55%, rgba(232,201,143,.12));
  border: 1px solid rgba(127,220,240,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.trialTxt { min-width: 0; flex: 1 1 auto; }
.trialTxt .kicker { font-size: 10px; letter-spacing: .14em; color: var(--cyan); }
.trialTxt b { display: block; margin: 3px 0 4px; font-size: 16px; }
.trialTxt span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.trialCard .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 860px) {
  .trialCard { flex-direction: column; align-items: flex-start; }
  .trialCard .btn { width: 100%; }
}

/* v1.8.37 自定义情景本地最佳 */
.customRunRow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding: 10px 14px;
  border-radius: 15px; background: rgba(232,201,143,.07); border: 1px solid rgba(232,201,143,.20);
}
.customRunRow span { font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.customRunRow b { font-size: 15px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.customRunRow em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); }
.customRunRow .btn { flex: 0 0 auto; }
@media (max-width: 860px) {
  .customRunRow em { margin-left: 0; flex: 1 1 100%; }
  .customRunRow .btn { margin-left: auto; }
}

/* v1.8.31 结算页社交证明 */
.proofCard {
  margin-top: 12px; padding: 12px 15px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(127,220,240,.09), rgba(232,201,143,.05));
  border: 1px solid rgba(127,220,240,.22);
}
.proofHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.proofHead b { font-size: 12.5px; color: var(--text); }
.proofHead em { font-style: normal; font-size: 9.5px; color: var(--muted); }
.proofStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.proofStats > div {
  padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 2px;
}
.proofStats span { font-size: 9px; letter-spacing: .1em; color: var(--dim); }
.proofStats b { font-size: 18px; color: #7fdcf0; font-variant-numeric: tabular-nums; }
.proofStats em { font-style: normal; font-size: 9px; color: var(--muted); }
.proofLine { margin: 9px 0 0; font-size: 10px; color: var(--muted); line-height: 1.55; }
.proofEmpty { display: flex; flex-direction: column; gap: 3px; margin-top: 7px; }
.proofEmpty b { font-size: 12px; color: var(--text); }
.proofEmpty span { font-size: 10px; color: var(--muted); }
.upsellProof { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 5px; }
.upsellProof span {
  padding: 2px 8px; border-radius: 999px; font-size: 9.5px; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.upsellProof b { display: inline; margin: 0; font-size: 11px; color: var(--gold); }
@media (max-width: 480px) {
  .proofStats { grid-template-columns: 1fr 1fr; }
  .proofStats > div:last-child { grid-column: 1 / -1; }
}

.packHero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pack) 22%, transparent), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--pack) 40%, transparent);
}
.packHero .kicker { font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.packHero b { display: block; font-size: 22px; margin: 4px 0 5px; }
.packHero em { font-size: 11px; color: var(--muted); font-style: normal; }
.packPrice { text-align: right; flex: 0 0 auto; }
.packPrice b { font-size: 22px; color: var(--gold); margin: 0 0 3px; font-variant-numeric: tabular-nums; }
.packPrice span { font-size: 10px; color: var(--dim); }
.packStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.packStats > div { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); }
.packStats span { display: block; font-size: 9.5px; color: var(--dim); }
.packStats b { font-size: 13px; }
.packAirports { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.packAirports span {
  padding: 3px 9px; border-radius: 999px; font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
}
.lvTier.dlc { color: #bcd0ff; border-color: rgba(169,198,255,.4); background: rgba(169,198,255,.1); }
.lvTier.lvpass { color: #7fdcf0; border-color: rgba(127,220,240,.42); background: rgba(127,220,240,.1); }

/* v1.8.28 等级通行证：关卡库顶部与成长弹层 */
.lvPassBar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 13px; margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(127,220,240,0.18);
  background: rgba(127,220,240,0.045);
}
.lvPassBar b { font-size: 11px; color: #7fdcf0; letter-spacing: 0.08em; white-space: nowrap; }
.lvPassBar span { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.lvPassBar i {
  font-style: normal; font-size: 10.5px; color: rgba(233,238,248,0.40);
  padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap; flex: 0 0 auto;
}
.lvPassBar i.on { color: #7fdcf0; border-color: rgba(127,220,240,0.32); background: rgba(127,220,240,0.08); }
.lvPassBar em { font-style: normal; margin-left: auto; font-size: 10.5px; color: var(--muted); }

/* v1.8.33 我的情景：关卡库顶部的自定义情景入口 */
.lvCustomBar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 10px; border-radius: 14px;
  border: 1px solid rgba(232,201,143,0.2); background: rgba(232,201,143,0.05);
}
.lvCustomBar > b { flex: 0 0 auto; font-size: 11px; color: var(--gold); letter-spacing: 0.08em; }
.lvCustomList { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.lvCustomChip {
  appearance: none; font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 210px;
  padding: 5px 9px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.035); color: var(--muted);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lvCustomChip:hover { border-color: rgba(232,201,143,0.38); background: rgba(232,201,143,0.09); }
.lvCustomChip b { font-size: 11px; color: #f2e6cc; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvCustomChip span { font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.passCard {
  padding: 12px 14px; margin-bottom: 12px;
  border-radius: 16px; border: 1px solid rgba(127,220,240,0.18);
  background: rgba(127,220,240,0.04);
}
.passHead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.passHead b { font-size: 13px; color: var(--text); }
.passHead em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.passGrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.passItem {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.passItem.on { background: rgba(127,220,240,0.07); border-color: rgba(127,220,240,0.26); }
.passItem > i {
  font-style: normal; font-size: 9.5px; color: var(--muted);
  min-width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
}
.passItem.on > i { color: #7fdcf0; border-color: rgba(127,220,240,0.36); }
.passItem div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.passItem b { font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passItem span { font-size: 9.5px; color: var(--muted); }
.passItem em { margin-left: auto; font-style: normal; font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.passItem.on em { color: #7fdcf0; }
.lvRow.locked .lvMain em { color: var(--dim); }

/* v1.8.30 连签 7 天：成长卡 + 关卡库条 */
.streakCard {
  padding: 13px 15px; margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(232,201,143,0.22);
  background: linear-gradient(110deg, rgba(232,201,143,0.10), rgba(127,220,240,0.035));
}
.streakHead { display: flex; align-items: baseline; gap: 10px; }
.streakHead b { font-size: 13px; color: var(--text); }
.streakHead em { font-style: normal; font-size: 10.5px; color: var(--gold); }
.streakDays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.streakDay {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07);
}
.streakDay i { font-style: normal; font-size: 10px; color: var(--dim); }
.streakDay span { font-size: 8px; color: var(--dim); letter-spacing: 0.04em; }
.streakDay.on { background: rgba(127,220,240,0.09); border-color: rgba(127,220,240,0.28); }
.streakDay.on i, .streakDay.on span { color: #7fdcf0; }
.streakDay.goal { border-color: rgba(232,201,143,0.26); }
.streakDay.goal.on, .streakDay.goal { background: rgba(232,201,143,0.08); }
.streakDay.goal span { color: var(--gold); font-size: 9.5px; font-weight: 700; }
.streakFoot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 9px; }
.streakFoot b { font-size: 10.5px; color: var(--gold); }
.streakFoot span { font-size: 9.5px; color: var(--dim); }
.streakBar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 8px 13px; margin-bottom: 10px; border-radius: 13px;
  border: 1px solid rgba(232,201,143,0.18); background: rgba(232,201,143,0.045);
}
.streakBar b { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--gold); white-space: nowrap; }
.streakBar b i {
  font-style: normal; font-size: 9px; width: 19px; height: 19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #0a0f18; background: linear-gradient(180deg, #f3e3c4, var(--gold));
}
.streakBar span { font-size: 9.5px; color: var(--muted); }
.streakBar em { margin-left: auto; font-style: normal; font-size: 9.5px; color: var(--dim); }
@media (max-width: 480px) {
  .streakDays { gap: 4px; }
  .streakDay { height: 32px; flex-direction: column; gap: 1px; }
  .streakBar em { margin-left: 0; width: 100%; }
}

@media (max-width: 900px) {
  .upsellCard { flex-direction: column; align-items: flex-start; }
  .upsellCard .btn { width: 100%; }
  .packHero { flex-direction: column; align-items: flex-start; }
  .packPrice { text-align: left; }
}
@media (max-width: 480px) {
  .upsellTxt b { font-size: 14px; }
  .upsellTxt b em { font-size: 19px; }
  .packStats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .packHero b { font-size: 18px; }
}
/* ================= v1.8.1 多存档 ================= */
.saveHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.saveHead > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.saveHead b { font-size: 20px; letter-spacing: 0.02em; }
.saveHead span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.saveHint { max-width: 52ch; font-size: 11.5px; line-height: 1.7; color: var(--dim); }
.saveGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 12px; }
.saveCard {
  display: flex; flex-direction: column; gap: 9px;
  padding: 13px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), transform 0.22s var(--spring);
}
.saveCard:hover { background: rgba(255, 255, 255, 0.07); }
.saveCard.active {
  border-color: rgba(246, 231, 195, 0.42);
  background: linear-gradient(160deg, rgba(246, 231, 195, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.saveTop { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.saveName { font-size: 15px; letter-spacing: 0.01em; }
.saveActive { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; color: #f6e7c3; background: rgba(246, 231, 195, 0.16); border: 1px solid rgba(246, 231, 195, 0.3); }
.saveTime { margin-left: auto; font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.saveStats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.saveStats > div { padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.saveStats span { display: block; font-size: 9.5px; letter-spacing: 0.08em; color: var(--dim); }
.saveStats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.saveActs { display: flex; flex-wrap: wrap; gap: 6px; }
.saveEmpty { padding: 22px 16px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.16); font-size: 12px; color: var(--dim); text-align: center; }
.saveAddCard {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; padding: 16px; border-radius: 18px; cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dim); font: inherit;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), color 0.24s var(--ease);
}
.saveAddCard:hover { border-color: rgba(246, 231, 195, 0.4); background: rgba(246, 231, 195, 0.05); color: var(--gold); }
.saveAddCard i { font-style: normal; font-size: 22px; line-height: 1; }
.saveAddCard span { font-size: 11.5px; }
.saveNameInput { height: 28px !important; font-size: 13px; padding: 0 8px; }
.saveSection { padding: 18px; }
.saveRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); }
.saveRow b { display: block; font-size: 13px; }
.saveRow span { display: block; margin-top: 3px; font-size: 11px; color: var(--dim); }
.xpSave { margin-top: 7px; font-size: 11px; color: var(--dim); }
@media (max-width: 600px) {
  .saveStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saveGrid { grid-template-columns: 1fr; }
  .saveHead b { font-size: 17px; }
}

/* v1.8.2 存档体验：上次游玩、行内确认、载入遮罩 */
.saveLast{font-size:11.5px;color:var(--dim);margin:-2px 0 8px;line-height:1.5}
.saveLast b{color:var(--gold);font-family:var(--mono);font-weight:600}
.saveConfirm{display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%;padding:7px 9px;border-radius:10px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);animation:saveConfirmIn .18s ease}
.saveConfirm span{font-size:11.5px;color:var(--dim);flex:1 1 130px;line-height:1.45}
@keyframes saveConfirmIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.saveMask{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:rgba(8,10,14,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);animation:saveMaskIn .22s ease}
.saveMaskBox{display:flex;flex-direction:column;align-items:center;gap:9px;padding:26px 34px;border-radius:18px;background:rgba(24,27,34,.92);border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 70px rgba(0,0,0,.5);text-align:center}
.saveMaskBox b{font-size:14px;letter-spacing:.02em}
.saveMaskBox span{font-size:11.5px;color:var(--dim)}
.saveSpin{width:26px;height:26px;border-radius:50%;border:2px solid rgba(240,198,116,.28);border-top-color:var(--gold);animation:saveSpin .8s linear infinite}
@keyframes saveSpin{to{transform:rotate(360deg)}}
@keyframes saveMaskIn{from{opacity:0}to{opacity:1}}
@media (max-width:600px){
  .saveMaskBox{padding:20px 24px}
  .saveConfirm span{flex:1 1 100%}
}
/* v1.8.2 存档卡五动作收在一行 */
.saveActs{gap:5px}
.saveActs .btn.small{padding:5px 9px;font-size:11.5px;letter-spacing:0}
/* ---------------- 特殊事件设置 ---------------- */
.specialBox {
  margin-top: 8px;
  padding: 2px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.specialBox .hsSwitchRow { border-top: none; }
.spTypes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.spChip {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.spChip.on { color: var(--gold); border-color: rgba(232, 201, 143, 0.34); background: rgba(232, 201, 143, 0.09); }
.spRate { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.spFoot { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--dim); }
.spFoot b { color: var(--text); }
.strip.special { box-shadow: inset 0 0 0 1px rgba(232, 201, 143, 0.32); }
.strip.special .cs { color: #ffd89a; }
/* ---------------- v1.8.11 手机三视图 ---------------- */
.mobileNav { display: none; }

@media (max-width: 860px) {
  html, body { height: 100%; overflow: hidden; }
  .app { height: 100dvh; min-height: 0; padding-bottom: 88px; }
  .layout { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: 8px; }
  .scopeWrap { display: none; height: auto; flex: 1 1 auto; min-height: 0; }
  .side { display: none; flex: 1 1 auto; min-height: 0; overflow: hidden; }

  .layout[data-mview="radar"] .scopeWrap { display: block; }
  .layout[data-mview="cmd"] .side,
  .layout[data-mview="strips"] .side,
  .layout[data-mview="log"] .side { display: flex; flex-direction: column; }

  .layout[data-mview="cmd"] .commandCard { display: flex; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .layout[data-mview="cmd"] .stripCard,
  .layout[data-mview="cmd"] .logCard { display: none; }

  .layout[data-mview="strips"] .stripCard { display: flex; flex: 1 1 auto; min-height: 0; }
  .layout[data-mview="strips"] .commandCard,
  .layout[data-mview="strips"] .logCard { display: none; }

  .layout[data-mview="log"] .logCard { display: flex; flex: 1 1 auto; min-height: 0; }
  .layout[data-mview="log"] .commandCard,
  .layout[data-mview="log"] .stripCard { display: none; }

  .commandCard .cmdInputRow {
    position: sticky; bottom: 0; z-index: 6;
    margin-top: 4px; padding: 4px;
    background: rgba(10, 15, 24, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(14px);
  }

  .hud { padding: 6px 9px; min-width: 96px; }
  .hudLeft, .hudRight { top: 10px; }
  .hudLeft { left: 10px; }
  .hudRight { right: 10px; }
  .hudLeft .hudRow:nth-child(n+3) { display: none; }
  .hudRow { font-size: 10.5px; }

  .meters .meter:nth-child(3) { display: none; }
  .alerts { bottom: 70px; }
  .toastLayer { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  .mobileNav {
    position: fixed;
    left: 50%;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 92;
    width: calc(100% - 20px);
    max-width: 560px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(9, 14, 22, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px -20px #000;
    backdrop-filter: blur(22px);
  }
  .mobileNav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px;
    padding: 7px 4px 6px;
    border-radius: 15px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .mobileNav button span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
  .mobileNav button i { font-style: normal; font-size: 8px; letter-spacing: 0.12em; color: var(--dim); }
  .mobileNav button.active {
    color: #1b1408;
    background: linear-gradient(180deg, #f3dfb8, #d9b676);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px -10px rgba(232, 201, 143, 0.7);
  }
  .mobileNav button.active i { color: rgba(27, 20, 8, 0.58); }
}
/* 手机三视图细节修正 */
@media (max-width: 860px) {
  .scopeBar .segmented { order: 0; width: auto; overflow: visible; }
  .goalPanel {
    left: 10px; right: auto; bottom: 74px; width: auto;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
  }
  .goalList { display: none; }
  .goalHead { margin-bottom: 0; }
  .goalCombo { display: inline; }
  .alerts { bottom: 124px; }
  .cmdHint { display: none; }
  .commandCard { padding-bottom: 8px; }
  .commandCard .cmdVoiceRow { margin-top: 2px; }
  .strips { gap: 6px; }
  .strip { flex: 0 0 auto; }
}
.mobileStripTip { display: none; }
@media (max-width: 860px) {
  .mobileStripTip {
    display: block; flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(232, 201, 143, 0.06);
    border: 1px solid rgba(232, 201, 143, 0.14);
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.03em;
  }
}
@media (max-width: 860px) {
  .commandCard .cmdVoiceRow { margin: 0 0 2px; }
  .commandCard .cmdVoiceTip { display: none; }
}
/* ---------- 指令卡雷达缩略（移动端画中画） ---------- */
.cmdMini { display: none; }
@media (max-width: 860px) {
  .cmdMini {
    display: block;
    flex: 0 0 auto;
    min-height: 94px;
    margin: 0 0 8px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(5, 9, 16, 0.72);
    border: 1px solid rgba(232, 201, 143, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .cmdMiniHead {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 8px 3px;
    font-size: 10px; letter-spacing: 0.06em;
    color: rgba(233, 238, 248, 0.5);
  }
  .cmdMiniHead span { color: #e8c98f; letter-spacing: 0.1em; }
  .cmdMiniHead b { margin-left: auto; font-weight: 600; color: rgba(233, 238, 248, 0.55); }
  .cmdMiniHead b.bad { color: #ff7d76; }
  .cmdMiniHead button {
    padding: 2px 8px; border-radius: 8px;
    border: 1px solid rgba(232, 201, 143, 0.26);
    background: rgba(232, 201, 143, 0.08);
    color: #e8c98f; font-size: 10px; line-height: 1.5;
  }
  #miniScope { display: block; width: 100%; height: 62px; flex: 0 0 62px; }
}
/* ---------- 320px 极窄屏：顶部操作按钮允许换行 ---------- */
@media (max-width: 360px) {
  .brandText b { font-size: 14px; }
  .topActions {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }
  .topActions .btn { padding: 3px 7px; font-size: 10px; }
  .segmented button { padding: 6px 10px; font-size: 11.5px; }
  .cmdMiniHead span { font-size: 9px; letter-spacing: 0.04em; }
  .cmdMiniHead button { padding: 2px 6px; font-size: 9px; }
}
@media (max-width: 360px) {
  /* 极窄屏指令卡高度不足，输入行不再吸底，避免压住选中参数 */
  .commandCard .cmdInputRow { position: static; bottom: auto; }
}
/* ---------- 回放：按航班筛选 ---------- */
.replayControls .replayFilter {
  flex: 0 0 118px;
  width: 118px;
  padding: 6px 8px;
  font-size: 11.5px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--text);
}
@media (max-width: 760px) {
  .replayControls { flex-wrap: wrap; }
  .replayControls .replayScrub { flex: 1 1 100%; order: 3; width: 100%; }
  .replayControls .replayFilter { flex: 1 1 100%; width: 100%; }
  .boardRow { grid-template-columns: 26px 1fr 52px 40px; gap: 7px; padding: 8px 10px; font-size: 11.5px; }
  .seasonTop em { margin-left: 0; }
}
/* 等级通行证窄屏 */
@media (max-width: 600px) {
  .passGrid { grid-template-columns: 1fr; }
  .lvPassBar em { margin-left: 0; width: 100%; }
  .lvCustomBar > b { width: 100%; }
  .lvCustomChip { max-width: 100%; }
}

/* 手机弹层让出底部导航，长弹层不再遮住按钮 */
@media (max-width: 860px) {
  .modal { max-height: calc(100dvh - 180px); }
}
