/* 全站页面背景统一：黑夜 = 团队星云；白天 = 水彩 */

:root {
  --xc-page-w: 1500px;
  --xc-page-pad: 18px;
  --xc-title: 17px;
  --xc-lead: 12px;
  --xc-body: 12.5px;
  --xc-meta: 11.5px;
}

/* ---------- 团队同款星云层 ---------- */
.xc-page-bg,
.xc-team-bg,
.xc-act-bg,
.xc-acc-bg,
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/static/images/xc-nebula.jpg") center / cover no-repeat;
  opacity: 0.26;
}
.xc-page-bg::after,
.xc-team-bg::after,
.xc-act-bg::after,
.xc-acc-bg::after,
.fx-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background: radial-gradient(ellipse at 50% 0%, rgba(5, 5, 8, 0.12) 0%, rgba(5, 5, 8, 0.78) 88%);
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-page-bg,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team-bg,
html:not(.theme-dark):not(.studio-theme-dark) .xc-act-bg,
html:not(.theme-dark):not(.studio-theme-dark) .xc-acc-bg,
html:not(.theme-dark):not(.studio-theme-dark) .fx-bg {
  background-image: url("/static/images/xc-bg-light.jpg");
  background-size: cover;
  background-position: center;
  opacity: 1;
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-page-bg::after,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team-bg::after,
html:not(.theme-dark):not(.studio-theme-dark) .xc-act-bg::after,
html:not(.theme-dark):not(.studio-theme-dark) .xc-acc-bg::after,
html:not(.theme-dark):not(.studio-theme-dark) .fx-bg::after {
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 245, 236, 0.72) 100%);
}

/* 底色：星云层透出来 */
html.theme-dark body,
html.studio-theme-dark body {
  background-color: #070708;
}

/* 内容压在星云层上 */
.layout,
.page,
.sis-app,
.asm-shell,
.shell,
.scene,
.wb-page,
.wrap,
.xc-account .shell {
  position: relative;
  z-index: 1;
}

/* 门禁面板透出星云；画布项目中心自己铺星云，不再抹成纯黑 */
html.theme-dark .gate-panel,
html.studio-theme-dark .gate-panel,
html.theme-dark .asm-gate-panel,
html.studio-theme-dark .asm-gate-panel,
html.theme-dark .as-gate-panel,
html.studio-theme-dark .as-gate-panel,
html.theme-dark .pv-gate-panel,
html.studio-theme-dark .pv-gate-panel,
html.theme-dark .asm-gate,
html.studio-theme-dark .asm-gate,
html.theme-dark .as-gate,
html.studio-theme-dark .as-gate,
html.theme-dark .pv-gate,
html.studio-theme-dark .pv-gate {
  background: transparent !important;
  background-image: none !important;
}

/* 预演台 / 智能成片：透出统一背景 */
.pv-body.xc-previs,
.pv-body.xc-previs .pv-shell,
.pv-body.xc-previs .pv-gate,
.pv-body.xc-previs .pv-gate-panel,
.pv-body.xc-previs .studio-proj-workspace,
.pv-body.xc-previs .studio-proj-main {
  background: transparent !important;
}
.pv-body.xc-previs {
  background-color: #070708 !important;
}
html:not(.theme-dark):not(.studio-theme-dark) .pv-body.xc-previs {
  background-color: #f4f1e9 !important;
}

/* 在线生图：星云对齐团队 */
body.sis-body {
  background-color: #070708 !important;
  background-image: none !important;
}
html:not(.theme-dark):not(.studio-theme-dark) body.sis-body {
  background-color: #f4f1e9 !important;
}
html.theme-dark body.sis-body::before,
html.studio-theme-dark body.sis-body::before {
  opacity: 0.26 !important;
}
html.theme-dark body.sis-body::after,
html.studio-theme-dark body.sis-body::after {
  background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 8, 0.55) 100%) !important;
}
body.sis-body .sis-app,
body.sis-body .sis-main {
  background: transparent !important;
}

/* 项目中心透出全站 .xc-page-bg，与账号/团队同一层 */
html:not(.theme-dark):not(.studio-theme-dark) .xc-canvas .canvas-gate,
html.theme-dark.studio-theme-dark body.xc-canvas .canvas-gate,
html.theme-dark body.xc-canvas .canvas-gate,
html.studio-theme-dark body.xc-canvas .canvas-gate {
  background: transparent !important;
}
