/* 2026-08-14 · Codex · 工作台左上 Logo 撤掉装饰底，右下头像浮球改为“呼叫客服”文字入口。 · CHG-20260814-WORKSPACE-LOGO-SUPPORT-TEXT-LOCAL
 * 2026-08-14 · Codex · 工作台控制层级与 Fluent 20px 图标体系本地预览；不改业务交互、价格或生成链路。 · CHG-20260814-WORKSPACE-FLUENT-ICON-SYSTEM-LOCAL */

body.site-surface--workspace {
  --workspace-control-ink: #37303f;
  --workspace-control-muted: #655e6d;
  --workspace-control-faint: #817a89;
  --workspace-control-line: rgba(55, 45, 76, .16);
  --workspace-control-surface: rgba(255, 255, 255, .86);
}

/* Fluent 2：Regular 负责导航，Filled 只用于明确选中态；不再混用手画线稿。 */
body.site-surface--workspace .ws-ui-icon {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  fill: currentColor;
  stroke: none;
  color: inherit;
}

body.site-surface--workspace .ws-icon-filled {
  display: none;
}

body.site-surface--workspace :is(.ws-nav-item, .pb-cat, .ws-gen-mode).active > .ws-icon-regular {
  display: none;
}

body.site-surface--workspace :is(.ws-nav-item, .pb-cat, .ws-gen-mode).active > .ws-icon-filled {
  display: block;
}

/* 左侧导航：从说明文字提升为一级功能入口。 */
body.site-surface--workspace .ws-nav-item {
  color: var(--workspace-control-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .005em;
  text-rendering: optimizeLegibility;
}

body.site-surface--workspace .ws-nav-item > span {
  white-space: nowrap;
}

body.site-surface--workspace .ws-nav-item > .ws-ui-icon {
  width: 20px;
  height: 20px;
}

body.site-surface--workspace .ws-nav-item:hover {
  color: var(--workspace-control-ink);
}

body.site-surface--workspace .ws-nav-item.active {
  color: #6545dc;
  font-weight: 650;
}

/* 顶栏主切换：普通态也保留足够重量，选中态接近 GPT 的紧实标签感。 */
body.site-surface--workspace .ws-top-switch button {
  min-height: 34px;
  color: #57515f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

body.site-surface--workspace .ws-top-switch button.active {
  color: #fff;
  font-weight: 650;
}

/* 作品筛选与排序：统一高度、边线和操作级文字对比。 */
body.site-surface--workspace :is(.pb-cat, .pb-sort-btn) {
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--workspace-control-muted);
  background: var(--workspace-control-surface);
  border-color: var(--workspace-control-line);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .92) inset;
  text-rendering: optimizeLegibility;
}

body.site-surface--workspace :is(.pb-cat, .pb-sort-btn) > .ws-ui-icon {
  width: 15px;
  height: 15px;
  opacity: .88;
}

body.site-surface--workspace .pb-cat.pb-soon {
  color: #746d7b;
  font-weight: 550;
}

body.site-surface--workspace .pb-cat.active {
  color: #fff;
  background: var(--pb-purple);
  border-color: var(--pb-purple);
  font-weight: 650;
  box-shadow: 0 7px 18px rgba(111, 82, 255, .18), 0 1px 0 rgba(255, 255, 255, .18) inset;
}

body.site-surface--workspace .pb-cat.active > .ws-ui-icon {
  opacity: 1;
}

body.site-surface--workspace .pb-cat.pb-soon.active {
  color: #746d7b;
  background: var(--pb-bg-soft);
  border-color: var(--workspace-control-line);
  font-weight: 550;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .92) inset;
}

body.site-surface--workspace :is(.pb-cat, .pb-sort-btn):not(.active):hover {
  color: var(--workspace-control-ink);
  border-color: rgba(101, 69, 220, .38);
}

/* 底部创作台：图片/视频、加图、功能、模型都明确显示为控制项。 */
body.site-surface--workspace .ws-gen-mode {
  min-width: 60px;
  color: var(--workspace-control-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.1;
}

body.site-surface--workspace .ws-gen-mode > .ws-ui-icon {
  width: 18px;
  height: 18px;
}

body.site-surface--workspace .ws-gen-mode.active {
  color: #6545dc;
  font-weight: 650;
}

body.site-surface--workspace .ws-gen-add {
  color: var(--workspace-control-muted);
  border-color: rgba(55, 45, 76, .22);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

body.site-surface--workspace :is(.ws-mode-btn, .ws-wf-btn, .ws-model-chip) {
  min-height: 36px;
  color: var(--workspace-control-ink);
  border-color: var(--workspace-control-line);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .92) inset;
}

body.site-surface--workspace .ws-model-chip {
  color: #6545dc;
}

body.site-surface--workspace .ws-model-chip > .ws-ui-icon:not(.caret) {
  width: 14px;
  height: 14px;
}

body.site-surface--workspace :is(.ws-mode-btn, .ws-model-chip) > .caret.ws-ui-icon {
  fill: currentColor;
}

body.site-surface--workspace #pbModelChipText {
  font-weight: 650;
}

body.site-surface--workspace .ws-model-chip .res {
  color: #766d84;
  font-weight: 500;
}

body.site-surface--workspace .ws-btn-gen {
  min-height: 42px;
  font-weight: 650;
  letter-spacing: .01em;
}

/* 右下角直接说明功能，不再使用头像式悬浮球。 */
body.site-surface--workspace .ai-support-fab{
  width:88px;
  height:40px;
  padding:0 16px;
  border:1px solid var(--workspace-control-line);
  border-radius:999px;
  background:#fff;
  color:var(--workspace-control-ink);
  box-shadow:0 10px 24px rgba(47,37,72,.12);
  font:650 14px/1 var(--pb-sans,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif);
  white-space:nowrap;
}

body.site-surface--workspace .ai-support-fab img{
  display:none;
}

body.site-surface--workspace .ai-support-fab::after{content:"呼叫客服";display:block;}

body.site-surface--workspace .ai-support-fab:hover{
  color:#6545dc;
  border-color:rgba(101,69,220,.34);
  background:#fff;
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(47,37,72,.16);
}

/* 抽屉和菜单保持同一套操作层级；副说明仍维持轻字重。 */
body.site-surface--workspace .pb-tp-tab {
  color: var(--workspace-control-muted);
  font-weight: 650;
}

body.site-surface--workspace :is(
  .ws-fly-wf-item,
  .ws-fly-model-tx .t,
  .ws-add-mi-tx .t,
  .ws-mode-mi-tx .t,
  .ws-avatar-mi
) {
  font-weight: 600;
}

body.site-surface--workspace :is(
  .ws-gen-tip,
  .ws-fly-model-tx .d,
  .ws-add-mi-tx .d,
  .ws-mode-mi-tx .d,
  .ws-page-sub
) {
  font-weight: 400;
}

@media (max-width: 680px) {
  body.site-surface--workspace .ws-nav-item {
    font-size: 12px;
  }

  body.site-surface--workspace :is(.pb-cat, .pb-sort-btn) {
    min-height: 34px;
    font-size: 13px;
  }

  body.site-surface--workspace .ws-gen-mode {
    font-size: 12px;
  }

  body.site-surface--workspace .ws-mode-btn {
    flex: 0 0 auto;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }
}
