/* ============================================================
   星枢AI 工作台 v2 样式 —— 1:1 对齐参考网站左侧菜单
   ============================================================ */

/* 工作台无顶部导航，占满全屏 */
body.workspace-page { overflow: hidden; }
.workspace-shell.ws-v2 { height: 100vh; height: 100dvh; padding-top: 0; }

/* ---------- 侧边栏整体 ---------- */
.ws-v2 .ws-sidebar {
  width: 264px;
  background: #0c0c0e;
  border-right: 1px solid #1c1c20;
  position: relative;
  z-index: 20;
  transition: width .22s ease, transform .22s ease;
}
.ws-v2 .ws-sidebar.collapsed { width: 0; border-right: none; overflow: hidden; }

/* Logo 区 */
.ws-v2 .side-brand-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 10px;
  border-bottom: none;
  position: relative;
}
.ws-v2 .sb-logo .brand-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 17px;
  box-shadow: 0 0 14px rgba(34,211,238,.35);
}
.ws-v2 .sb-titles { line-height: 1.15; min-width: 0; }
.ws-v2 .sb-titles strong { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.ws-v2 .sb-titles small {
  display: block; font-size: 9.5px; color: #7a7a85;
  text-transform: none; letter-spacing: .02em; margin-top: 2px;
}
.ws-v2 .sb-collapse {
  margin-left: auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid #26262c;
  background: #16161a;
  color: #9a9aa5;
  font-size: 13px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ws-v2 .sb-collapse:hover { color: #22d3ee; border-color: #22d3ee; }

/* ---------- 4 个主导航 ---------- */
.sb-mainnav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px 10px 8px;
}
.sb-nav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 6px;
  border: none; background: transparent;
  border-radius: 9px;
  color: #8a8a95;
  font-size: 10.5px;
  cursor: pointer;
  transition: all .18s;
}
.sb-nav-ico { font-size: 17px; line-height: 1; }
.sb-nav-txt { white-space: nowrap; }
.sb-nav-fire {
  position: absolute; top: 1px; right: 6px;
  font-size: 8px; font-style: normal;
}
.sb-nav-item:hover { color: #d6d6e0; background: #16161c; }
.sb-nav-item.active { color: #22d3ee; background: rgba(34,211,238,.10); font-weight: 700; }
.sb-nav-item.active .sb-nav-ico { filter: drop-shadow(0 0 6px rgba(34,211,238,.6)); }
/* 各导航激活颜色 */
.sb-nav-item.active[data-mainnav="agents"] { color: #a78bfa; background: rgba(167,139,250,.12); }
.sb-nav-item.active[data-mainnav="inspiration"] { color: #f472b6; background: rgba(244,114,182,.12); }
.sb-nav-item.active[data-mainnav="openapi"] { color: #fbbf24; background: rgba(251,191,36,.12); }

/* ---------- 面板切换 ---------- */
.sb-panel { display: none; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; }
.sb-panel.active { display: flex; }

/* 子标签（全部/聊天/图片...） */
.ws-v2 .sb-subtabs {
  display: flex; gap: 4px; flex-wrap: nowrap;
  padding: 4px 12px 8px;
  overflow-x: auto; scrollbar-width: none;
}
.ws-v2 .sb-subtabs::-webkit-scrollbar { display: none; }
.ws-v2 .sb-subtabs button {
  flex-shrink: 0;
  padding: 4px 11px;
  font-size: 11.5px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #8a8a95;
  cursor: pointer;
  transition: all .15s;
}
.ws-v2 .sb-subtabs button:hover { color: #d6d6e0; }
.ws-v2 .sb-subtabs button.active {
  background: #16a3b8;
  color: #fff;
  font-weight: 700;
}
/* 合并进大模型分类行的“智能体 / 灵感”入口：加细分隔与淡紫/青色描边区分 */
.ws-v2 .sb-subtabs button.sb-cat-merge {
  position: relative;
  margin-left: 4px;
  padding-left: 10px;
  border: 1px solid rgba(139, 122, 255, .35);
  color: #b9b0ff;
  border-radius: 6px;
}
.ws-v2 .sb-subtabs button.sb-cat-merge::before {
  content: "";
  position: absolute; left: -6px; top: 50%;
  width: 1px; height: 12px; transform: translateY(-50%);
  background: rgba(255, 255, 255, .14);
}
.ws-v2 .sb-subtabs button.sb-cat-merge:hover { color: #d6d0ff; border-color: rgba(139, 122, 255, .6); }
.ws-v2 .sb-subtabs button.sb-cat-merge.active {
  background: linear-gradient(135deg, #7c6cff, #16a3b8);
  border-color: transparent; color: #fff;
}
/* 智能体子分类数量角标 */
.ws-v2 .sb-subtabs .sb-cat-num {
  font-style: normal; font-size: 10px; opacity: .72; margin-left: 1px;
  font-variant-numeric: tabular-nums;
}
/* 已并入大模型的旧独立主导航 Tab 彻底隐藏不占位 */
.ws-v2 .sb-mainnav .sb-nav-item[hidden] { display: none !important; }

/* 大模型面板内的三个并列视图：模型 / 智能体 / 灵感（分类行常驻，视图纵向填满、列表内部滚动） */
.ws-v2 #sbModelView,
.ws-v2 .sb-merge-view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ws-v2 .sb-merge-view[hidden],
.ws-v2 #sbModelView[hidden] { display: none !important; }
.ws-v2 .sb-merge-view .ws-model-list { flex: 1 1 auto; overflow-y: auto; }
.ws-v2 .sb-insp-merge { overflow-y: auto; padding: 4px 12px 12px; }
/* 合并视图内：子分类条/搜索框按内容撑高、禁止收缩，避免换行后第二行只绘制不可点 */
.ws-v2 #agentMergeView > .sb-subtabs,
.ws-v2 #agentMergeView > label { flex: 0 0 auto !important; }
.ws-v2 #inspMergeView > .sb-filter-head,
.ws-v2 #inspMergeView > .sb-tag-search,
.ws-v2 #inspMergeView > .sb-tag-selected { flex: 0 0 auto; }

/* 厂商下拉 + 搜索 */
.sb-filter-row { display: flex; gap: 6px; padding: 0 12px 8px; align-items: center; position: relative; }
.sb-vendor-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 3px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #232329;
  background: #141418;
  color: #b6b6c2;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.sb-vendor-btn span { font-size: 9px; color: #6a6a75; }
.ws-v2 .sb-search {
  margin: 0;
  padding: 7px 10px;
  background: #141418;
  border: 1px solid #232329;
  border-radius: 7px;
  min-width: 0;
  flex-shrink: 0;
}
.sb-filter-row .sb-search { flex: 1; }
/* 独立成行的搜索框（智能体面板） */
.sb-panel > .sb-search { margin: 2px 14px 8px !important; }
.ws-v2 .sb-search input { font-size: 11.5px; width: 100%; }
.ws-v2 .sb-search span { font-size: 12px; }

/* ---------- 模型列表项（对齐参考站） ---------- */
.ws-v2 .ws-model-list { padding: 2px 10px 8px; flex: 1; overflow-y: auto; }
.ws-v2 .ws-model {
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  margin-bottom: 4px;
  position: relative;
}
.ws-v2 .ws-model:hover { background: #14141a; }
.ws-v2 .ws-model.active {
  background: rgba(34,211,238,.07);
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 1px rgba(34,211,238,.15) inset;
}
.ws-v2 .ws-model .wm-ico {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ws-v2 .ws-model .wm-body { min-width: 0; flex: 1; }
.ws-v2 .ws-model .wm-title-row { display: flex; align-items: center; gap: 6px; }
.ws-v2 .ws-model .wm-name { font-size: 12.5px; font-weight: 700; color: #ececf2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-v2 .ws-model .wm-type {
  margin-left: auto; flex-shrink: 0;
  font-size: 9.5px; padding: 1px 6px; border-radius: 4px;
  background: rgba(34,211,238,.14); color: #22d3ee;
}
.ws-v2 .ws-model .wm-type.t-image { background: rgba(168,85,247,.16); color: #c084fc; }
.ws-v2 .ws-model .wm-type.t-video { background: rgba(249,115,22,.16); color: #fb923c; }
.ws-v2 .ws-model .wm-type.t-tts { background: rgba(236,72,153,.16); color: #f472b6; }
.ws-v2 .ws-model .wm-desc {
  font-size: 10.5px; color: #6e6e7a; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.ws-v2 .ws-model .wm-new {
  position: absolute; top: 6px; left: 6px;
  font-size: 8px; padding: 0 4px; border-radius: 3px;
  background: linear-gradient(90deg,#f97316,#ef4444); color:#fff;
}

/* ---------- 灵感广场面板：标签云 ---------- */
.sb-insp-panel { padding: 4px 12px 8px; overflow-y: auto; }
.sb-filter-head { font-size: 12px; color: #9a9aa5; padding: 4px 0 8px; }
.sb-tag-search { display: flex; gap: 6px; }
.sb-tag-search input {
  flex: 1; min-width: 0;
  background: #141418; border: 1px solid #232329; border-radius: 7px;
  padding: 7px 10px; color: #e6e6ee; font-size: 11.5px; outline: none;
}
.sb-tag-search button {
  flex-shrink: 0; padding: 7px 12px; border-radius: 7px;
  border: 1px solid #d4a017; background: transparent; color: #d4a017;
  font-size: 11.5px; cursor: pointer;
}
.sb-tag-selected { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 11px; color: #8a8a95; }
.sb-tag-selected em { color: #22d3ee; font-style: normal; }
.sb-tag-selected button { background: none; border: none; color: #f87171; font-size: 11px; cursor: pointer; }
.sb-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-tagcloud .sb-tag {
  padding: 4px 9px; font-size: 11px;
  border-radius: 5px; background: #14141a; border: 1px solid #222228;
  color: #9a9aa5; cursor: pointer; transition: all .15s;
}
.sb-tagcloud .sb-tag:hover { color: #f472b6; border-color: #f472b6; }
.sb-tagcloud .sb-tag.on { background: rgba(244,114,182,.16); border-color: #f472b6; color: #f472b6; }

/* ---------- 开放API面板 ---------- */
.sb-openapi-panel { padding: 4px 12px 8px; overflow-y: auto; }
.sb-openapi-title { color: #fbbf24; font-size: 14px; font-weight: 800; }
.sb-openapi-sub { font-size: 10.5px; color: #7a7a85; margin: 4px 0 10px; line-height: 1.5; }
.sb-api-card {
  background: #121216; border: 1px solid #222228; border-radius: 10px;
  padding: 11px; margin-bottom: 10px;
}
.sb-api-rec { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.05); }
.sb-api-agent { border-color: rgba(168,85,247,.35); }
.sb-api-way { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.sb-api-way span { font-size: 10px; color: #8a8a95; }
.sb-api-badge { font-style: normal; font-size: 9px; padding: 1px 6px; border-radius: 4px; background: #fbbf24; color: #1a1400; font-weight: 700; }
.sb-api-badge.new { background: #a855f7; color: #fff; }
.sb-api-card strong { font-size: 12.5px; color: #ececf2; }
.sb-api-card p { font-size: 10.5px; color: #7a7a85; line-height: 1.5; margin: 5px 0 8px; }
.sb-api-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #fbbf24; text-decoration: none; font-weight: 700;
}
.sb-api-link.purple { color: #c084fc; }
.sb-apikey-btn {
  display: block; text-align: center;
  padding: 10px; border-radius: 9px;
  border: 1px solid rgba(74,222,128,.4); color: #4ade80;
  font-size: 12px; text-decoration: none; margin-top: 4px;
  background: rgba(74,222,128,.05);
}
.sb-apikey-note { text-align: center; font-size: 9.5px; color: #6a6a75; margin-top: 6px; }

/* ---------- 底部用户区 ---------- */
.ws-v2 .ws-profile-v2 {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #1c1c20;
  background: #0c0c0e;
  position: relative; z-index: 60; flex-shrink: 0;
}
.ws-v2 .ws-profile-v2 .p-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.ws-v2 .p-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; font-size: 14px;
}
.ws-v2 .p-main-info { text-align: left; min-width: 0; line-height: 1.2; }
.ws-v2 .p-main-info strong {
  display: block; font-size: 12px; color: #ececf2; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px;
}
.ws-v2 .p-main-info small { font-size: 10.5px; color: #fbbf24; display: flex; align-items: center; gap: 3px; }
.ws-v2 .p-bolt { color: #fbbf24; }
.ws-v2 .p-arrow { color: #5a5a65; font-size: 14px; }
.ws-v2 .ws-recharge-v2 {
  position: relative;
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg,#f97316,#ef4444);
  color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.ws-v2 .rc-tag { font-size: 8.5px; font-weight: 600; opacity: .9; }

/* ---------- 主区顶部工具栏对齐参考站 ---------- */
.ws-v2 .ws-topbar {
  height: 56px;
  padding: 0 18px;
  background: transparent;
  border-bottom: 1px solid #16161a;
  display: flex; align-items: center; gap: 10px;
}
.ws-v2 #taskListBtn {
  background: transparent;
  border: 1px solid #d4a017;
  color: #fbbf24;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.ws-v2 #taskListBtn:hover { background: rgba(251,191,36,.08); }
.ws-v2 .tb-help {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #2a2a30; background: #141418; color: #9a9aa5;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ws-v2 .tb-topright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ws-v2 .tb-diamond {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a3a10, #1a1400);
  border: 1px solid rgba(251,191,36,.4);
  color: #fbbf24; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(251,191,36,.15);
}
.ws-v2 .tb-biz {
  height: 38px; padding: 0 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(217,119,6,.08));
  border: 1px solid rgba(251,191,36,.55);
  color: #fcd34d; font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  box-shadow: 0 0 14px rgba(251,191,36,.18), inset 0 0 8px rgba(251,191,36,.06);
  transition: all .2s;
}
.ws-v2 .tb-biz:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(251,191,36,.35); border-color: rgba(251,191,36,.8); }
.ws-v2 .tb-biz .tb-biz-ico { color: #fbbf24; font-size: 14px; }
.ws-v2 .tb-grid-app {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(168,85,247,.15));
  border: 1px solid #2a2a30;
  cursor: pointer;
  display: grid; grid-template-columns: repeat(2,5px); gap: 3px; place-content: center;
}
.ws-v2 .tb-grid-app span { width: 5px; height: 5px; border-radius: 2px; background: linear-gradient(135deg,#22d3ee,#a855f7); }

/* 隐藏工作台里不再需要的旧元素 */
.ws-v2 #newChatBtn { display: none; }
.ws-v2 .tb-title { display: none; }

/* 模型列表里的图标容器（chat.js 渲染时若无 wm-ico，用此兜底） */
.ws-model .model-ico, .ws-model .m-icon { width: 26px; height: 26px; flex-shrink: 0; display:flex;align-items:center;justify-content:center;font-size:15px; }

/* 折叠后悬浮展开按钮 */
.sb-expand-btn {
  position: fixed; left: 0; top: 14px; z-index: 30;
  width: 26px; height: 40px; border-radius: 0 8px 8px 0;
  background: #16161a; border: 1px solid #26262c; border-left: none;
  color: #22d3ee; cursor: pointer; display: none;
  align-items: center; justify-content: center;
}
.ws-v2 .ws-sidebar.collapsed ~ .ws-main .sb-expand-btn,
.sb-expand-btn.show { display: flex; }

/* 响应式：窄屏侧边栏变抽屉 */
@media (max-width: 860px) {
  .ws-v2 .ws-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100vh;
    transform: translateX(-100%);
  }
  .ws-v2 .ws-sidebar.mobile-open { transform: translateX(0); }
}

/* ---------- 适配 chat.js 实际渲染的模型项 DOM (.m-icon/.m-main/h3/p/small/.m-tag) ---------- */
.ws-v2 .ws-model .m-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: #16161c;
}
.ws-v2 .ws-model .m-main { flex: 1; min-width: 0; }
.ws-v2 .ws-model .wm-title-row { display: flex; align-items: center; gap: 6px; }
.ws-v2 .ws-model .m-main h3 {
  font-size: 12.5px; font-weight: 700; color: #ececf2; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-v2 .ws-model .m-main p {
  font-size: 10.5px; color: #6e6e7a; margin: 3px 0 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ws-v2 .ws-model .m-main small { display: none; }
.ws-v2 .ws-model .m-tag,
.ws-v2 .ws-model .type-tag,
.ws-v2 .ws-model .model-type-tag,
.ws-v2 .ws-model .wm-type {
  margin-left: auto; flex-shrink: 0;
  font-size: 9.5px; padding: 1px 6px; border-radius: 4px;
  background: rgba(34,211,238,.14); color: #22d3ee;
  font-style: normal; white-space: nowrap;
}
.ws-v2 .ws-model .wm-title-row .m-tag,
.ws-v2 .ws-model .wm-title-row .type-tag,
.ws-v2 .ws-model .wm-title-row .model-type-tag { margin-left: auto; }
/* 类型颜色 */
.ws-v2 .ws-model [class*="image"] .m-tag,
.ws-v2 .ws-model .tag-image { background: rgba(168,85,247,.16); color: #c084fc; }

/* 主内容区背景与参考站一致 */
.ws-v2 .ws-main { background: #0a0a0c; display: flex; flex-direction: column; min-width: 0; }
.ws-v2 .ws-chat { flex: 1; overflow-y: auto; }

/* 底部输入区对齐参考站：透明背景融入主内容区，消除两侧黑底遮挡 */
.ws-v2 .ws-composer { background: transparent; border-top: 1px solid rgba(255,255,255,.05); padding: 10px 18px 14px; }
.ws-v2 .composer-box {
  background: #141418; border: 1px solid #232329; border-radius: 14px;
}
.ws-v2 .composer-box:focus-within { border-color: rgba(34,211,238,.5); }

/* ---------- 修复底部用户区同行布局（覆盖旧 column / width:100%） ---------- */
.ws-v2 .ws-profile.ws-profile-v2 { flex-direction: row; align-items: center; gap: 8px; flex-wrap: nowrap; }
.ws-v2 .ws-profile-v2 .p-main { flex: 1 1 auto; width: auto; padding: 0; gap: 8px; min-width: 0; }
.ws-v2 .ws-profile-v2 .p-main:hover { background: transparent; }

/* ========== 用户菜单（应用中心弹窗）四大分组 ========== */
.ws-v2 .app-center-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 380px; min-width: 380px; max-width: 380px;
  max-height: 75vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(160deg, #141418, #0e0e12);
  border: 1px solid #232329; border-radius: 16px;
  padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 9999; display: block;
}
.ws-v2 .app-center-pop.hidden { display: none !important; }
.ws-v2 .um-group { margin-bottom: 16px; }
.ws-v2 .um-group:last-child { margin-bottom: 0; }
.ws-v2 .um-group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: #22d3ee;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 0 4px 10px; border-bottom: 1px solid #1e1e24;
  margin-bottom: 10px; white-space: nowrap;
}
.ws-v2 .um-group-title span { color: #4a4a55; font-size: 10px; font-weight: 500; }
.ws-v2 .um-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ws-v2 .um-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid transparent;
  cursor: pointer; transition: .15s; text-align: left; width: 100%;
  min-width: 0; box-sizing: border-box;
}
.ws-v2 .um-item:hover { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.2); }
.ws-v2 .um-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(34,211,238,.1); border-radius: 8px; font-size: 16px;
}
.ws-v2 .um-info { flex: 1; min-width: 0; }
.ws-v2 .um-info strong { display: block; font-size: 13px; color: #e8e8f0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-v2 .um-info small { display: block; font-size: 11px; color: #6a6a78; margin-top: 3px; line-height: 1.3; white-space: normal; word-break: break-all; }
.ws-v2 .um-arrow { color: #4a4a55; font-size: 14px; flex-shrink: 0; }
.ws-v2 .um-dot { position: relative; }
.ws-v2 .um-dot::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
}
/* 语言子面板 */
.ws-v2 .um-lang-panel {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid #1e1e24;
}
.ws-v2 .um-lang-panel.hidden { display: none; }
.ws-v2 .um-sub-title { font-size: 12px; color: #8a8a98; margin-bottom: 8px; padding: 0 4px; }
.ws-v2 .um-lang-list { display: flex; flex-direction: column; gap: 4px; }
.ws-v2 .um-lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer;
  font-size: 13px; color: #c8c8d4; width: 100%; text-align: left;
  transition: .15s;
}
.ws-v2 .um-lang-opt:hover { background: rgba(34,211,238,.08); }
.ws-v2 .um-lang-opt.active { color: #22d3ee; background: rgba(34,211,238,.1); }
.ws-v2 .um-flag { font-size: 18px; }
.ws-v2 .um-check { margin-left: auto; color: #22d3ee; font-weight: 700; }
/* 浅色模式用户菜单 */
html[data-theme="light"] .ws-v2 .app-center-pop {
  background: linear-gradient(160deg, #ffffff, #f8fafc);
  border-color: #e2e8f0; box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
html[data-theme="light"] .ws-v2 .um-group-title { color: #0e7490; }
html[data-theme="light"] .ws-v2 .um-group-title span { color: #94a3b8; }
html[data-theme="light"] .ws-v2 .um-item { background: rgba(0,0,0,.02); }
html[data-theme="light"] .ws-v2 .um-item:hover { background: rgba(14,116,144,.06); border-color: rgba(14,116,144,.15); }
html[data-theme="light"] .ws-v2 .um-info strong { color: #1e293b; }
html[data-theme="light"] .ws-v2 .um-info small { color: #64748b; }
html[data-theme="light"] .ws-v2 .um-lang-opt { color: #475569; }
html[data-theme="light"] .ws-v2 .um-lang-opt:hover { background: rgba(14,116,144,.06); }
html[data-theme="light"] .ws-v2 .um-lang-opt.active { color: #0e7490; background: rgba(14,116,144,.08); }

/* 隐藏顶部自动注入的语言切换器（已移入用户菜单） */
.lang-switcher, #langSwitcher, #langFab { display: none !important; }

/* ========== 每日签到弹窗 ========== */
#checkinMask.modal-mask {
  position: fixed !important; inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(4, 6, 10, 0.72) !important;
  backdrop-filter: blur(6px);
}
#checkinMask.modal-mask.hidden { display: none !important; }
#checkinMask .checkin-modal {
  max-width: 480px; width: 100%;
  background: linear-gradient(160deg, #1a1a20, #121218);
  border: 1px solid #2a2a35; border-radius: 18px; padding: 24px;
  position: relative;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  margin: 0 auto;
}
#checkinMask .checkin-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
#checkinMask .checkin-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: grid; place-items: center; font-size: 24px;
}
#checkinMask .checkin-header strong { display: block; font-size: 18px; color: #f1f5f9; }
#checkinMask .checkin-header span { font-size: 12px; color: #94a3b8; }
#checkinMask .checkin-stats { display: flex; gap: 12px; margin-bottom: 14px; }
#checkinMask .checkin-stat {
  flex: 1; background: rgba(255,255,255,.04); border-radius: 12px; padding: 14px;
  text-align: center;
}
#checkinMask .checkin-stat .cs-ico { font-size: 20px; display: block; margin-bottom: 4px; }
#checkinMask .checkin-stat strong { display: block; font-size: 24px; color: #fbbf24; font-weight: 800; }
#checkinMask .checkin-stat small { font-size: 11px; color: #94a3b8; }
#checkinMask .checkin-progress {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2);
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #fcd34d;
  margin-bottom: 14px;
}
#checkinMask .checkin-progress em { color: #fbbf24; font-weight: 700; font-style: normal; }
#checkinMask .checkin-milestones { display: flex; gap: 8px; margin-bottom: 18px; }
#checkinMask .cm-item {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid #2a2a35;
}
#checkinMask .cm-item.active { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
/* 旧圆形span样式已废弃，里程碑改为横向布局，文字样式见下方 .cm-info */
#checkinMask .cm-item small { display: block; font-size: 10px; color: #94a3b8; margin-top: 4px; }
#checkinMask .cm-item > b { display: block; font-size: 12px; color: #fbbf24; margin-top: 2px; }
#checkinMask .checkin-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 8px;
  transition: .15s;
}
#checkinMask .checkin-btn:hover { filter: brightness(1.1); }
#checkinMask .checkin-btn span { font-size: 13px; opacity: .9; }
#checkinMask .checkin-tomorrow { text-align: center; font-size: 12px; color: #64748b; margin-bottom: 14px; }
#checkinMask .checkin-remind {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255,255,255,.03); border-radius: 10px; font-size: 12px; color: #94a3b8;
}
#checkinMask .checkin-remind small { flex: 1; }
#checkinMask .switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
#checkinMask .switch input { opacity: 0; width: 0; height: 0; }
#checkinMask .switch .slider {
  position: absolute; inset: 0; background: #334155; border-radius: 20px; cursor: pointer; transition: .2s;
}
#checkinMask .switch .slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.ws-v2 .switch input:checked + .slider { background: #22d3ee; }
.ws-v2 .switch input:checked + .slider::before { transform: translateX(16px); }
/* 签到积分余额 */
#checkinMask .checkin-balance { margin-left: auto; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); border-radius: 20px; padding: 6px 14px; font-size: 14px; color: #22d3ee; font-weight: 700; }
/* 7天签到日历 */
#checkinMask .checkin-week { display: flex; gap: 6px; margin-bottom: 14px; }
#checkinMask .cw-day {
  flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid #2a2a35;
  transition: .2s;
}
#checkinMask .cw-day span { display: block; font-size: 13px; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
#checkinMask .cw-day em { display: block; font-size: 10px; color: #64748b; font-style: normal; }
#checkinMask .cw-day.cw-done { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.4); }
#checkinMask .cw-day.cw-done span { color: #22d3ee; }
#checkinMask .cw-day.cw-done em { color: #22d3ee; }
#checkinMask .cw-day.cw-done::after { content: "✓"; display: block; font-size: 14px; color: #22d3ee; font-weight: 700; margin-top: 2px; }
#checkinMask .cw-day.cw-today { border-color: rgba(245,158,11,.6); background: rgba(245,158,11,.1); animation: cwPulse 1.5s ease-in-out infinite; }
#checkinMask .cw-day.cw-today span { color: #fbbf24; }
#checkinMask .cw-day.cw-today em { color: #fbbf24; }
#checkinMask .cw-day.cw-special { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.3); }
#checkinMask .cw-day.cw-special span { color: #c084fc; }
#checkinMask .cw-day.cw-special em { color: #c084fc; }
@keyframes cwPulse { 0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.4)} 50%{box-shadow:0 0 0 6px rgba(245,158,11,0)} }
/* 里程碑卡片化 */
#checkinMask .cm-item { display: flex; align-items: center; gap: 8px; padding: 10px 8px; text-align: left; flex: 1 1 0; min-width: 0; }
#checkinMask .cm-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
#checkinMask .cm-info { flex: 1 1 auto; min-width: 0; }
#checkinMask .cm-info span { display: block; width: auto; height: auto; background: none; border-radius: 0; place-items: initial; font-size: 13px; line-height: 1.25; color: #e2e8f0; font-weight: 700; white-space: nowrap; }
#checkinMask .cm-info small { display: block; font-size: 10px; line-height: 1.3; color: #94a3b8; margin-top: 2px; white-space: nowrap; }
#checkinMask .cm-item b { font-size: 12px; color: #fbbf24; flex-shrink: 0; white-space: nowrap; }
#checkinMask .cm-item.cm-done { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.06); }
#checkinMask .cm-item.cm-done .cm-ico { background: rgba(34,211,238,.15); }
#checkinMask .cm-item.cm-done b { color: #22d3ee; }
/* 签到按钮已签到状态 */
#checkinMask .checkin-btn.checked { background: linear-gradient(135deg, #10b981, #059669); cursor: default; }
#checkinMask .checkin-btn.checked:hover { filter: none; }
/* 浅色模式签到 */
html[data-theme="light"] #checkinMask .checkin-modal { background: linear-gradient(160deg, #ffffff, #f8fafc); border-color: #e2e8f0; }
html[data-theme="light"] #checkinMask .checkin-header strong { color: #1e293b; }
html[data-theme="light"] #checkinMask .checkin-header span { color: #64748b; }
html[data-theme="light"] #checkinMask .checkin-stat { background: rgba(0,0,0,.03); }
html[data-theme="light"] #checkinMask .checkin-stat small { color: #64748b; }
html[data-theme="light"] #checkinMask .cw-day { background: rgba(0,0,0,.02); border-color: #e2e8f0; }
html[data-theme="light"] #checkinMask .cw-day span { color: #64748b; }
html[data-theme="light"] #checkinMask .cw-day em { color: #94a3b8; }
html[data-theme="light"] #checkinMask .cm-item { background: rgba(0,0,0,.02); border-color: #e2e8f0; }
html[data-theme="light"] #checkinMask .cm-info span { color: #1e293b; }
html[data-theme="light"] #checkinMask .cm-info small { color: #94a3b8; }
html[data-theme="light"] #checkinMask .checkin-remind { background: rgba(0,0,0,.02); color: #64748b; }
html[data-theme="light"] #checkinMask .checkin-tomorrow { color: #94a3b8; }

/* ========== 系统公告弹窗 ========== */
.ws-v2 .announce-modal {
  max-width: 640px; max-height: 80vh; overflow-y: auto;
  background: linear-gradient(160deg, #141418, #0e0e12);
  border: 1px solid #2a2a35; border-radius: 18px; padding: 0; position: relative;
}
.ws-v2 .announce-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 10px; background: rgba(34,211,238,.15); border: 1px solid rgba(34,211,238,.3);
  color: #22d3ee; font-size: 20px; cursor: pointer; z-index: 10;
  display: grid; place-items: center; transform: rotate(45deg);
}
.ws-v2 .announce-head {
  display: flex; align-items: center; gap: 14px; padding: 24px 24px 16px;
  border-bottom: 1px solid #1e1e24;
}
.ws-v2 .announce-bell {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(34,211,238,.05));
  border: 2px solid rgba(34,211,238,.4);
  display: grid; place-items: center; font-size: 28px;
}
.ws-v2 .announce-head strong { display: block; font-size: 22px; color: #22d3ee; font-weight: 800; }
.ws-v2 .announce-head span { font-size: 12px; color: #64748b; }
.ws-v2 .announce-body { padding: 20px 24px; }
.ws-v2 .announce-card {
  background: linear-gradient(160deg, rgba(245,158,11,.06), rgba(245,158,11,.02));
  border: 1px solid rgba(245,158,11,.25); border-radius: 14px; padding: 20px;
}
.ws-v2 .announce-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.ws-v2 .atag {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.ws-v2 .atag-orange { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.ws-v2 .atag-dark { background: #2a2a35; color: #cbd5e1; }
.ws-v2 .announce-card h3 {
  font-size: 20px; color: #fcd34d; line-height: 1.4; margin: 0 0 14px; font-weight: 800;
}
.ws-v2 .announce-card p {
  font-size: 13.5px; color: #cbd5e1; line-height: 1.8; margin: 0 0 12px;
}
.ws-v2 .announce-card p em { color: #fbbf24; font-style: normal; font-weight: 600; }
.ws-v2 .announce-feature-box {
  background: rgba(0,0,0,.2); border-radius: 12px; padding: 16px; margin: 16px 0;
}
.ws-v2 .announce-feature-box h4 {
  font-size: 14px; color: #f1f5f9; margin: 0 0 12px; font-weight: 700;
}
.ws-v2 .af-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ws-v2 .af-card {
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px;
}
.ws-v2 .af-card.af-wide { grid-column: span 3; }
.ws-v2 .af-ico { font-size: 18px; display: block; margin-bottom: 6px; }
.ws-v2 .af-card strong { display: block; font-size: 13px; color: #fcd34d; margin-bottom: 4px; }
.ws-v2 .af-card p { font-size: 11.5px; color: #94a3b8; line-height: 1.6; margin: 0; }
.ws-v2 .announce-pager {
  display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid #1e1e24;
}

/* 全部厂商筛选弹窗（需求12） */
.ws-v2 .vendor-pop {
  position: fixed; z-index: 9999;
  width: 208px; background: #141418; border: 1px solid #2a2a30;
  border-radius: 12px; padding: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.ws-v2 .vendor-pop.hidden { display: none; }
.ws-v2 .vp-title { font-size: 11px; color: #64748b; padding: 4px 8px 8px; font-weight: 600; }
.ws-v2 .vp-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.ws-v2 .vp-item {
  display: flex; align-items: center; gap: 9px;
  text-align: left; padding: 7px 10px; border-radius: 8px; font-size: 13px;
  color: #cbd5e1; background: transparent; border: none; cursor: pointer; width: 100%;
}
.ws-v2 .vp-item .vp-name { flex: 1 1 auto; }
.ws-v2 .vp-item .vp-count { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.ws-v2 .vp-item .vp-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 6px rgba(255,255,255,.08); }
.ws-v2 .vp-item .vp-dot-all { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: #22d3ee; }
.ws-v2 .vp-item:hover { background: rgba(34,211,238,.1); color: #22d3ee; }
.ws-v2 .vp-item:hover .vp-count { color: #67e8f9; }
.ws-v2 .vp-item.active { background: rgba(34,211,238,.15); color: #22d3ee; font-weight: 600; }
.ws-v2 .vp-item.active .vp-count { color: #67e8f9; }
html[data-theme="light"] .ws-v2 .vendor-pop { background: #fff; border-color: #e2e8f0; }
html[data-theme="light"] .ws-v2 .vp-item { color: #475569; }
html[data-theme="light"] .ws-v2 .vp-item:hover { background: #f1f5f9; color: #0891b2; }
html[data-theme="light"] .ws-v2 .vp-item.active { background: #ecfeff; color: #0891b2; }

/* 灵感种子详情弹窗（需求4） */
.ws-v2 #inspDetailMask { display: flex; align-items: center; justify-content: center; z-index: 2000; }
.ws-v2 #inspDetailMask.hidden { display: none; }
.ws-v2 .insp-detail-modal {
  width: 860px; max-width: 92vw; max-height: 88vh; background: #141418;
  border: 1px solid #2a2a30; border-radius: 18px; overflow-y: auto;
  display: flex; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.ws-v2 .insp-detail-close {
  position: absolute; top: 12px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.5); color: #fff; font-size: 20px; cursor: pointer;
}
.ws-v2 .insp-detail-left {
  flex: 1.2; min-height: 400px; background: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
}
.ws-v2 .insp-detail-img { font-size: 80px; }
.ws-v2 .insp-detail-right {
  flex: 1; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  overflow: visible;
}
.ws-v2 .insp-detail-tags { display: flex; gap: 8px; }
.ws-v2 .id-tag { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ws-v2 .id-purple { background: rgba(168,85,247,.15); color: #a855f7; }
.ws-v2 .insp-detail-title { font-size: 20px; margin: 0; color: #f1f5f9; line-height: 1.4; }
.ws-v2 .insp-detail-stats { display: flex; gap: 16px; font-size: 13px; color: #94a3b8; }
.ws-v2 .insp-detail-stats span { display: flex; align-items: center; gap: 4px; }
.ws-v2 .insp-detail-stats em { font-style: normal; color: #e2e8f0; font-weight: 600; }
.ws-v2 .insp-detail-meta { background: rgba(255,255,255,.03); border-radius: 10px; padding: 12px; }
.ws-v2 .idm-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.ws-v2 .idm-row span { color: #64748b; }
.ws-v2 .idm-row strong { color: #e2e8f0; }
.ws-v2 .idm-price { color: #fbbf24 !important; }
.ws-v2 .insp-detail-creator { display: flex; align-items: center; gap: 10px; }
.ws-v2 .idc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.ws-v2 .idc-info { display: flex; flex-direction: column; }
.ws-v2 .idc-info strong { font-size: 14px; color: #e2e8f0; }
.ws-v2 .idc-info span { font-size: 11px; color: #64748b; }
.ws-v2 .insp-detail-prompt {
  background: rgba(34,211,238,.05); border: 1px solid rgba(34,211,238,.1);
  border-radius: 10px; padding: 12px; font-size: 12px; color: #94a3b8;
  line-height: 1.7; max-height: 120px; overflow-y: auto;
}
.ws-v2 .insp-detail-actions { display: flex; gap: 10px; margin-top: auto; position: relative; z-index: 5; }
.ws-v2 .id-btn {
  flex: 1; padding: 11px; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
  position: relative; z-index: 5;
}
.ws-v2 .id-like { background: rgba(255,255,255,.06); color: #e2e8f0; }
.ws-v2 .id-like:hover { background: rgba(255,255,255,.1); }
.ws-v2 .id-use { background: linear-gradient(135deg, #22d3ee, #06b6d4); color: #0a0a0f; }
.ws-v2 .id-use:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34,211,238,.3); }
html[data-theme="light"] .ws-v2 .insp-detail-modal { background: #fff; border-color: #e2e8f0; }
html[data-theme="light"] .ws-v2 .insp-detail-left { background: #f8fafc; }
html[data-theme="light"] .ws-v2 .insp-detail-title { color: #1e293b; }
html[data-theme="light"] .ws-v2 .idm-row strong { color: #334155; }
html[data-theme="light"] .ws-v2 .idc-info strong { color: #1e293b; }
html[data-theme="light"] .ws-v2 .id-like { background: #f1f5f9; color: #334155; }
.ws-v2 .ap-btn {
  flex: 1; padding: 10px; border: 1px solid #2a2a35; border-radius: 10px;
  background: rgba(34,211,238,.08); color: #22d3ee; font-size: 13px; cursor: pointer;
  transition: .15s;
}
.ws-v2 .ap-btn:hover { background: rgba(34,211,238,.15); }
.ws-v2 .ap-btn.ap-latest { background: rgba(34,211,238,.15); font-weight: 600; }
.ws-v2 .ws-recharge.ws-recharge-v2 {
  width: auto; flex: 0 0 auto;
  padding: 8px 13px;
  box-shadow: none;
  white-space: nowrap;
}
.ws-v2 .ws-recharge.ws-recharge-v2:hover { transform: none; }
/* 去掉旧的绿色在线小圆点（v2 用闪电图标） */
.ws-v2 .ws-profile .p-main small::before { display: none; }
.ws-v2 .ws-profile .p-main small { color: #fbbf24; }
.ws-v2 .ws-profile .p-main b.p-arrow { margin-left: 0; }

/* 侧边栏主面板高度撑满，列表独立滚动 */
.ws-v2 .ws-sidebar .sb-panel.active { flex: 1; min-height: 0; }
.ws-v2 .ws-sidebar .sb-panel[data-sbpanel="models"].active { overflow: hidden; }

/* 子标签滚动条隐藏（参考站横排可滑动） */
.ws-v2 .sb-subtabs { scrollbar-width: none; }

/* ===== 商务合作弹窗（成为官方合作伙伴） ===== */
.biz-mask{position:fixed;inset:0;z-index:13000;display:flex;align-items:center;justify-content:center;background:rgba(6,10,18,.66);backdrop-filter:blur(5px);padding:24px;overflow-y:auto}
.biz-mask.hidden{display:none}
.biz-dialog{position:relative;width:min(1180px,96vw);max-height:92vh;overflow-y:auto;border-radius:22px;padding:34px 38px 28px;background:linear-gradient(160deg,#14141c 0%,#0e0e14 100%);border:1px solid rgba(34,211,238,.18);box-shadow:0 30px 90px rgba(0,0,0,.6)}
.biz-x{position:absolute;top:18px;right:20px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#cbd5e1;font-size:16px;cursor:pointer;display:grid;place-items:center}
.biz-x::before,.biz-x::after{content:"";position:absolute;width:15px;height:2px;border-radius:2px;background:currentColor;transition:background .15s}
.biz-x::before{transform:rotate(45deg)}
.biz-x::after{transform:rotate(-45deg)}
.biz-x:hover{background:rgba(255,255,255,.12);color:#fff}
.biz-head{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.biz-badge{padding:5px 14px;border-radius:999px;background:rgba(251,191,36,.14);border:1px solid rgba(251,191,36,.5);color:#fcd34d;font-size:13px;font-weight:700}
.biz-title{margin:0;font-size:34px;font-weight:900;background:linear-gradient(135deg,#fde68a,#fbbf24 50%,#f59e0b);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.biz-tag{padding:5px 14px;border-radius:8px;border:1px solid rgba(251,191,36,.55);color:#fcd34d;font-size:13px;font-weight:700}
.biz-divider{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px 0 10px}
.biz-divider i{width:46px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#22d3ee)}
.biz-divider i.c{width:6px;height:6px;border-radius:2px;background:#22d3ee}
.biz-sub{text-align:center;color:#9ca3af;font-size:15px;margin:0 0 26px;letter-spacing:1px}
.biz-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.biz-card{padding:20px 18px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);transition:all .2s}
.biz-card:hover{transform:translateY(-3px);border-color:rgba(34,211,238,.3);background:rgba(34,211,238,.05)}
.biz-ico{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:13px;color:#fff;font-size:20px;font-weight:900;margin-bottom:12px}
.biz-card h3{margin:0 0 8px;font-size:16px;font-weight:800;color:#f1f5f9}
.biz-card p{margin:0 0 10px;font-size:12.5px;color:#94a3b8;line-height:1.6;min-height:38px}
.biz-card em{display:block;font-style:normal;font-size:12px;color:#22d3ee;background:rgba(34,211,238,.08);border-left:2px solid #22d3ee;border-radius:6px;padding:6px 10px}
.biz-foot{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:30px;padding-top:22px;border-top:1px solid rgba(255,255,255,.07)}
.biz-cancel{height:48px;padding:0 38px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#cbd5e1;font-size:15px;font-weight:700;cursor:pointer}
.biz-go{height:48px;padding:0 42px;border-radius:12px;border:0;background:linear-gradient(135deg,#22d3ee,#a855f7);color:#fff;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 8px 28px rgba(34,211,238,.3)}
.biz-go:hover{filter:brightness(1.1)}
@media(max-width:900px){.biz-grid{grid-template-columns:repeat(2,1fr)}.biz-title{font-size:26px}}

/* ===== 灵感广场筛选（需求6） ===== */
.sb-insp-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:36px 16px;color:#8b95a7;font-size:13.5px;text-align:center}
.sb-insp-empty button{padding:8px 22px;border-radius:999px;border:1px solid rgba(34,211,238,.5);background:rgba(34,211,238,.1);color:#22d3ee;font-size:13px;font-weight:700;cursor:pointer}
.sb-insp-empty button:hover{background:rgba(34,211,238,.2)}
.sb-tag.selected{background:linear-gradient(135deg,#22d3ee,#06b6d4)!important;color:#04121a!important;border-color:#22d3ee!important;font-weight:800;box-shadow:0 0 10px rgba(34,211,238,.4)}
html[data-theme="light"] .sb-insp-empty{color:#64748b}

/* ===== 主导航线性图标（v33）：统一科技感SVG + HOT胶囊 ===== */
.sb-nav-ico{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;}
.sb-nav-ico svg{width:22px;height:22px;stroke:currentColor;fill:none;transition:transform .2s ease,filter .2s ease;}
.sb-nav-item:hover .sb-nav-ico svg{transform:translateY(-1px) scale(1.06);}
.sb-nav-item.active .sb-nav-ico svg{transform:scale(1.05);}
.sb-nav-fire{position:absolute;top:0;right:2px;font-size:8px!important;font-style:normal;font-weight:800;letter-spacing:.3px;line-height:1;padding:1px 4px;border-radius:999px;color:#fff!important;background:linear-gradient(135deg,#fb923c,#ef4444);box-shadow:0 2px 8px rgba(239,68,68,.4);}

/* ===== 对话历史改为左侧抽屉（item18，原右侧抽屉与左上入口脱节） ===== */
.ws-v2 .history-panel{left:0;right:auto;top:var(--header-h,56px);bottom:0;width:min(340px,86vw);
  border-left:none;border-right:1px solid var(--border);border-radius:0 16px 16px 0;
  box-shadow:18px 0 50px rgba(0,0,0,.28);z-index:420;animation:histSlideL .24s ease;}
@keyframes histSlideL{from{transform:translateX(-24px);opacity:0;}to{transform:translateX(0);opacity:1;}}
.ws-v2 .task-panel,.ws-v2 .inbox-panel{left:0;right:auto;border-radius:0 16px 16px 0;}
/* 历史/任务/收件箱面板在浅色下的背景统一 */
html[data-theme="light"] .ws-v2 .history-panel,html[data-theme="light"] .ws-v2 .task-panel,html[data-theme="light"] .ws-v2 .inbox-panel{background:#ffffff;}

/* ===== item20：左下充值钮/右下发送钮贴边被裁 —— 加固纵向布局与安全间距 ===== */
.ws-v2 .ws-sidebar{height:100%;max-height:100dvh;overflow:hidden;}
.ws-v2 .ws-sidebar>.side-brand-v2,.ws-v2 .ws-sidebar>.sb-mainnav,.ws-v2 .ws-sidebar>.ws-profile-v2{flex-shrink:0;}
.ws-v2 .ws-sidebar .sb-panel{min-height:0;}
.ws-v2 .ws-sidebar .sb-panel.active{overflow:hidden;display:flex;flex-direction:column;}
.ws-v2 .ws-sidebar .ws-model-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.ws-v2 .ws-profile-v2{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));}
.ws-v2 .ws-recharge-v2{white-space:nowrap;}
/* 主工作区底部安全间距，发送钮不贴视口底缘 */
.ws-v2 .ws-main{min-width:0;height:100%;max-height:100dvh;}
.ws-v2 .ws-composer,.ws-v2 .cp-v2{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));}
.ws-v2 .composer-actions,.ws-v2 .cp-actions{padding-bottom:4px;}
@media (max-width:860px){
  .ws-v2 .ws-profile-v2{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));}
}

/* ===== item11：侧栏收放按钮（修复展开态仍悬浮遮挡LOGO、浅色下黑块） ===== */
.ws-v2 .sb-expand-btn{display:none !important;}
.ws-v2 .ws-sidebar.collapsed ~ .ws-main .sb-expand-btn{display:flex !important;}
.ws-v2 .sb-collapse{transition:.18s;}
/* 浅色模式收放钮/顶部圆钮改浅底，不再是黑块 */
html[data-theme="light"] .ws-v2 .sb-collapse{background:#eef2f8;border:1px solid #dde3ee;color:#5b6b82;}
html[data-theme="light"] .ws-v2 .sb-collapse:hover{color:#0e9ec0;border-color:#9adce8;background:#e3f6fa;}
html[data-theme="light"] .sb-expand-btn{background:#ffffff;border:1px solid #dde3ee;color:#0e9ec0;box-shadow:0 6px 18px rgba(30,60,110,.10);}
html[data-theme="light"] .tb-circle,html[data-theme="light"] .tb-sidebar-toggle{background:#eef2f8 !important;border:1px solid #dde3ee;color:#5b6b82 !important;}
html[data-theme="light"] .tb-circle:hover,html[data-theme="light"] .tb-sidebar-toggle:hover{background:#e3f6fa !important;color:#0e9ec0 !important;border-color:#9adce8;}
