/* ============================================================
   全栈 · 控制台外壳（来客宝银白皮肤）
   左侧三组菜单 + 玻璃顶栏（平台切换 / 会员 / 积分）
   ============================================================ */

/* ---------- 布局骨架 ---------- */
.shell { display: flex; min-height: 100svh; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell .content { flex: 1; }
body.landing-mode .shell, body.landing-mode .app-tabbar { display: none; }

/* ---------- 左侧菜单 · 深色控制台（石墨深底 + 白字 + 亮蓝高亮） ---------- */
.sider {
  width: 224px; flex-shrink: 0; position: sticky; top: 0; height: 100svh; overflow-y: auto;
  background: linear-gradient(180deg, #121b2c 0%, #0d1522 100%);
  border-right: 1px solid rgb(255 255 255 / 7%);
  display: flex; flex-direction: column;
  scrollbar-width: none;
}
.sider::-webkit-scrollbar { display: none; }

.sider-brand {
  position: sticky; top: 0; z-index: 9;
  display: flex; align-items: center; gap: 12px; padding: 16px 16px 15px; text-align: left;
  width: 100%; margin: 0; border: 0; border-radius: 0;
  /* 品牌区：深色底 + 暗金氛围光，与整体控制台同族 */
  background:
    linear-gradient(90deg, rgb(200 169 97 / 16%) 0%, rgb(200 169 97 / 5%) 55%, rgb(200 169 97 / 10%) 100%),
    #101828;
  box-shadow: none;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.brand-mark {
  width: clamp(36px, 3.2vw, 44px); height: clamp(36px, 3.2vw, 44px); border-radius: 9px; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: #12100a;
  box-shadow: 0 3px 10px rgb(0 0 0 / 45%), inset 0 0 0 1px rgb(196 154 60 / 35%);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.sider-logo {
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; letter-spacing: .01em; color: #fff; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgb(5 12 22 / 65%);
}
.sider-brand small {
  font-size: 8px; letter-spacing: .18em; color: #c8a961; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 5px rgb(5 12 22 / 70%);
}

.sider-nav { flex: 1; padding: 14px 14px 18px; position: relative; }
.sider-group { margin-bottom: 16px; }
.sider-label {
  display: inline-block;
  font-size: 10px; color: rgb(255 255 255 / 46%); letter-spacing: .22em; text-transform: uppercase;
  padding: 4px 10px; margin: 8px 2px 7px; font-weight: 600;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 4px;
}

/* 功能键：深色磨砂小方格，帧间不画虚线，干净列表 */
.sider-item {
  position: relative;
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 11px; margin-bottom: 4px; border-radius: 6px;
  font-size: 13.5px; color: #dfe6ef; white-space: nowrap;
  text-shadow: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out, border-color .15s ease-out;
}
.sider-item .mi {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(255 255 255 / 7%);
  color: #aeb9c8;
  box-shadow: none;
  transition: color .15s ease-out, box-shadow .15s ease-out;
}
.sider-item .mi svg.icon { width: 16px; height: 16px; filter: none; }
.sider-item:hover { background: rgb(255 255 255 / 8%); color: #fff; border-color: rgb(255 255 255 / 10%); }
.sider-item:hover .mi { color: #fff; background: rgb(255 255 255 / 12%); box-shadow: none; }
.sider-item.active {
  background: linear-gradient(92deg, #1f6bff 0%, #4d8dff 100%);
  color: #fff; font-weight: 600; border-color: transparent; text-shadow: none;
  box-shadow: 0 6px 18px rgb(31 107 255 / 34%);
}
.sider-item.active .mi { background: rgb(255 255 255 / 22%); color: #fff; box-shadow: none; }

.sider-foot { padding: 10px 14px 14px; border-top: 1px solid rgb(255 255 255 / 8%); }
.sider-foot .sider-item { margin-bottom: 7px; }
.sider-foot .sider-item:last-child { margin-bottom: 0; }

body.sider-collapsed .sider { width: 68px; }
body.sider-collapsed .sider-item .mi-label,
body.sider-collapsed .sider-brand .brand-text { display: none; }
body.sider-collapsed .sider-brand { padding: 14px 0; justify-content: center; }
body.sider-collapsed .sider-item { justify-content: center; padding: 8px 0; }
body.sider-collapsed .sider-item .mi { width: 32px; height: 32px; }
body.sider-collapsed .sider-label { text-align: center; font-size: 9px; letter-spacing: .12em; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 56px; flex-shrink: 0; position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgb(248 249 251 / 88%); backdrop-filter: blur(22px);
  border-bottom: 1px solid rgb(36 47 60 / 7%);
}
.page-title { font-size: 14.5px; white-space: nowrap; }
.memtag { flex-shrink: 0; }
.plat-switch { display: inline-flex; background: #e9edf3; border-radius: 10px; padding: 3px; gap: 2px; flex-shrink: 0; }
.plat-seg {
  font-size: 12.5px; padding: 5px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.plat-seg:hover { color: var(--text); }
.plat-seg.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgb(26 43 65 / 10%); }
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 20px; border: 1px solid #bcd4f6; background: #eaf2fe; color: var(--action);
  font-size: 13px; flex-shrink: 0;
}
.credit-pill b { font-weight: 700; }
.credit-pill.low { border-color: #e7b96a; background: #fdf3e3; color: #9a6b13; }
.credit-pill.low::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #d97706; }
.credit-pill.zero { border-color: #e08c8c; background: #fdeeee; color: #b03a3a; }
.credit-pill.zero::after { content: '功能锁定'; font-size: 10.5px; font-weight: 700; background: #d64545; color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.avatar-btn { flex-shrink: 0; }

/* ---------- 工作台 ---------- */
.welcome-banner {
  border-radius: 18px; padding: 30px 34px; margin-bottom: 16px;
  background: linear-gradient(120deg, #0961e7 0%, #0a4fb8 100%);
  color: #fff; box-shadow: 0 10px 30px rgb(9 97 231 / 22%);
}
.welcome-banner h2 { font-size: 26px; margin: 0 0 8px; }
.welcome-banner p { font-size: 14.5px; opacity: .92; margin: 0; }
.btn.glass { background: rgb(255 255 255 / 16%); color: #fff; border: 1px solid rgb(255 255 255 / 35%); }
.btn.glass:hover { background: rgb(255 255 255 / 26%); }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 13px; }
.guide-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 16px; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.tool-card:hover { border-color: var(--action); box-shadow: 0 6px 20px rgb(9 97 231 / 10%); }
.tool-card strong { font-size: 15.5px; }
.tool-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tool-ico {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #e9f0f9; color: #365a84; margin-bottom: 8px; flex-shrink: 0;
}
.tool-ico.sm { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.tool-ico svg.icon { width: 21px; height: 21px; }
.tool-ico.sm svg.icon { width: 17px; height: 17px; }

/* 岗位卡 */
.job-group-label { font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.job-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.job-card {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 168px;
}
.job-card.chief { border: 1.5px solid #0961e7; background: #eef5ff; min-width: 240px; }
.job-card strong { display: block; font-size: 13.5px; }
.job-card.chief strong { font-size: 15px; }
.job-card strong em { font-style: normal; font-size: 10px; font-weight: 600; color: #fff; background: #0961e7; border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.job-card span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.job-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #dfe8f4; color: #33507a; font-size: 12px; font-weight: 700;
}

/* 近 7 日消耗迷你条形 */
.trend-bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: 10px; }
.trend-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5b93ec, #0961e7); min-height: 8px; }

/* ---------- 工作群 ---------- */
.group-shell { padding: 0; overflow: hidden; }
.g-scroll { height: 460px; overflow-y: auto; padding: 16px 18px; background: #f2f4f8; display: flex; flex-direction: column; gap: 10px; }
.g-sys { text-align: center; color: var(--muted); font-size: 12px; padding: 6px 0; }
.g-msg { display: flex; gap: 8px; align-items: flex-start; }
.g-msg.right { flex-direction: row-reverse; }
.g-avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; background: #8b939e;
}
.g-avatar.owner { background: #7c3aed; }
.g-avatar.director { background: #0961e7; }
.g-avatar.agent { background: #1f9d63; }
.g-bubble-wrap { max-width: 72%; }
.g-msg.right .g-bubble-wrap { text-align: right; }
.g-bubble-wrap > small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.g-bubble {
  display: inline-block; text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 9px 13px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap;
}
.g-msg.right .g-bubble { background: #eef5ff; border-color: #cfe0fa; }
.g-task {
  align-self: center; width: min(340px, 90%); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; background: #fff; text-align: left;
}
.g-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.g-input textarea {
  width: 100%; border: 0; resize: vertical; background: transparent; font-size: 13.5px; line-height: 1.6;
  color: var(--text); outline-offset: 2px;
}
.g-input textarea::placeholder { color: #9aa3ad; }
.g-tip { padding: 0 16px 12px; font-size: 11.5px; color: var(--muted); background: #fff; line-height: 1.6; }

/* ---------- 工坊 ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.agent-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; text-align: left;
  border: 1px solid var(--line); border-radius: 13px; background: #fff;
  transition: border-color .15s ease-out;
}
.agent-chip:hover { border-color: var(--action); }
.agent-chip strong { display: block; font-size: 13.5px; }
.agent-chip span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 生成页 · 三通道切换 ---------- */
.gen-tabbar {
  display: inline-flex; gap: 6px; background: #e9edf3; border-radius: 15px; padding: 5px;
  max-width: 100%;
}
.gen-tab {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 11px;
  color: var(--muted); text-align: left;
  transition: background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out;
}
.gen-tab:hover { color: var(--text); background: rgb(255 255 255 / 65%); }
.gen-tab svg.icon { width: 18px; height: 18px; flex-shrink: 0; }
.gen-tab .gt-txt { display: flex; flex-direction: column; gap: 1px; }
.gen-tab .gt-txt strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.gen-tab .gt-txt small { font-size: 10.5px; opacity: .68; white-space: nowrap; }
.gen-tab.active {
  background: linear-gradient(135deg, #101b2e 0%, #1e2c47 100%);
  color: #fff; box-shadow: 0 8px 20px rgb(16 27 46 / 32%), inset 0 1px 0 rgb(255 255 255 / 14%);
}
.gen-tab.active svg.icon { color: #8db8ff; }
.gen-tab.active .gt-txt small { color: #9db4d8; opacity: 1; }
@media (max-width: 760px) {
  .gen-tabbar { display: flex; width: 100%; }
  .gen-tab { flex: 1; justify-content: center; padding: 9px 8px; }
  .gen-tab .gt-txt small { display: none; }
}
.copy-cand { padding: 16px 18px; }
.seg.sm button { font-size: 12.5px; padding: 6px 12px; }
.seg-row { display: flex; align-items: center; gap: 10px; }
.flow-steps .step { padding: 8px 0; }

/* ---------- 充值 / 会员 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.plan-card:hover { border-color: var(--action); }
.plan-card.hot { border-color: #0961e7; box-shadow: 0 6px 20px rgb(9 97 231 / 12%); }
.plan-card span { font-size: 12.5px; color: var(--muted); }
.plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-col { position: relative; padding: 22px; }
.plan-col.hot { border-color: #0961e7; box-shadow: 0 8px 26px rgb(9 97 231 / 13%); }
.plan-badge {
  position: absolute; top: -9px; right: 14px; font-size: 10.5px; font-weight: 700; color: #fff;
  background: #0961e7; border-radius: 8px; padding: 3px 9px;
}

/* ---------- 帮助中心 ---------- */
.faq { border: 1px solid var(--line); border-radius: 13px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  padding: 14px 18px; font-size: 14px; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary svg.icon { transform: rotate(90deg); }
.faq summary svg.icon { width: 16px; height: 16px; color: var(--faint); transition: transform .15s ease-out; }
.faq p { padding: 0 18px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ---------- 个人中心 ---------- */
.invite-box {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 12px;
  border: 1px dashed var(--line); border-radius: 13px; background: #f7f9fc; cursor: pointer;
}
.invite-code { font-size: 24px; letter-spacing: .14em; color: var(--action); }

/* ---------- 登录页团队条 ---------- */
.landing .team-strip {
  position: absolute; left: 4.5vw; right: auto; top: auto; bottom: 132px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px; max-width: 46vw;
}
.team-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #d9e2ec; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 20px; padding: 5px 13px; backdrop-filter: blur(8px); white-space: nowrap;
}
.team-chip img { width: 19px; height: 19px; border-radius: 50%; object-fit: cover; display: inline-block; }
.team-chip.more { background: transparent; border-style: dashed; }
@media (max-width: 760px) { .landing .team-strip { bottom: 150px; max-width: calc(100vw - 40px); } }

/* ---------- 功能键海报卡（每个键独立影视画面） ---------- */
.tool-card.poster {
  position: relative; aspect-ratio: 16 / 11; padding: 0; overflow: hidden;
  color: #fff; border: 0; justify-content: flex-end;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.tool-card.poster:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgb(8 14 26 / 32%); border-color: transparent; }
.tool-card.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tool-card.poster .tc-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(4 7 14 / 12%) 28%, rgb(4 7 14 / 90%) 96%);
}
.tool-card.poster .tc-kicker {
  position: absolute; top: 12px; left: 14px; font-size: 9.5px; letter-spacing: .26em;
  color: rgb(255 255 255 / 78%); text-transform: uppercase; text-shadow: 0 1px 8px rgb(0 0 0 / 50%);
}
.tool-card.poster .tc-body {
  position: relative; width: 100%; padding: 13px 16px 15px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
}
.tool-card.poster strong { font-size: 15.5px; text-shadow: 0 2px 10px rgb(0 0 0 / 55%); }
.tool-card.poster .tc-sub { font-size: 12px; color: rgb(226 233 243 / 88%); line-height: 1.5; }
.tool-ico.on-dark {
  background: rgb(255 255 255 / 16%); color: #fff;
  backdrop-filter: blur(6px); margin-bottom: 9px;
}
img.job-avatar { border-radius: 11px; object-fit: cover; }
img.g-avatar { border-radius: 10px; object-fit: cover; }
.cast-one { display: inline-flex; align-items: center; gap: 5px; margin-right: 13px; white-space: nowrap; }
.cast-one img { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; }

/* ---------- 响应式 ---------- */
.app-tabbar { display: none; }

/* ============================================================
   影视海报层 —— 关键面用电影海报语法：
   大图底 + 渐变压暗 + 白字大字 + 档期标签 + 胶片颗粒
   ============================================================ */
.poster-hero {
  position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 16px;
  background: #0a101c; color: #fff;
  box-shadow: 0 18px 46px rgb(8 14 26 / 26%);
}
.ph-bg { position: absolute; inset: 0; background: url('../assets/laikebao-home-background-v2.png') center 42% / cover no-repeat; }
.ph-bg.hotpot { background-image: url('../assets/case-hotpot.webp'); }
.ph-bg.cafe { background-image: url('../assets/studio-cafe.png'); }
.ph-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(5 9 17 / 92%) 0%, rgb(5 9 17 / 62%) 48%, rgb(5 9 17 / 16%) 100%),
              linear-gradient(0deg, rgb(3 6 12 / 80%) 0%, transparent 55%);
}
.ph-grain {
  position: absolute; inset: 0; opacity: .3; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph-body { position: relative; padding: 36px 40px 32px; max-width: 660px; }
.ph-kicker {
  font-size: 10.5px; letter-spacing: .32em; color: #a8c8f8; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.ph-kicker::before { content: ''; width: 26px; height: 1px; background: #a8c8f8; flex-shrink: 0; }
.ph-title {
  font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.14;
  text-shadow: 0 4px 28px rgb(0 0 0 / 45%);
}
.ph-sub { font-size: 14.5px; color: #d3dce9; margin-top: 12px; line-height: 1.75; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ph-chip {
  font-size: 11.5px; color: #e8eef6; border: 1px solid rgb(255 255 255 / 34%); border-radius: 6px;
  padding: 3px 9px; letter-spacing: .05em; backdrop-filter: blur(4px); background: rgb(255 255 255 / 7%);
  white-space: nowrap;
}
.ph-chip.gold { color: #ffd98a; border-color: rgb(255 217 138 / 60%); }
.ph-cast {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 12px; color: #aebdd2; line-height: 2;
}
.ph-cast b {
  color: #fff; font-size: 10px; letter-spacing: .24em; font-weight: 600;
  display: inline-block; min-width: 46px; margin-right: 10px;
}
.ph-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .ph-bg { animation: phDrift 26s ease-in-out infinite alternate; }
}
@keyframes phDrift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.09) translateX(-1.6%); } }

/* 海报墙（爆款 / 首映区） */
.poster-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.poster-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  background: #0a101c; color: #fff; display: flex; text-align: left;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.poster-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgb(8 14 26 / 32%); }
.poster-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-card .pc-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(4 7 14 / 12%) 24%, rgb(4 7 14 / 90%) 88%);
}
.poster-card .pc-rank {
  position: absolute; top: 8px; left: 14px; font-size: 48px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgb(255 255 255 / 88%); letter-spacing: -.02em;
  text-shadow: 0 2px 16px rgb(0 0 0 / 35%);
}
.poster-card .pc-kind {
  position: absolute; top: 16px; right: 14px; font-size: 10px; letter-spacing: .22em; color: #ffd98a;
  border: 1px solid rgb(255 217 138 / 55%); border-radius: 5px; padding: 3px 7px;
}
.poster-card .pc-body { position: relative; margin-top: auto; padding: 14px 16px 16px; width: 100%; }
.pc-title { font-size: 15px; font-weight: 650; line-height: 1.4; text-shadow: 0 2px 12px rgb(0 0 0 / 60%); }
.pc-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; font-size: 11.5px; color: #cfd9e8; }
.pc-actions { display: flex; gap: 8px; margin-top: 11px; }
.pc-actions .btn { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn.ghost-dark { background: rgb(255 255 255 / 12%); color: #fff; border: 1px solid rgb(255 255 255 / 30%); }
.btn.ghost-dark:hover { background: rgb(255 255 255 / 24%); }

/* 档期快报横条（数据看板） */
.slate {
  position: relative; border-radius: 18px; overflow: hidden; background: #0a101c; color: #fff;
  margin-bottom: 16px; box-shadow: 0 12px 32px rgb(8 14 26 / 20%);
}
.slate .sl-body { position: relative; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 24px 30px; }
.slate .sl-head { min-width: 220px; }
.slate .sl-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; text-shadow: 0 2px 14px rgb(0 0 0 / 40%); }
.slate .sl-kpis { display: flex; gap: 34px; flex-wrap: wrap; margin-left: auto; }
.sl-kpi small { display: block; font-size: 11px; letter-spacing: .14em; color: #9fb4d0; text-transform: uppercase; margin-bottom: 4px; }
.sl-kpi strong { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.sl-kpi em { font-style: normal; font-size: 12px; margin-left: 7px; }
.sl-kpi em.up { color: #ff7a6b; }
.sl-kpi em.down { color: #6fdc9c; }

@media (max-width: 760px) {
  .poster-wall { grid-template-columns: 1fr; }
  .poster-card { aspect-ratio: 16 / 10; }
  .ph-body { padding: 26px 22px; }
  .slate .sl-kpis { margin-left: 0; gap: 22px; }
}

@media (max-width: 1020px) {
  .tool-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-cols { grid-template-columns: 1fr; }
  .plat-switch { display: none; }
}
@media (max-width: 760px) {
  .sider { display: none; }
  .shell { display: block; }
  .content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tool-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-banner { padding: 22px; }
  .credit-pill { padding: 0 10px; }
  .memtag { display: none; }
  .app-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; background: rgb(248 249 251 / 94%); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line); padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  }
  .app-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-height: 48px; color: var(--muted); font-size: 10.5px; border-radius: 10px;
  }
  .app-tabbar a.active { color: var(--action); font-weight: 600; }
  .app-tabbar svg.icon { width: 20px; height: 20px; }
}

/* ---------- 素材库真实产物网格 ---------- */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.asset-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px;
  display: flex; flex-direction: column; gap: 9px;
}
.asset-card .g-media, .asset-card .g-media.vid { width: 100%; height: 150px; }
.asset-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asset-meta strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta span { font-size: 11.5px; color: var(--muted); }

/* ---------- 通话中「说话」输入区（真实实时语音） ---------- */
.lv-say { display: flex; gap: 8px; align-items: center; width: min(520px, 92%); margin: 4px auto 0; }
.lv-say input {
  flex: 1; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 14px; font-size: 13.5px; background: #fff; color: var(--ink);
}
.lv-say input:focus { outline: 2px solid var(--action); outline-offset: 1px; }
.lv-say .btn { height: 42px; flex-shrink: 0; }

/* ---------- 群内产物媒体（图片 / 视频 / 语音）：内联展示 + 预览 + 下载 ---------- */
.g-media-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.g-msg.right .g-media-strip { justify-content: flex-end; }
.g-media {
  position: relative; width: 132px; height: 132px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: #0d1117; cursor: pointer; flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.g-media:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(9 97 231 / 18%); }
.g-media img, .g-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-media.vid { width: 200px; }
.g-media .g-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgb(0 0 0 / 28%);
}
.g-media .g-play svg { width: 26px; height: 26px; }
.g-audio { display: block; margin-top: 6px; width: 260px; max-width: 100%; height: 34px; }
.g-think { margin-top: 6px; }
.g-think summary { font-size: 11.5px; color: var(--action); cursor: pointer; }
.g-think > div {
  margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--muted);
  background: #f6f8fb; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 11px; white-space: pre-wrap;
}
/* 待发送的门店素材（发送时随消息交给总监） */
.g-pending { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px 0; background: #fff; }
.g-pend { position: relative; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.g-pend img, .g-pend video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-pend-x {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.g-pend-x svg { width: 11px; height: 11px; }
.iconbtn.rec { color: #fff; background: #d92d20; border-color: #d92d20; }
/* 媒体预览弹窗（图片 / 视频 + 下载到本地） */
.media-mask {
  position: fixed; inset: 0; z-index: 120; background: rgb(15 20 28 / 72%);
  display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px);
}
.media-mask[hidden] { display: none; }
.media-box {
  background: #fff; border-radius: 16px; overflow: hidden; width: fit-content;
  max-width: min(880px, 92vw); max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}
.media-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.media-head strong { font-size: 14px; }
.media-body { padding: 16px; overflow: auto; display: flex; align-items: center; justify-content: center; }
.media-body img { max-width: 100%; max-height: 68vh; border-radius: 12px; display: block; }
.media-body video { max-width: 100%; max-height: 68vh; border-radius: 12px; background: #000; display: block; }

/* ============================================================
   2026-09-26 新增：来客搭建计划 / 自动上下架 / 我的知识库 / 协同流程
   ============================================================ */
.hint.ok { background: #e8f6ee; color: #1c6b46; }
.hint.info { background: #eaf0f7; color: #3b546f; }

.kb-search {
  flex: 1 1 220px; max-width: 340px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 13px; color: var(--text); font-family: inherit;
}
.kb-search:focus { outline: 2px solid #cfe0f7; border-color: #0961e7; }

.page-tools .plat-switch { flex-wrap: wrap; }

/* 知识库条目：长文本可读性 */
.faq p { white-space: pre-wrap; line-height: 1.72; }

/* 计划/商品行：标题与副信息竖排更清晰 */
.row > .grow > strong, .row > .grow > span { display: block; }
.row > .grow > span + span { margin-top: 2px; }

/* 大图缩略：避免小屏把 480px 缩略图撑破 */
.g-media img { background: #f0f3f7; }

@media (max-width: 720px) {
  .kb-search { max-width: 100%; }
  .page-tools { gap: 10px; }
}
