/* ==========================================================================
   润沐科技 · RUNMU CINEMA AI STUDIO
   好莱坞暗房审片室视觉系统（黑曜石哑光底 + 变形宽银幕钨丝流光金 + 胶片导播台架构）
   ========================================================================== */

/* 全局盒模型锁定：杜绝任何输入框/文本域/容器因 padding 撑破外框 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 隐藏原版旧海岸背景与旧侧栏残留 */
body.mode-workbench .wb-coast-stage,
.wb-coast-stage,
.stage-anamorphic-backdrop,
.studio-sidebar,
.wb-account-capsule {
  display: none !important;
}

:root,
body,
body.mode-workbench {
  --shell-bg: #060609;
  --stage-bg: #090a0e;
  --panel-bg: rgba(16, 17, 23, 0.9);
  --panel-hover: rgba(24, 26, 35, 0.95);
  --glass-card: rgba(15, 16, 22, 0.92);
  --inset-bg: rgba(8, 9, 13, 0.86);
  --line-faint: rgba(255, 255, 255, 0.07);
  --line-subtle: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(229, 184, 105, 0.16);
  --line-strong: rgba(229, 184, 105, 0.42);
  --spec-top: inset 0 1px 0 rgba(255, 240, 205, 0.08);
  --txt-hi: #f7f4ed;
  --txt-mid: #b8b3a8;
  --txt-lo: #7e7a70;
  --cta-white: #e5b869;
  --cta-ink: #090806;
  --ok-green: #34d399;
  --warn-amber: #f59e0b;
  --purple-bg: rgba(229, 184, 105, 0.11);
  --purple-line: rgba(229, 184, 105, 0.28);
  --purple-txt: #f3d393;

  background:
    radial-gradient(62% 46% at 16% 6%, rgba(226, 176, 94, 0.11) 0%, transparent 68%),
    radial-gradient(54% 48% at 88% 92%, rgba(72, 102, 148, 0.08) 0%, transparent 66%),
    #060609 !important;
  color: #f7f4ed !important;
}

/* ==========================================================================
   1. 全宽顶部电影导播台导航舱 (Top Cinema Studio Header)
   ========================================================================== */
.rm-cinema-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rm-cinema-topbar {
  position: sticky;
  top: 0;
  z-index: 85;
  min-height: 66px;
  padding: 8px 20px;
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  border-bottom: 1px solid rgba(229, 184, 105, 0.2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rm-topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rm-brand-trigger {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.rm-brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1d1e27 0%, #090a0e 100%);
  border: 1px solid rgba(229, 184, 105, 0.58);
  color: #f5d798;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 240, 205, 0.22);
}

.rm-brand-text-col {
  display: flex;
  flex-direction: column;
}

.rm-brand-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #faf7f0;
  line-height: 1.2;
}

.rm-brand-eng {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(229, 184, 105, 0.75);
  margin-top: 2px;
}

/* 居中胶片轨道分段导航 */
.rm-topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rm-top-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #b8b3a8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.rm-top-tab:hover {
  color: #faf7f0;
  background: rgba(255, 255, 255, 0.05);
}

.rm-top-tab.active {
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.24) 0%, rgba(229, 184, 105, 0.08) 100%);
  border-color: rgba(229, 184, 105, 0.48);
  color: #f7dfa4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.rm-tab-count {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

/* 顶栏右侧算力金库与操作区 */
.rm-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.rm-icon-pill {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #dedad0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.rm-icon-pill:hover {
  border-color: rgba(229, 184, 105, 0.5);
  color: #f7dfa4;
  background: rgba(229, 184, 105, 0.1);
}

.rm-compute-capsule {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 3px 4px 3px 12px;
  border-radius: 999px;
  background: rgba(14, 15, 20, 0.95);
  border: 1px solid rgba(229, 184, 105, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.1);
  gap: 10px;
}

.rm-compute-readout {
  border: none;
  background: transparent;
  padding: 0;
  color: #f7f4ed;
  font-size: 12.5px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.rm-compute-readout .rm-bolt {
  color: #e5b869;
  font-size: 13px;
}

.rm-compute-readout strong {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #f7dfa4;
}

.rm-compute-readout .rm-unit {
  font-size: 11.5px;
  color: #a8a296;
}

.rm-capsule-topup-btn {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f5d798 0%, #dca64f 55%, #b67e29 100%);
  color: #090806;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.16s ease;
}

.rm-capsule-topup-btn:hover {
  filter: brightness(1.08);
}

.rm-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rm-user-email-btn {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dedad0;
  font-size: 12px;
  cursor: pointer;
}

.rm-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dca64f, #8f5f1a);
  color: #090806;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rm-user-label {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-logout-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #9b968b;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rm-logout-icon-btn:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

/* ==========================================================================
   2. 全宽片场画布容器（彻底解除原版 248px 侧栏留白束缚）
   ========================================================================== */
.studio-stage-wrap,
.studio-stage-wrap.is-dashboard {
  padding: 24px 32px 72px !important;
  min-height: calc(100vh - 68px) !important;
  width: 100% !important;
}

.studio-stage {
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.stage-body {
  max-width: 1380px !important;
  padding: 8px 0 40px !important;
}

/* ==========================================================================
   3. 制片主控台全新非对称三段式电影布局 (Director Production Deck)
   ========================================================================== */
.rm-cinema-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rm-cinema-kicker {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #e5b869;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-live-amber-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.rm-cinema-title {
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  font-size: 26px;
  font-weight: 800;
  color: #faf7f0;
  margin: 0;
  letter-spacing: 0.01em;
}

.rm-smpte-readout {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #9e998e;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rm-smpte-sep {
  color: #e5b869;
}

/* 第一层：左宽屏导演主舱 + 右双层工作舱 */
.rm-cinema-hero-grid {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
  align-items: stretch;
}

.rm-stage-main-card {
  position: relative;
  border-radius: 22px;
  padding: 30px 32px;
  background:
    radial-gradient(95% 85% at 0% 0%, rgba(229, 184, 105, 0.15) 0%, rgba(180, 122, 42, 0.04) 52%, transparent 80%),
    linear-gradient(165deg, #15161f 0%, #0b0c11 100%);
  border: 1px solid rgba(229, 184, 105, 0.34);
  box-shadow: 0 28px 64px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 240, 205, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

/* 电影取景框金角 */
.rm-stage-main-card::before,
.rm-stage-main-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(245, 215, 152, 0.68);
  border-style: solid;
  pointer-events: none;
}
.rm-stage-main-card::before {
  top: 14px;
  left: 14px;
  border-width: 1.5px 0 0 1.5px;
}
.rm-stage-main-card::after {
  bottom: 14px;
  right: 14px;
  border-width: 0 1.5px 1.5px 0;
}

.rm-stage-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rm-track-tag {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f5d798;
}

.rm-track-tag.muted {
  color: #a8a296;
}

.rm-gold-rate-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(229, 184, 105, 0.14);
  border: 1px solid rgba(229, 184, 105, 0.36);
  color: #f7dfa4;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rm-stage-hero-heading {
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  font-size: clamp(24px, 2.5vw, 33px);
  font-weight: 800;
  line-height: 1.25;
  color: #faf7f0;
  margin: 0;
}

.rm-stage-hero-heading span {
  background: linear-gradient(95deg, #fff2d2 0%, #e5b869 55%, #c48d37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rm-stage-hero-desc {
  font-size: 14px;
  line-height: 1.72;
  color: #b8b3a8;
  margin: -6px 0 0;
}

.rm-two-act-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.rm-act-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(6, 7, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.rm-act-code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #e5b869;
  margin-bottom: 4px;
}

.rm-act-title {
  font-size: 14px;
  font-weight: 700;
  color: #f6f3ec;
  margin-bottom: 3px;
}

.rm-act-meta {
  font-size: 12px;
  color: #8f8a7f;
}

.rm-act-arrow {
  color: #e5b869;
  font-size: 18px;
  opacity: 0.75;
}

.rm-hero-cta-btn {
  width: 100%;
  height: 48px !important;
  font-size: 15px !important;
  letter-spacing: 0.03em;
}

/* 右侧双层精密工作舱 */
.rm-stage-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rm-side-card {
  border-radius: 20px;
  padding: 20px 22px;
  background: linear-gradient(165deg, rgba(20, 21, 28, 0.9) 0%, rgba(11, 12, 17, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.8), var(--spec-top);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rm-side-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rm-free-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 600;
}

.rm-side-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #faf7f0;
  margin: 0 0 4px;
}

.rm-side-card-desc {
  font-size: 12.5px;
  color: #9e998e;
  line-height: 1.55;
  margin: 0 0 14px;
}

.rm-import-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rm-import-tile {
  text-align: left;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(7, 8, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f6f3ec;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.18s ease;
}

.rm-import-tile:hover {
  border-color: rgba(229, 184, 105, 0.55);
  background: rgba(229, 184, 105, 0.08);
  transform: translateY(-1px);
}

.rm-import-tile-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

.rm-import-tile-name {
  font-size: 13px;
  font-weight: 700;
  color: #faf7f0;
}

.rm-import-tile-sub {
  font-size: 11px;
  color: #8f8a7f;
}

/* 算力金库微舱 */
.rm-vault-balance-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.rm-vault-num {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 26px;
  font-weight: 800;
  color: #f5d798;
  letter-spacing: -0.02em;
}

.rm-vault-balance-line span {
  font-size: 12px;
  color: #9e998e;
}

.rm-mini-ledger {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rm-mini-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.rm-mini-ledger-title {
  color: #b8b3a8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-mini-ledger-delta {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 700;
  white-space: nowrap;
}

.rm-mini-ledger-delta.plus { color: #34d399; }
.rm-mini-ledger-delta.minus { color: #f5d798; }

/* 第二层 & 第三层公共标题栏 */
.rm-production-shelf {
  margin-bottom: 28px;
}

.rm-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rm-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rm-section-code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(229, 184, 105, 0.14);
  border: 1px solid rgba(229, 184, 105, 0.34);
  color: #f5d798;
}

.rm-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #faf7f0;
  margin: 0;
}

.rm-section-sub {
  font-size: 12.5px;
  color: #858075;
}

.rm-ep-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.rm-empty-reel-strip {
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(15, 16, 22, 0.78);
  border: 1px dashed rgba(229, 184, 105, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #a8a296;
}

/* 第三层：多列摄影机规格卡风格模型矩阵 */
.rm-engine-matrix-panel {
  border-radius: 22px;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(16, 17, 23, 0.88) 0%, rgba(10, 11, 15, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px -22px rgba(0, 0, 0, 0.85), var(--spec-top);
}

.rm-engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.rm-engine-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 18px 18px 16px !important;
  border-radius: 16px !important;
  background: rgba(8, 9, 13, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease !important;
}

.rm-engine-card:hover {
  border-color: rgba(229, 184, 105, 0.45) !important;
  background: rgba(18, 19, 26, 0.92) !important;
  transform: translateY(-2px);
}

.rm-engine-card-foot {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

/* ==========================================================================
   4. 全局按钮、胶囊、片场控台与充值弹窗流光香槟金统一质感
   ========================================================================== */
.btn-white-pill {
  background: linear-gradient(135deg, #f5d798 0%, #dca64f 54%, #b67e29 100%) !important;
  color: #090806 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 10px 26px -6px rgba(220, 166, 79, 0.42) !important;
}

.btn-white-pill:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 14px 30px -6px rgba(220, 166, 79, 0.56) !important;
}

.mini-tabs {
  background: rgba(6, 7, 10, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mini-tab.active,
.studio-step-tab.active,
.shot-spec-opt.active,
.wb-spec-opt-btn.active {
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.28), rgba(229, 184, 105, 0.12)) !important;
  border: 1px solid rgba(229, 184, 105, 0.55) !important;
  color: #f7dfa4 !important;
  font-weight: 700 !important;
}

.model-row-price strong {
  font-family: "JetBrains Mono", Consolas, monospace;
  color: #f5d798 !important;
}

.spec-mini-badge {
  background: rgba(229, 184, 105, 0.12) !important;
  border: 1px solid rgba(229, 184, 105, 0.25);
  color: #f3d393 !important;
}

.ep-slate-badge {
  background: linear-gradient(145deg, #1b1c25 0%, #0b0c11 100%) !important;
  border-color: rgba(229, 184, 105, 0.34) !important;
}

.ep-slate-num {
  color: #f5d798 !important;
}

.wb-modal-card,
.wizard-modal-card,
.audit-guide-modal-card {
  background: linear-gradient(165deg, #161720 0%, #0b0c11 100%) !important;
  border: 1px solid rgba(229, 184, 105, 0.32) !important;
}

/* 投入剧本页一体化黑曜石场记舱（消除顶栏分离与输入框错位） */
.script-only-shell {
  max-width: 880px !important;
  margin: 20px auto 0 !important;
}

.script-only-card {
  border-radius: 22px !important;
  padding: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 15% 0%, rgba(229, 184, 105, 0.11) 0%, transparent 62%),
    linear-gradient(180deg, rgba(19, 20, 27, 0.96) 0%, rgba(11, 12, 17, 0.98) 100%) !important;
  border: 1px solid rgba(229, 184, 105, 0.28) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 240, 205, 0.08) !important;
}

.rm-script-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 26px;
  background: rgba(6, 7, 10, 0.68);
  border-bottom: 1px solid rgba(229, 184, 105, 0.16);
}

.rm-script-card-body {
  padding: 24px 26px 22px;
}

.script-clean-textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 300px;
  padding: 18px 20px !important;
  border-radius: 14px !important;
  background: rgba(5, 6, 9, 0.88) !important;
  border: 1px solid rgba(229, 184, 105, 0.2) !important;
  color: #f7f4ed !important;
}

.script-clean-textarea:focus {
  border-color: rgba(229, 184, 105, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(229, 184, 105, 0.12) !important;
}

/* 卡密兑换框暗黑金边适配 */
.rm-redeem-box {
  background: rgba(6, 7, 11, 0.82);
  border: 1px solid rgba(229, 184, 105, 0.26);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}

.rm-redeem-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rm-redeem-input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-family: "JetBrains Mono", Consolas, monospace;
  letter-spacing: 0.05em;
  background: rgba(14, 15, 21, 0.95);
  color: #faf7f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.rm-redeem-input:focus {
  outline: none;
  border-color: #e5b869;
}

.rm-wx-buy-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 16px;
}

.rm-wx-qr-thumb {
  width: 106px;
  height: 106px;
  border-radius: 12px;
  border: 1px solid rgba(229, 184, 105, 0.35);
  background: #ffffff;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 新手教程与参考图聚光引导暗金影视风适配 */
.onboarding-target {
  scroll-margin-top: 84px !important;
}

.reference-guide-shade {
  background: rgba(3, 3, 5, 0.78) !important;
}

.reference-guide-ring {
  border: 2px solid #e5b869 !important;
  border-radius: 18px !important;
  box-shadow: 0 0 0 1px rgba(245, 215, 152, 0.25), 0 0 32px rgba(229, 184, 105, 0.42) !important;
}

.reference-guide-card {
  background: linear-gradient(165deg, #171821 0%, #0b0c11 100%) !important;
  border: 1px solid rgba(229, 184, 105, 0.42) !important;
  border-radius: 18px !important;
  color: #f6f2ea !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 24px rgba(229, 184, 105, 0.14) !important;
}

.reference-guide-card h3 {
  color: #faf6ed !important;
  font-weight: 700 !important;
}

.reference-guide-card p {
  color: #cbc4b6 !important;
}

.onboarding-progress {
  color: #f5d798 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   5. 移动端与平板响应式适配（零横向溢出）
   ========================================================================== */
@media (max-width: 1320px) {
  .rm-cinema-topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 8px;
  }
  .rm-topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .rm-topbar-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .rm-topbar-nav::-webkit-scrollbar {
    display: none;
  }
  .rm-cinema-hero-grid {
    grid-template-columns: 1fr;
  }
  .studio-stage-wrap,
  .studio-stage-wrap.is-dashboard {
    padding: 18px 16px 88px !important;
  }
}

@media (max-width: 680px) {
  .rm-two-act-strip {
    grid-template-columns: 1fr;
  }
  .rm-act-arrow {
    display: none;
  }
  .rm-import-btn-grid,
  .rm-engine-grid,
  .rm-ep-horizontal-grid {
    grid-template-columns: 1fr;
  }
  .rm-user-label,
  .rm-brand-eng {
    display: none;
  }
  .rm-stage-main-card {
    padding: 22px 18px;
  }
  .rm-redeem-input-row {
    flex-direction: column;
  }
  .rm-wx-buy-box {
    flex-direction: column;
    text-align: center;
  }
}
