/* ==========================================================================
   04 · 智擎·质控（现代新能源座舱 × 精密仪器数据美学风）
   色板：瓷感冷钛灰 #F2F4F8 | 纯白 #FFFFFF | 深邃钛黑座舱 #0B101B -> #131C2E
        精密钴蓝 #1D4ED8 / #3B82F6 | 遥测绿 #059669 | 告警绯红 #E11D48
   ========================================================================== */

:root {
  --t: 1;
  --bg: #F2F4F8;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --cockpit-0: #0B101B;
  --cockpit-1: #131C2E;
  --cockpit-line: rgba(148, 163, 184, 0.16);

  --blue: #1D4ED8;
  --blue-bright: #3B82F6;
  --blue-soft: rgba(29, 78, 216, 0.09);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.1);
  --crimson: #E11D48;
  --crimson-soft: rgba(225, 29, 72, 0.09);
  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, 0.1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: #090D16;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------------- 桌面暗夜科技画廊评审台 (≥900px) ---------------- */
.cockpit-studio {
  min-height: 100vh;
  display: flex;
  background: radial-gradient(circle at 72% 18%, #162136 0%, #090D16 68%);
}

.cockpit-rail {
  width: 344px;
  flex-shrink: 0;
  background: rgba(13, 19, 31, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}

.c-rail-head {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.c-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 8px;
  border-radius: 99px;
}

.c-title {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.c-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #94A3B8;
}

.c-rail-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 20px;
}

.c-group + .c-group {
  margin-top: 16px;
}

.c-group-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #64748B;
  margin-bottom: 7px;
  padding-left: 6px;
}

.c-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #CBD5E1;
  transition: all 0.16s var(--ease);
}

.c-link span {
  font-family: var(--mono);
  font-size: 10px;
  color: #475569;
  width: 18px;
  flex-shrink: 0;
}

.c-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.c-link.is-active {
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.38), rgba(59, 130, 246, 0.14));
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #FFFFFF;
  font-weight: 600;
}

.c-link.is-active span {
  color: #60A5FA;
}

.c-ctrl-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #CBD5E1;
}

.c-seg {
  display: inline-flex;
  background: #090D16;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.c-seg button {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  color: #94A3B8;
}

.c-seg button.is-active {
  background: var(--blue-bright);
  color: #fff;
  font-weight: 600;
}

.c-auth-pill {
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(5, 150, 105, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.c-auth-pill.is-guest {
  background: rgba(225, 29, 72, 0.2);
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.c-rail-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #64748B;
  line-height: 1.5;
}

.c-disc {
  margin-top: 3px;
  font-size: 10.5px;
  color: #475569;
}

/* 钛金属手机展示台 */
.cockpit-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  min-width: 0;
}

.titanium-frame {
  width: 398px;
  padding: 8px;
  border-radius: 48px;
  background: linear-gradient(155deg, #475569 0%, #1E293B 45%, #0F172A 100%);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.titanium-inner {
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
}

.app-shell {
  width: 382px;
  height: 816px;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage-foot-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #64748B;
}

/* ---------------- 顶部状态栏 & 导航栏 ---------------- */
.wx-bar {
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cockpit-0);
  color: #F8FAFC;
  position: relative;
  flex-shrink: 0;
  z-index: 30;
  transition: background 0.2s ease, color 0.2s ease;
}

/* 仅保留右侧图标，在深色桌面模式下保持高对比 */
.bar-right svg {
  color: #F8FAFC;
}

.bar-time {
  font-size: 14px;
  font-weight: 600;
}

.bar-notch {
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: #020617;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  color: inherit;
}

.bar-right svg {
  fill: currentColor;
}

.bar-bat {
  width: 22px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid currentColor;
  padding: 1.5px;
  position: relative;
}

.bar-bat::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 1.5px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

.bar-bat i {
  display: block;
  width: 82%;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.wx-nav {
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cockpit-0);
  color: #F8FAFC;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
  z-index: 29;
  transition: all 0.2s ease;
}

.nav-left {
  min-width: 92px;
  display: flex;
  align-items: center;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}

.nav-brand-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #93C5FD;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.16);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: calc(15px * var(--t));
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wx-cap {
  width: 86px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.cap-d {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 22px;
}

.cap-d span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
}

.cap-d span:nth-child(2) { width: 4px; height: 4px; }

.cap-s {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.24);
}

.cap-o {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: grid;
  place-items: center;
}

.cap-o span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

/* 浅色导航态（非首页驾驶舱时可选切换） */
.app-shell.is-light-nav .wx-bar,
.app-shell.is-light-nav .wx-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border-bottom-color: var(--border);
}

.app-shell.is-light-nav .nav-brand-chip {
  background: var(--blue-soft);
  color: var(--blue);
}

.app-shell.is-light-nav .wx-cap {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--border-strong);
}

.app-shell.is-light-nav .cap-d span,
.app-shell.is-light-nav .cap-o span { background: var(--ink); }
.app-shell.is-light-nav .cap-o { border-color: var(--ink); }
.app-shell.is-light-nav .cap-s { background: var(--border-strong); }

/* ---------------- 主视口 & 悬浮胶囊 TabBar ---------------- */
.app-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  padding-bottom: 84px;
}

.app-viewport.no-tab {
  padding-bottom: 24px;
}

.app-viewport::-webkit-scrollbar {
  width: 3px;
}

.app-viewport::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.14);
  border-radius: 99px;
}

.float-tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.16),
    inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 6px;
  z-index: 25;
}

.float-tabbar.is-hidden {
  display: none;
}

.ft-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 46px;
  border-radius: 14px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
  transition: all 0.18s var(--ease);
}

.ft-btn svg {
  width: 20px;
  height: 20px;
}

.ft-btn.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 700;
}

/* ---------------- 通用卡片、按钮、徽章 ---------------- */
.pad {
  padding: 12px 14px 20px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.p-card + .p-card {
  margin-top: 10px;
}

.p-pad {
  padding: 13px 14px;
}

.p-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 9px;
}

.p-sec-title {
  margin: 0;
  font-size: calc(15px * var(--t));
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.p-sec-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 99px;
  background: var(--blue);
}

.p-sec-link {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: calc(13px * var(--t));
  font-weight: 600;
  transition: transform 0.14s ease, background 0.14s ease;
}

.c-btn:active { transform: scale(0.98); }
.c-btn-blue { background: var(--blue); color: #fff; }
.c-btn-crimson { background: var(--crimson); color: #fff; }
.c-btn-dark { background: var(--cockpit-0); color: #fff; }
.c-btn-green { background: var(--green); color: #fff; }
.c-btn-outline { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); }
.c-btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }
.c-btn-sm { min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: calc(11.5px * var(--t)); }
.c-btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-crimson { background: var(--crimson-soft); color: var(--crimson); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-muted { background: #EEF2F6; color: var(--ink-2); }
.pill-dark { background: var(--cockpit-0); color: #E2E8F0; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-chip {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.p-chip.is-on {
  background: var(--blue-soft);
  border-color: rgba(29, 78, 216, 0.35);
  color: var(--blue);
  font-weight: 600;
}

/* ---------------- 标志性首屏：暗夜钛黑「爱车健康驾驶舱」 ---------------- */
.cockpit-hero {
  background: linear-gradient(175deg, var(--cockpit-0) 0%, var(--cockpit-1) 100%);
  color: #F8FAFC;
  padding: 10px 14px 18px;
  border-radius: 0 0 22px 22px;
  position: relative;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-car-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.hero-car-pill {
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.hero-car-pill.is-active {
  background: rgba(59, 130, 246, 0.24);
  color: #FFFFFF;
  border-color: rgba(96, 165, 250, 0.55);
}

.hero-msg-bell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #E2E8F0;
  white-space: nowrap;
}

.hero-car-stage {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #0D131F;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-car-photo-wrap {
  position: relative;
  height: 148px;
  background: #0D131F;
  overflow: hidden;
}

.hero-car-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

/* 车图底部轻柔融边，文字区完全在下方独立区域，绝不遮挡车身 */
.hero-car-photo-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, #0D131F);
}

.hero-telemetry-bar {
  padding: 10px 12px 12px;
  background: #0D131F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-model-name {
  font-size: calc(15.5px * var(--t));
  font-weight: 700;
  color: #FFFFFF;
}

.hero-ota-line {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #93C5FD;
}

.health-gauge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gauge-ring {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
}

.gauge-val {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #34D399;
}

.hero-recall-bar {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  color: #FFE4E6;
}

.hero-action-pair {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

/* ---------------- 7 日质量脉搏 & OTA 异动看板 ---------------- */
.pulse-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ota-board-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.ota-board-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ---------------- 分段控制器 & 表单 & 可视化车身分区 ---------------- */
.seg-control {
  display: flex;
  background: #E2E8F0;
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
}

.seg-item {
  flex: 1;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: calc(12px * var(--t));
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
}

.seg-item.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.f-group {
  margin-bottom: 11px;
}

.f-label {
  display: flex;
  justify-content: space-between;
  font-size: calc(12px * var(--t));
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}

.f-input, .f-select, .f-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: calc(13px * var(--t));
  outline: none;
}

.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.f-textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.5;
}

.zone-picker-box {
  background: var(--cockpit-0);
  color: #E2E8F0;
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 12px;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.zone-btn {
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 11px;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.zone-btn.is-active {
  background: var(--blue);
  color: #fff;
  border-color: #60A5FA;
  font-weight: 600;
}

/* ---------------- 角色权限透视bar ---------------- */
.perm-console {
  background: var(--cockpit-0);
  color: #F8FAFC;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.perm-tab {
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.07);
}

.perm-tab.is-active {
  background: var(--blue-bright);
  color: #fff;
}

.kv-list .kv-r {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: calc(12.5px * var(--t));
}

.kv-list .kv-r:last-child { border-bottom: none; }
.kv-k { color: var(--ink-3); flex-shrink: 0; }
.kv-v { font-weight: 600; text-align: right; word-break: break-all; }
.kv-v.is-hot { color: var(--crimson); font-family: var(--mono); }

/* ---------------- 投诉卡片 & 车型卡片 ---------------- */
.c-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  box-shadow: var(--shadow);
  width: 100%;
  text-align: left;
  display: block;
}

.c-card + .c-card { margin-top: 10px; }

.c-card-img {
  width: 82px;
  height: 58px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--cockpit-0);
  flex-shrink: 0;
}

.c-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-dark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.m-dark-card + .m-dark-card { margin-top: 12px; }

.m-dark-stage {
  background: #0D131F;
  height: 152px;
  position: relative;
  overflow: hidden;
}

.m-dark-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-dark-body { padding: 12px 14px; }

/* ---------------- 弹层与 Toast ---------------- */
.c-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.54);
  backdrop-filter: blur(3px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.c-backdrop.is-open { opacity: 1; pointer-events: auto; }

.c-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85%;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.2);
}

.c-sheet[hidden] { display: none; }

.c-grip {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #CBD5E1;
  margin: 9px auto 4px;
}

.c-sheet-head {
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-sheet-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }

.c-sheet-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink-2);
}

.c-sheet-body {
  padding: 14px 16px 26px;
  overflow-y: auto;
  font-size: calc(13px * var(--t));
  line-height: 1.55;
}

.c-toast {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(11, 16, 27, 0.94);
  color: #fff;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  max-width: 320px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: all 0.2s ease;
}

.c-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.avatar-4x3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.av-opt {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.av-opt.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* ---------------- 移动端全屏响应式 (<900px) ---------------- */
@media (max-width: 899px) {
  .cockpit-rail, .stage-foot-note { display: none; }
  .cockpit-studio { display: block; background: var(--bg); }
  .cockpit-stage { padding: 0; display: block; }
  .titanium-frame { width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .titanium-inner { border-radius: 0; }
  .app-shell { width: 100%; height: 100vh; height: 100dvh; }
}
