/* 官方字标按背景切换；固定尺寸避免图片加载时侧栏跳动。 */
html[data-nav] .sidebar .brand, .sidebar .brand {
  /* 上 16 / 字标 56 / 间隔 8 / 两行各 20 / 下 12，共 132px。曾压到 100px，字标贴顶、文字贴分隔线，太挤。 */
  height: auto; padding: 16px 12px 12px 20px; gap: 0; align-items: flex-start; justify-content: flex-start;
}
.sidebar .brand .brand-mark { display: none; background: none; box-shadow: none; }
.sidebar .brand-mark img { display: block; width: 34px; height: 34px; }
.sidebar .brand-mark .brand-bolt { display: none; }
/* 字标文件四周自带约 3px 留白，右移 1px 让图形左缘与下一行文字（左内边距 4px）对齐。 */
.brand-wordmark { width: 120px; height: 56px; margin-bottom: 8px; transform: translateX(1px); }
.brand-wordmark img { display: block; width: 120px; height: 56px; object-fit: contain; }
.brand-wordmark .brand-color { display: none; }
/* 产品名一行：大字「Flux」＋细竖线＋小字说明。上面的字标已含 Power，这里不再重复写 PowerX。 */
.sidebar .brand .t2 { display: flex; align-items: center; gap: 8px; margin: 0; padding-left: 4px; font-size: 12px; line-height: 20px; letter-spacing: 0; white-space: nowrap; }
.sidebar .brand-product { display: block; color: var(--sb-tx-hi); font-size: 20px; font-weight: 600; line-height: 28px; }
.sidebar .brand-description { display: block; position: relative; padding-left: 8px; font-size: 12px; font-weight: 400; line-height: 20px; }
.sidebar .brand-description::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: currentColor; opacity: .45; }
/* AI 明暗独立于经典模式，文字读取 AI 当前外观已有的主、次文字色。 */
body.ex-ai-mode .sidebar .brand-product { color: var(--x-text); }
body.ex-ai-mode .sidebar .brand .t2 { color: var(--x-sub); }
/* 浅色侧栏配的是彩色字标，产品名跟它用同一条蓝→绿渐变；深色侧栏配白色字标，产品名保持白色。
   品牌色主题的侧栏始终是深色渐变，所以排除在外。绿端比字标略深，保证在浅蓝底上也看得清。 */
:root:is([data-skin="glass"], [data-skin="alice"])[data-theme="light"]:not([data-palette="powerflow"]) body:not(.ex-ai-mode) .sidebar .brand-product,
body.ex-ai-mode[data-ai-theme="light"]:not([data-ai-palette="powerflow"]) .sidebar .brand-product {
  width: fit-content; color: #0078c0; background: linear-gradient(90deg, #0078c0, #0f7f52);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root:is([data-skin="glass"], [data-skin="alice"])[data-theme="light"] body:not(.ex-ai-mode) .brand-color,
body.ex-ai-mode[data-ai-theme="light"] .brand-color { display: block; }
:root:is([data-skin="glass"], [data-skin="alice"])[data-theme="light"] body:not(.ex-ai-mode) .brand-white,
body.ex-ai-mode[data-ai-theme="light"] .brand-white { display: none; }
/* 收起时仅品牌色使用白色闪电；其他三色继续使用原渐变图标。 */
:root[data-palette="powerflow"] body:not(.ex-ai-mode) .sidebar .brand-mark,
body.ex-ai-mode[data-ai-palette="powerflow"] .sidebar .brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.14); box-shadow: none;
}
:root[data-palette="powerflow"] body:not(.ex-ai-mode) .sidebar .brand-mark .brand-bolt,
body.ex-ai-mode[data-ai-palette="powerflow"] .sidebar .brand-mark .brand-bolt {
  display: block; width: 32px; height: 32px; stroke: #fff; stroke-width: 2.4;
}
@media (min-width: 901px) {
  html[data-nav="mini"] body .sidebar .brand { padding: 16px 0; justify-content: center; }
  html[data-nav="mini"] body .sidebar .brand-mark { display: block; }
}
@media (max-width: 900px) {
  html[data-nav="mini"] .sidebar .brand-text { display: block !important; }
}

/* 产品名称使用界面字体，不模拟专用 PowerX 字标。 */
.cx-hero-heading h2.flux-product-name { font-style: normal; font-weight: 600; letter-spacing: 0; }
.cx-hero-heading h2.flux-product-name :is(.cx-brand-x, em) { font: inherit; color: inherit; transform: none; display: inline; }
/* 思考时形象旁的标签换成「正在想…」：金色小圆点 + 金色字（照 Alice 侧栏状态行；色值同 orb.js GOLD） */
.ph.orb-thinking { color: rgb(251, 191, 72); display: inline-flex; align-items: center; gap: 6px; }
.ph.orb-thinking::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; animation: orbThinkDot 1.2s ease-in-out infinite; }
html[data-theme="light"] .ph.orb-thinking { color: rgb(180, 112, 12); }
@keyframes orbThinkDot { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ph.orb-thinking::before { animation: none; } }
