/* 智蝶AI 智能员工 · 对话工作台 v0.58.0 — 浅色版（light） */
:root {
  /* ============ 配色：浅色系 + 克莱因蓝（IKB #002FA7） ============
     设计原则（上市场前定）：
       1. 背景走极浅蓝灰，卡片走纯白，层次靠浅灰描边 + 柔和投影。
       2. 只有一个强调色系：克莱因蓝。不掺青/紫/粉。
       3. 没有彩色光晕、没有渐变文字、没有 glow。
       4. 文字用深蓝灰，四级灰阶保证可读性（手机端对比度达标）。

     克莱因蓝分两层用：
       · 块面 / 填充用 --brand（#2f5bff）或更深一档 --brand-block
       · 小号文字 / 描边用 --brand-deep（#1f47e0），保证白底上可读 */

  --bg: #eef1f8;                    /* 应用底色：极浅蓝灰 */
  --bg-2: #e7ebf4;
  --bg-soft: #f5f7fc;               /* 面板 / 抽屉底 */
  --rail: #ffffff;                  /* 左栏 */
  --surface: #ffffff;               /* 卡片 */
  --surface-2: #f2f5fb;             /* 卡片 hover */
  --surface-3: #e9eef7;             /* 更深的浅块 */

  --border: rgba(22, 40, 80, .12);
  --border-strong: rgba(22, 40, 80, .22);
  --border-soft: rgba(22, 40, 80, .08);

  /* 四级灰阶文字，带一点点蓝，和浅底同调 */
  --text: #16213c;
  --text-2: #47536e;
  --text-3: #7b869c;
  --text-4: #a6afc1;

  /* 唯一强调色：克莱因蓝 */
  --brand: #2f5bff;                 /* 填充 / 图标 */
  --brand-hi: #5b80ff;              /* hover / 高亮 */
  --brand-deep: #1f47e0;            /* 白底上的小号蓝字 / 描边 */
  --brand-block: #002fa7;           /* 真正的 IKB，用于块面 */
  --brand-block-2: #1b45d6;         /* IKB 提亮，做渐变端 */
  --brand-2: #2f5bff;
  --brand-3: #5b80ff;
  --brand-dim: #2448cc;
  --brand-ink: #ffffff;
  --brand-grad: linear-gradient(135deg, #2f5bff 0%, #4f7bff 100%);
  --brand-glow: rgba(47, 91, 255, .16);
  --brand-50: rgba(47, 91, 255, .08);
  --brand-12: rgba(47, 91, 255, .14);

  /* 语义色：在浅底上要够深才看得清 */
  --ok: #14a05a;
  --warn: #b5790a;
  --dang: #e0434e;

  /* 投影全部是柔和黑影（浅底上分层用），不是发光 */
  --glow-sm: 0 1px 2px rgba(20, 30, 60, .07);
  --glow-md: 0 10px 30px rgba(20, 30, 60, .10);
  --glow-lg: 0 20px 54px rgba(20, 30, 60, .14);

  --accent-cyan: #2f5bff;
  --accent-pink: #5b80ff;
  --ok-50: rgba(20, 160, 90, .10);
  --purple-50: rgba(47, 91, 255, .10);

  --r: 14px;
  --r-lg: 18px;
  --f: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 主题切换专用变量：浅色默认值；深色在下方 [data-theme="dark"] 覆盖 */
  --hero-bg: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  --chip-bg: #f4f6fb;
  --head-bg: rgba(255, 255, 255, .88);
}

/* ================= 深色主题（克莱因蓝深色版） =================
   默认浅色；用户切到深色时给 <html data-theme="dark"> 套这套变量。
   所有组件都已用 var()，因此只覆盖变量即可整体换肤，不动任何选择器。 */
:root[data-theme="dark"] {
  --bg: #070b18;
  --bg-2: #0b1124;
  --bg-soft: #0e1630;
  --rail: #0c1326;
  --surface: #121a33;
  --surface-2: #18233f;
  --surface-3: #1e2a4a;

  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --border-soft: rgba(255, 255, 255, .06);

  --text: #eaf0ff;
  --text-2: #b8c2dc;
  --text-3: #8693b3;
  --text-4: #5e6b8c;

  --brand: #3d6bff;
  --brand-hi: #6f92ff;
  --brand-deep: #8fb0ff;
  --brand-block: #1b45d6;
  --brand-block-2: #2f5bff;
  --brand-2: #3d6bff;
  --brand-3: #6f92ff;
  --brand-dim: #6f92ff;
  --brand-ink: #ffffff;
  --brand-grad: linear-gradient(135deg, #3d6bff 0%, #6f92ff 100%);
  --brand-glow: rgba(47, 91, 255, .32);
  --brand-50: rgba(47, 91, 255, .16);
  --brand-12: rgba(47, 91, 255, .22);

  --ok: #1fbf6f;
  --warn: #e0a44a;
  --dang: #ff5b66;

  --glow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --glow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --glow-lg: 0 20px 54px rgba(0, 0, 0, .5);

  --accent-cyan: #3d6bff;
  --accent-pink: #6f92ff;
  --ok-50: rgba(31, 191, 111, .14);
  --purple-50: rgba(47, 91, 255, .18);

  --hero-bg: linear-gradient(180deg, #0e1630 0%, #0a0f22 100%);
  --chip-bg: rgba(255, 255, 255, .07);
  --head-bg: rgba(12, 18, 38, .82);
}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--f);
  background: var(--bg);
  /* 浅底：顶部一道极淡的蓝光，不做彩色光晕 */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 91, 255, .06), transparent 70%);
  color: var(--text);
  font-size: 14px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(22, 40, 80, .18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 40, 80, .30); }
::-webkit-scrollbar-track { background: transparent; }
button { font-family: var(--f); }
::selection { background: rgba(47, 91, 255, .18); color: var(--text); }

.app { display: flex; height: 100vh; overflow: hidden; }

/* ================= 左栏 ================= */
.rail {
  width: 240px; flex: none;
  background: var(--hero-bg);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  padding: 16px 10px 8px;
  box-shadow: 1px 0 24px rgba(20, 30, 60, .05);
}
.rail-head { display: flex; align-items: center; gap: 11px; padding: 0 6px 14px; }
.logo {
  width: 54px; height: 54px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.logo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.logo-name { font-size: 14px; font-weight: 700; }
.logo-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; letter-spacing: .6px; }

.rail-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.rail-label {
  font-size: 10px; color: var(--text-3); letter-spacing: 1.3px;
  padding: 6px 10px 7px; text-transform: uppercase;
}
.rail-list { display: flex; flex-direction: column; gap: 1px; }

.agent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 10px;
  cursor: pointer; position: relative;
  border: none; background: none; width: 100%;
  text-align: left; color: var(--text-2);
  transition: background .16s ease, color .16s ease;
}
.agent-item:hover { background: var(--surface-2); color: var(--text); }
.agent-item.active {
  background: linear-gradient(90deg, var(--brand-50) 0%, transparent 100%);
  color: var(--text);
  border-left: 3px solid var(--brand);
  padding-left: 6px;
  box-shadow: inset 0 0 18px rgba(47, 91, 255, .06);
}
.agent-ava { flex: none; display: block; line-height: 0; }
.agent-meta { min-width: 0; flex: 1; }
.agent-n { display: block; font-size: 13px; font-weight: 600; }
.agent-r { display: block; font-size: 10.5px; color: var(--text-3); }

.rail-group { margin-top: 6px; }

/* ---------- 三条动线（左栏主入口） ---------- */
.line-nav { display: flex; flex-direction: column; gap: 3px; }
.line-item {
  border-radius: 10px; overflow: hidden;
  transition: background .18s ease;
}
/* 折叠态也要看得出「这一行能点」—— 只改文字颜色不明显，给个悬停底 */
.line-item:hover { background: var(--surface-2); }
.line-item.open { background: var(--surface-2); }
.line-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px;
  border: none; background: none; cursor: pointer;
  color: var(--text-2); font-size: 12.5px; font-weight: 600;
  text-align: left; transition: color .16s ease;
}
.line-head:hover { color: var(--text); }
.line-item.open .line-head { color: var(--text); }
.line-bar {
  width: 3px; height: 14px; border-radius: 2px;
  background: var(--lc); flex: none;
  box-shadow: 0 0 6px var(--lc);
}
.line-nm { flex: 1; letter-spacing: .3px; }
/* 折叠状态下的条数角标 —— 老板不知道里面有啥时，至少知道有几件事 */
.line-ct {
  flex: none; min-width: 17px; line-height: 16px;
  font-size: 10px; font-weight: 600; color: var(--text-3);
  background: var(--surface-2); border-radius: 5px;
  padding: 0 4px; text-align: center;
}
.line-item.open .line-ct { color: var(--text-2); }
.line-arrow {
  font-size: 13px; color: var(--text-3); font-weight: 400;
  width: 14px; text-align: center;
}
.line-body {
  display: none;
  padding: 2px 8px 8px 13px;
  flex-direction: column; gap: 1px;
}
.line-item.open .line-body { display: flex; }
.line-hint {
  font-size: 10px; color: var(--text-3);
  padding: 2px 0 6px; line-height: 1.4;
}
.trouble-btn {
  text-align: left; padding: 6px 9px;
  border: none; background: none; border-radius: 7px;
  color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: all .15s ease; line-height: 1.4;
}
.trouble-btn:hover {
  background: var(--brand-50);
  color: var(--text);
  transform: translateX(2px);
}

/* ---------- 员工横条（二级入口） ---------- */
.agent-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; padding: 2px 6px;
}
.agent-pill {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 5px; border-radius: 9px;
  border: 1px solid transparent; background: none;
  cursor: pointer; color: var(--text-3);
  transition: all .16s ease;
}
.agent-pill:hover { background: var(--brand-50); color: var(--text); }
.agent-pill.active {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.ap-ava { display: block; line-height: 0; }
.ap-nm { font-size: 10.5px; letter-spacing: .2px; }
.rail-tools { display: flex; flex-direction: column; gap: 1px; }
.rail-tool {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 9px;
  border: none; background: none; cursor: pointer;
  color: var(--text-2); font-size: 12.5px;
  text-align: left; transition: all .16s ease;
}
.rail-tool:hover { background: var(--brand-50); color: var(--text); }
.rail-tool span { font-size: 13.5px; width: 18px; text-align: center; }
.rail-tool b {
  margin-left: auto; font-size: 9.5px; font-weight: 700;
  background: var(--dang); color: #fff;
  min-width: 16px; height: 16px; line-height: 16px;
  text-align: center; border-radius: 8px; padding: 0 4px;
  transform: translateX(2px);
}
/* 演示态：不显示数字，只留一个空心小圈。 */
.rail-tool b.badge-demo {
  width: 7px; height: 7px; min-width: 7px; padding: 0;
  background: transparent; border: 1.5px solid var(--text-4);
  border-radius: 50%; transform: translateX(3px);
}

.rail-foot {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 10px 4px; font-size: 10.5px; color: var(--text-3);
  border-top: 1px solid var(--border-soft); margin-top: 6px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(20, 160, 90, .16);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ================= 中间对话 ================= */
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.chat-head {
  display: flex; align-items: center; gap: 11px;
  /* ⛔ 2026-11-03（谷总）：原来 padding 14px + 两行文字 + 40px 头像 = 68px，
     老板说"顶部占位太大"。现在单行 + padding 7px，实测 46px，省 22px。 */
  padding: 7px 22px; min-height: 46px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--head-bg);
  backdrop-filter: blur(24px); flex: none;
  box-shadow: var(--glow-sm);
}
.back-btn {
  display: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 15px; cursor: pointer;
  align-items: center; justify-content: center;
}
.chat-avatar { flex: none; line-height: 0; }
.chat-id {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
}
/* 品牌名打头 —— 老板一进来看的是"这是什么系统"，不是"这个员工叫什么" */
.chat-brand {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  letter-spacing: .2px; white-space: nowrap;
  /* 窗口极窄时宁可品牌名后面打点，也不能让它把右边的按钮挤出去 */
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
/* 当前员工：降为品牌右边的小字，仍能看出在跟谁聊 */
.chat-who {
  display: flex; align-items: center; gap: 6px;
  padding-left: 10px; border-left: 1px solid var(--border);
  min-width: 0; overflow: hidden; flex: none;
}
.chat-name-row { display: flex; align-items: baseline; gap: 8px; }
.chat-name {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  white-space: nowrap;
}
.chat-role {
  font-size: 10px; color: var(--text-3); white-space: nowrap;
  background: var(--surface-2); padding: 1px 6px; border-radius: 5px;
}
.chat-status {
  font-size: 11px; color: var(--text-3); white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.chat-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
/* 由宽到窄依次让位：先砍角色、再砍在线状态、最后缩头像。
   ⛔ 任何一档都别砍 .va-tag —— 那是 AI 生成内容的显著标识（合规）。 */
@media (max-width: 1180px) {
  .chat-role { display: none; }
}
@media (max-width: 1040px) {
  .chat-status { display: none; }
}
@media (max-width: 940px) {
  .chat-avatar { display: none; }
  .chat-brand { font-size: 13.5px; }
  .chat-head { gap: 9px; padding: 7px 14px; }
}
.ghost-btn {
  padding: 7px 13px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: all .16s ease; white-space: nowrap;
}
.ghost-btn:hover { border-color: var(--brand); color: var(--text); background: var(--brand-50); }

/* ---------- 消息流 ---------- */
.messages {
  flex: 1; overflow-y: auto; padding: 22px 24px 10px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- 欢迎页：问题清单 ---------- */
.welcome { margin: auto; max-width: 860px; width: 100%; animation: rise .5s ease both; padding: 8px 0 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.w-head { margin-bottom: 22px; }
.w-title {
  font-size: 27px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3;
  color: var(--text);
}
.w-sub { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* ================= Hero：对齐竞品大屏 ================= */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px;
  /* ⛔ 2026-11-01 左右 padding 30 → 24：谷总要"人物再大点"，
     主区宽度是被左右留白吃掉的，每边省 6px，三列各多 4px。 */
  padding: 26px 24px 22px;
  margin-bottom: 22px;
  background:
    radial-gradient(ellipse 65% 105% at 50% 0%, rgba(47, 91, 255, .06), transparent 74%),
    var(--hero-bg);
  border: 1px solid var(--border);
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 91, 255, .45), transparent);
}

.hero-tag {
  font-size: 11px; letter-spacing: 2px; color: var(--brand-deep);
  text-align: center; margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-main {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 16px;
}
.hero-slogan {
  font-style: normal; font-weight: 400;
  font-size: 10px; letter-spacing: 2.2px;
  color: var(--text-2); opacity: .8;
  margin-left: 8px; padding-left: 12px; position: relative;
}
.hero-slogan::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; transform: translateY(-50%);
}
.hero-brand {
  font-size: 10.5px; color: var(--text-3); letter-spacing: 3px;
  margin-bottom: 5px; text-transform: uppercase;
}
.hero-name {
  font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px;
  color: var(--text);
}
.hero-edition {
  font-size: 11.5px; color: var(--text-2); margin-top: 7px;
  display: inline-block;
  padding: 2px 9px; border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.hero-price { text-align: right; flex: none; }
.hero-amount {
  font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -2px;
  color: var(--text);
}
.hero-amount i {
  font-style: normal; font-size: 20px; font-weight: 600;
  color: var(--text-2); margin-right: 1px;
  vertical-align: 12px;
}
.hero-amount span {
  font-size: 13px; font-weight: 500; letter-spacing: 0;
  color: var(--text-3); margin-left: 3px;
}
.hero-payback {
  font-size: 11px; color: var(--ok); margin-top: 5px;
  letter-spacing: .3px;
}

/* ==================== 6 员工：半身大图（2026-11-01 第二次改版） ====================
   ⛔ 谷总原话「把员工头像做成半身照展示，画面大一些直观些。
      现在这个页面都是密密麻麻的小东西」。
   上一版是 6 列 × 40px 圆形小头像，一排密不透风，看不出是个"员工"。
   现在：每人一张 3:4 半身像，整卡宽度就是画面宽度，脸能看清。

   ⛔ 为什么卡内比例写死 3/4，而不是让图自适应：
      六张图的裁切已经统一 3:4，比例写死才能保证六个卡片高度一致；
      用自适应的话，六张图任何一张比例不同，整排就高低不齐。 */
.crew-head {
  display: flex; align-items: baseline; gap: 9px;
  margin: 20px 0 12px;
}
.crew-t {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  letter-spacing: -.2px;
}
.crew-s {
  font-size: 12px; color: var(--text-3); letter-spacing: .1px;
}

.hero-crew {
  display: grid;
  /* ⛔⛔ 为什么不是 6 列一排：实测 1440 屏下，主区被左栏(240)和右侧历史栏(268)
     夹在中间，只剩 932px，hero 内容区 798px —— 6 列每列只有 123px，
     头像还是小的，等于没改。
     ⇒ 3 列 × 2 行：每列 (798-24)/3 = 258px，比 123px 大一倍多，脸能看清。
     大屏（≥1600）主区宽了，再回到 6 列一排，每条 200px+。 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.hc {
  display: flex; flex-direction: column;
  padding: 0; border-radius: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform .22s cubic-bezier(.22,.9,.28,1),
              box-shadow .22s ease, border-color .2s ease;
}
.hc:hover {
  transform: translateY(-4px);
  border-color: var(--cc);
  box-shadow: 0 16px 32px -18px var(--cc);
}
.hc.on {
  border-color: var(--cc);
  box-shadow: 0 0 0 2px var(--cc) inset, 0 12px 28px -18px var(--cc);
}

/* 图片区：3:4，撑满卡片宽度 */
.hc-ph {
  display: block; position: relative;
  width: 100%;
  /* ⛔ 比例 1 : 1.12，不是 3 : 4。
     3:4 时每张卡 398px 高，两行 808px —— 首屏（900）被员工卡吃光，
     下面的功能全看不见，等于从"密密麻麻"变成"人挤人"。
     1:1.12 时卡高 334，两行 680，首屏放得下员工区 + 下一块。
     原图是 3:4，容器更宽 ⇒ cover 会上下裁，正好切掉腿、保住上身。 */
  aspect-ratio: 1 / 1.06;
  background: #eef1f7; overflow: hidden;
}
.hc-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* ⛔ object-position 定 30%：默认居中会上下各切一半，
     人物的头顶（脸在画面上部 16~28%）容易被切掉一截。偏上取景保头顶。 */
  object-position: center 30%;
  /* ⛔⛔ 2026-11-01 谷总「人物形象可以再大点」。
     原图里人物两侧有较宽的渐变留白（半身像居中构图），
     直接放进来人是小的。这里在**框内**放大 14%：
     切掉的是左右两侧的背景，人脸和肩膀反而更满。
     ⛔ 不能靠调大卡片来解决 —— 3 列已经是被主区宽度限制的最优解，
        再宽就放不下，只能从"框里怎么取景"下手。
     ⛔ transform-origin 用 32%（对齐上面的 object-position），
        否则放大后头顶会被顶出去。 */
  transform: scale(1.14);
  transform-origin: center 32%;
  transition: transform .35s cubic-bezier(.22,.9,.28,1);
}
.hc:hover .hc-img { transform: scale(1.19); }

/* AI 标识：压在图片左下角（那里是胸口/背景，不遮脸） */
.hc .va-badge {
  position: absolute; left: 7px; bottom: 7px;
  margin: 0; padding: 1px 6px; border-radius: 5px;
  background: rgba(18, 24, 40, .55);
  color: #fff; font-size: 9.5px; font-weight: 600;
  letter-spacing: .3px; font-style: normal;
  backdrop-filter: blur(4px);
}

/* 文字区：名字 + 职责，两行，不换行不挤 */
.hc-txt {
  display: block; padding: 9px 8px 11px; text-align: center;
}
.hc-nm {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--text);
  letter-spacing: -.2px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-role {
  display: block; margin-top: 3px;
  font-size: 11.5px; color: var(--cc); opacity: .95;
  letter-spacing: -.1px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ---------- 虚拟员工标识 ---------- */
/* ⛔ 2026-11-01 从"绝对定位压在头像右上角"改成"排在头像下方"。
   原因：6 个头像的脸分别占 15%~98% 高度，压在头像上的角标**六个全遮脸**
   （右上/右下/左下都试过）。AI 标识必须留，但不能盖住人的眼睛。 */
.va-badge {
  font-style: normal; font-size: 8.5px; line-height: 1;
  padding: 2px 5px; border-radius: 4px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  letter-spacing: .2px; pointer-events: none;
  white-space: nowrap;
}
.hc-ava { position: relative; line-height: 0; }

.va-tag {
  font-style: normal; font-size: 9.5px; line-height: 1;
  padding: 2.5px 5px; margin-left: 6px; border-radius: 4px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  letter-spacing: .3px; vertical-align: 1px;
}

.ai-notice {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; line-height: 1.6; color: var(--text-2);
  margin: 2px 0 12px; letter-spacing: .1px; text-align: center;
}
.ai-notice b { color: var(--text-2); font-weight: 600; }
.ai-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: rgba(47, 91, 255, .55);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, .12);
}

/* 手机端窄，声明折两行也不能挤掉员工卡 */
@media (max-width: 880px) {
  .ai-notice { font-size: 10.5px; margin: 0 0 10px; padding: 0 4px; }
  .va-badge { font-size: 8px; padding: 1.5px 4px; }
}

.hero-foot {
  text-align: center; font-size: 12px; letter-spacing: 1.5px;
  color: var(--text-2); padding-top: 13px;
  border-top: 1px solid var(--border);
  position: relative;
}
.hero-foot::before {
  content: '◆'; position: absolute; left: 50%; top: -7px;
  transform: translateX(-50%);
  font-size: 8px; color: var(--brand); background: var(--chip-bg);
  padding: 0 7px;
}

/* hero 里的线索条去掉外边距，融进大屏 */
.hero .w-leadsbar { margin-bottom: 0; }

/* ================= 手机端 Hero ================= */
@media (max-width: 880px) {
  .hero { padding: 18px 15px 14px; border-radius: 16px; }
  .hero-tag { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 13px; }
  .hero-main { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-name { font-size: 21px; }
  .hero-price { text-align: left; width: 100%; }
  .hero-amount { font-size: 38px; }
  /* ⛔ 2026-11-01 卡片改成"图片撑满"之后，这里的 padding 必须清零 ——
     留着 14px 3px 12px 会让图片四周出现白边，看着像没铺满。
     列数也交给后面的手机端横滑规则统一管，这里不重复定义。 */
  .hero-crew { gap: 9px; }
  .hc { padding: 0; }
  .hc-nm { font-size: 12.5px; }
}

/* ---------- 首页真实线索条 ---------- */
.w-leadsbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 11px 15px; margin-bottom: 18px;
  border-radius: 13px;
  background: var(--ok-50);
  border: 1px solid rgba(20, 160, 90, .28);
  position: relative; overflow: hidden;
}
.w-leadsbar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ok);
}
.wlb-l { display: flex; align-items: center; gap: 9px; }
.wlb-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(20, 160, 90, .15);
  animation: breathe 2.2s ease-in-out infinite;
}
.wlb-tx { display: flex; flex-direction: column; gap: 1px; }
.wlb-tx b { font-size: 13.5px; color: var(--text); font-weight: 700; }
.wlb-tx i {
  font-style: normal; font-size: 10.5px; color: var(--ok);
}
.wlb-go {
  margin-left: auto; padding: 6px 14px; border-radius: 100px;
  background: rgba(20, 160, 90, .12); border: 1px solid rgba(20, 160, 90, .40);
  color: var(--ok); font-size: 12px; cursor: pointer; font-weight: 600;
  transition: all .16s ease; flex: none;
}
.wlb-go:hover { background: rgba(20, 160, 90, .20); box-shadow: 0 4px 14px rgba(20, 160, 90, .20); }
.wlb-quote {
  flex-basis: 100%; font-size: 11.5px; color: var(--text-3);
  line-height: 1.6; padding-left: 16px;
  border-left: 2px solid rgba(20, 160, 90, .25);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 区块标题 ---------- */
.w-sec-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 11px;
}
.w-sec-t {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  letter-spacing: .6px;
}
.w-sec-t::before {
  content: ''; display: inline-block;
  width: 3px; height: 11px; border-radius: 2px;
  background: var(--brand);
  margin-right: 8px; vertical-align: -1px;
}
.w-sec-s { font-size: 11px; color: var(--text-3); }

/* ---------- 热门能力：五张卡 ---------- */
.w-hot { margin-bottom: 22px; }
.w-hot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.w-hot-card {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; text-align: left;
  transition: all .22s cubic-bezier(.22,.9,.28,1);
  position: relative; overflow: hidden;
  box-shadow: var(--glow-sm);
}
.w-hot-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(47, 91, 255, .05), transparent 62%);
  opacity: .10; transition: opacity .22s ease; pointer-events: none;
}
.w-hot-card:hover {
  border-color: var(--hc);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -10px var(--hc), 0 0 0 1px var(--hc) inset;
}
.w-hot-card:hover::after { opacity: .22; }
.wh-ico {
  font-size: 22px; line-height: 1; flex: none;
}
.wh-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wh-tx b {
  font-size: 13px; font-weight: 700; color: var(--text);
  letter-spacing: .2px; white-space: nowrap;
}
.wh-tx i {
  font-style: normal; font-size: 10.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 数字员工阵容 ---------- */
.w-crew { margin-bottom: 22px; }
.w-crew-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.w-crew-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px 10px; border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; transition: all .2s ease;
  box-shadow: var(--glow-sm);
}
.w-crew-card:hover {
  background: var(--surface-2);
  border-color: var(--cc);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -10px var(--cc);
}
.w-crew-card.on {
  border-color: var(--cc);
  background: var(--brand-50);
  box-shadow: 0 0 16px -6px var(--cc), inset 0 0 12px rgba(47, 91, 255, .04);
}
.wc-ava { display: block; line-height: 0; filter: drop-shadow(0 4px 12px rgba(20, 30, 60, .15)); }
.wc-nm { font-size: 11.5px; font-weight: 600; color: var(--text); letter-spacing: .2px; }
.wc-rl { font-size: 9.5px; color: var(--text-3); }
.wc-pr {
  font-size: 9px; line-height: 1.45; text-align: center;
  color: var(--cc); opacity: 1;
  letter-spacing: -.2px;
}

/* 行业已设置 */
.w-ind-set {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-2);
  background: var(--brand-50);
  border: 1px solid rgba(47, 91, 255, .22);
  border-radius: 9px; padding: 8px 14px;
  margin-bottom: 20px; width: fit-content;
}
.w-ind-set b { color: var(--brand-deep); font-weight: 600; }
.w-ind-edit {
  border: none; background: var(--surface-2);
  color: var(--text-2); font-size: 11px;
  padding: 2px 9px; border-radius: 5px; cursor: pointer;
  transition: all .15s ease;
}
.w-ind-edit:hover { background: var(--surface-3); color: var(--text); }

/* 行业未设置：主动问一句 */
.w-ind-ask {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  margin-bottom: 20px;
}
.w-ind-q { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 11px; }
.w-ind-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.w-in-chip {
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 12px;
  padding: 5px 13px; border-radius: 100px; cursor: pointer;
  transition: all .16s ease;
}
.w-in-chip:hover {
  background: var(--brand-50);
  border-color: rgba(47, 91, 255, .50);
  color: var(--brand-deep);
}
.w-in-chip.more { color: var(--text-3); border-style: dashed; }
.w-ind-why { font-size: 11px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }

/* ---------- 问题清单折叠 ---------- */
.w-fold-btn {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 12px 15px; margin-bottom: 12px;
  border-radius: 12px; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px; text-align: left;
  transition: all .18s ease;
}
.w-fold-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand);
  color: var(--text);
}
.w-fold-btn span { flex: 1; }
.w-fold-btn i {
  font-style: normal; font-size: 10.5px; color: var(--text-3);
  background: var(--surface-2); padding: 1px 8px; border-radius: 8px;
}
.w-fold-ar { font-size: 11px; color: var(--text-3); transition: transform .2s ease; }

/* ⛔⛔ 2026-11-01 这里原来是「PC 始终展开」——`display:flex !important` 加上
   按钮 `pointer-events:none`，等于 PC 上根本没做折叠，12 个麻烦常驻在首屏下方 650px。
   客户说的"界面杂乱、功能多不知道从哪下手"，主因就是这一条：
   老板一进来，上面 7 个能力卡 + 下面 12 个麻烦 + 6 个胶囊，二十多个按钮同时喊他。
   现在 PC 和手机统一：**默认收起，点标题才展开**。收藏不是删掉，
   标题上写着"还有哪些问题 18 个"，想知道就点一下。 */
.w-fold:not(.open) .w-lines,
.w-fold:not(.open) .w-hot-extra { display: none; }
.w-fold.open .w-fold-ar { transform: rotate(180deg); }

/* 三条动线卡片组 */
.w-lines { display: flex; flex-direction: column; gap: 14px; }
.w-line {
  border-radius: 13px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--glow-sm);
}
.w-line::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--lc); opacity: .85;
}
.w-line-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 17px 11px;
}
.w-line-bar { display: none; }
.w-line-nm {
  font-size: 13.5px; font-weight: 700; color: var(--lc);
  letter-spacing: .4px;
}
.w-line-hint { font-size: 11px; color: var(--text-3); }

.w-troubles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 7px; padding: 0 14px 14px;
}
.w-trouble {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px;
  cursor: pointer; text-align: left;
  transition: all .18s cubic-bezier(.22,.9,.28,1);
}
.w-trouble:hover {
  background: var(--brand-50);
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px var(--brand);
}
.wt-t { flex: 1; line-height: 1.4; }
.wt-a {
  font-size: 10.5px; color: var(--text-3);
  opacity: 0; transition: opacity .18s ease; flex: none;
}
.w-trouble:hover .wt-a { opacity: 1; color: var(--lc); }

/* 麻烦卡片的真实数字角标
   ⛔ 只有**真有线索支撑**才出现（后端 lead_insight.py 决定哪几项有数），
      接不上 03 就一个都不显示 —— 首页放编的数字，老板会真照着去打电话。
   ⛔ 手机端没有 hover（.wt-a 那个"开始 ›"在手机上永远看不见），
      所以这个数字必须常显，它是首屏唯一"现在有几件事在等你"的信号。
   样式对齐左栏已有的 .rail-tool b（同色 var(--dang)、同一档字号），
   ⛔ 不要另造一个红色 —— 深浅主题各有一档 --dang，硬编码 #e8503c 在深色下发闷。 */
.tc-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 6px;
  border-radius: 9px; background: var(--dang); color: #fff;
  font: 700 10px/1 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-style: normal; letter-spacing: -.2px; flex: none;
  vertical-align: 1px;
}

.w-foot {
  text-align: center; font-size: 11.5px; color: var(--text-3);
  margin-top: 20px; line-height: 1.6;
}

/* ---------- 消息 ---------- */
.msg { display: flex; gap: 10px; max-width: 760px; animation: rise .3s ease both; }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg-ava { flex: none; width: 32px; height: 32px; line-height: 0; }
.msg-ava.user-ava {
  border-radius: 9px; background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-2); line-height: 1;
}
.msg-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msg.user .msg-col { align-items: flex-end; }

.bubble {
  padding: 12px 16px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.78;
  white-space: pre-wrap; word-break: break-word;
}
.msg.assistant .bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 6px;
  box-shadow: var(--glow-sm);
}
.msg.user .bubble {
  background: var(--brand);
  color: #fff; border-top-right-radius: 6px;
  box-shadow: 0 6px 20px rgba(47, 91, 255, .25);
}
.msg-time { font-size: 10px; color: var(--text-3); padding: 0 3px; }
.msg-badge {
  font-size: 9.5px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0 5px; margin-left: 6px;
}

.typing { display: flex; gap: 4px; padding: 14px 17px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); display: block;
  animation: blink 1.3s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* 成品卡 */
.artifact {
  background: var(--surface);
  border: 1px dashed rgba(47, 91, 255, .35);
  border-radius: var(--r); overflow: hidden; width: 100%;
  box-shadow: var(--glow-sm);
}
.artifact-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px dashed var(--border);
  font-size: 11px; color: var(--brand-deep);
}
.artifact-body {
  padding: 13px; font-size: 13px; line-height: 1.8;
  color: var(--text-2); white-space: pre-wrap;
  max-height: 260px; overflow-y: auto;
}
.copy-btn {
  padding: 3px 10px; border-radius: 6px;
  background: var(--brand-50);
  border: 1px solid rgba(47, 91, 255, .35);
  color: var(--brand-deep); font-size: 10.5px; cursor: pointer;
  transition: all .15s ease;
}
.copy-btn:hover { background: rgba(47, 91, 255, .16); }
.copy-btn.done { background: var(--ok-50); border-color: rgba(20, 160, 90, .4); color: var(--ok); }

/* ---------- 成品卡下面的行动条 ---------- */
.act-bar {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 10px 13px 11px;
  border-top: 1px dashed var(--border);
  background: var(--surface-2);
}
.act {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
  font-family: var(--f); font-size: 11.5px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  min-height: 34px;
}
.act span { font-size: 12.5px; line-height: 1; }
.act:hover {
  color: var(--brand-deep); border-color: rgba(47, 91, 255, .55);
  background: var(--brand-50);
}
.act:active { transform: translateY(1px); }
.act.go {
  color: #fff; font-weight: 600;
  background: var(--brand);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(47, 91, 255, .28);
}
.act.go:hover { color: #fff; box-shadow: 0 5px 18px rgba(47, 91, 255, .35); }
.act.done {
  color: var(--ok);
  background: var(--ok-50);
  border-color: rgba(20, 160, 90, .40);
}
@media (max-width: 880px) {
  .act { font-size: 12px; padding: 9px 13px; min-height: 40px; }
  .act-bar { gap: 8px; padding: 11px 12px 12px; }
}

/* ---------- 输入区 ---------- */
.composer { flex: none; padding: 8px 24px 16px; }
.composer-inner {
  display: flex; align-items: flex-end; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 8px;
  transition: all .2s ease;
  box-shadow: var(--glow-sm);
}
.composer-inner:focus-within {
  border-color: rgba(47, 91, 255, .65);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, .12), 0 8px 30px rgba(47, 91, 255, .15);
}
.composer-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--f); font-size: 14px;
  line-height: 1.6; resize: none; max-height: 150px; padding: 8px 0;
}
.composer-input::placeholder { color: var(--text-3); }
.send-btn {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  border: none; cursor: pointer;
  background: var(--brand-grad);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(47, 91, 255, .35);
}
.send-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 47, 167, .45);
}
.send-btn:disabled { opacity: .4; cursor: not-allowed; }
.mic-btn {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
  -webkit-tap-highlight-color: transparent;
}
.mic-btn:hover { color: var(--brand-deep); border-color: var(--brand); }
.mic-btn.rec {
  color: #fff; background: rgba(224, 67, 78, .22);
  border-color: var(--dang); animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 67, 78, .50); }
  50%      { box-shadow: 0 0 0 7px rgba(224, 67, 78, 0); }
}
.mic-btn.busy { color: var(--brand-deep); border-color: var(--brand); }
.mic-btn.busy svg { animation: micFade .9s ease-in-out infinite; }
@keyframes micFade { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.mic-btn.na { opacity: .45; }
@media (max-width: 880px) {
  .mic-btn { width: 44px; height: 44px; border-radius: 12px; }
  .send-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mic-btn.rec { animation: none; }
  .mic-btn.busy svg { animation: none; }
}

.composer-hint { font-size: 10.5px; color: var(--text-3); text-align: center; padding-top: 6px; min-height: 14px; }

/* ============ 截图输入（2026-10-30） ============
   老板把客户微信截图丢进来，我们把它读成文字填进输入框。
   预览条必须说清三件事：图在哪、认出来没有、不要了怎么删。 */
.img-preview {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; padding: 7px 10px 7px 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--glow-sm);
}
.img-preview img {
  width: 44px; height: 44px; flex: none; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.img-state {
  flex: 1; min-width: 0; font-size: 12px; color: var(--text-2);
  line-height: 1.5; overflow: hidden; text-overflow: ellipsis;
}
.img-state.err { color: #b5790a; }
.img-del {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.img-del:hover { background: var(--surface-3); color: var(--text); }

/* 对话里的截图：像微信那样图在气泡上方 */
.msg-shot {
  display: block; max-width: 240px; max-height: 300px;
  border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 6px; background: var(--surface-2);
}

/* ============ 今日待办（2026-10-30） ============
   首屏第一眼要看到"今天该做什么"，而不是 12 个静态按钮。
   有真实待办才出现；一条都没有时整块不显示。 */
.w-todos {
  margin: 16px 0 2px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--glow-sm); text-align: left;
}
.wt-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 11px;
}
.wt-head b { font-size: 14px; font-weight: 600; color: var(--text); }
.wt-day {
  font-style: normal; font-size: 11.5px; font-weight: 400;
  color: var(--text-3); margin-right: 7px;
}
.wt-head span { font-size: 11.5px; color: var(--text-3); flex: none; }
/* 「另外 N 件」—— 从原来独占一行的按钮改成标题右侧的小链接。
   ⛔ 它不该是一条按钮：那是"次要入口"，做成按钮会和上面 3 条待办抢注意力。 */
.wt-all {
  flex: none; border: none; background: none; padding: 0;
  font-family: inherit; font-size: 11.5px; color: var(--brand);
  cursor: pointer; letter-spacing: .1px;
}
.wt-all:hover { text-decoration: underline; }

.wt-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.wt-item:last-child { margin-bottom: 0; }
.wt-item:hover { border-color: var(--brand); background: var(--surface); }
.wt-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); flex: none;
}
.wt-item.u1 .wt-dot { background: #e2483f; box-shadow: 0 0 0 3px rgba(226, 72, 63, .14); }
.wt-item.u2 .wt-dot { background: #e0a020; box-shadow: 0 0 0 3px rgba(224, 160, 32, .14); }
.wt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wt-txt b { font-size: 13px; font-weight: 600; color: var(--text); }
.wt-txt i {
  font-style: normal; font-size: 11.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wt-go { color: var(--text-3); font-size: 18px; flex: none; line-height: 1; }

/* ================= 右栏 ================= */
.side {
  width: 268px; flex: none;
  border-left: 1px solid var(--border-soft);
  background: var(--hero-bg);
  padding: 20px 16px; overflow-y: auto;
  box-shadow: inset 1px 0 24px rgba(20, 30, 60, .03);
}
.side-block { margin-bottom: 22px; }
.side-profile { text-align: center; }
.side-avatar { display: flex; justify-content: center; margin-bottom: 10px; }
.side-name { font-size: 15px; font-weight: 700; }
.side-role { font-size: 11px; color: var(--brand-deep); margin-top: 2px; }
.side-tagline {
  font-size: 11.5px; color: var(--text-3); margin-top: 8px;
  line-height: 1.7; padding: 0 4px;
}
.side-label {
  font-size: 10px; color: var(--text-3); letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 9px;
}
.side-chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  padding: 8px 11px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; text-align: left;
  cursor: pointer; line-height: 1.5; transition: all .16s ease;
}
.chip:hover { border-color: rgba(47, 91, 255, .5); color: var(--text); background: var(--brand-50); }
.skill-row {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; color: var(--text-2); padding: 5px 0; line-height: 1.6;
}
.skill-row::before { content: '·'; color: var(--brand); font-weight: 700; font-size: 15px; line-height: 1.3; }

/* ================= 抽屉 ================= */
.drawer { position: fixed; inset: 0; z-index: 500; display: none; }
.drawer.open { display: block; }
/* ⛔⛔ 2026-11-03 谷总反馈：「打开某个功能时侧边一片灰蒙版，看着不舒服」。
   原来是 `rgba(22,30,54,.42)` 的深灰 + `blur(3px)` —— 工作区整片被压暗又糊掉，
   观感像"弹窗把界面锁死了"，而且开着面板就没法对照左边的数据/对话。
   ⇒ 遮罩彻底透明：只保留「点外面关闭」的点击热区（app.js 里
      el.drawerMask 的 click 仍绑着 closeDrawer，transparent 不影响命中），
      层级感全部交给抽屉自己的左边框 + 大阴影。
      它不是模态框，是从右边拉出来的一块板 —— 不封闭、不压抑。 */
.drawer-mask { position: absolute; inset: 0; background: transparent; }
/* 手机端：抽屉是 94vw 的大面板，几乎全屏。完全透明会让左边露出的那 24px
   主内容显得"没盖严"，所以留一点点压暗做隔离（18%，和左栏弹层同口径）。
   注意：仍然不给 blur —— 糊掉比暗更难受。 */
@media (max-width: 880px) {
  .drawer-mask { background: rgba(22, 30, 54, .18); }
}
.drawer-body {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(540px, 94vw); background: var(--bg-soft);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  animation: slideIn .26s cubic-bezier(.22,.9,.28,1) both;
  /* ⛔ 遮罩透明后，浮起感全靠阴影。但别用一层大模糊 ——
     抽屉底 #f5f7fc 和页面底 #eef1f8 只差 3% 亮度，64px 的大范围阴影
     会在左边拉出一片灰雾，等于"换个地方灰"，谷总一眼就看出来。
     ⇒ 三件套，做"一张纸抬起来"的效果（不加灰度）：
        ① 外侧 1px 深线定边界
        ② 内侧 1px 白白的高光，像纸的切边反光
        ③ 小范围（36px）稍深阴影给厚度
     范围小、浓度够，边缘清楚但不脏。 */
  box-shadow: -1px 0 0 rgba(22, 40, 80, .16),
              inset 1px 0 0 rgba(255, 255, 255, .95),
              -12px 0 36px rgba(18, 28, 56, .20);
}
@keyframes slideIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--border-soft); flex: none;
}
.drawer-head h3 { font-size: 15px; font-weight: 700; }
.drawer-content { flex: 1; overflow-y: auto; padding: 16px 20px; }

/* 内容少的抽屉垂直居中。
   ⛔ 不能写 justify-content:center —— 内容超过一屏时，居中的 flex/grid 会
      上下同时溢出，顶部滚不到，第一张卡片永远看不全。
      用首尾两个空伪元素吃掉剩余空间：内容不足一屏时上下均分 → 居中；
      超出时 auto margin 自动算成 0 → 退化成原来的"贴顶 + 正常滚动"。
   典型受益：开通与价格（两张卡）以前挤在上半屏，下半屏一大片空。 */
.drawer-content { display: flex; flex-direction: column; }
.drawer-content::before,
.drawer-content::after { content: ''; margin: auto; flex: none; }

/* 抽屉通用 */
.p-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--glow-sm);
}
.p-card.p-clickable { cursor: pointer; transition: all .16s ease; }
.p-card.p-clickable:hover { border-color: rgba(47, 91, 255, .42); background: var(--surface-2); }
.p-card-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.p-card-meta { font-size: 11px; color: var(--text-3); }
.p-card-body { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-top: 7px; white-space: pre-wrap; }
.p-tag {
  font-size: 9.5px; color: var(--brand-deep); background: var(--brand-50);
  padding: 1px 6px; border-radius: 5px; font-weight: 400;
}
.p-score {
  font-size: 10.5px; color: var(--ok); background: var(--ok-50);
  padding: 1px 7px; border-radius: 9px; font-weight: 400;
}
.p-status {
  font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px;
}
.p-hint {
  font-size: 11.5px; color: var(--text-2); line-height: 1.7;
  background: var(--brand-50); border-left: 2px solid rgba(47, 91, 255, .4);
  padding: 9px 12px; border-radius: 0 8px 8px 0; margin-bottom: 12px;
}
.p-empty { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 46px 20px; line-height: 1.9; }
.p-empty-icon { font-size: 36px; margin-bottom: 12px; opacity: .7; }

.p-btn {
  padding: 8px 15px; border-radius: 8px; cursor: pointer;
  background: var(--brand);
  border: none; color: #fff; font-size: 12.5px;
  box-shadow: 0 4px 14px rgba(47, 91, 255, .25);
}
.p-btn.sec { background: transparent; border: 1px solid var(--border); color: var(--text-2); box-shadow: none; }
/* ---------- 手机打开：二维码 ---------- */
.ph-wrap { display: flex; justify-content: center; margin: 12px 0 2px; }
.ph-qr-box {
  width: 196px; height: 196px; border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-md), 0 0 0 1px var(--border);
  overflow: hidden;
}
.ph-qr { width: 100%; height: 100%; display: block; }
.ph-qr-load { font-size: 11.5px; color: #4a6b8a; text-align: center; line-height: 1.7; padding: 0 12px; }
.ph-qr-load i { font-style: normal; color: #8fa9c4; }
.ph-addr {
  margin: 10px 0 9px; padding: 10px 12px; border-radius: 9px;
  background: var(--surface); border: 1px dashed rgba(47, 91, 255, .35);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px; color: var(--brand-deep); letter-spacing: .3px; word-break: break-all;
}
.ph-alt { margin-top: 6px; font-size: 10.5px; color: var(--text-3); font-family: var(--f); }
.ph-alt i { font-style: normal; display: block; color: var(--text-3); opacity: .8; margin-top: 2px; }
.ph-verdict {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 11px 12px; border-radius: 9px; font-size: 12px; line-height: 1.7;
}
.ph-verdict b {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.ph-verdict.ok { background: rgba(20, 160, 90, .10); border: 1px solid rgba(20, 160, 90, .30); color: #11623f; }
.ph-verdict.ok b { background: rgba(20, 160, 90, .18); color: var(--ok); }
.ph-verdict.warn { background: rgba(181, 121, 10, .10); border: 1px solid rgba(181, 121, 10, .32); color: #7a5200; }
.ph-verdict.warn b { background: rgba(181, 121, 10, .18); color: var(--warn); }
.ph-verdict.bad { background: rgba(224, 67, 78, .10); border: 1px solid rgba(224, 67, 78, .34); color: #a3262e; }
.ph-verdict.bad b { background: rgba(224, 67, 78, .18); color: var(--dang); }
.ph-fix {
  margin-top: 8px; font-size: 11.5px; color: var(--brand-deep); line-height: 1.7;
  padding: 8px 10px; border-radius: 8px; background: var(--brand-50);
}
.ph-facts { margin-top: 9px; }
.ph-facts > div {
  display: flex; gap: 10px; padding: 4px 0; font-size: 11.5px; line-height: 1.6;
  border-bottom: 1px solid rgba(47, 91, 255, .10);
}
.ph-facts > div:last-child { border-bottom: none; }
.ph-facts i {
  flex: 0 0 62px; font-style: normal; color: var(--text-3);
}
.ph-facts span {
  flex: 1; min-width: 0; color: var(--text-2); word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
}
.p-card-body code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
  background: var(--brand-50); color: var(--brand-deep);
  padding: 1px 5px; border-radius: 4px;
}

/* ---------- 我的数字人：素材与任务 ---------- */
.av-count { font-size: 10.5px; font-weight: 400; color: var(--text-3); margin-left: 4px; }

/* 素材多时折叠（客户账号下常有几十个形象/音色，全铺开没法看） */
.av-mats.is-fold .av-mat:nth-child(n+11) { display: none; }
#avVoices.is-fold .dh-opt:nth-child(n+11) { display: none; }
/* 展开后从"横滑一排"变成网格 —— 不然 62 个形象还得左右滑半天才找得到 */
.av-mats.is-open {
  flex-wrap: wrap; overflow-x: visible; scroll-snap-type: none;
}
.av-mats.is-open .av-mat { flex: 0 0 calc((100% - 27px) / 4); }
.av-more {
  display: block; width: 100%; margin: 2px 0 4px; padding: 7px 0;
  background: none; border: 1px dashed var(--border); border-radius: 9px;
  color: var(--text-3); font-size: 11.5px; font-family: var(--f); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.av-more:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 880px) { .av-more { min-height: 40px; } }

.av-mats {
  display: flex; gap: 9px; overflow-x: auto; overflow-y: hidden;
  margin: 11px -2px 4px; padding: 2px 2px 8px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.av-mats::-webkit-scrollbar { height: 5px; }
.av-mats::-webkit-scrollbar-thumb { background: rgba(22, 40, 80, .22); border-radius: 3px; }
.av-mat {
  position: relative; flex: 0 0 88px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 7px 6px 8px; cursor: pointer; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text-2); font-size: 11.5px; font-family: var(--f);
  transition: border-color .15s ease, background .15s ease;
  min-height: 44px;
}
.av-mat:hover { border-color: var(--border-strong); background: var(--surface-2); }
.av-mat.on {
  border-color: var(--brand); background: var(--brand-50);
  box-shadow: 0 0 0 1px rgba(47, 91, 255, .35), 0 6px 18px rgba(47, 91, 255, .15);
}
.av-mat-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px;
  background: var(--surface-2); display: block;
}
.av-mat-ph {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3);
  font-size: 24px; color: #5b80ff; font-weight: 600;
}
.av-mat-nm {
  display: block; width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; line-height: 1.35;
}
.av-ok {
  position: absolute; top: 3px; right: 3px;
  font-size: 9px; line-height: 1; padding: 2px 4px; border-radius: 5px;
  background: rgba(20, 160, 90, .14); color: var(--ok); border: 1px solid rgba(20, 160, 90, .35);
}

/* 数字人第一步：小程序码入口（2026-10-27） */
.av-qr-box { margin: 13px 0 2px; text-align: center; }
.av-qr {
  display: inline-block; width: 172px; height: 172px;
  border-radius: 12px; background: #fff; border: 1px solid var(--border);
}
.av-qr-hint { margin-top: 9px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.av-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.av-step {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12px; line-height: 1.7; color: var(--text-2);
}
.av-step > b {
  flex: 0 0 19px; width: 19px; height: 19px; margin-top: 1px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand);
  font-size: 11px; font-weight: 700;
}
.av-step span b { color: var(--ink); font-weight: 600; }

.av-grant {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  padding: 10px 11px; border-radius: 9px; cursor: pointer;
  background: var(--ok-50); border: 1px solid rgba(20, 160, 90, .30);
  font-size: 11.5px; color: var(--text-2); line-height: 1.6;
}
.av-grant input { margin-top: 1px; width: 15px; height: 15px; flex: 0 0 auto; accent-color: #14a05a; }
.av-grant.need {
  background: rgba(181, 121, 10, .10); border-color: rgba(181, 121, 10, .45);
}
.av-grant.need span::after {
  content: '（必勾，否则不能出片）'; color: var(--warn);
}

.av-job {
  padding: 11px 0; border-top: 1px solid var(--border-soft);
}
.av-job:first-child { border-top: none; padding-top: 4px; }
.av-job-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.av-job-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.av-badge {
  flex: 0 0 auto; font-size: 10px; padding: 2px 7px; border-radius: 20px; line-height: 1.5;
}
.av-badge.ok { background: rgba(20, 160, 90, .12); color: var(--ok); }
.av-badge.fail { background: rgba(224, 67, 78, .12); color: #e0434e; }
.av-badge.run { background: rgba(47, 91, 255, .12); color: var(--brand-deep); }
.av-job-meta { font-size: 10.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.av-job-err { font-size: 11px; color: #e0434e; margin-top: 6px; line-height: 1.6; }

/* 生成中的进度条 */
.av-bar {
  height: 3px; border-radius: 3px; overflow: hidden; margin: 9px 0 7px;
  background: rgba(47, 91, 255, .14);
}
.av-bar i {
  display: block; height: 100%; width: 38%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(47, 91, 255,.5), transparent);
  animation: avslide 1.5s ease-in-out infinite;
}
@keyframes avslide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}
@media (prefers-reduced-motion: reduce) {
  .av-bar i { animation: none; width: 100%; opacity: .5; }
}
@media (max-width: 880px) {
  .av-mats { gap: 8px; }
  .av-mat { flex: 0 0 78px; padding: 6px 5px 7px; }
}
.p-btn:hover { opacity: .9; box-shadow: 0 6px 20px rgba(47, 91, 255, .30); }
.p-input {
  width: 100%; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px; color: var(--text);
  font-size: 13px; font-family: var(--f); margin-bottom: 9px; outline: none;
}
.p-input:focus { border-color: var(--brand); }

/* 统计小卡 */
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 10px; }
.p-stats > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 13px 6px; text-align: center;
}
.p-stats b { display: block; font-size: 21px; font-weight: 700; color: var(--brand-deep); line-height: 1.2; }
.p-stats span { font-size: 10.5px; color: var(--text-3); }

/* ── 资料体检（2026-11-03）──────────────────────────────
   为什么要这张表：老板不知道"知识库该传什么"，
   只会觉得"这 AI 答得不准"。把该传的东西变成 6 个勾，
   缺哪项一眼看到，才知道下一步做什么。 */
.kb-arow {
  display: grid; grid-template-columns: 8px 1fr auto;
  gap: 3px 8px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--border);
}
.kb-arow:first-of-type { border-top: 0; }
.kb-arow > i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3); opacity: .45;
}
.kb-arow.ok > i { background: #1f9d63; opacity: 1; }
.kb-arow.mid > i { background: #d18a1f; opacity: 1; }
.kb-arow.no > i { background: #c94a4a; opacity: 1; }
.kb-aname { font-size: 12.5px; font-weight: 600; color: var(--text); }
.kb-lv {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  border: 1px solid transparent;
}
.kb-lv.ok { color: #177a4d; background: rgba(31,157,99,.10); border-color: rgba(31,157,99,.24); }
.kb-lv.mid { color: #9a6408; background: rgba(209,138,31,.12); border-color: rgba(209,138,31,.26); }
.kb-lv.no { color: #a83232; background: rgba(201,74,74,.10); border-color: rgba(201,74,74,.24); }
.kb-atip {
  grid-column: 2 / 4;
  font-size: 11px; line-height: 1.55; color: var(--text-3);
}
.kb-tplbox {
  width: 100%; font-size: 12px; line-height: 1.7;
  font-family: inherit; resize: vertical; min-height: 300px;
}

/* ── 查资料（联网检索）2026-11-03 ────────────────────── */
.ws-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ws-chip {
  font-size: 11.5px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; transition: all .16s;
  font-family: inherit; min-height: 30px;
}
.ws-chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.ws-passage {
  font-size: 12px; line-height: 1.7; color: var(--text-2);
  margin-top: 7px; padding-left: 9px;
  border-left: 2px solid var(--border);
}
.ws-link {
  display: inline-block; margin-top: 8px;
  font-size: 11.5px; color: var(--brand-deep); text-decoration: none;
  padding: 4px 0; min-height: 24px;
}
.ws-link:hover { text-decoration: underline; }
.ws-hit .p-card-title { font-size: 13px; line-height: 1.5; }

/* ── 平台内置说明（折叠）────────────────────────────── */
.kb-pub { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.kb-pub-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; padding: 6px 0; min-height: 34px; user-select: none;
}
.kb-pub-ar { font-size: 11px; color: var(--text-3); }
.kb-pub-body { display: none; padding-top: 2px; }
.kb-pub-body.open { display: block; }
.kb-pub-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 0; border-top: 1px solid var(--border);
}
.kb-pub-row:first-of-type { border-top: 0; }
.kb-pub-row b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.kb-pub-row span { font-size: 10.5px; color: var(--text-3); }

/* 柱状图 */
.p-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 110px; padding-top: 10px;
}
.p-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.p-bar {
  width: 100%; max-width: 26px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(47, 91, 255,.55), rgba(47, 91, 255, .12));
  margin-top: auto; transition: height .4s ease;
}
.p-bar-x { font-size: 9.5px; color: var(--text-3); margin-top: 6px; }

/* 排行 */
.p-rank { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12px; }
.p-rank-name { width: 84px; flex: none; color: var(--text-2); }
.p-rank-name i { font-style: normal; font-size: 10px; color: var(--text-3); margin-left: 4px; }
.p-rank-bar { flex: 1; height: 6px; background: rgba(22, 40, 80, .08); border-radius: 3px; overflow: hidden; }
.p-rank-bar i { display: block; height: 100%; border-radius: 3px; transition: width .4s ease; }
.p-rank-n { width: 26px; text-align: right; color: var(--text-3); font-size: 11px; }

/* 团队列表 */
.p-team { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.p-team:last-child { border-bottom: none; }
.p-team-ava { flex: none; line-height: 0; }
.p-team-info { flex: 1; min-width: 0; }
.p-team-info b { display: block; font-size: 12.5px; }
.p-team-info i { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); }
.p-on { font-size: 10px; color: var(--ok); background: var(--ok-50); padding: 1px 7px; border-radius: 9px; }

/* 帮助 */
.p-help-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.p-help-row:last-child { border-bottom: none; }
.p-help-ava { flex: none; line-height: 0; }
.p-help-row b { color: var(--text); }
.p-help-row i { font-style: normal; color: var(--text-3); font-size: 11px; }

/* ---------- 右栏：行业 ---------- */
.ind-btn {
  width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 9px;
  border: 1px dashed var(--border); background: var(--surface);
  color: var(--text-3); font-size: 12px; cursor: pointer;
  transition: all .16s ease;
}
.ind-btn:hover { border-color: var(--brand); color: var(--text-2); background: var(--brand-50); }
.ind-btn.set {
  border-style: solid; border-color: rgba(47, 91, 255, .32);
  background: var(--brand-50); color: var(--brand-deep);
}

/* 行业选择网格（抽屉里） */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ind-cell {
  padding: 13px 10px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all .16s ease;
}
.ind-cell:hover { background: rgba(47, 91, 255, .10); border-color: rgba(47, 91, 255, .4); color: var(--text); }
.ind-cell.active {
  border-color: var(--brand); background: var(--brand-50); color: var(--brand-deep); font-weight: 600;
}

/* ---------- 手机端页面切换（在左侧栏顶部） ---------- */
.rail-pages { display: none; }

@media (max-width: 880px) {
  .rail-pages {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    padding: 12px 10px 4px;
  }
  .rail-page {
    display: flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 12px;
    border-radius: 11px; cursor: pointer;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2); font-size: 13.5px; font-family: var(--f);
    transition: background .16s, border-color .16s, color .16s;
  }
  .rail-page span { font-size: 16px; line-height: 1; }
  .rail-page.on {
    background: var(--brand-50);
    border-color: rgba(47, 91, 255, .45);
    color: var(--brand-deep); font-weight: 600;
  }
  .rail-page:active { background: var(--surface-3); }

  /* 左栏工具按钮手机端加大到 44px */
  /* ⛔ 2026-11-01 谷总反馈「手机版左侧功能栏偏小」。
     原来：抽屉宽 300、条目高 44、字号 14、分组标题 10px。
     手机上这排是**主入口**（18 个功能全靠它），10px 的小标题基本看不清。
     ⇒ 抽屉加宽到 340、条目 48、字号 15、图标 18、分组标题 12。 */
  .rail-tool {
    min-height: 48px; padding: 0 11px;
    font-size: 15px;
  }
  .rail-tool span { font-size: 18px; width: 24px; }
}

/* 手机端导航键 */
/* ⛔⛔ 2026-11-01 客户反馈：手机端左下角这个☰「用户不知道怎么用」。
   原来它是浅灰底 + 灰色细线，和旁边的传图、麦克风长得一模一样，
   在一排按钮里完全没有存在感 —— 用户根本不会想到它是"打开导航"的开关，
   于是三页（干活/线索/成果/我的）等于进不去。
   现在改成：品牌色实底 + 白色图标 + 轻投影 —— 一排灰按钮里唯一的彩色，
   手指自然会往那儿去。位置不动（输入框最左，永远可见、不遮挡消息）。 */
.menu-btn {
  display: none; flex: none; width: 38px; height: 38px;
  border-radius: 11px; cursor: pointer;
  align-items: center; justify-content: center;
  background: var(--brand);
  border: 1px solid var(--brand-deep);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(47, 91, 255, .55);
  transition: transform .14s, box-shadow .16s, background .16s;
}
.menu-btn:hover { background: var(--brand-hi); box-shadow: 0 3px 12px -3px rgba(47, 91, 255, .7); }
.menu-btn:active { transform: scale(.94); background: var(--brand-deep); }
.menu-btn svg { stroke-width: 2.2; }

.agent-card {
  display: none;
}

/* ================= 手机端：左右滑动三页 ================= */

/* PC 端：包装层全部"消失"，布局与改版前逐像素一致 */
@media (min-width: 881px) {
  .m-viewport, .m-track, .m-page, .m-page[data-pg="work"] { display: contents; }
  .m-page[data-pg]:not([data-pg="work"]) { display: none; }
  .m-scroll { display: none; }
}

/* ---- 成果页 / 我的页 通用 ---- */
.m-pg-head { padding: 18px 2px 14px; }
.m-pg-title { font-size: 20px; font-weight: 700; letter-spacing: .2px; margin: 0 0 6px; }
.m-pg-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin: 0; }

.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 15px 15px 6px;
  margin-bottom: 12px;
  box-shadow: var(--glow-sm);
}
.m-card-label {
  font-size: 11px; color: var(--text-3); letter-spacing: 1.1px;
  text-transform: uppercase; margin-bottom: 10px;
}

.m-links { display: flex; flex-direction: column; }
.m-link {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 13px 2px;
  border: none; background: none; cursor: pointer;
  color: var(--text-2); font-size: 14px; text-align: left;
  border-bottom: 1px solid var(--border-soft);
  transition: color .15s ease;
}
.m-link:last-child { border-bottom: none; }
.m-link:active { color: var(--text); }
.m-link span { font-size: 16px; width: 22px; text-align: center; flex: none; }
.m-link i {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700;
  background: var(--dang); color: #fff; min-width: 17px; height: 17px;
  line-height: 17px; text-align: center; border-radius: 9px; padding: 0 5px;
}
.m-link i:empty { display: none; }
.m-link i.m-badge-demo {
  display: block; width: 7px; height: 7px; min-width: 7px;
  padding: 0; background: transparent;
  border: 1.5px solid var(--text-4); border-radius: 50%;
}
.m-link::after {
  content: '›'; margin-left: auto; color: var(--text-3); font-size: 17px;
  order: 2;
}
.m-link i { order: 1; }

.m-ind-wrap { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 12px; }

/* ---- 定价卡（抽屉里） ---- */
.p-plan {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.p-plan:last-of-type { border-bottom: none; }
.p-plan-head { display: flex; align-items: center; gap: 8px; }
.p-plan-head b { font-size: 13.5px; color: var(--text); }
.p-plan-badge {
  font-size: 9.5px; font-weight: 700; color: #fff;
  background: var(--brand);
  padding: 1px 7px; border-radius: 5px;
}
.p-plan-price {
  margin-left: auto; font-size: 19px; font-weight: 700;
  color: var(--text);
}
.p-plan-price i {
  font-style: normal; font-size: 10.5px; font-weight: 400;
  color: var(--text-3); margin-left: 2px;
}
.p-plan-desc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.p-plan-feat {
  list-style: none; margin-top: 8px; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.p-plan-feat li {
  font-size: 11.5px; color: var(--text-2); line-height: 1.6;
  padding-left: 15px; position: relative;
}
.p-plan-feat li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--ok); font-size: 10.5px;
}
.p-plan-feat li.off { color: var(--text-3); }
.p-plan-feat li.off::before { content: '✕'; color: var(--text-3); }

/* ---- 线索卡（抽屉里，PC 用） ---- */
.p-lead-st {
  font-size: 9.5px; padding: 1px 7px; border-radius: 6px;
  border: 1px solid var(--border-soft); color: var(--text-3);
  font-weight: 400; margin-left: 4px; white-space: nowrap;
}
.p-lead-st.s-contacted { color: var(--brand-deep); border-color: rgba(47, 91, 255,.4); background: rgba(47, 91, 255,.08); }
.p-lead-st.s-replied   { color: var(--warn); border-color: rgba(181,121,10,.4); background: rgba(181,121,10,.08); }
.p-lead-st.s-converted { color: var(--ok); border-color: rgba(20,160,90,.4); background: rgba(20,160,90,.08); }
.p-lead-st.s-ignored   { opacity: .65; }

.p-lead-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.p-lead-acts .p-btn { flex: none; padding: 6px 13px; font-size: 11.5px; }

.p-lead-panel {
  margin-top: 11px; padding-top: 11px;
  border-top: 1px dashed var(--border);
}
.p-lead-sts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.p-st-btn {
  padding: 5px 12px; border-radius: 100px; cursor: pointer;
  font-size: 11.5px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-2);
}
.p-st-btn.b-contacted { color: var(--brand-deep); border-color: rgba(47, 91, 255,.35); }
.p-st-btn.b-replied   { color: var(--warn); border-color: rgba(181,121,10,.35); }
.p-st-btn.b-converted { color: var(--ok); border-color: rgba(20,160,90,.35); }
.p-st-btn:disabled { opacity: .55; cursor: default; }
.p-st-btn:hover:not(:disabled) { background: var(--surface-3); }

.p-lead-note { display: flex; gap: 7px; align-items: center; }
.p-lead-note .p-input { flex: 1; }
.p-lead-note .p-btn { flex: none; padding: 8px 14px; font-size: 11.5px; }

.p-lead-tl { margin-top: 10px; }
.p-tl-empty { font-size: 11.5px; color: var(--text-3); line-height: 1.7; padding: 3px 0; }
.p-tl-row {
  display: grid; grid-template-columns: 8px 64px 88px 1fr;
  gap: 7px; align-items: baseline;
  font-size: 11.5px; padding: 4px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.p-tl-row:last-child { border-bottom: none; }
.p-tl-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); align-self: center;
}
.p-tl-k { color: var(--text); font-weight: 600; }
.p-tl-t { color: var(--text-3); font-size: 10.5px; }
.p-tl-x { color: var(--text-2); line-height: 1.5; }

/* ---- 定价：回本计算 + 差价说明 ---- */
.p-plan-anchor {
  font-size: 10.5px; color: var(--brand-deep); margin-top: 3px;
  font-weight: 600; letter-spacing: .2px;
}
.p-payback {
  margin-top: 10px; padding: 10px 12px;
  background: var(--ok-50);
  border: 1px solid rgba(20, 160, 90, .22);
  border-radius: 9px;
}
.p-payback-t { font-size: 11px; color: var(--ok); font-weight: 700; margin-bottom: 7px; }
.p-payback-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.p-payback-item {
  font-size: 11px; color: var(--text-2);
  background: var(--surface-2); border-radius: 6px;
  padding: 4px 9px;
}
.p-payback-item b { color: var(--ok); font-size: 12.5px; margin: 0 2px; }
.p-gap-note {
  font-size: 11px; line-height: 1.75; color: var(--text-2);
  background: rgba(181, 121, 10, .08);
  border-left: 2px solid rgba(181, 121, 10, .45);
  border-radius: 0 7px 7px 0;
  padding: 9px 11px; margin-top: 10px;
}
/* ---- 对比表 ---- */
.p-cmp {
  margin-top: 12px; padding: 11px 12px;
  background: var(--brand-50);
  border: 1px solid rgba(47, 91, 255, .16);
  border-radius: 10px;
}
.p-cmp-t {
  font-size: 11.5px; font-weight: 700; color: var(--brand-deep);
  margin-bottom: 9px; letter-spacing: .3px;
}
.p-cmp-h, .p-cmp-r {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr .75fr;
  gap: 6px; align-items: center;
}
.p-cmp-h {
  font-size: 9.5px; color: var(--text-3);
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.p-cmp-r {
  font-size: 11px; color: var(--text-2);
  padding: 5px 0; border-bottom: 1px dashed var(--border-soft);
}
.p-cmp-r:last-child { border-bottom: none; }
.p-cmp-r > span:nth-child(2) { color: var(--text-3); }
.p-cmp-r > span:nth-child(3) { color: var(--text-3); }
.p-cmp-r.win > span:nth-child(2) { color: var(--ok); font-weight: 700; }
.p-cmp-r.win > span:last-child {
  color: var(--ok); font-size: 9.5px;
  background: rgba(20, 160, 90, .10); border-radius: 4px;
  padding: 1px 4px; text-align: center;
}
.p-cmp-r:not(.win) > span:last-child { color: var(--text-3); font-size: 9.5px; text-align: center; }

/* ---- 发布包面板 ---- */
.p-platforms { display: flex; flex-wrap: wrap; gap: 7px; }
.p-plat {
  padding: 7px 15px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; transition: all .16s ease;
}
.p-plat:hover { border-color: rgba(47, 91, 255,.4); color: var(--text); }
.p-plat.on {
  border-color: var(--brand); background: var(--brand-50);
  color: var(--brand-deep); font-weight: 600;
}
.p-pub-box {
  font-size: 12.5px; line-height: 1.85; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px 15px;
  max-height: 380px; overflow-y: auto;
}

/* ---- 线索分档 Tab ---- */
.m-lead-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
  overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.m-lead-tabs::-webkit-scrollbar { display: none; }
.m-lt {
  flex: none; padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
  transition: all .16s ease; display: flex; align-items: center; gap: 5px;
}
.m-lt i {
  font-style: normal; font-size: 10px; font-weight: 700;
  color: var(--text-3); background: var(--surface-2);
  min-width: 16px; height: 16px; line-height: 16px;
  text-align: center; border-radius: 8px; padding: 0 4px;
}
.m-lt.on {
  border-color: var(--brand); background: var(--brand-50);
  color: var(--brand-deep); font-weight: 600;
}
.m-lt.on i { color: #fff; background: var(--brand); }

/* 已成交的卡片：降饱和，别抢新线索的注意力 */
.m-lead.done {
  border-color: rgba(20, 160, 90, .25);
  background: rgba(20, 160, 90, .06);
}
.m-lead.done::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--ok);
}
.m-lead.done .m-lead-score {
  background: var(--ok);
}

/* ---- 线索页 ---- */
.m-leads-status { margin-bottom: 12px; }
.m-leads-ok {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ok);
  background: rgba(20, 160, 90, .08);
  border: 1px solid rgba(20, 160, 90, .22);
  border-radius: 10px; padding: 9px 13px;
}
.m-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); flex: none;
  box-shadow: 0 0 0 3px rgba(20, 160, 90, .16);
  animation: breathe 2.2s ease-in-out infinite;
}
.m-leads-warn {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px;
  background: rgba(181, 121, 10, .08);
  border: 1px solid rgba(181, 121, 10, .28);
  border-radius: 10px; padding: 10px 13px;
}
.m-leads-warn b { color: var(--warn); font-size: 12.5px; }
.m-leads-warn span { color: var(--text-3); font-size: 11.5px; line-height: 1.55; }

.m-leads { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.m-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px; padding: 13px 14px;
  position: relative; overflow: hidden;
  box-shadow: var(--glow-sm);
}
.m-lead.hot {
  border-color: rgba(224, 67, 78, .35);
  background: rgba(224, 67, 78, .05);
}
.m-lead.hot::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--dang);
}
.m-lead-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-lead-score {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand);
  min-width: 26px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 7px; flex: none;
  box-shadow: 0 2px 10px rgba(47, 91, 255,.25);
}
.m-lead.hot .m-lead-score {
  background: var(--dang);
  box-shadow: 0 2px 10px rgba(224, 67, 78, .30);
}
.m-lead-name { font-size: 13.5px; font-weight: 600; color: var(--text); flex: 1; }
.m-lead-plat { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.m-lead-said {
  font-size: 13px; line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.m-lead-prod { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }

/* 状态标签 */
.m-lead-st {
  font-size: 10px; padding: 2px 8px; border-radius: 7px;
  border: 1px solid var(--border-soft); color: var(--text-3);
  flex: none; white-space: nowrap;
}
.m-lead-st.s-contacted { color: var(--brand-deep); border-color: rgba(47, 91, 255,.4); background: rgba(47, 91, 255,.08); }
.m-lead-st.s-replied   { color: var(--warn); border-color: rgba(181,121,10,.4); background: rgba(181,121,10,.08); }
.m-lead-st.s-converted { color: var(--ok); border-color: rgba(20,160,90,.4); background: rgba(20,160,90,.08); }
.m-lead-st.s-ignored   { color: var(--text-3); opacity: .7; }

/* 操作展开区 */
.m-lead-tl {
  margin-top: 11px; padding-top: 11px;
  border-top: 1px dashed var(--border-soft);
}
.m-tl-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tl-btn {
  padding: 7px 13px; border-radius: 100px; cursor: pointer;
  font-size: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-2);
}
.m-tl-btn.b-contacted { color: var(--brand-deep); border-color: rgba(47, 91, 255,.35); }
.m-tl-btn.b-replied   { color: var(--warn); border-color: rgba(181,121,10,.35); }
.m-tl-btn.b-converted { color: var(--ok); border-color: rgba(20,160,90,.35); }
.m-tl-btn:disabled { opacity: .55; }

.m-tl-note { display: flex; gap: 7px; margin-top: 9px; }
.m-tl-input {
  flex: 1; min-width: 0; padding: 8px 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 12.5px;
  font-family: var(--f); outline: none;
}
.m-tl-input:focus { border-color: rgba(47, 91, 255,.5); }
.m-tl-save {
  padding: 8px 14px; border-radius: 8px; flex: none; cursor: pointer;
  background: var(--brand-50); border: 1px solid rgba(47, 91, 255,.35);
  color: var(--brand-deep); font-size: 12.5px;
}
.m-tl-save:disabled { opacity: .55; }

.m-tl-list { margin-top: 11px; }
.m-tl-loading, .m-tl-empty {
  font-size: 11.5px; color: var(--text-3); line-height: 1.65; padding: 4px 0;
}
.m-tl-item { display: flex; gap: 9px; padding: 6px 0; }
.m-tl-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none; margin-top: 6px;
  background: var(--brand);
}
.m-tl-body { min-width: 0; flex: 1; }
.m-tl-h { display: flex; align-items: baseline; gap: 8px; }
.m-tl-h b { font-size: 12px; color: var(--text); font-weight: 600; }
.m-tl-h i { font-style: normal; font-size: 10px; color: var(--text-3); }
.m-tl-tx { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-top: 2px; }
.m-lead-bar { display: flex; gap: 8px; margin-top: 11px; }
.m-lead-btn {
  flex: 1; padding: 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
}
.m-lead-btn.pri {
  background: var(--brand);
  border: none; color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(47, 91, 255, .25);
}
.m-lead-btn:active { opacity: .82; }

/* ---- 今天朋友圈发这条 ---- */
.m-moment-wrap { padding-bottom: 13px; }
.m-moment-body {
  font-size: 13.5px; line-height: 1.75; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  background: var(--surface);
  border: 1px solid rgba(47, 91, 255, .18);
  border-radius: 11px; padding: 12px 14px;
}
.m-moment-copy {
  width: 100%; margin-top: 10px; padding: 10px;
  border-radius: 9px; cursor: pointer;
  background: var(--brand);
  border: none; color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(47, 91, 255, .28);
}
.m-ind {
  min-height: 44px; padding: 0 17px;
  display: inline-flex; align-items: center;
  border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all .16s ease;
}
.m-ind.on {
  border-color: var(--brand); background: var(--brand-50);
  color: var(--brand-deep); font-weight: 600;
}

/* ---------- 手机端：双端分工说明 + 高级设置折叠 ---------- */
.m-split { padding-bottom: 4px; }
.m-split-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-top: 1px solid var(--border-soft);
}
.m-split-row:first-of-type { border-top: none; }
.m-split-ico { flex: 0 0 auto; font-size: 15px; line-height: 1.5; }
.m-split-tx { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.m-split-tx b { color: var(--text); font-weight: 600; }

.m-fold {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--f); text-align: left; min-height: 44px;
  position: relative;
}
.m-fold::after {
  content: ''; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px;
}
.m-fold i {
  flex: 1; font-style: normal; font-size: 10.5px; color: var(--text-4);
  text-align: right;
}
.m-fold-ar { color: var(--text-3); font-size: 11px; flex: none; }
.m-adv { margin-top: 12px; }

.m-foot-note {
  text-align: center; font-size: 11px; color: var(--text-3);
  padding: 18px 0 26px; line-height: 1.6;
}

/* ---- 成果卡片 ---- */
.m-assets { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.m-asset {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 14px;
  box-shadow: var(--glow-sm);
}
.m-asset-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
}
.m-asset-type {
  font-size: 10px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-50);
  padding: 2px 7px; border-radius: 4px; font-weight: 600;
}
.m-asset-title {
  font-size: 13.5px; font-weight: 600; color: var(--text); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-asset-body {
  font-size: 13px; color: var(--text-2); line-height: 1.7;
  max-height: 4.2em; overflow: hidden; position: relative;
  white-space: pre-wrap;
}
.m-asset-body.open { max-height: none; }
.m-asset-meta {
  font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-bottom: 9px;
}

/* 数字人成片播放器：竖屏 720×1280，直接铺满宽度会高三屏，所以限高 + contain */
.av-video {
  width: 100%; max-height: 340px; margin-top: 10px;
  display: block; background: #000; border-radius: 11px;
  object-fit: contain;
  /* 2026-11-03 体验片不可下载：禁掉长按菜单（iOS 会弹"存储视频"）和选中 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Chrome/Edge 原生控制条里的「下载」「画中画」按钮，controlsList 不生效时兜底 */
video::-internal-media-controls-download-button { display: none; }
video::-webkit-media-controls-download-button { display: none; }
video::-webkit-media-controls-picture-in-picture-button { display: none; }
@media (max-width: 880px) {
  .av-video { max-height: 320px; border-radius: 10px; margin-top: 0; }
}
.m-asset-bar {
  display: flex; gap: 8px; margin-top: 11px;
}
.m-asset-btn {
  flex: 1; padding: 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
  transition: all .15s ease;
  /* 手机点按区下限 44px：原来按内边距撑出来只有 41px，一只手点偏就点空 */
  min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.m-asset-btn:active { background: var(--surface-3); }
.m-asset-btn.pri {
  background: var(--brand-grad);
  border-color: transparent; color: #fff; font-weight: 600;
}
.m-asset-btn.done { color: var(--ok); border-color: rgba(20,160,90,.4); }
.m-asset-btn.fail { color: #e0434e; border-color: rgba(224,67,78,.4); font-size: 11px; }
.m-empty-sm {
  text-align: center; font-size: 13px; color: var(--text-3);
  padding: 40px 20px; line-height: 1.8;
}

/* ================= 响应式 ================= */
@media (max-width: 1180px) { .side { display: none; } }

@media (max-width: 880px) {
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 400;
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.22,.9,.28,1);
    box-shadow: 24px 0 60px rgba(20, 30, 60, .18);
    width: min(86vw, 340px);
  }
  .rail-label { font-size: 12px; letter-spacing: .4px; }
  .rail.open { transform: none; }

  /* ⛔ 同上（2026-11-03）：42% 深灰 + 3px 模糊太闷。手机左栏是 86vw 的大抽屉，
     完全透明会让背后内容抢注意力，所以留一点压暗做隔离，但去掉模糊 ——
     糊掉比暗更难受（字看不清，还以为页面卡了）。 */
  body.rail-open::after {
    content: ''; position: fixed; inset: 0; z-index: 390;
    background: rgba(22, 30, 54, .18);
    animation: fadeIn .2s ease both;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .chat-head { display: none; }
  .menu-btn { display: flex; min-width: 44px; min-height: 44px; }

  .m-pg-titlerow {
    display: flex; align-items: center; gap: 10px;
  }
  .m-pg-titlerow .m-pg-title { margin: 0; }
  .menu-btn.pg-menu { width: 44px; height: 44px; border-radius: 10px; }

  /* ⛔⛔ 2026-11-03（谷总）：手机端员工卡原来 304px，第一屏三分之一被它吃了，
      "客户顾问"四个字比所有功能都显眼。PC 端顶栏已经压成一行，手机没跟上。
     ⇒ 手机端改成一条 52px 的条：品牌名打头，当前员工缩成小字，
        能力和示例问题收进 ▾ 展开层（删了会退回"点进来不知道问什么"）。
     结构在 app.js 的 agentCardHTML() 里，这里只管长相。 */
  .agent-bar {
    /* ⛔ flex: none 不能省：.messages 是 flex column，子项默认可收缩，
       下面 .welcome（723px）会把这条压成 2px、overflow:hidden 一裁就没了。
       实测踩到：DOM 在、样式在、高度 2px，肉眼以为"没渲染"。 */
    flex: 0 0 auto;
    margin: 0 0 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--glow-sm);
    overflow: hidden;
  }
  .ab-head {
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 52px; padding: 9px 13px;
    background: none; border: 0; text-align: left;
    cursor: pointer; font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .ab-head:active { background: var(--surface-2); }
  .ab-ava { flex: none; line-height: 0; }
  .ab-tx {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
  }
  .ab-tx b {
    font-size: 13.5px; font-weight: 700; color: var(--text);
    letter-spacing: .2px; line-height: 1.35;
  }
  .ab-tx i {
    font-size: 11.5px; font-style: normal; color: var(--text-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ab-ar {
    flex: none; font-size: 10px; color: var(--text-3);
    transition: transform .16s;
  }
  .ab-head.open .ab-ar { transform: rotate(180deg); }
  .ab-more { padding: 0 13px 12px; }
  .ab-more .agent-card-skills { margin-top: 0; padding-top: 11px; }
  /* 品牌名已经在上面那条里了，hero 再写一遍就是重复 */
  .hero-name { display: none; }
  .hero { padding: 14px 15px 12px; }

  .agent-card {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px; margin: 0 0 16px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--glow-sm);
  }
  .agent-card-ava { flex: none; line-height: 0; }
  .agent-card-tx { flex: 1; min-width: 0; }
  .agent-card-nm {
    font-size: 14.5px; font-weight: 700; color: var(--text);
    display: flex; align-items: baseline; gap: 7px;
  }
  .agent-card-role {
    font-size: 11px; font-weight: 500; color: var(--text-3);
    letter-spacing: .2px;
  }
  .agent-card-st {
    font-size: 11.5px; color: var(--brand-deep); margin-top: 2px;
    display: flex; align-items: center; gap: 5px;
  }
  .agent-card-st i {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--brand); flex: none;
  }
  .agent-card-st.typing { color: var(--text-2); }
  .agent-card-st.typing i { display: none; }
  .composer { padding: 7px 13px 12px; }
  .msg { max-width: 100%; }
  .bubble { font-size: 14px; }
  .composer-input { font-size: 16px; }
  .chat-role { display: none; }

  .w-hot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .w-hot-card { padding: 12px 13px; }
  .wh-ico { font-size: 20px; }
  .wh-tx b { font-size: 12.5px; }

  .w-crew-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .w-crew-card { padding: 13px 4px 11px; }

  .m-viewport {
    flex: 1; min-height: 0; overflow: hidden; position: relative;
  }
  .m-track {
    display: flex; height: 100%; width: 100%;
    transition: transform .30s cubic-bezier(.22,.9,.28,1);
    will-change: transform;
  }
  .m-track.dragging { transition: none; }
  .m-page {
    display: flex; flex-direction: column;
    flex: 0 0 100%; width: 100%; height: 100%;
    min-width: 0; overflow: hidden;
  }
  .m-page .messages { flex: 1; min-height: 0; padding: 16px 13px 22px; gap: 15px; }
  .m-page .composer { flex: none; }
  .m-scroll {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 0 15px;
  }

  .chat:not([data-page="work"]) .chat-avatar,
  .chat:not([data-page="work"]) .chat-status,
  .chat:not([data-page="work"]) .chat-role { display: none; }
  .chat:not([data-page="work"]) #homeBtn,
  .chat:not([data-page="work"]) #newChatBtn { display: none; }

  .welcome { padding: 4px 0 14px; }
  .w-title { font-size: 21px; }
  .w-sub { font-size: 12.5px; }
  .w-ind-ask { padding: 14px 15px; }
  .w-troubles { grid-template-columns: 1fr; gap: 7px; }
  .w-trouble { padding: 13px 15px; font-size: 13.5px; }
  .wt-a { opacity: 1; color: var(--text-3); }
  .w-line-head { padding: 12px 15px 10px; }
  .w-line-nm { font-size: 13px; }
  .agent-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 380px) {
  .w-title { font-size: 19px; }
  .w-in-chip { font-size: 11.5px; padding: 5px 11px; }
}

/* ==================== 登录 / 首次设置 ==================== */
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 42% at 50% -6%, rgba(47, 91, 255, .10), transparent 72%);
  overflow-y: auto;
}
.gate-box {
  width: 100%; max-width: 396px;
  padding: 36px 32px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1),
              0 24px 64px rgba(20, 30, 60, .16);
  position: relative;
}
.gate-box::before {
  content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 91, 255, .5), transparent);
}
.gate-brand {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 26px;
}

/* 首屏两条路：免费试用 / 登录（2026-10-29）
   ⛔ 高度 44px 是硬指标：手机上低于 44 拇指点不准（实测 47 舒服）。
   ⛔ 选中态只能用"白底 + 浅投影"，不能用克莱因蓝实心 ——
      实心会跟下面的主按钮抢注意力，两处蓝会让人不知道点哪个。 */
.gate-tabs {
  display: flex; gap: 4px; margin: -8px 0 20px;
  padding: 4px; border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.gate-tab {
  flex: 1; height: 44px; border: 0; cursor: pointer;
  border-radius: 9px; background: none;
  font-family: var(--f); font-size: 14px; font-weight: 600;
  color: var(--text-3);
  transition: background .16s, color .16s, box-shadow .16s;
}
.gate-tab:hover { color: var(--text-2); }
.gate-tab.on {
  background: var(--surface); color: var(--text);
  box-shadow: 0 2px 8px rgba(20, 30, 60, .10);
}
.gate-mark {
  width: 168px; height: auto; display: block; flex: none;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 18, 36, .18);
}
.gate-bn {
  font-size: 21px; letter-spacing: 2.4px; color: var(--text);
  font-weight: 700; margin-top: 12px; line-height: 1.2;
}
.gate-bd {
  font-size: 14px; font-style: normal; color: var(--text-2);
  letter-spacing: 1.2px; margin-top: 9px; font-weight: 500;
  padding-left: 1.2px;
}
.gate-bs {
  font-size: 12.5px; font-style: normal; color: var(--text-3);
  letter-spacing: 2.8px; margin-top: 10px; font-weight: 400;
  padding-left: 2.8px;
}

.gate-f { display: block; margin-bottom: 13px; }
.gate-f > span {
  display: block; font-size: 11.5px; color: var(--text-3);
  margin-bottom: 6px; letter-spacing: .2px;
}
.gate-i {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 12px; color: var(--text); font-size: 15.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
  font-family: var(--f);
}
.gate-i::placeholder { color: var(--text-3); }
.gate-i:focus {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, .14);
}
.gate-rm {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2);
  margin: 4px 0 2px; cursor: pointer; line-height: 1.5;
}
.gate-rm input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 16px; }

/* 注册验证码：输入框 + 图片同一行，点图片换一张 */
.gate-cap { display: flex; gap: 9px; align-items: center; }
.gate-cap .gate-i { flex: 1; min-width: 0; }
.gate-cap-img {
  width: 108px; height: 48px; flex: 0 0 108px;
  border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer; background: var(--surface-2);
  object-fit: cover; display: block;
}

.gate-err {
  min-height: 18px; margin: 10px 0 4px;
  font-size: 12.5px; color: var(--dang); line-height: 1.5;
}
.gate-err.ok { color: var(--ok); }

.gate-btn {
  width: 100%; height: 50px; border: 0; cursor: pointer;
  border-radius: 13px; font-size: 16px; font-weight: 600; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 30px rgba(47, 91, 255, .30);
  transition: transform .12s, box-shadow .16s, opacity .16s;
  letter-spacing: 1px;
}
.gate-btn:hover { box-shadow: 0 12px 36px rgba(47, 91, 255, .40); }
.gate-btn:active { transform: translateY(1px); }
.gate-btn:disabled { opacity: .55; cursor: default; }

/* 微信一键登录（2026-10-28）
   ⛔ 不做整块微信绿实心：主 CTA 是「进入」，两个实心大按钮挨在一起，
      老板会犹豫点哪个。这里用白底 + 绿描边，一眼看出是"另一条路"。
   ⛔ 高度必须和 .gate-btn 一样 50px：手机端低于 44px 就点不准（实测 47 是底线）。 */
.gate-wx {
  width: 100%; height: 50px; margin-top: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 13px; font-size: 15.5px; font-weight: 600;
  color: #07c160; background: var(--surface);
  border: 1.5px solid rgba(7, 193, 96, .34);
  transition: background .16s, border-color .16s, transform .12s;
}
.gate-wx:hover { background: rgba(7, 193, 96, .07); border-color: rgba(7, 193, 96, .58); }
.gate-wx:active { transform: translateY(1px); }
.gate-wx-i { flex: none; }
[data-theme="dark"] .gate-wx { background: rgba(7, 193, 96, .10); }
[data-theme="dark"] .gate-wx:hover { background: rgba(7, 193, 96, .16); }

.gate-tip {
  margin-top: 16px; font-size: 11.5px; color: var(--text-3);
  line-height: 1.7; text-align: center;
}
.gate-tip b { color: var(--text-2); font-weight: 500; }
.gate-forgot {
  background: none; border: none; padding: 2px 0; cursor: pointer;
  font-family: var(--f); font-size: 11.5px; color: var(--text-3);
  border-bottom: 1px dashed var(--border-strong);
  position: relative;
}
.gate-forgot::after {
  content: ''; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 44px;
}
.gate-forgot:hover { color: var(--text-2); border-bottom-color: var(--text-3); }
.gate-help {
  margin-top: 9px; padding: 11px 12px; border-radius: 9px; text-align: left;
  background: var(--brand-50); border: 1px solid var(--border-soft);
  font-size: 11px; color: var(--text-3); line-height: 1.85;
  animation: gateFade .18s ease;
}
@keyframes gateFade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.gate-help .gate-tel { margin-top: 4px; }

/* 登录页底部「免费体验」—— 这是转化入口，不能跟"忘了密码"一个灰度 */
.gate-regline {
  margin-top: 11px; padding-top: 11px;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--text-3);
}
.gate-to-reg {
  background: none; border: 0; cursor: pointer; padding: 2px 0;
  font-family: var(--f); font-size: 12px; font-weight: 600;
  color: var(--brand); border-bottom: 1px dashed transparent;
}
.gate-to-reg:hover { border-bottom-color: var(--brand); }
.gate-tel {
  display: inline-block; margin-top: 5px;
  color: var(--brand-deep); font-weight: 600;
  font-size: 14px; letter-spacing: .6px; text-decoration: none;
  border-bottom: 1px dashed rgba(47, 91, 255, .45); padding-bottom: 1px;
}
.gate-tel:hover { color: var(--brand); border-bottom-color: rgba(47, 91, 255, .8); }
.gate-wx { display: block; margin-top: 4px; color: var(--text-3); font-size: 11px; }

@media (max-width: 880px) {
  .gate-mark { width: 150px; border-radius: 14px; }
  .gate { align-items: flex-start; padding: 28px 14px 32px; }
  .gate-box { max-width: 100%; padding: 28px 20px 24px; border-radius: 20px; }
  .gate-bn { font-size: 19px; letter-spacing: 2px; }
  .gate-bd { font-size: 13.5px; letter-spacing: 1px; margin-top: 8px; padding-left: 1px; }
  .gate-bs { font-size: 12px; letter-spacing: 2.6px; margin-top: 9px; padding-left: 2.6px; }
  .gate-i { height: 50px; font-size: 16px; }
  .gate-btn { height: 52px; font-size: 16.5px; }
}

@media (max-width: 880px) and (max-height: 800px) {
  .gate { padding-top: 22px; }
}

/* ---- 我的页：账号卡 ---- */
.m-acct-row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.m-acct-ava {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-hi));
  overflow: hidden;   /* 微信头像要裁成圆角块，不能溢出 */
}
.m-acct-ava-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-acct-info { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.m-acct-info b { font-size: 15px; color: var(--text); }
.m-acct-info i {
  font-size: 11.5px; font-style: normal; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-acct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 次要按钮 */
.p-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  box-shadow: none;
  padding: 10px 15px;
}
.p-btn.ghost:hover { border-color: var(--brand); color: var(--text); opacity: 1; }

body.gated { overflow: hidden; }

/* 系统信息里的完整品牌标志 */
.p-brand-mark {
  display: flex; justify-content: center;
  padding: 10px 0 14px;
}
.p-brand-mark img {
  width: 230px; height: auto; display: block;
}

/* ==================== 口播数字人 ==================== */
.dh-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dh-lb {
  font-size: 11.5px; color: var(--text-3); flex: 0 0 30px;
  letter-spacing: .3px;
}
.dh-opts { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.dh-opt {
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
  font-size: 12px; color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all .15s; font-family: var(--f);
}
.dh-opt:hover { border-color: var(--border-strong); color: var(--text); }
.dh-opt.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(120deg, var(--brand), var(--brand-hi));
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(47, 91, 255, .28);
}

.dh-seg {
  padding: 11px 12px; margin-bottom: 8px;
  border-radius: 11px;
  background: var(--surface-2);
  border-left: 2px solid var(--brand);
}
.dh-seg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dh-seg-no {
  width: 19px; height: 19px; flex: 0 0 19px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-hi));
}
.dh-seg-time {
  font-size: 11.5px; font-weight: 600; color: var(--ok);
  font-variant-numeric: tabular-nums;
}
.dh-seg-ch { font-size: 11px; color: var(--text-3); }
.dh-seg-tx {
  font-size: 13.5px; line-height: 1.72; color: var(--text);
  margin-bottom: 6px;
}
.dh-seg-act {
  font-size: 11.5px; line-height: 1.6; color: var(--text-3);
  padding-left: 9px; border-left: 2px solid rgba(47, 91, 255, .30);
}

@media (max-width: 880px) {
  .dh-opt { padding: 9px 13px; font-size: 12.5px; min-height: 42px; display: inline-flex; align-items: center; }
  .dh-seg-tx { font-size: 14px; }
}

/* 主操作按钮的点击高度（手机端 44px 是下限） */
#avGo, #avBind, #avSync, #avUnbind, #dhToAvatar, #dhRewrite { min-height: 40px; }
@media (max-width: 880px) {
  #avGo, #avBind, #avSync, #avUnbind, #avUseLast, #avToDraft,
  #dhToAvatar, #dhRewrite, #dhCopyAll, #dhDlSrt { min-height: 44px; }
  .av-mat { min-height: 48px; }
}

/* ═══════════════════════════════════════════════════════
   配额与账号管理（多账号 + 积分制）
   ═══════════════════════════════════════════════════════ */

/* 轻提示 */
.zd-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(14px);
  max-width: 84vw; padding: 11px 18px; border-radius: 12px;
  background: rgba(22, 30, 54, .94); color: #fff;
  font-size: 13px; line-height: 1.5; text-align: center;
  box-shadow: 0 10px 30px rgba(20, 30, 60, .28);
  border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; pointer-events: none; z-index: 3000;
  transition: opacity .18s ease, transform .18s ease;
  word-break: break-word;
}
.zd-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 手机「我的」页：视频额度卡 */
.m-quota-top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--text-2); margin-bottom: 8px;
}
.m-quota-top b { font-size: 14px; color: var(--text); font-weight: 600; }
.m-quota-low { color: var(--dang); font-weight: 600; }
.m-quota-bar {
  height: 6px; border-radius: 99px; overflow: hidden;
  background: rgba(22, 40, 80, .10); margin-bottom: 9px;
}
.m-quota-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2f5bff, #5b80ff);
  transition: width .3s ease;
}
.m-quota-tip { font-size: 12px; line-height: 1.7; color: var(--text-3); }
.m-quota-exp { font-size: 11.5px; color: var(--text-4); margin-top: 5px; }
.m-quota-loading { font-size: 12.5px; color: var(--text-3); }
.m-quota-buy {
  width: 100%; min-height: 44px; margin-top: 11px;
  border-radius: 11px; cursor: pointer;
  background: rgba(224, 67, 78, .10);
  border: 1px solid rgba(224, 67, 78, .42);
  color: #e0434e; font-size: 13px; font-family: var(--f);
}
.m-quota-buy:active { background: rgba(224, 67, 78, .20); }

/* 账号管理：一行一个账号 */
.u-list { margin-top: 10px; }
.u-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--border-soft);
}
.u-row:last-child { border-bottom: none; }
.u-main { flex: 1; min-width: 0; }
.u-main b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.u-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 5px; font-size: 10px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
}
.u-tag-admin { background: rgba(47, 91, 255, .16); color: var(--brand-deep); }
.u-sub {
  font-size: 11.5px; line-height: 1.7; color: var(--text-3);
  margin-top: 3px; word-break: break-all;
}
.u-low { color: var(--dang); font-weight: 600; }
.u-btns {
  display: flex; flex-wrap: wrap; gap: 5px; flex: none;
  justify-content: flex-end; max-width: 46%;
}
.u-btn {
  min-height: 30px !important; padding: 0 9px !important;
  font-size: 11.5px !important; border-radius: 8px !important;
}
.u-danger { color: #e0434e !important; border-color: rgba(224, 67, 78, .35) !important; }

@media (max-width: 880px) {
  .zd-toast { bottom: 96px; }
  .u-btn { min-height: 44px !important; padding: 0 12px !important; font-size: 12.5px !important; }
  .u-btns { max-width: 100%; }
  .u-row { flex-direction: column; align-items: stretch; }
  .u-btns { justify-content: flex-start; }
}

/* 数字人小程序码：宽屏抽屉里放大一点，否则 172px 在大面板里显得小气 */
@media (min-width: 881px) {
  .av-qr { width: 186px; height: 186px; }
  .av-steps { gap: 10px; }
}

/* ---------- 手机端抽屉按钮/输入框：拇指标准 ----------
   ⛔ 原来 .p-btn 是 padding 8px 15px + 12.5px 字 = 实测只有 32px 高，
      手机上点不准（2026-10-28 补手机号抽屉实机截图暴露）。
      44px 是 iOS HIG / Android 共同的下限，这里给 46px 留余量。
   ⚠️ 只作用于 .drawer 内部 + 只在移动端：PC 上鼠标点 32px 不难受，
      全局改会把所有面板和列表页都顶高。 */
@media (max-width: 880px) {
  .drawer .p-btn { min-height: 46px; padding: 12px 16px; font-size: 14px; }
  .drawer .p-input { min-height: 46px; padding: 12px; font-size: 15px; }
  .drawer .p-card-title { font-size: 13px; }
}

/* ---------- PC 侧栏：当前登录的人是谁 ----------
   PC 顶部两块名字（.sideName / .headName）显示的是"当前 AI 员工"（客户顾问），
   不是登录用户 —— 客户看不出自己是谁、是不是登错号了。
   手机端「我的」页有账号卡，PC 没有，这里补齐。
   ⛔ 只在 PC 显示（≥881px）：手机「我的」页已有同一份信息，侧栏再来一遍是冗余，
      而且手机侧栏是抽屉，多一条会把常用入口挤下去。 */
.rail-user { display: none; }

@media (min-width: 881px) {
  .rail-user {
    display: flex; align-items: center; gap: 9px;
    width: 100%; text-align: left; cursor: pointer;
    padding: 9px 10px; margin-top: 6px;
    border: 0; border-top: 1px solid var(--border-soft);
    background: transparent;
    font: inherit; color: inherit;
    transition: background .16s ease;
  }
  .rail-user:hover { background: rgba(107, 141, 255, .10); }
  .rail-user:active { background: rgba(107, 141, 255, .16); }
  .rail-user-ava {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #fff; overflow: hidden;
    background: linear-gradient(140deg, var(--brand), var(--brand-hi));
  }
  .rail-user-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
  .rail-user-name {
    font-size: 12.5px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .rail-user-sub {
    font-size: 10.5px; font-style: normal; color: var(--text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .rail-user-go { font-size: 14px; color: var(--text-3); flex: 0 0 auto; }
}

/* ---------- 手机端首屏「麻烦」清单：拇指标准 ----------
   实测 .trouble-btn = padding 6px 9px + 12px 字 → 只有 **29px**；
   .line-head（三条动线的头）= 33px。都远低于 iOS HIG / Android 的 44px 下限。
   首屏就是客户第一眼要点的东西，点不准等于劝退。
   ⛔ 只在移动端加高：PC 用鼠标，29px 点得准，全局改会把侧栏撑长一倍。 */
@media (max-width: 880px) {
  .line-head {
    min-height: 46px; padding: 12px 10px;
    font-size: 13.5px;
  }
  .line-bar { height: 16px; }
  .trouble-btn {
    min-height: 44px; padding: 11px 12px;
    font-size: 13.5px; line-height: 1.45;
    /* 分开一点点，避免两个按钮贴着点错 */
    margin-bottom: 4px;
  }
  .line-hint { font-size: 12.5px; line-height: 1.5; padding: 0 2px 6px; }
  .line-body { padding-left: 2px; padding-right: 2px; }
}

/* ---------- 手机端「复制」按钮：这是全产品最常点的动作 ----------
   实测 .copy-btn = padding 3px 10px + 10.5px 字 → 只有 **22px**，拇指基本按不准。
   客户拿到话术第一件事就是复制去发，按不准等于白给。
   44px 是 iOS HIG / Android 共同下限。
   ⛔ 只在移动端：PC 上 22px 用鼠标点没问题，全局改会把每张成品卡的标题行都顶高。 */
@media (max-width: 880px) {
  .copy-btn {
    min-height: 44px; min-width: 64px;
    padding: 0 14px; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
  }
  .artifact-head { min-height: 48px; }
}

/* ══════════════════════════════════════════════
   视频工坊（写画面 / 让图动 / 照片说话）
   ══════════════════════════════════════════════ */
.vs-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.vs-tab {
  flex: 1 1 auto; min-height: 38px; padding: 8px 11px;
  border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
  font-size: 12.5px; font-family: var(--f); cursor: pointer;
  transition: all .16s ease; white-space: nowrap;
}
.vs-tab:hover { border-color: rgba(47, 91, 255, .42); }
.vs-tab.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 4px 14px rgba(47, 91, 255, .25);
}
.vs-sub { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.vs-drop {
  position: relative;
  display: block; text-align: center; cursor: pointer;
  padding: 26px 14px; border-radius: 11px;
  border: 1.5px dashed var(--border); background: var(--surface-2);
  transition: all .16s ease;
}
/* ⛔⛔ 2026-11-03：input 铺满整块，用户点到的是它本身。
   原来是 label 包 display:none 的 input + JS 再 click 一次 ——
   同一手势点两下，Chromium 没事，微信/安卓 webview 会吞掉，表现就是"点了没反应"。 */
.vs-drop input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  font-size: 0; z-index: 2;
}
.vs-drop:hover { border-color: var(--brand); }
.vs-drop b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.vs-drop span { display: block; font-size: 11px; color: var(--text-3); margin-top: 5px; }

@media (max-width: 880px) {
  /* 手机端点击区必须够大，三 Tab 一指头能点准 */
  /* ⛔ flex 用 1 1 0 而不是 1 1 auto：auto 会按文字宽度算，
     三个按钮就会挤成"2+1"两行（实测踩到），0 才是严格三等分。 */
  .vs-tab {
    min-height: 44px; font-size: 12.5px; padding: 10px 5px;
    flex: 1 1 0; min-width: 0;
  }
  .vs-drop { padding: 30px 14px; }
  .vs-drop b { font-size: 14px; }
  /* ⛔ 手机上设置项必须单列：抽屉内宽 ~340px，分两半只剩 141px，
     而 .p-input 在手机端字号是 15px ——"高清 · 80 积分"就要 120px+，
     分栏必然把计费口径截掉（实测截成"高清 · 80 积分,"）。
     单列后每项独占一行，五个字十个字都放得下。 */
  .vs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  /* 手机端传图：删除键必须到 44px，缩略图给大一点好确认是哪张 */
  .img-preview { gap: 9px; padding: 6px 6px 6px 6px; }
  .img-preview img { width: 52px; height: 52px; }
  .img-del { width: 44px; height: 44px; font-size: 20px; }
  .img-state { font-size: 12.5px; }
  .msg-shot { max-width: 72vw; max-height: 260px; }

  /* 手机端待办：整行可点，高度过 44px */
  .w-todos { margin: 12px 0 2px; padding: 12px 12px; }
  .wt-head { margin-bottom: 9px; }
  .wt-head b { font-size: 13.5px; }
  .wt-head span { display: none; }
  .wt-all { font-size: 12px; }   /* ⛔ 手机也被 .wt-head span 的规则波及不到，单独留一份 */
  .wt-item { min-height: 52px; padding: 11px 11px; }
  .wt-txt b { font-size: 13.5px; }
  .wt-txt i { font-size: 12px; }
}

/* ==================== 客户案例（2026-10-30） ====================
   竖屏 9:16 成片。为什么不做 iframe 嵌抖音：那条链接几个月就死，
   还带别人的播放器和推荐位，客户会以为是我们做的。放本地静态最稳，
   而且免登录 —— 老板能把链接直接发给客户。
   ⛔ 不要 autoplay：带声音的片子一打开就响，客户在办公室很尴尬；
      也不要自动加载，3.5MB 别浪费在"随手点开看一眼"上。 */
.case-title { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.case-stage {
  display: flex; justify-content: center; align-items: center;
  margin-top: 12px; padding: 10px;
  background: #0a0f1e; border-radius: 12px; overflow: hidden;
}
.case-video {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 56vh;
  border-radius: 8px; background: #000;
}

/* 封面 + 播放键（代替常驻的原生控制条，见 app.js 里的说明） */
.case-cover {
  position: relative; display: block; padding: 0; border: 0;
  background: none; cursor: pointer; line-height: 0;
}
.case-cover img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 56vh; border-radius: 10px;
}
.case-playbtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(8, 12, 24, .55);
  border: 1.5px solid rgba(255, 255, 255, .72);
  color: #fff; font-size: 20px; line-height: 57px; text-align: center;
  padding-left: 4px;                 /* ▶ 视觉重心偏左，补 4px 才真居中 */
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: background .18s, transform .18s;
}
.case-cover:hover .case-playbtn {
  background: rgba(8, 12, 24, .72);
  transform: translate(-50%, -50%) scale(1.05);
}

.case-steps { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: cs; }
.case-steps li {
  position: relative; padding: 12px 0 12px 31px;
  border-top: 1px solid var(--border-soft);
}
.case-steps li:first-child { border-top: none; padding-top: 3px; }
.case-steps li::before {
  counter-increment: cs; content: counter(cs);
  position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(47, 91, 255, .10);
  color: var(--brand-deep);
  font-size: 11px; font-weight: 700;
  line-height: 20px; text-align: center;
}
.case-steps li:first-child::before { top: 4px; }
.case-steps b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.case-steps span { font-size: 12.8px; color: var(--text-3); line-height: 1.72; }

@media (max-width: 880px) {
  /* 手机端竖屏成片铺满宽度最自然（像刷短视频），抽屉本身可滚，不怕高 */
  .case-stage { padding: 0; background: transparent; }
  .case-cover { width: 100%; }
  .case-cover img, .case-video { width: 100%; max-height: none; border-radius: 10px; }
  .case-playbtn { width: 56px; height: 56px; font-size: 19px; line-height: 53px; }
  .case-steps b { font-size: 14px; }
  .case-steps span { font-size: 13px; line-height: 1.76; }
}

/* ==================== 左栏「更多工具」折叠（2026-11-01 减法） ====================
   客户反馈「功能多不知道从哪下手」。左栏原来 17 个平铺，扫一眼就放弃。
   现在一级只留 5 个每天真会点的，其余收在这里。
   ⛔ 收起 ≠ 删除：点开一步就能到，且记住上次状态。 */
.rail-more { margin-top: 2px; }
.rail-more-btn {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 8px 10px; margin: 0 0 2px;
  background: transparent; border: 1px dashed var(--border-strong);
  border-radius: 8px; cursor: pointer;
  font-size: 12px; color: var(--text-3); letter-spacing: .02em;
  font-family: inherit;
  transition: background .16s, color .16s, border-color .16s;
}
.rail-more-btn:hover { background: var(--surface-2); color: var(--text-2); border-color: var(--brand-hi); }
.rail-more-btn i {
  font-style: normal; font-size: 10.5px; color: var(--text-4);
  margin-left: auto;
}
.rail-more-btn b { font-weight: 400; font-size: 10px; color: var(--text-4); }
.rail-more-list { display: none; }
.rail-more.open .rail-more-list { display: flex; }

@media (max-width: 880px) {
  /* 手机上「更多工具」是左栏里最需要好点的一行 */
  .rail-more-btn { min-height: 44px; font-size: 13px; }
}

/* ==================== 首屏减法（2026-11-01） ====================
   客户反馈「界面杂乱、功能多不知道从哪下手、简单的事情复杂化」。
   实测原来首屏 52 个可点元素、156 个文字块、15 种字号 —— 那不是信息丰富，
   那是没做选择。这一轮只做减法：删重复的自我介绍、把 6 张大卡压成小卡、
   7 个热门入口砍到 3 个，其余收进折叠区。 */

/* Hero 副标题（替代原来 tag/edition/foot 三句同义话） */
.hero-sub {
  font-size: 13px; color: var(--text-3); margin-top: 5px;
  letter-spacing: .01em; line-height: 1.6;
}

/* 折叠区里的补充能力：一排小胶囊，和上面三张大卡功能完全一样 */
.w-hot-extra {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 13px 0 4px;
}
.w-mini {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
  font-size: 12.5px; color: var(--text-2); font-family: inherit;
  transition: all .16s;
}
.w-mini span { font-size: 14px; line-height: 1; }
.w-mini:hover {
  border-color: var(--hc, var(--brand));
  color: var(--text);
  box-shadow: 0 3px 12px -6px var(--hc, var(--brand));
}

@media (max-width: 880px) {
  .hero-name { font-size: 21px; }
  .hero-sub { font-size: 12.5px; }
  /* 手机端：横向滑动的大卡片
     ⛔ 为什么不是 3 列 × 2 行：一行 3 个时卡片只有 ~110px 宽，
        脸还是会小。横滑一排，每张 132px，滑起来反而更"一页一个员工"。
     ⛔ 卡片宽度用固定值不用 1fr：1fr 在横滑容器里算不出来。 */
  /* ⛔ 横滑只给**窄屏**（≤520px）。
     原来这段写在 max-width:880 的媒体查询里，导致 768 的平板也只显示
     132px 的小卡横向滑动 —— 明明有地方放，白白浪费成"手机版"。
     ⇒ 下面的横滑规则再套一层 @media (max-width: 520px)，
        平板（521~880）走 3 列 2 行，每列 230px+。 */
  .hero-crew {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .hero-crew::-webkit-scrollbar { display: none; }
  .hc-nm { font-size: 12.5px; }
  .hc-role { font-size: 11px; }
  .hc-txt { padding: 8px 6px 10px; }
  .crew-head { margin: 16px 0 10px; }
  .crew-t { font-size: 13.5px; }
  .w-mini { height: 44px; padding: 0 15px; font-size: 13.5px; }
}

/* ==================== 视频工坊：设置收起（2026-11-01） ====================
   客户原话「简单的事情复杂化」。一进工坊就是四个下拉 + 一段积分说明，
   老板得先做四道选择题才敢点生成。实际上竖屏/5秒/高清/不配乐就是所有人要的默认值。 */
.vs-more-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 2px;
  background: none; border: none; border-bottom: 1px dashed var(--border);
  cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: var(--text-2); text-align: left;
}
.vs-more-btn span { font-weight: 600; }
.vs-more-btn i {
  font-style: normal; font-size: 11.5px; color: var(--text-3);
  margin-left: auto;
}
.vs-more-btn b { font-weight: 400; font-size: 10px; color: var(--text-3); transition: transform .2s; }
.vs-more.open .vs-more-btn b { transform: rotate(180deg); }
.vs-more-body { display: none; padding-top: 11px; }
.vs-more.open .vs-more-body { display: block; }

@media (max-width: 880px) {
  .vs-more-btn { min-height: 44px; }
}

/* 待办「还有 N 件」—— 一行，不抢主行动卡的位置 */
.wt-more {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
  background: none; border: none; border-top: 1px dashed var(--border);
  cursor: pointer; font-family: inherit;
  font-size: 12px; color: var(--brand-deep); text-align: left;
}
.wt-more:hover { color: var(--brand); }
@media (max-width: 880px) { .wt-more { min-height: 44px; font-size: 13px; } }

/* ==================== 手机端 ☰ 首次引导（2026-11-01） ====================
   光把按钮改蓝还不够：用户压根不知道"这里能点开一整个导航"。
   第一次进手机版时，给一次呼吸光圈 + 一句人话；点过就永久不再出现
   （localStorage 记 zd_menu_hint）。⛔ 不做每日重复弹 —— 那是骚扰。 */
.menu-btn.hint {
  animation: menuPulse 1.9s ease-in-out infinite;
}
@keyframes menuPulse {
  0%, 100% { box-shadow: 0 2px 8px -2px rgba(47, 91, 255, .55), 0 0 0 0 rgba(47, 91, 255, .45); }
  50%      { box-shadow: 0 2px 8px -2px rgba(47, 91, 255, .55), 0 0 0 7px rgba(47, 91, 255, 0); }
}

.menu-tip {
  position: fixed; z-index: 70;
  left: 14px; bottom: 86px;
  max-width: 62vw;
  padding: 9px 13px;
  background: var(--brand-block);
  color: #fff; font-size: 12.5px; line-height: 1.6;
  border-radius: 10px 10px 10px 3px;
  box-shadow: 0 6px 22px -8px rgba(0, 47, 167, .7);
  animation: tipIn .24s ease-out;
}
.menu-tip b { color: #fff; font-weight: 600; }
.menu-tip::after {
  content: ''; position: absolute; left: 18px; bottom: -5px;
  width: 9px; height: 9px; background: var(--brand-block);
  transform: rotate(45deg);
}
.menu-tip.out { opacity: 0; transform: translateY(4px); transition: all .3s; }
@keyframes tipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 视频工坊「帮我写」按钮（2026-11-01）──────────────────
   ⛔ 为什么单独写 CSS 而不是内联样式：
      实测手机端内联 padding 出来的按钮只有 28px 高，低于 44px 的
      最小可点击尺寸 —— 手指点不准。内联样式又没法被媒体查询覆盖，
      所以必须落到类上。
   ⛔ 44px 是底线，不是拍脑袋：苹果 HIG 和 Material 都是 44/48dp。 */
.vs-wr-btn {
  flex: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #c9d6f5;
  background: #eef3ff;
  color: #2f5bff;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.vs-wr-btn:hover { background: #e3ecff; }
.vs-wr-btn:active { background: #d8e4ff; }
.vs-wr-btn:disabled { opacity: .6; cursor: default; }

@media (max-width: 880px) {
  /* 手机上放大到 44px 可点区 */
  .vs-wr-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
}

/* ⛔⛔ 2026-11-01 删掉了「≥1600 回到 6 列一排」这条规则。
   原因：实测 1600 屏下主区并没有跟着变宽（实测卡片只有 127px），
   6 列一排等于**比 3 列小一半** —— 和"人物要大"完全相反。
   既然主区宽度不随视口线性增长，就不要按视口猜列数：
   一律 3 列，谁也别抢。
   （真正要 6 列一排，得先确认主区 ≥1100px，而不是按视口宽度判断。） */

/* 窄屏（手机）：一排横滑，卡片 132px，滑起来一屏一个半 */
@media (max-width: 520px) {
  /* ⛔ 2026-11-01 谷总反馈两件事：
     ①「人物形象可以再大点」—— 132px → 152px，一行约看到 2.3 个，脸明显大一圈；
     ②「左右滑动不方便」—— 加 scroll-snap，滑完自动吸附到卡片边缘，
        不会停在"卡在半个人"的位置（那是最让人想再拨一下的状态）。
     ⛔ 手势冲突的解在 app.js 的 inHScrollable()，不在 CSS；
        这里只负责"滑得动、停得准"。 */
  .hero-crew {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 152px;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
    margin-right: -16px;      /* 让卡片能滑到屏幕边缘，不像是被截断 */
    padding-right: 16px;
  }
  .hero-crew::-webkit-scrollbar { display: none; }
  .hc { scroll-snap-align: start; }
}

/* ── 换形象：卡片上的相机按钮（2026-11-01）──────────────────
   ⛔ 平时 opacity .72，hover 才 1：
      它是"可发现但别抢戏"——不能和"点谁谁干活"抢点击。
   ⛔ 手机端必须常显且 ≥44px 热区：
      触屏没有 hover，隐藏了就等于找不到。 */
.hc-cam {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  user-select: none; -webkit-tap-highlight-color: transparent;
  width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(18, 24, 40, .46);
  backdrop-filter: blur(6px);
  font-size: 14px; line-height: 1; cursor: pointer;
  opacity: .72; transition: opacity .18s, background .18s, transform .18s;
}
.hc:hover .hc-cam { opacity: 1; background: rgba(18, 24, 40, .64); }
.hc-cam:active { transform: scale(.92); }

/* 选图面板里的投图区 */
.ap-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; margin-top: 13px; padding: 22px 14px;
  border: 1.5px dashed #c3cfe8; border-radius: 13px;
  background: #f7f9fd; cursor: pointer;
  transition: border-color .18s, background .18s;
}
.ap-drop:hover { border-color: var(--brand); background: #eef3ff; }
.ap-drop b { font-size: 14px; color: var(--brand); font-weight: 600; }
.ap-drop span { font-size: 12px; color: var(--text-3); }

@media (max-width: 880px) {
  /* 触屏没有 hover：常显、放大热区 */
  .hc-cam {
    width: 44px; height: 44px;
    top: 4px; right: 4px;
    font-size: 17px;
    opacity: .88;
  }
  .ap-drop { padding: 26px 14px; min-height: 96px; }
}

/* ===== 私域三件套 抽屉面板（2026-11-02） =====
   只用项目既有变量，跟随明/暗主题；强调色沿用 --brand（克莱因蓝），
   不引入紫/粉/荧光 —— 与全站规范一致。 */
.sy-intro { margin-bottom: 14px; }
.sy-intro p { margin: 0 0 8px; font-size: 14px; line-height: 1.75; color: var(--text); }
.sy-intro .sy-sub { font-size: 12.5px; color: var(--text); opacity: .66; line-height: 1.7; }
.sy-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.sy-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--bg-soft); border: 1px solid var(--border-soft);
}
.sy-ico { font-size: 20px; line-height: 1.1; flex: none; }
.sy-item b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.sy-item small { display: block; font-size: 12px; color: var(--text); opacity: .64; line-height: 1.55; }
.sy-tip {
  font-size: 12.5px; line-height: 1.7; color: var(--text); opacity: .72;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--chip-bg); margin-bottom: 16px;
}
.sy-go {
  width: 100%; padding: 13px 16px; border: none; cursor: pointer;
  border-radius: var(--r); font-size: 14.5px; font-weight: 600;
  font-family: inherit; color: #fff; background: var(--brand);
  transition: opacity .15s, transform .1s;
}
.sy-go:hover { opacity: .9; }
.sy-go:active { transform: scale(.99); }
.sy-go:disabled { opacity: .5; cursor: default; }

/* ===== 成片删除按钮（2026-11-02） =====
   删除是不可恢复操作，配色要能一眼认出来，但不能红得刺眼抢走「下载」的注意力：
   只给文字和边框上色，底色保持与其他按钮一致。 */
.del-btn { color: #e0434e !important; border-color: rgba(224, 67, 78, .35) !important; }
.del-btn:hover { background: rgba(224, 67, 78, .1) !important; }
.del-btn:disabled { opacity: .55; cursor: default; }
/* PC 抽屉里三个按钮并排时，删除不跟另外两个抢宽度 */
.p-card .del-btn { flex: 0 0 auto; padding-left: 13px; padding-right: 13px; }

/* 早期生成的片子没有音轨（上游当时没配乐）。
   如实标出来，别让客户点开才发现，以为"还是没声音"。 */
.no-audio {
  color: #e8a33d; border: 1px solid rgba(232, 163, 61, .4);
  border-radius: 4px; padding: 0 4px; font-size: 11px; white-space: nowrap;
}

/* ===== 设计员工：出图结果 + 海报预览（2026-11-02） =====
   底图由模型出，文字由 canvas 画 —— 所以这块要看起来像"成品海报"，
   不是"一张配图"。宽度跟成品卡一致，手机上不溢出。 */
.poster-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.poster-canvas {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #0f1e33;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}
.poster-tip {
  margin-top: 8px; text-align: center;
  font-size: 11.5px; color: var(--text-2); opacity: .75;
}
.poster-acts { display: flex; gap: 8px; margin-top: 9px; }
.poster-acts .p-btn { flex: 1; text-align: center; }

/* ===== 员工能力卡（2026-11-02 重做）=====
   原来只有"名字 + 在线"，客户点进员工还是不知道能问什么。
   现在多两块：4 个能力标签（它到底管什么）+ 3 个可点的起始问题（手机端）。 */
.agent-card { flex-direction: column; align-items: stretch; gap: 0; }
.agent-card-top { display: flex; align-items: center; gap: 11px; }
.agent-card-skills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.agent-card-skills span {
  font-size: 11.5px; line-height: 1;
  padding: 5px 9px; border-radius: 6px;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border);
}
.agent-card-sugg { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; }
.ac-q {
  text-align: left; font-size: 13px; line-height: 1.5;
  padding: 10px 12px; border-radius: 9px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); cursor: pointer;
  font-family: inherit; min-height: 44px;
  transition: border-color .15s, background .15s;
}
.ac-q:hover, .ac-q:active { border-color: var(--brand); background: var(--surface-3); }
.ac-q::after { content: ' →'; color: var(--brand); font-weight: 600; }

/* PC 端：能力卡也要显示（原来被 display:none 藏了） */
@media (min-width: 881px) {
  .agent-card { display: flex !important; }
}

/* 员工头像下加一行职能：6 个人只写名字，老板分不清谁管什么。
   字号压到 10px、颜色降一档，是"辅助读"不是"抢读"。 */
.agent-pill .ap-ro {
  font-size: 10px; line-height: 1; color: var(--text-2);
  opacity: .7; letter-spacing: .2px;
}

/* 出图失败/受限的说明条（不是一闪而过的提示） */
.gen-notice {
  margin-top: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.7; white-space: pre-wrap;
  color: #e8a33d; background: rgba(232, 163, 61, .1);
  border: 1px solid rgba(232, 163, 61, .35);
}
.gen-notice.soft { color: var(--text-2); background: var(--surface-2); border-color: var(--border); }
.gen-notice-tip { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--text-2); opacity: .8; }

/* 视频工坊进门提示（额度/套餐）：动手之前先说明白，别让人白折腾 */
.vs-gate {
  margin-bottom: 12px; padding: 13px 14px;
  border-radius: 12px;
  background: rgba(232, 163, 61, .09);
  border: 1px solid rgba(232, 163, 61, .34);
}
.vs-gate .vg-t {
  font-size: 13.5px; font-weight: 700; color: #a9720c;
  line-height: 1.45;
}
.vs-gate .vg-b {
  margin-top: 5px; font-size: 12.5px; line-height: 1.75;
  color: var(--text-2);
}
/* 送的那条体验片：用品牌蓝，不要橙色。橙色在这套界面里一直是"出问题了"，
   而这是好事 —— 客户看到橙色会以为又要让他开通。 */
.vs-gate.gift {
  background: rgba(47, 107, 216, .07);
  border-color: rgba(47, 107, 216, .28);
}
.vs-gate.gift .vg-t { color: #2f6bd8; }
.vs-gate.gift .vg-t::before {
  content: '🎁'; margin-right: 6px;
}

/* ===== 出图方向选择器（2026-11-02）=====
   设计师给方向、客户挑。这块要让"几个方向"看出一眼差别，
   所以每条都露出：名字 + 一句话长什么样 + 适合谁。 */
.dir-picker {
  margin-top: 12px; padding: 13px 14px;
  border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border);
}
.dp-head {
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  margin-bottom: 11px;
}
.dp-head b { color: var(--text); }
.dp-list { display: flex; flex-direction: column; gap: 7px; }
.dp-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 11px; border-radius: 9px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.dp-item:has(.dp-ck:checked) { border-color: var(--brand); background: var(--surface-3); }
.dp-ck { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.dp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dp-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.dp-look { font-size: 12px; line-height: 1.55; color: var(--text-2); }
.dp-who { font-size: 11px; color: var(--text-2); opacity: .65; }
.dp-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.dp-cost { font-size: 12.5px; color: var(--text-2); }
.dp-go {
  padding: 10px 18px; min-height: 44px; border: none; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; font-family: inherit;
  color: #fff; background: var(--brand-grad); cursor: pointer;
}
.dp-go:disabled { opacity: .5; cursor: default; }

/* ===== 出图结果对比格 ===== */
.gen-results {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 12px;
}
.gen-cell {
  border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.gc-name {
  padding: 7px 9px; font-size: 12px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.gc-stage {
  position: relative; aspect-ratio: 750/1334; background: #0f1e33;
  display: flex; align-items: center; justify-content: center;
}
.gc-canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-spin { font-size: 12px; color: #8fa6c8; text-align: center; padding: 0 10px; line-height: 1.6; }
.gc-spin.bad { color: #e8a33d; }
.gc-look {
  padding: 7px 9px; font-size: 11px; line-height: 1.5;
  color: var(--text-2); border-top: 1px solid var(--border);
}
.gc-bar { padding: 0 9px 9px; }
.gc-use {
  width: 100%; padding: 8px; min-height: 44px;
  border-radius: 7px; border: 1px solid var(--brand);
  background: transparent; color: var(--brand);
  font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.gc-use:hover { background: var(--brand); color: #fff; }

/* ===== AI 出图面板：风格选择器（2026-11-02）=====
   13 种风格平铺，一行两个，名字 + 一句话长什么样。
   ⛔ 不做成下拉：下拉里看不到"长什么样"，客户只会一直用默认那个。 */
.ig-styles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px; margin-top: 10px;
}
.ig-style {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 10px; min-height: 56px; text-align: left;
  border-radius: 9px; cursor: pointer; font-family: inherit;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.ig-style b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ig-style i { font-style: normal; font-size: 11px; line-height: 1.45; color: var(--text-2); opacity: .8; }
.ig-style:hover { border-color: var(--brand); }
.ig-style.on {
  border-color: var(--brand); background: var(--brand-soft, rgba(47,91,255,.08));
}
.ig-style.on b { color: var(--brand); }

/* ===== AI 出图：尺寸选择卡（2026-11-02 重做）=====
   ⛔ 谷总原话「三个选项圆圈没有意义和区别」。
      原生 radio 圆圈是表单的样子，客户看不出"选了会变成什么样"。
      改成画真实比例的空框：1:1 / 9:16 / 16:9，形状差异一眼可见。
   ⛔ 原生 radio 必须留着（取值靠它），只做视觉隐藏 ——
      用 display:none 会让键盘用户完全无法操作，所以用 opacity:0 + 定位。 */
.ig-sizes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 10px;
}
.ig-size {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 10px 6px 9px;
  border-radius: 10px; cursor: pointer; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.ig-size input[type=radio] {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  pointer-events: none;
}
.ig-size:hover { border-color: var(--brand); }
.ig-size.on {
  border-color: var(--brand);
  background: var(--brand-soft, rgba(47,91,255,.08));
  box-shadow: 0 0 0 1px var(--brand) inset;
}
/* 比例示意框：固定高度，宽度随 aspect-ratio 变 */
.is-box {
  height: 40px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.is-shape {
  height: 100%; border: 1.5px dashed var(--text-2);
  border-radius: 3px; opacity: .55;
  background: transparent;
  min-width: 8px;
}
.ig-size.on .is-shape {
  border-style: solid; border-color: var(--brand);
  opacity: 1; background: var(--brand-soft, rgba(47,91,255,.12));
}
.ig-size b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.ig-size i {
  font-style: normal; font-size: 10.5px; line-height: 1.45;
  color: var(--text-2); opacity: .8;
}

/* ===== 出图结果：按真实比例显示 =====
   ⛔ 原来一律 width:100%，横竖方全撑满同宽 —— 视觉上完全看不出区别。 */
.ig-res { margin-bottom: 13px; }
.ig-res-img { position: relative; display: flex; justify-content: center; }
.ig-res-img img {
  display: block; border-radius: 11px; background: #f4f6fb;
  max-width: 100%; height: auto;
}
/* 三种比例给不同上限：竖图更高、横图更宽，形状差异一眼看出 */
.ig-res-por .ig-res-img img { max-height: 430px; width: auto; }
.ig-res-sq  .ig-res-img img { max-height: 320px; width: auto; }
.ig-res-lan .ig-res-img img { max-width: 100%; }
.ig-res-badge {
  position: absolute; right: 8px; bottom: 8px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 10.5px; letter-spacing: .3px;
  color: #fff; background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

/* ===== 出几张：数字选择 ===== */
.ig-nums { display: flex; gap: 8px; }
.ig-num {
  flex: 1; padding: 10px 6px; min-height: 44px;
  border-radius: 9px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); transition: all .15s;
}
.ig-num:hover { border-color: var(--brand); }
.ig-num.on {
  border-color: var(--brand); color: var(--brand);
  background: var(--brand-soft, rgba(47,91,255,.08));
  box-shadow: 0 0 0 1px var(--brand) inset;
}

/* ===== 已自动补齐提示 =====
   客户写了五个字就出图，效果不错时会以为"我写得挺好"，
   效果一般时会觉得"你们出图差"。如实告诉他我们补了什么。 */
.ig-filled {
  margin-bottom: 12px; padding: 11px 13px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.75;
  color: var(--text); background: var(--surface-2);
  border-left: 3px solid var(--brand);
}
.ig-filled b { color: var(--brand); }
.ig-filled-tip {
  margin-top: 7px; font-size: 11.5px; line-height: 1.7;
  color: var(--text-2); opacity: .85;
}
.ig-filled-tip b { color: var(--text); }

/* ===== 参考图（图生图入口）===== */
.ig-ref { margin-top: 10px; }
.ig-ref-drop {
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  justify-content: center; padding: 16px 10px; cursor: pointer;
  border-radius: 10px; background: var(--surface-2);
  border: 1px dashed var(--border); transition: border-color .15s;
}
.ig-ref-drop:hover { border-color: var(--brand); }
.ig-ref-drop b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.ig-ref-drop span { font-size: 11px; color: var(--text-2); opacity: .8; }
.ig-ref-prev img {
  display: block; width: 100%; max-height: 220px; object-fit: contain;
  border-radius: 10px; background: #f4f6fb;
}

/* ===== 出图引擎（双通道切换）===== */
.ig-engines { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.ig-engine {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 10px;
  text-align: left; border-radius: 9px; cursor: pointer; font-family: inherit;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}
.ig-engine b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ig-engine i { font-style: normal; font-size: 11px; color: var(--text-2); opacity: .8; }
.ig-engine:hover:not(.disabled) { border-color: var(--brand); }
.ig-engine.on {
  border-color: var(--brand); background: var(--brand-soft, rgba(47,91,255,.08));
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.ig-engine.on b { color: var(--brand); }
.ig-engine.disabled { opacity: .45; cursor: not-allowed; }

/* ===== 已参考提示 ===== */
.ig-refused {
  margin-bottom: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.6; color: var(--text);
  background: rgba(124,58,237,.10); border-left: 3px solid #7c3aed;
}


/* ===== 宽屏布局优化（2026-11-05）=====
   PC 端中间区此前死限 860px：1920 屏两边各空 276px、2560 屏各空 596px。
   这里按视口分档放宽，并把 6 位员工从「3 列 × 2 行」改成「6 列 × 1 行」
   —— 后者是 style.css 第 499-504 行注释里原本就写好的设计意图（大屏回归 6 列），
   当时只写了注释没写规则。改完垂直省约 300px，首屏能露出下面的事。
   ⛔ 全部在 min-width: 881px 内，手机端（max-width: 880px）零影响。 */

@media (min-width: 881px) {
  /* 对话消息：适度放宽，但不超过 920px。
     ⛔ 不拉满：正文行超过约 100 个字符，眼睛扫行会错行，
        这是排版学老问题，宽屏上更不能犯。920 是「宽但不难读」的上限。 */
  .msg { max-width: 820px; }
}

@media (min-width: 1500px) {
  /* chat ≈ 992px 起 */
  .welcome { max-width: 1080px; }
  .msg { max-width: 900px; }
  .hero-crew { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1900px) {
  /* chat ≈ 1392px 起 */
  .welcome { max-width: 1300px; }
  .msg { max-width: 920px; }
}

@media (min-width: 2300px) {
  /* chat ≈ 1792px 起 */
  .welcome { max-width: 1580px; }
}

/* 宽屏时右栏略加宽：268 → 300。
   ⛔ 只加 32px：右栏放的是员工档案/历史，再宽会让 chat 反向变窄，
      得不偿失。宁可让 chat 多吃一点。 */
@media (min-width: 1900px) {
  .side { width: 300px; }
}


/* ===== 宽屏动线列数（2026-11-05）=====
   .welcome 放宽后，.w-troubles 仍固定 2 列 ⇒ 每个麻烦按钮被拉到 600px+，
   文字只有几个字，右半边全空。每条动线正好 4 个麻烦 ⇒ 宽屏排 4 列一行。
   ⛔ 只在 ≥1500 生效；<1500（含全部手机端）保持原来的 2 列不变。 */
@media (min-width: 1500px) {
  .w-troubles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ================= Z09_UPLIFT · 技能标签整体上移 =================
   原来 .agent-card 在 PC 端是 column：头像/名字/状态占一行，
   4 个能力标签再单独占下面一行（10px margin + 10px padding + 1px 分隔线），
   白占约 45px 高度，把下面的欢迎卡片整个往下推。

   现在在 PC 端改成横排：左边身份块，右边 4 个标签，
   与「在线 · 随时待命」处在同一行区域 ⇒ 整块上移一行，欢迎卡片跟着上来。

   ⛔ 只在 min-width:881px 生效：手机端（≤880）的 .agent-card 有自己的
   完整定义（padding/border/圆角），这里一个字节都不碰。 */
@media (min-width: 881px) {
  .agent-card {
    flex-direction: row;
    align-items: flex-end;   /* 底部对齐：让技能标签与「在线 · 随时待命」同一水平线 */
    gap: 16px;
  }
  .agent-card-top { flex: none; }
  .agent-card-skills {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    flex-wrap: wrap;      /* 881~1200 窄 PC 放不下时换行兜底，不横向溢出 */
    min-width: 0;
  }
}

/* ============ Z09_DEDUP · 顶栏与能力卡二选一（2026-11-05）============
   谷总：「顶部和红框留一个就行，留顶部那个吧」。
   两处都写着「客户顾问 / 谈单成交 / 虚拟 / 在线·随时待命」，纯重复。
   ⇒ PC 端隐藏 .agent-card 整块；4 个能力标签由 index.html 的 #headSkills
     在顶栏接住，信息一条不丢。

   ⛔ 上一轮 Z09_UPLIFT 的横排规则保留不删：能力卡现在被隐藏，
     那段规则暂时不生效，但留着可一键回退（把下面 display:none 去掉即可）。
   ⛔ 手机端（<=880）完全不碰：顶栏在窄屏会依次隐藏角色/状态/头像，
     能力卡是手机端唯一完整展示员工身份的地方，必须留着。 */
.head-skills { display: none; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }

@media (min-width: 1401px) {
  .head-skills { display: flex; }
  .head-skills span {
    font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 6px;
    color: var(--text-3); background: var(--surface-2);
    border: 1px solid var(--border-soft); white-space: nowrap;
  }
}

@media (min-width: 881px) {
  /* 覆盖 3416 行的 display:flex !important（同为 !important，后写生效） */
  .agent-card { display: none !important; }
}

/* ============ Z09_CREW · 员工形象「区别大 / 不凌乱」====================
   2026-11-05 谷总：「6个员工形象直观感觉区别不大，且比较凌乱」。
   6 张图是同一套 3D 模板，靠长相区分是死路；改由界面精确编码：
     主色色带（6 色）+ 职业符号（6 个不同几何）+ 统一色调（抹平色温差）
   ⛔ 图片文件一个字节没改：试过抠图/染背景/整图滤镜，都会带来可见瑕疵。
      纯 CSS ⇒ 深浅主题都成立，随时可调、一键可退。 */

/* ① 顶部主色色带：6 张卡一眼分色，压在最上层不吃点击 */
.hc::before {
  content: ''; position: absolute; z-index: 3;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--cc); pointer-events: none;
}

/* ② 职业符号徽章：统一 26px 方片 / 16px 图标 / 同一线宽 */
.hc-ico {
  /* ⛔ 必须左上角：右上角是 .hc-cam（换成我的照片）的位置，
     实测两个叠在一起，相机按钮把图标整个盖住了。 */
  position: absolute; z-index: 2; top: 9px; left: 9px;
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cc);
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--cc);
  box-shadow: 0 2px 8px rgba(10, 20, 45, .16);
  pointer-events: none;
}
.hc-ico svg { width: 16px; height: 16px; display: block; }

/* ③ 统一色调：6 张图原本色温不一（浅灰/浅蓝/浅橙/浅粉…），
      先去饱和统一，再叠一层极淡的主色柔光，soft-light 不会让肤色发绿。 */
.hc-img { filter: saturate(.86) brightness(1.04); }
.hc-ph::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 22%, var(--cc) 100%);
  opacity: .34; mix-blend-mode: soft-light; pointer-events: none;
}
/* 相机与「虚拟」标识必须始终在柔光层之上 */
.hc-ph > .hc-cam, .hc-ph > .va-badge { z-index: 2; }

/* ④ 名字前的主色小圆点：不用加字，多一个颜色锚点，区别再强一档 */
.hc-nm::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cc); margin: 0 5px 2px 0;
}

/* 手机端卡片窄：徽章缩一号，避免压到脸 */
@media (max-width: 880px) {
  .hc-ico { width: 22px; height: 22px; top: 7px; left: 7px; border-radius: 7px; }
  .hc-ico svg { width: 14px; height: 14px; }
}

/* Z09_CREW_CAM 收尾：相机按钮原本 6 张卡常显 opacity:.72，
   等于每张图右上角多一个灰圆，正是「凌乱」的来源之一。
   PC 端改为 hover / 键盘聚焦才出现；手机端无 hover，保持常显。 */
@media (min-width: 881px) {
  .hc-cam { opacity: 0; }
  .hc:hover .hc-cam, .hc:focus-within .hc-cam { opacity: 1; }
}


/* ============ Z09_TRIM · 顶栏去品牌名 + 主区上移拉宽（2026-11-05 08:50）============
   谷总：「这个也删除吧；主页面再上移拉宽些」
   ① 顶栏「老板专属 AI 员工系统」与主区 .hero-name 一字不差，纯重复
      ⇒ PC 端删顶栏那份；头像保留（代表当前员工），左边的竖分隔线一并去掉。
      手机端 ≤880 的顶栏品牌是唯一标识，必须留着，这里一个字节都不碰。
   ② 上移：.welcome 原本 margin:auto，内容不足一屏时被垂直居中
      （2560 实测 welcome y=247，上下各 178px 空白）。改顶部对齐后 y≈60；
      再收掉顶栏 / messages 的少量上留白，常规屏也跟着上移。
   ③ 拉宽：welcome 分档放宽，同时把 messages 左右 padding 24→14 让出 20px。
      ⛔ .msg 正文仍锁 920px，不跟着拉（超过约 100 字符会错行）。
   ⛔ 全部只在 min-width:881px 生效；手机端零影响。
   ⛔ 只动 CSS，不动 DOM / JS；两位员工的脖子由图片文件单独处理。 */
@media (min-width: 881px) {
  .chat-brand { display: none; }
  .chat-who { padding-left: 0; border-left: 0; }
  .chat-head { padding-top: 5px; padding-bottom: 5px; min-height: 42px; }
  .messages { padding-top: 14px; }
  .welcome { margin: 0 auto; padding-top: 0; }
  .hero { padding-top: 20px; }
  .crew-head { margin-top: 16px; }
}

@media (min-width: 1500px) {
  .messages { padding-left: 14px; padding-right: 14px; }
  .welcome { max-width: 1200px; }
}
@media (min-width: 1900px) { .welcome { max-width: 1400px; } }
@media (min-width: 2300px) { .welcome { max-width: 1900px; } }
@media (min-width: 2800px) { .welcome { max-width: 2200px; } }

/* ============ Z09_RAILUSER · 侧栏账号行左对齐（2026-11-05 09:30）============
   谷总：「导航栏下方的 珉川 | 企业服务 向左侧移一点，与上方排列对齐」。

   实测（1920）：侧栏各项都从 x=10 起、内部 padding 10 ⇒ **文字起始 x=20**
     .rail-label   盒 x=10  pl=10  → 文字 x=20
     .rail-tool    盒 x=10  pl=9   → 文字 x≈20
     .rail-user     盒 x=10  pl=10  → 头像 x=20 ✅ 但**名字 x=59** ❌（头像 30 + gap 9）

   即：头像和上面是对齐的，但"珉川 / 账号"这行字被头像顶到右边 39px，
   和上面所有文字错开一格，看起来像没对齐。

   改法：把文字放到最前（x=20 与上面严格对齐），头像挪到右端
   （26px，仍能认出是谁），箭头留在最后保持"可点进去"的暗示。
   ⛔ 只改 PC（≥881px）：手机端这条是 display:none，由「我的」页账号卡承担。
   ⛔ 不动 DOM / JS，只用 order 重排 —— 回滚只需删掉这一段。 */
@media (min-width: 881px) {
  .rail-user { padding-left: 10px; }
  .rail-user-txt { order: 1; flex: 1 1 auto; }
  .rail-user-ava {
    order: 2; margin-left: 8px;
    width: 26px; height: 26px; flex: 0 0 26px;
    border-radius: 8px; font-size: 12px;
  }
  .rail-user-go { order: 3; margin-left: -3px; }
}

/* ============ SITE_ENTRY · 网站功能入口（2026-11-05）=================
   把已验证可用的网站功能挂到左栏「更多工具」里。
   ⛔ 用 <a> 而不是 <button>：要 target=_blank 开新窗口，
      button 得额外写 window.open，还会被某些浏览器弹窗拦截规则挡。
   ⛔ iframe 不可行：ai.hhdcm.com 的 CSP frame-ancestors 不含 video 子域，
      嵌进来是白板；两个子域登录态也不共享。这条 10-24 用元宝验过一次。 */

/* a 标签复用 .rail-tool 的样子：button 默认样式要清掉 */
.rail-link {
  text-decoration: none;
  color: var(--text-2);
  /* a 是 inline，flex 子项要显式撑满才行，否则点击热区只有文字那么宽 */
  width: 100%;
  box-sizing: border-box;
}
.rail-link:hover { color: var(--text); }
.rail-link:active { transform: translateY(.5px); }

/* 子分组标题：比 .rail-label 更轻，表示"同一组里的另一块" */
.rail-sub-label {
  font-size: 10px; color: var(--text-4); letter-spacing: .8px;
  padding: 12px 10px 5px;
  margin-top: 2px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 5px;
}

/* 状态标签：半 = 有降级但能用；管 = 仅管理员可见 */
.rail-tool b.rail-tag {
  margin-left: auto;
  font-size: 9px; font-weight: 600;
  min-width: 0; height: 15px; line-height: 15px;
  padding: 0 5px; border-radius: 4px;
  background: var(--surface-3, rgba(120, 130, 160, .16));
  color: var(--text-3);
  border: 1px solid var(--border-soft);
  transform: none;
}
.rail-tool b.rail-tag.admin {
  background: var(--brand-50);
  color: var(--brand);
  border-color: var(--brand);
}

/* 外链末尾加一个极淡的 ↗，提示"会开新窗口"（不占额外宽度） */
.rail-link::after {
  content: '↗'; margin-left: 5px;
  font-size: 9px; color: var(--text-4); opacity: .7;
}
.rail-link b.rail-tag + .rail-tag { margin-left: 4px; }

/* 手机端：侧栏是抽屉，条目高度已有 44px 规则，这里只保证 a 同样吃满 */
@media (max-width: 880px) {
  .rail-link { min-height: 44px; }
  .rail-sub-label { padding-top: 10px; }
}

/* ============ rail-hint：按钮后的小灰字补充说明（2026-11-05）============
   用途：「团队设置 改密码」—— 团队设置有歧义，客户以为是账号后台，
   实际只改密码；补两个字省掉一次客服。 */
.rail-tool .rail-hint {
  margin-left: auto;
  font-size: 10px; color: var(--text-4);
  font-weight: 400; letter-spacing: .3px;
  white-space: nowrap;
}

/* ==================================================================
   2026-11-07 · 笔记本紧凑横排（A 方案）+ 今日待办折叠
   谷总：「员工系统 6 个职位在笔记本不是横排」+「今天三件事也折叠起来，
          不然人像不居中」。
   ================================================================== */

/* ---- A 方案 · 6 列一行（1100~1499）----------------------------------
   6 列一行；卡片仍是「图在上、字在下」，只把图区从 1:1.06 大图裁成 82px 横幅。
   ⛔ 不改成「小图 + 右文字」胶囊：121px 卡宽扣掉图/padding 后只剩 63px，
      5 字名字（品牌定位师）必被截断，实测 6 个全变「客户…」。
   ⛔ 下限定 1100 而不是 881：1180 处右栏出现会让主区骤缩 268px，
      881~1099 的窄窗口改走 3 列 × 2 行，避免卡片被挤到 74px。
   ⛔ ≥1500 的大屏原样（已有 6 列规则）、≤880 手机端原样，两边都不受影响。
   .hc-nm 13px / .hc-role 11.5px 字号一个都不动；名字允许折行兜底，永不截断。 */
@media (min-width: 1100px) and (max-width: 1499px) {
  .hero-crew { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .hc { border-radius: 11px; }
  .hc-ph {
    width: 100%; height: 82px; flex: none;
    aspect-ratio: auto; border-radius: 10px 10px 0 0;
  }
  .hc-img { transform: none; object-position: center 22%; }
  .hc:hover .hc-img { transform: none; }
  .hc-txt { padding: 7px 4px 9px; }
  .hc-nm { font-size: 13px; white-space: normal; line-height: 1.25; }
  .hc-role { font-size: 11.5px; margin-top: 3px; }
  .hc-cam { width: 18px; height: 18px; top: 4px; right: 4px; font-size: 9px; }
  .hc .va-badge { left: 4px; bottom: 4px; font-size: 7.5px; padding: 1px 3px; }
}

/* ---- 今日待办：默认折叠成一行 ---------------------------------------
   ⛔ 3 条待办展开约 180px 高，压在 6 张人像正上方，把人像推到首屏下方，
      画面重心偏下。折叠后只留一行标题条，人像上移、回到视觉中心。
   ⛔ 用原生 details/summary：键盘可操作、无需额外 JS 绑定，
      每次渲染默认收起（不带 open 属性），不会因用户展开过而下次变高。 */
.w-todos > summary.wt-head {
  list-style: none; cursor: pointer; user-select: none;
  margin-bottom: 0;
}
.w-todos > summary.wt-head::-webkit-details-marker { display: none; }
.w-todos > summary.wt-head::marker { content: ''; }
.w-todos[open] > summary.wt-head { margin-bottom: 11px; }
.wt-head-r { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.wt-hint { font-size: 11.5px; color: var(--text-3); }
.w-todos[open] .wt-hint { display: none; }
.wt-caret {
  font-style: normal; font-size: 13px; line-height: 1;
  color: var(--text-3); display: inline-block;
  transition: transform .18s ease;
}
.w-todos[open] .wt-caret { transform: rotate(180deg); }
.wt-list { margin: 0; }

/* ⛔ 手机端触摸热区：summary 是唯一的可点控件，实测只有约 24px 高，
   低于本产品「可点元素 ≥44px」的验收线。这里把标题条撑到 44px，
   同时收紧上下 padding，折叠态总高只比原来多约 12px，人像不会被推下去。 */
@media (max-width: 880px) {
  .w-todos { padding: 8px 12px; }
  .w-todos > summary.wt-head { min-height: 44px; align-items: center; }
}
