/*
 * SuiHeAI test 全站视觉层 v1
 * 只由 test 站 index.html 加载，业务组件和正式站不受影响。
 * 方向：AI 影像工作室 / 石墨黑 + 暖铜橙 / 清晰工作区层级。
 */

html[data-test-premium-shell="1"] {
  --studio-bg: #11100f;
  --studio-surface: #181715;
  --studio-surface-2: #201e1b;
  --studio-surface-3: #282520;
  --studio-line: rgba(237, 226, 211, .14);
  --studio-line-strong: rgba(237, 226, 211, .24);
  --studio-ink: #f4efe8;
  --studio-muted: #aaa198;
  --studio-subtle: #746d66;
  --studio-copper: #d9955d;
  --studio-copper-soft: #e8b27e;
  --studio-copper-bg: rgba(217, 149, 93, .13);
  --studio-green: #8ab49a;
  --studio-red: #d9897d;
  --studio-radius: 14px;
  --studio-ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[data-test-premium-shell="1"][data-theme="light"] {
  --studio-bg: #f5f1eb;
  --studio-surface: #fffaf5;
  --studio-surface-2: #f1e9df;
  --studio-surface-3: #e8ddd0;
  --studio-line: rgba(67, 47, 29, .14);
  --studio-line-strong: rgba(67, 47, 29, .24);
  --studio-ink: #241c16;
  --studio-muted: #65594f;
  --studio-subtle: #8a7e72;
  --studio-copper: #b76e35;
  --studio-copper-soft: #9a5525;
  --studio-copper-bg: rgba(183, 110, 53, .12);
  --studio-green: #4e8665;
  --studio-red: #b95d52;
}

html[data-test-premium-shell="1"] body,
html[data-test-premium-shell="1"] button,
html[data-test-premium-shell="1"] input,
html[data-test-premium-shell="1"] textarea,
html[data-test-premium-shell="1"] select {
  font-family: var(--font);
}

html[data-test-premium-shell="1"] body {
  background: var(--studio-bg);
  color: var(--studio-ink);
}

html[data-test-premium-shell="1"] .app-bg-cosmos,
html[data-test-premium-shell="1"] .app-bg-particles,
html[data-test-premium-shell="1"] .app-bg-user {
  opacity: 0 !important;
  visibility: hidden !important;
}

html[data-test-premium-shell="1"] .app {
  background:
    radial-gradient(ellipse 80% 60% at 86% 0%, rgba(217, 149, 93, .08), transparent 62%),
    linear-gradient(180deg, #151311 0%, var(--studio-bg) 42%, #0d0c0b 100%);
}

html[data-test-premium-shell="1"][data-theme="light"] .app {
  background:
    radial-gradient(ellipse 80% 60% at 86% 0%, rgba(183, 110, 53, .08), transparent 62%),
    linear-gradient(180deg, #fbf8f4 0%, var(--studio-bg) 55%, #eee7df 100%);
}

html[data-test-premium-shell="1"] .top-announcement {
  height: 38px;
  padding: 0 28px;
  background: #25201b;
  color: #eadfd3;
  border-bottom: 1px solid rgba(217, 149, 93, .35);
  box-shadow: 0 4px 20px rgba(0,0,0,.16);
  font-size: 12px;
  letter-spacing: .01em;
}

html[data-test-premium-shell="1"] .top-announcement-content {
  gap: 9px;
}

html[data-test-premium-shell="1"] .top-announcement-icon::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--studio-copper);
  box-shadow: 0 0 0 4px rgba(217,149,93,.12);
}

html[data-test-premium-shell="1"] .top-announcement-close {
  color: var(--studio-muted);
  font-size: 18px;
}

html[data-test-premium-shell="1"] .seedance25-intro {
  top: 54px;
  width: min(920px, calc(100vw - 48px));
  border: 1px solid rgba(217,149,93,.26);
  border-radius: 16px;
  background: linear-gradient(135deg, #201b17, #191817 64%, #272019);
  box-shadow: 0 18px 60px rgba(0,0,0,.42);
}

html[data-test-premium-shell="1"] .seedance25-intro-bg {
  background: radial-gradient(circle at 90% 30%, rgba(217,149,93,.18), transparent 54%);
}

html[data-test-premium-shell="1"] .seedance25-intro-eyebrow,
html[data-test-premium-shell="1"] .seedance25-intro-btn-primary {
  background: var(--studio-copper);
  color: #21150d;
}

html[data-test-premium-shell="1"] .seedance25-intro-price strong {
  color: var(--studio-copper-soft);
  text-shadow: none;
}

html[data-test-premium-shell="1"] .seedance25-intro-tag {
  background: rgba(244,239,232,.05);
  border-color: rgba(244,239,232,.12);
}

/* 工作区顶栏：仅新增壳层，不改变任何路由和业务按钮。 */
html[data-test-premium-shell="1"] .test-workspace-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--studio-line);
  background: rgba(17,16,15,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 8;
}

html[data-test-premium-shell="1"][data-theme="light"] .test-workspace-bar {
  background: rgba(255,250,245,.84);
  box-shadow: 0 4px 18px rgba(67,47,29,.05);
}

html[data-test-premium-shell="1"] .test-workspace-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--studio-copper-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html[data-test-premium-shell="1"] .test-workspace-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-test-premium-shell="1"] .test-workspace-title {
  color: var(--studio-ink);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -.01em;
}

html[data-test-premium-shell="1"] .test-workspace-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-muted);
  font-size: 12px;
}

html[data-test-premium-shell="1"] .test-workspace-env,
html[data-test-premium-shell="1"] .test-workspace-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

html[data-test-premium-shell="1"] .test-workspace-env::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--studio-green);
  box-shadow: 0 0 0 3px rgba(138,180,154,.12);
}

html[data-test-premium-shell="1"] .test-workspace-balance strong {
  color: var(--studio-copper-soft);
  font-variant-numeric: tabular-nums;
}

html[data-test-premium-shell="1"] .test-workspace-title-row .test-workspace-balance {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

/* 侧栏：从“图标浮岛”改为安静的工作区 rail，文字通过 data-nav-label 直观呈现。 */
html[data-test-premium-shell="1"] .side-nav {
  left: 14px;
  top: 48px !important;
  width: 188px;
  height: calc(100vh - 62px) !important;
  padding: 18px 12px;
  align-items: stretch;
  gap: 5px;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: rgba(24,23,21,.86);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-test-premium-shell="1"][data-theme="light"] .side-nav {
  background: rgba(255,250,245,.9);
  box-shadow: 0 14px 36px rgba(67,47,29,.1);
}

html[data-test-premium-shell="1"] .side-nav-btn {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--studio-muted);
  transition: background .2s var(--studio-ease), color .2s var(--studio-ease), transform .2s var(--studio-ease);
}

html[data-test-premium-shell="1"] .side-nav-btn::after {
  content: attr(data-nav-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 520;
}

html[data-test-premium-shell="1"] .side-nav-btn:hover {
  background: rgba(217,149,93,.09);
  color: var(--studio-ink);
  animation: none;
  transform: translateX(2px);
}

html[data-test-premium-shell="1"] .side-nav-btn.active {
  background: var(--studio-copper-bg);
  color: var(--studio-copper-soft);
  box-shadow: inset 3px 0 0 var(--studio-copper);
}

html[data-test-premium-shell="1"] .side-nav-btn.active::after {
  font-weight: 680;
}

html[data-test-premium-shell="1"] .side-nav-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

html[data-test-premium-shell="1"] .side-nav-balance {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  margin-top: auto;
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
}

html[data-test-premium-shell="1"] .side-nav-balance span {
  max-width: none;
  font-size: 12px;
  color: var(--studio-copper-soft);
}

html[data-test-premium-shell="1"] .side-nav-theme-btn,
html[data-test-premium-shell="1"] .side-nav-user,
html[data-test-premium-shell="1"] .side-nav-old-btn {
  min-height: 36px;
}

html[data-test-premium-shell="1"] .side-nav-toggle {
  left: 193px;
  top: calc(50% + 24px) !important;
  border-color: var(--studio-line);
  background: var(--studio-surface-2);
  color: var(--studio-muted);
}

html[data-test-premium-shell="1"] .side-nav-toggle:hover {
  background: var(--studio-copper-bg);
  border-color: rgba(217,149,93,.35);
  color: var(--studio-copper-soft);
}

html[data-test-premium-shell="1"] body:not(.side-nav-collapsed) .app {
  margin-left: 206px;
  width: calc(100% - 206px);
}

html[data-test-premium-shell="1"] body:not(.side-nav-collapsed) .main-area {
  width: 100%;
  padding-left: 34px;
  padding-right: 34px;
}

html[data-test-premium-shell="1"] body.side-nav-collapsed .test-workspace-bar {
  padding-left: 34px;
}

/* 折叠页（工作流）保持原有专注画布逻辑。 */
html[data-test-premium-shell="1"] .side-nav.collapsed {
  left: -180px;
}

html[data-test-premium-shell="1"] body.side-nav-collapsed .side-nav-toggle {
  left: 3px;
}

html[data-test-premium-shell="1"] .global-toast {
  border: 1px solid var(--studio-line-strong);
  border-radius: 10px;
  background: #25211e;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
}

html[data-test-premium-shell="1"][data-theme="light"] .global-toast {
  background: #fffaf5;
  color: var(--studio-ink);
  box-shadow: 0 12px 36px rgba(67,47,29,.16);
}

@media (max-width: 840px) {
  html[data-test-premium-shell="1"] .side-nav {
    width: 68px;
    left: 10px;
    padding: 14px 8px;
  }
  html[data-test-premium-shell="1"] .side-nav-btn {
    justify-content: center;
    padding: 0;
  }
  html[data-test-premium-shell="1"] .side-nav-btn::after { display: none; }
  html[data-test-premium-shell="1"] body:not(.side-nav-collapsed) .app { margin-left: 88px; width: calc(100% - 88px); }
  html[data-test-premium-shell="1"] body:not(.side-nav-collapsed) .main-area { width: 100%; padding-left: 18px; padding-right: 18px; }
  html[data-test-premium-shell="1"] .side-nav-toggle { left: 77px; }
  html[data-test-premium-shell="1"] .test-workspace-bar { padding: 0 18px; }
}

@media (max-width: 560px) {
  html[data-test-premium-shell="1"] .test-workspace-bar { min-height: 54px; }
  html[data-test-premium-shell="1"] .test-workspace-right { gap: 5px; }
  html[data-test-premium-shell="1"] .test-workspace-env { display: none; }
  html[data-test-premium-shell="1"] .test-workspace-title { font-size: 15px; }
}
