/* ============================================================
   0号员工官网 · 设计系统（配色与 logo 同源：teal #169F91 / 深绿 #123C38）
   PC + 移动响应式，断点 860px
   ============================================================ */
:root {
  --teal: #169F91;
  --teal-dark: #0E7A6F;
  --teal-light: #E4F4F1;
  --teal-mist: #F3FAF8;
  --ink: #123C38;
  --ink-2: #3E625D;
  --ink-3: #7C9691;
  --line: #DDEBE8;
  --bg: #F6FAF9;
  --card: #FFFFFF;
  --warn-bg: #FFF8E6;
  --warn-ink: #8A6A1F;
  --danger: #C4574E;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 60, 56, .08);
  --shadow-lg: 0 18px 50px rgba(18, 60, 56, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; outline: none; }
img, svg { display: block; }

/* ---------- 公共顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 73px; line-height: 73px;   /* Boss 指定：顶栏行高 73 */
  padding: 0 5vw;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .btn, .topbar .topbar-link, .topbar .topbar-user { line-height: normal; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand img { height: 56px; }   /* Boss：logo 太小看不清，放大 */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user { font-size: 14px; color: var(--ink); font-weight: 600; }
.topbar-link { font-size: 14px; color: var(--ink-2); }
.topbar-link:hover { color: var(--teal); }
.cc-flow { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.cc-flow:hover { color: var(--teal-dark); }

/* ---------- 模式一「输入 → 成稿」演示（2026-10-09 Boss 拍板改版） ---------- */
.m1-input {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; text-decoration: none; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.m1-input:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.m1-ph { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1-go { flex: none; font-size: 13px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 8px; padding: 6px 12px; }
.m1-inhint { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }

/* 双列：文章 | 图文（各自一列，一次只显示当前档，页签切换 + 自动轮播） */
.m1-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-top: 16px; }
.m1-col { min-width: 0; }
/* 小标题与"更多风格"提示同行（2026-10-09 Boss：提示挪到小标题右边） */
.m1-sec { display: flex; align-items: baseline; gap: 8px; margin: 0 0 9px; min-width: 0; }
.m1-sec-t { flex: none; font-size: 13px; font-weight: 800; color: var(--ink); }
.m1-sec .more-hint { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 页签一行放下三个（2026-10-09 Boss：图文三档不许折成两行）
   注意：必须用 .tabs.m1-chips 双类压过后面 .tabs/.tabs .tab 的同权重规则 */
.tabs.m1-chips { flex-wrap: nowrap; margin-bottom: 10px; gap: 5px; }
.tabs.m1-chips .tab { font-size: 11px; font-weight: 600; padding: 4px 8px; white-space: nowrap; }
.m1-arts { display: flex; flex-direction: column; gap: 8px; }
.m1-art {
  display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.m1-art.on { display: block; }
.m1-art-sample { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.m1-tws { display: block; }
.m1-tw { display: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.m1-tw.on { display: block; }
.m1-tw:hover { border-color: var(--teal); box-shadow: var(--shadow); }
/* 2026-10-09 Boss：预览图要完整展示，不再裁切（竖版原图 2:3，宽随列自适应） */
.m1-tw img { display: block; width: 100%; height: auto; }

/* ---------- 案例页签 / 客户介绍 / 空态 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tabs-row .tabs { margin-bottom: 0; }
.more-hint { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tabs .tab {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: var(--teal-mist); color: var(--ink-2); border: 1px solid var(--line);
}
.tabs .tab.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.persona { display: flex; gap: 12px; align-items: flex-start; background: var(--teal-mist); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.persona .av { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.persona b { color: var(--ink); font-size: 15px; }
.persona .pd { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.persona .aim { font-size: 13px; color: var(--teal-dark); margin-top: 4px; line-height: 1.6; }
.case-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 14px; background: var(--teal-mist); border: 1px dashed var(--line); border-radius: 12px; }

/* 案例卡（manifest 驱动，沿用 teal） */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.case:hover { border-color: var(--teal); transform: translateY(-2px); }
.case .ct { font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.5; }
.case .cm { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.tcase { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.tcase:hover { border-color: var(--teal); transform: translateY(-2px); }
.tcase .tc-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.tcase .tc-foot { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
/* 2026-10-09 Boss：图文卡展示完整首图（真图 2:3 竖版），画风差异一眼可见——不再切色条 */
.gtw { margin-top: 10px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--teal-mist); }
.gtw img { display: block; width: 100%; height: auto; }
.gtw-empty { display: grid; place-items: center; height: 120px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

/* modal 内容 */
.case-dialog { max-width: 680px; max-height: 86vh; overflow: auto; padding: 28px; }
.cb-eyebrow { font-size: 12px; color: var(--teal-dark); font-weight: 700; }
.cb-title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; line-height: 1.4; }
.cb-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.cb-body { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.cb-body p { margin: 0 0 12px; }
/* 2026-10-09 Boss：文末转化组件=公众号真实样子（引导句 + 名片卡）。只做名片卡形态（原生组件本无二维码），
   不出现"转化组件"字样、不编"XX篇原创"这类无据数字。 */
.cb-namecard { margin-top: 18px; }
.nc-lead { text-align: center; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.nc-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #E6E6E6; border-radius: 10px; padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.nc-av {
  flex: none; width: 46px; height: 46px; border-radius: 8px;
  background: var(--teal-mist); color: var(--teal-dark);
  display: grid; place-items: center; font-size: 20px; font-weight: 800;
}
.nc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nc-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.nc-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nc-tag { font-size: 11px; color: #9AA0A6; }
.nc-follow {
  flex: none; font-size: 13px; font-weight: 700; color: #fff;
  background: #07C160; border-radius: 6px; padding: 6px 14px;
}
.cb-sign { text-align: right; font-size: 14px; color: var(--ink); margin-top: 12px; font-style: italic; }
.cb-gate { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.cb-cards { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.cb-card { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  padding: 11px 22px; transition: all .18s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22,159,145,.3); }
.btn-ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-light); }
.btn-plain { background: #EDF4F2; color: var(--ink-2); }
.btn-plain:hover { background: #E0ECE9; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 64px 5vw 40px; text-align: center; }
/* 打字机块与下方输入框(.composer max-width:820px 居中)左右边缘对齐，内部文字左对齐 */
.hero-inner { max-width: 820px; margin: 0 auto; text-align: left; }
.hero h1 {
  font-size: 40px; text-align: left;
  line-height: 1.25; letter-spacing: .01em;
}

/* 视觉隐藏但保留给读屏 / SEO（W1：Hero 改成打字机后，静态可读标题放这里） */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero 打字机（0号 在对你说话） ---------- */
.hero-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; color: var(--ink-2); margin-bottom: 16px;
}
.hero-stat .ldot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(22, 159, 145, .15);
  animation: hpulse 2.4s ease-in-out infinite;
}
.hero-stat b { font-weight: 700; color: var(--ink); }
.hero-stat .mt { color: var(--ink-3); }
@keyframes hpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.hero-type { position: relative; display: block; margin: 0; }
/* 影子层：先渲一次完整四行并 visibility:hidden → 打字过程中高度永不跳动 */
.hero-ghost { visibility: hidden; }
.hero-live { position: absolute; left: 0; top: 0; width: 100%; }
.hero-type .hl { display: block; min-height: 1.25em; }
.hero-type .hl.key { color: var(--teal-dark); }
.hero-type .hl.muted { color: var(--ink-3); font-weight: 400; }
.hero-type .cur {
  display: inline-block; width: 2px; height: .95em; margin-left: 2px;
  background: var(--teal); vertical-align: -.12em;
  animation: hblink 1s steps(1) infinite;
}
@keyframes hblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* 关掉动效偏好：光标不闪、状态点不呼吸（打字机本身由 JS 直接静态全显） */
@media (prefers-reduced-motion: reduce) {
  .hero-type .cur { animation: none; opacity: 1; }
  .hero-stat .ldot { animation: none; }
}

/* 三入口横向大卡（整改单1 · 照原型 v1.2 的 mode-left/mode-right/case-grid；配色沿用现网 teal） */
.modes { max-width: 1120px; margin: 40px auto 0; padding: 0 5vw; display: flex; flex-direction: column; gap: 26px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: row; gap: 30px; align-items: flex-start; box-shadow: var(--shadow); transition: box-shadow .18s, border-color .18s; }
.mode:hover { box-shadow: var(--shadow-lg); border-color: var(--teal); }
.mode-left { flex: 0 0 300px; display: flex; flex-direction: column; }
.mode .tag { font-size: 12px; letter-spacing: 1px; color: var(--ink-3); font-weight: 700; }
.mode h3 { font-size: 21px; margin: 8px 0 6px; font-weight: 800; color: var(--ink); }
.mode-left p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.mode .enter { margin-top: auto; padding-top: 16px; align-self: flex-start; color: var(--teal); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mode .enter:hover { color: var(--teal-dark); }
.mode-right { flex: 1; min-width: 0; }

/* 模式功能清单 */
.feat { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.feat div { font-size: 13px; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.5; }
.feat div:before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

/* 右列 + 案例网格（2026-10-09 删 .lbl：右列顶部那句"典型客户（演示）"标签已按 Boss 指令移除） */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; cursor: pointer; transition: .15s; }
.case:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.case .ct { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.case .cm { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* 人物介绍卡（获客/表达岗典型客户） */
.persona { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.persona .av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.persona b { font-size: 14px; color: var(--ink); }
.persona .pd { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.55; }
.persona .aim { font-size: 12px; color: var(--teal-dark); font-weight: 700; margin-top: 5px; }

/* 图文缩略卡（teal 系，不搬原型纸白/印章红视觉） */
.tcase { background: var(--teal-light); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; position: relative; transition: .15s; }
.tcase:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal); }
.tcase.board { background: var(--ink); border-color: var(--ink); }
.tcase.board .tc-title { color: #EAF6F2; }
.tcase.board .tc-foot { color: #B9D6CF; }
.tcase.poster { background: linear-gradient(135deg, #E4F4F1 0%, #CFE9E3 100%); border-color: #B9DDD4; }
.tc-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; border: 1px solid var(--teal); color: var(--teal-dark); padding: 1px 6px; border-radius: 4px; transform: rotate(5deg); background: #fff; font-weight: 700; }
.tc-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.tc-foot { font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.tcase-mini { padding: 11px 12px; }

/* 模式区段脚注（2026-10-09 Boss：整段全站声明删除，规则暂留空——.modes-foot 已无引用） */

/* 案例 modal */
.case-mask { position: fixed; inset: 0; background: rgba(18,60,56,.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 200; }
.case-mask.on { display: flex; }
.case-dialog { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 26px 26px 22px; position: relative; box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.case-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.case-close:hover { background: var(--teal-light); color: var(--teal-dark); }

/* 横向大卡响应式 */
@media (max-width: 960px) {
  .mode { flex-direction: column; }
  .mode-left { flex: auto; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* 模式一双列 → 上下堆叠（窄屏两列会挤成细长条） */
  .m1-cols { grid-template-columns: 1fr; gap: 14px; }
  /* ★ 修（Boss 2026-10-12 真机截图）：此处曾有 aspect-ratio:16/10 + object-fit:cover，
     把竖版示例图裁掉一半。删掉后走 .m1-tw img { height:auto } 的完整显示（2026-10-09 已定「不裁切」）。 */
}
@media (max-width: 600px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* 视频区 */
.video-section { max-width: 960px; margin: 56px auto 0; padding: 0 5vw; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #0E3B36 0%, #123C38 55%, #14665D 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
/* 手机端换成竖屏版：容器跟着变 9:16，别把竖屏视频塞在横屏框里 */
.video-frame.portrait { aspect-ratio: 9 / 16; max-width: 400px; margin: 0 auto; background: #123C38; }
.video-cap { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.7; }
.video-placeholder { color: rgba(255,255,255,.85); text-align: center; padding: 24px; }
.video-placeholder .play {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.video-placeholder p { font-size: 14px; line-height: 1.8; opacity: .8; }

/* 特性条 */
.features {
  max-width: 960px; margin: 52px auto 72px; padding: 0 5vw;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature { text-align: center; padding: 8px 10px; }
.feature .icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

footer { border-top: 1px solid var(--line); padding: 26px 5vw; text-align: center; color: var(--ink-3); font-size: 12.5px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: calc(100vh - 63px); display: flex; align-items: center; justify-content: center; padding: 40px 5vw; }
.login-card {
  width: 380px; max-width: 92vw; background: var(--card);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 36px 32px;
}
.login-card .logo-row { display: flex; justify-content: center; margin-bottom: 10px; }
.login-card .logo-row img { height: 52px; }
.login-card h2 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.login-card .sub { text-align: center; font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); background: var(--teal-mist);
  transition: border-color .15s;
}
.field input:focus { border-color: var(--teal); background: #fff; }
.login-err { color: var(--danger); font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.login-card .btn { width: 100%; }
/* W6：登录页「去招募」入口（还没有自己的 0号？招募一个 →） */
.recruit-link { text-align: center; margin-top: 14px; font-size: 13px; }
.recruit-link a { color: var(--teal); font-weight: 600; }
.recruit-link a:hover { text-decoration: underline; }
.login-tip { margin-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.7; }
/* 登录/注册切换 */
.auth-tabs {
  display: flex; gap: 6px; background: var(--teal-mist);
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
}
.auth-tabs button {
  flex: 1; padding: 9px 0; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink-3); background: transparent; transition: all .15s;
}
.auth-tabs button.on { background: var(--teal); color: #fff; }
.field .req { color: var(--danger); font-style: normal; }

/* ---------- 生成详情页（全宽铺满，不留大空白） ---------- */
.gen-page { max-width: none; margin: 0; padding: 20px 18px 50px; }
.gen-layout { display: grid; grid-template-columns: 360px 1fr 330px; gap: 16px; align-items: start; }
.panel {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 700;
}
.panel-hd .tag { font-size: 11.5px; color: var(--teal); background: var(--teal-light); border-radius: 6px; padding: 3px 8px; font-weight: 600; }
.panel-bd { padding: 16px 18px; }

/* 左：对话区（可连续对话） */
.chat-panel { display: flex; flex-direction: column; }
.chat-log {
  height: 320px; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; background: var(--teal-mist);
}
.chat-log .msg {
  max-width: 88%; padding: 9px 13px; border-radius: 12px;
  font-size: 13px; line-height: 1.7; color: #2C4F4A;
  background: #fff; border: 1px solid var(--line); align-self: flex-start;
}
.chat-log .msg.me {
  align-self: flex-end; background: var(--teal); color: #fff; border-color: var(--teal);
}
/* ★ 0号员工名签（Boss 2026-10-11）：bot 气泡上方标发送者，像 WorkBuddy 一样分得清谁在说 */
.chat-log .msg-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 88%; }
.chat-log .msg-row .msg-name { font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 0 2px; }
.chat-log .msg-row .msg { max-width: 100%; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 0; }
.chat-quick button {
  font-size: 12px; color: var(--teal-dark); background: var(--teal-light);
  border-radius: 8px; padding: 6px 10px;
}
/* 「这次要什么」tiles（Boss 2026-10-02 第3/4条：挪到输入框上方，平铺多选；
   第1条：标签「这次要什么」和 文章/图文 按钮并列一行，不再各占一行） */
.kind-tiles { padding: 4px 14px 0; }
/* ★ 同优先级会被后面 .opt-row .lab{width:100%} 覆盖（实锤：Boss 两轮截图标签仍独占一行），必须高优先级选择器 */
.opt-row.kind-tiles .lab { width: auto; margin: 0; flex: 0 0 auto; }
/* Figma 式输入框（Boss 2026-10-02 第1条：附件和发送按钮在框里面） */
.gcomposer {
  margin: 10px 14px 0; border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  padding: 10px 12px 8px; transition: border-color .15s, box-shadow .15s;
}
.gcomposer:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light, #e5f4f1); }
.gcomposer textarea {
  width: 100%; min-height: 62px; resize: none; border: none; outline: none; background: transparent;
  font-size: 13px; line-height: 1.6; color: var(--ink); font-family: inherit;
}
.gcomposer textarea::placeholder { color: #A9BFB9; }
.gcomposer-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.gcomposer-plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 17px; line-height: 1; color: var(--ink-2); cursor: pointer;
}
.gcomposer-plus:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light, #f0faf8); }
.gcomposer-hint { flex: 1; font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcomposer-send {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--teal); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gcomposer-send:hover { background: var(--teal-dark); }
/* ★ 忙碌态=停止按钮（Boss 2026-10-11：和 WorkBuddy 一样，任务跑着时 ■，跑完恢复 ↑） */
.gcomposer-send.stop { background: #111; color: #fff; font-size: 13px; }
.gcomposer-send.stop:hover { background: #000; }
.gcomposer-send:disabled { background: #C5D6D2; cursor: default; }
.attach-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 12px; color: var(--ink-2); padding: 4px 6px 4px 10px;
}
.attach-chip .nm { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip button {
  border: none; background: none; cursor: pointer; font-size: 13px; color: var(--ink-3); padding: 0 4px;
}
.attach-chip button:hover { color: #b5543c; }
.attach-thumb { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.msg .att-note { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
/* 消息流里的附件（历史回看）：图片缩略图可点大图，文档胶囊可点开 */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 12px; color: var(--ink-2); padding: 4px 10px; cursor: pointer;
}
.fchip.img { padding: 3px; border-radius: 10px; }
.fchip.img img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; display: block; }
.fchip:not(.img):hover { border-color: var(--teal); color: var(--ink); }
/* 灯箱：点缩略图看大图，点任意处关闭 */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.4); }
.gen-go { width: 100%; margin-top: 12px; padding: 13px 0; font-size: 15.5px; }
.chat-panel .panel-bd { padding: 0; }

/* 中：结果 + tab（多标签页，2026-10-06：一个 tab = 一份真实产物，点预览开 tab） */
.result-tabs { display: flex; gap: 6px; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.result-tabs::-webkit-scrollbar { display: none; }
.result-tabs .rtab {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  padding: 7px 12px; border-radius: 9px; background: transparent; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer;
}
.result-tabs .rtab.on { color: #fff; background: var(--teal); }
.result-tabs .rtab .rtab-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 5px; font-size: 12px; font-weight: 400;
  color: inherit; opacity: .6; cursor: pointer;
}
.result-tabs .rtab .rtab-x:hover { opacity: 1; background: rgba(0,0,0,.12); }
.result-body { padding: 20px 22px; min-height: 420px; }
.gen-status { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.gen-status .ring {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid var(--teal-light); border-top-color: var(--teal);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gen-status .step { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.gen-status .meta { font-size: 12px; }
.article-view h2 { font-size: 20px; line-height: 1.5; margin-bottom: 12px; }
.article-view[contenteditable="true"] { outline: none; border-radius: 10px; padding: 6px 10px; margin: -6px -10px; transition: box-shadow .15s; }
.article-view[contenteditable="true"]:hover { box-shadow: 0 0 0 1.5px var(--teal-light); }
.article-view[contenteditable="true"]:focus { box-shadow: 0 0 0 2px var(--teal); background: #FDFEFE; }
.article-view .meta-line { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.article-view p { font-size: 14.5px; line-height: 1.9; color: #2C4F4A; margin-bottom: 14px; }
.tuwen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tuwen-page {
  aspect-ratio: 3 / 4; border-radius: 12px; padding: 14px;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 13px; line-height: 1.6;
}
.tuwen-page b { font-size: 15px; line-height: 1.5; }
.tuwen-page .no { font-size: 11px; opacity: .75; }
.tp-1 { background: linear-gradient(150deg, #169F91, #0E7A6F); }
.tp-2 { background: linear-gradient(150deg, #1E7A6F, #123C38); }
.tp-3 { background: linear-gradient(150deg, #2BC0AE, #169F91); }
.tp-4 { background: linear-gradient(150deg, #14665D, #0E3B36); }
.tp-5 { background: linear-gradient(150deg, #123C38, #169F91); }
.tp-6 { background: linear-gradient(150deg, #0E7A6F, #2BC0AE); }
/* 图文真实渲染图（接后端后的缩略图墙） */
.tw-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* 文章封面（正式档图文首页卡渲染产出，横幅裁切） */
.art-cover { margin: 0 0 16px; }
.art-cover img {
  display: block; width: 100%; height: 220px; object-fit: cover;
  /* ★ 黑封面根因修复（2026-10-02 Boss 实锤截图）：封面卡是 1080×1440 竖版，居中裁切
     只露出卡片中部留白带——标题被裁掉、深色底色下就是一整条黑。内容在卡片顶部，改裁顶部。 */
  object-position: 50% 0%;
  border-radius: 12px; border: 1px solid var(--line); background: var(--teal-mist);
}
.art-cover .cap { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.art-cover .cover-acts { display: inline-block; margin-left: 10px; }

/* 封面候选浮层（换封面 / 换一批 / 用这张） */
.cv-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 95; display: none; align-items: center; justify-content: center; padding: 18px; }
.cv-box { width: 720px; max-width: 96vw; max-height: 88vh; overflow-y: auto; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; }
.cv-hd { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--ink); }
.cv-x { border: none; background: transparent; color: var(--ink-3); font-size: 13px; }
.cv-x:hover { color: var(--teal); }
.cv-tip { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 14px; line-height: 1.6; }
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cv-item { border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.cv-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--teal-mist); cursor: zoom-in; }
/* 换标题候选（与换封面同弹窗体系） */
.tt-list { display: flex; flex-direction: column; gap: 10px; }
.tt-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
}
.tt-item .t { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.tt-item .tt-use { flex: 0 0 auto; }
.cv-name { font-size: 12.5px; color: var(--ink-2); margin: 8px 0; font-weight: 600; }
.cv-use { width: 100%; }
.cv-fail { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; padding: 12px; font-size: 12.5px; color: var(--ink-3); background: var(--teal-mist); border-radius: 8px; line-height: 1.6; }
.cv-loading { grid-column: 1 / -1; padding: 48px 12px; text-align: center; font-size: 13px; color: var(--ink-3); }
.cv-ft { margin-top: 14px; text-align: center; }
/* 不满意再生成一行：理由输入 + 按钮（Boss 2026-10-02 第5条） */
.cv-next-row { display: flex; gap: 8px; align-items: center; }
.cv-reason {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: 12.5px; color: var(--ink); outline: none;
}
.cv-reason:focus { border-color: var(--teal); }
.cv-cycle { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.cv-fail.wide { grid-column: 1 / -1; aspect-ratio: auto; padding: 18px; }
.cv-item.cur { border-color: var(--teal); background: var(--teal-light, #f0faf8); }
.cfg-tip-line { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
/* 选题环节（Boss 2026-10-02 第2/4条：中栏展示选题勾选，双产出并排） */
.topics-wrap { max-width: 880px; margin: 0 auto; padding: 34px 10px 20px; }
.topics-title { text-align: center; font-size: 19px; font-weight: 700; color: var(--ink); }
.topics-sub { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 8px 0 20px; line-height: 1.6; }
.topics-cols { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.topics-cols.single { justify-content: center; }
.topics-cols.single .topic-col { max-width: 460px; }
.topic-col { flex: 1; max-width: 420px; }
.topic-col h5 { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 0 0 10px; text-align: center; }
.topic-card {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 14px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s;
}
.topic-card:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(15, 118, 110, .08); }
.topic-card .t { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.topic-card .why { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 9px; line-height: 1.55; }
.topic-card .topic-pick { width: 100%; }
/* 双产出选题：选中态 + 底部确认条（两栏各选一条才可点「开始生成」） */
.topic-card.picked { border-color: var(--teal); background: var(--teal-light, #f0faf8); box-shadow: 0 2px 10px rgba(15, 118, 110, .10); }
.topics-confirm {
  position: sticky; bottom: 0; margin-top: 16px; padding: 12px 16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .06); font-size: 12.5px; color: var(--ink-2);
}
.topics-confirm .btn[disabled] { opacity: .45; cursor: not-allowed; }
.topics-skip { text-align: center; margin-top: 14px; }
.tw-shot {
  position: relative; display: block; aspect-ratio: 3 / 4;
  border-radius: 12px; overflow: hidden; background: var(--teal-mist);
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
}
.tw-shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 8px 22px rgba(18,60,56,.14)); }
.tw-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tw-shot .no {
  position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff;
  background: rgba(18,60,56,.6); border-radius: 6px; padding: 2px 7px;
}
/* 「它正在想」的等待气泡 */
.chat-log .msg.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 16px; }
.chat-log .msg.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: b0dot 1.2s infinite ease-in-out;
}
.chat-log .msg.typing span:nth-child(2) { animation-delay: .18s; }
.chat-log .msg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes b0dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* 操作条悬浮钉在中栏底部（Boss 2026-10-02 第5条：像 Figma 底部工具栏，滚动时一直在） */
.result-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  position: sticky; bottom: 0; z-index: 6;
  margin-top: 16px; padding: 12px 2px 6px;
  background: linear-gradient(to top, var(--card) 72%, rgba(255, 255, 255, 0));
}
/* 中上方通用 toast（成功/失败提示统一走这里，几秒自动消失） */
.b0-toast {
  position: fixed; top: 76px; left: 50%; transform: translate(-50%, -12px);
  max-width: min(520px, 86vw); z-index: 120;
  background: #1F2937; color: #fff; font-size: 13px; line-height: 1.6;
  border-radius: 10px; padding: 10px 18px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  text-align: center;
}
.b0-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 右：风格配置（文章 / 图文 两区） */
.cfg-group { margin-bottom: 18px; }
.cfg-group h4 { font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cfg-group h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.opt-row .lab { width: 100%; font-size: 12px; color: var(--ink-3); margin-bottom: -2px; }
.opt {
  font-size: 12.5px; color: var(--ink-2); background: var(--teal-mist);
  border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 13px;
  transition: all .15s;
}
.opt.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
/* 底色按钮内嵌的小色块（选中时描白边） */
.opt .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1.5px; border: 1px solid transparent; }
.opt.on .sw { border-color: rgba(255,255,255,.85); }
/* 行尾「预览真实效果」按钮 */
.opt-pv {
  font-size: 12px; color: var(--teal-dark); background: var(--teal-light);
  border: 1px dashed var(--teal); border-radius: 9px; padding: 5px 10px; cursor: pointer;
}
.opt-pv:active { transform: scale(.96); }

/* ---------- 风格预览浮层（真实渲染效果） ---------- */
.pv-mask { position: fixed; inset: 0; background: rgba(15,23,26,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pv-box { background: #fff; border-radius: 14px; width: min(560px, 94vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.pv-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.pv-close { font-size: 12.5px; color: var(--ink-3); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.pv-body { padding: 16px; overflow: auto; flex: 1; }
.pv-body iframe { border: 0; transform-origin: top left; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.18); background: #fff; }
.pv-frame { margin: 0 auto; overflow: hidden; border-radius: 10px; }
.pv-cap { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.pv-loading { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 10px; }
.pv-text { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.pv-text .pv-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pv-text .pv-kv { margin: 6px 0; }
.pv-text .pv-kv b { display: inline-block; min-width: 44px; color: var(--ink-3); font-weight: 400; margin-right: 8px; }
.pv-sample-label { margin: 14px 0 8px; font-size: 12px; color: var(--ink-3); }
.pv-sample { background: var(--panel, #F6F7F9); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.9; color: var(--ink); }

/* 生成完成提示条 */
.done-bar {
  margin-top: 16px; background: var(--teal-light); border: 1px solid #BFE3DC;
  color: var(--teal-dark); border-radius: 10px; padding: 10px 14px; font-size: 13px;
}

/* ---------- 移动端 ---------- */
.m-only { display: none !important; }
@media (max-width: 860px) {
  .m-only { display: flex !important; }
  .pc-only { display: none !important; }
  .topbar { height: 64px; line-height: 64px; padding: 0 4.5vw; }
  .brand img { height: 44px; }
  /* ★ 2026-10-12 Boss：手机端顶栏改两行——上行 logo+登录/账号、下行导航铺满整行。
     根因：此前单行 flex 在 390px 溢出，登录按钮被挤出首屏、要右滑才能看到。
     两行后一屏全见；登录后账号名同样在上行右侧。 */
  .topbar { flex-wrap: wrap; height: auto; line-height: normal; padding: 8px 4vw 0; }
  .topbar .brand { line-height: normal; }
  .topbar .brand img { height: 36px; }
  .topbar .topbar-right { margin-left: auto; }
  .topbar .mainnav { width: 100%; line-height: normal; justify-content: space-between; padding: 2px 0 10px; }
  .topbar .mainnav a { padding: 7px 10px; }
  /* ★ 修（Boss 2026-10-12 真机）：iOS Safari 聚焦字号 <16px 的输入框会强制放大整页——
     「点输入框弹键盘页面就变大、显示不全」的根因。≥16px 根治。 */
  input, textarea, select { font-size: 16px; }
  .hero { padding: 40px 5vw 28px; }
  /* W1：打字机在手机上降一档字号，金句仍能整句成行不炸开 */
  .hero h1 { font-size: clamp(21px, 6.2vw, 28px); line-height: 1.6; }
  .hero-stat { margin-bottom: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; margin-bottom: 56px; }
  .video-section { margin-top: 40px; }

  .gen-page { padding: 16px 4vw 40px; }
  .gen-layout { grid-template-columns: 1fr; }
  .tuwen-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-shots { grid-template-columns: repeat(2, 1fr); }
  .art-cover img { height: 160px; }
  .result-body { min-height: 320px; }
  .result-actions .btn { flex: 1; }

  /* ★ 2026-10-03 优化清单第9条（真机实锤）：手机端整页被撑到 485px 宽、Chrome 缩放适配后字全变小。
     根因链：.gcomposer-hint 一整行不换行（min-content 328px）→ .gcomposer 本征 438 →
     .gen-layout 的 grid item min-width:auto 取本征宽度 → 面板被撑到 468，页面 484。 */
  .gen-layout > .panel { min-width: 0; }
  .gcomposer-bar { flex-wrap: wrap; }
  .gcomposer-hint { white-space: normal; }
  .result-actions { flex-wrap: wrap; }
  .gcomposer-send { width: 40px; height: 40px; font-size: 20px; }   /* 触摸目标 ≥40px（实测 34px 偏小） */
  .gcomposer-plus { width: 36px; height: 36px; }
  .rev-chips .btn, .sel-hint .btn { min-height: 32px; }             /* 改稿芯片实测 26px，触摸目标偏小 */

  .login-wrap { align-items: flex-start; padding-top: 8vh; }
}

/* ---------- 首页风格预览弹层（手机端无 hover：选中即弹，✕/遮罩/按钮均可关） ---------- */
.pv-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pv-card { background: #fff; border-radius: 14px; width: 420px; max-width: 94vw; max-height: 84vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.pv-hd { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.pv-x { border: none; background: none; font-size: 16px; color: var(--ink-3); cursor: pointer; padding: 4px 6px; line-height: 1; }
.pv-bd { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hp-kv { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.hp-kv b { color: var(--teal); margin-right: 8px; }
.hp-sample-label { font-size: 12px; color: var(--ink-3); margin: 12px 0 6px; }
.hp-sample { background: var(--teal-mist, #F2F9F7); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.hp-frame-wrap { display: flex; justify-content: center; height: 430px; overflow: hidden; }
.hp-frame-wrap iframe { width: 1080px; height: 1440px; border: 0; transform: scale(.3); transform-origin: top center; background: #fff; border-radius: 6px; }
.hp-more { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.pv-ft { padding: 12px 16px; border-top: 1px solid var(--line); text-align: right; }

/* ---------- PC 悬停预览浮层（生成页：鼠标移入选项即显，移开即收） ---------- */
.pv-pop { position: absolute; display: none; z-index: 80; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgba(15, 23, 42, .18); padding: 12px 14px; }
.pv-pop-name { font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.pv-pop-kv { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.pv-pop-kv b { color: var(--teal); margin-right: 6px; }
.pv-pop-sample { background: var(--teal-mist, #F2F9F7); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; margin-top: 6px; max-height: 180px; overflow-y: auto; }
.pv-pop-frame { width: 250px; height: 333px; overflow: hidden; border-radius: 8px; background: #fff; }
.pv-pop-frame iframe { width: 1080px; height: 1440px; border: 0; transform: scale(.2315); transform-origin: top left; }
.pv-pop-cap { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 生成页·应用式三栏（Boss 2026-10-02：对齐 Figma——铺满视口、各栏内部滚、无横向滚动条） ---------- */
/* 桌面端：页面本身不滚，三栏吃满顶栏以下全部高度；左栏对话流内部竖滚、输入框钉底；中栏作品区内部滚 */
@media (min-width: 861px) {
  body.gen-app { overflow: hidden; }
  body.gen-app .gen-page { height: calc(100vh - 73px); padding: 14px 16px; overflow: hidden; box-sizing: border-box; }
  body.gen-app .gen-layout { height: 100%; align-items: stretch; grid-template-columns: 340px minmax(0, 1fr) 330px; }
  body.gen-app .gen-layout > .panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  body.gen-app .chat-log { height: auto; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
  body.gen-app .result-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
  body.gen-app .panel-bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
  body.gen-app .chat-quick, body.gen-app .chat-input-row,
  body.gen-app .attach-strip, body.gen-app .panel-hd { flex: 0 0 auto; }
  /* 左栏可折叠：收起后中间作品区吃掉整行 */
  body.gen-app .gen-layout.collapsed { grid-template-columns: minmax(0, 1fr) 330px; }
  body.gen-app .gen-layout.collapsed .chat-panel { display: none; }
}
.chat-panel-toggle {
  background: var(--teal-light); color: var(--teal-dark); border-radius: 6px;
  font-size: 12px; padding: 3px 9px; font-weight: 600; line-height: 1.6;
}
.chat-panel-toggle:hover { background: #CDEAE1; }
/* 长链接 / 长文件名不再撑破容器（横滚动条的真凶） */
.chat-log .msg, .msg .att-note, .done-bar { overflow-wrap: anywhere; word-break: break-word; }
.chat-log { overflow-x: hidden; }

/* ---------- 产出消息卡（完成回复带：预览 / 复制分享链接） ---------- */
.art-card {
  margin-top: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px;
}
/* 标题独占一行、按钮一行（左栏 340px 塞不下四个元素挤一行——Boss 截图实锤错位） */
.art-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-row + .art-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.art-kind { font-size: 11.5px; font-weight: 700; color: var(--teal); background: var(--teal-light); border-radius: 6px; padding: 3px 7px; flex: 0 0 auto; }
.art-t { flex: 1 1 100%; order: -1; font-size: 12.5px; color: var(--ink-2); min-width: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-card .btn { padding: 5px 10px; font-size: 12px; flex: 0 0 auto; white-space: nowrap; }
.art-tip { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 中栏：历史稿只读预览（版本下拉 2026-10-04 Boss 拍板删除） ---------- */
.hist-frame { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 8px; display: block; }
.hist-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--teal-mist); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-2); }
.hist-bar .btn { padding: 5px 10px; font-size: 12px; }
.hist-hold { flex: 1 1 auto; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.result-body.iframe-mode { padding: 12px; display: flex; flex-direction: column; }

/* ---------- 图文页码条（点页跳转） ---------- */
.tw-pager { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px; margin-top: 10px; }
.tw-pager button { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink-2); }
.tw-pager button.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.result-body.iframe-mode { overflow: hidden; }
body.gen-app .panel-hd { gap: 8px; flex-wrap: wrap; }
body.gen-app .panel-hd .tag { white-space: nowrap; }

/* ---------- 2026-10-03 优化清单：改稿交互 / 进度 / 限流前置 ---------- */
/* 快速改稿 chips：有稿子才出现（第 3 条）。选中了某段 → 只改那段 */
.rev-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 14px 0;
}
.rev-chips .lab { font-size: 12px; color: var(--ink-3); flex: 0 0 auto; }
.rev-chips .btn { padding: 5px 10px; font-size: 12px; }
/* 选中提示条（第 3 条） */
.sel-hint {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 14px 0; padding: 7px 10px; border-radius: 9px;
  background: var(--teal-light); border: 1px solid var(--teal-line, #CDEAE1);
  font-size: 12px; color: var(--teal-dark);
}
.sel-hint .btn { padding: 3px 9px; font-size: 11.5px; flex: 0 0 auto; }
/* 限流前置提示（第 6 条）：不用点了才被告知要等 */
.rate-hint {
  margin: 8px 14px 0; padding: 7px 10px; border-radius: 9px;
  background: #FFF8E8; border: 1px solid #F0DCA8; color: #8A6100; font-size: 12px;
}
/* 长任务进度条（第 5 条）：AI 出图 5-10 分钟，得让用户看见走到哪了 */
.gen-progress {
  margin: 12px auto 0; max-width: 320px; height: 6px; border-radius: 999px;
  background: #E6EFEC; overflow: hidden; position: relative;
}
.gen-progress i { display: block; height: 100%; width: 8%; background: var(--teal); border-radius: 999px; transition: width .5s ease; }
.gen-progress.indet i { animation: genProgIndet 1.4s ease-in-out infinite; }
.gen-progress .pgtxt { display: block; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
@keyframes genProgIndet { 0% { margin-left: -12%; } 100% { margin-left: 100%; } }
/* 失败卡（第 8 条）：原因 + 下一步，按钮是真的 */
.fail-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* ============================================================
   D1 抽屉「喊他一声」（全局组件，station/app 通用）
   ============================================================ */
.drawer-mask { position: fixed; inset: 0; background: rgba(18, 60, 56, .42); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 90; }
.drawer-mask.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 360px; max-width: 86vw; background: var(--card); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; z-index: 91; }
.drawer.on { transform: translateX(0); }
.drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer .dh .x { cursor: pointer; color: var(--ink-3); font-size: 18px; line-height: 1; }
.drawer .db { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer .bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; background: var(--teal-light); color: var(--ink); line-height: 1.6; font-size: 14px; align-self: flex-start; }
.drawer .bubble.me { align-self: flex-end; background: var(--teal); color: #fff; }
.drawer .quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
.drawer .quick span { font-size: 12px; padding: 6px 11px; border-radius: 999px; background: var(--teal-mist); color: var(--teal-dark); border: 1px solid var(--line); cursor: pointer; }
.drawer .quick span:hover { background: var(--teal); color: #fff; }
.drawer .df { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.drawer .df input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }

/* ============================================================
   入职面谈 onboard（F1）
   ============================================================ */
.onb-progress { font-size: 13px; color: var(--teal-dark); font-weight: 700; margin-bottom: 12px; }
.onb-step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.os-q { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.6; }
.os-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.os-opts label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 9px 15px; border-radius: 10px; background: var(--teal-mist); color: var(--ink-2); border: 1px solid var(--line); cursor: pointer; }
.os-opts label:has(input:checked) { background: var(--teal); color: #fff; border-color: var(--teal); }
.os-input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.os-other { margin-top: 10px; }
/* 弹窗外壳（2026-10-08 W7：app/station 通用；此前 station 用的 .modal-mask/.modal 两个类没有任何样式定义=弹窗一直以裸块渲染） */
.onb-mask { position: fixed; inset: 0; background: rgba(18,60,56,.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 260; }
.onb-mask.on { display: flex; }
.onb-dialog { background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 26px 26px 22px; position: relative; box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.onb-dialog h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.onb-dialog p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.onb-x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: 8px; }
.onb-x:hover { background: var(--teal-light); color: var(--teal-dark); }
.onb-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(20,32,44,.94); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 300; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 88vw; line-height: 1.6; }
/* F1 面谈第 8 屏：绑定引导（2026-10-12 P3） */
.onb-bind { display: block; margin: 6px 0 2px; }
.onb-bind-why { background: var(--teal-mist); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 8px; }
.onb-bind-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.onb-bind-row .obr-t { flex: none; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.onb-bind-row .obr-d { flex: 1; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.onb-bind-row .btn { flex: none; }
.onb-bind-skip { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ============================================================
   案例 modal 加载态占位
   ============================================================ */
.cb-loading { padding: 30px; text-align: center; color: var(--ink-3); font-size: 14px; background: var(--teal-mist); border-radius: 12px; }

/* ============================================================
   行业雷达 · 已盯方向 chips（批C⑩：与「灵感来源·同行内容/热搜热点」同源）
   ============================================================ */
.rdr-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rdr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--teal-mist); color: var(--teal-dark); border: 1px solid var(--teal-line, var(--line)); font-size: 13px; line-height: 1.4; }
.rdr-chip.sp { background: #fff4e8; color: #b4631a; border-color: #f3d9b8; }
.rdr-x { border: none; background: transparent; color: inherit; opacity: .55; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; border-radius: 6px; }
.rdr-x:hover { opacity: 1; }
.rdr-add { display: flex; gap: 8px; margin-top: 10px; }
.rdr-add .os-input { flex: 1; }

/* ⑪ 网页数据采集扫码弹窗 */
.qr-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 270; }
.qr-dlg { width: 440px; max-width: 94vw; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.qr-hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid #eee; }
.qr-x { cursor: pointer; font-size: 20px; color: #999; border: none; background: none; line-height: 1; }
.qr-body { padding: 16px; }
.qr-stage { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.qr-hint { color: #666; font-size: 14px; text-align: center; }
.qr-img { width: 280px; height: 280px; border: 1px solid #eee; border-radius: 8px; }
.qr-cap { font-size: 12px; color: #999; text-align: center; max-width: 240px; }
.qr-bar { height: 8px; background: #eef0f2; border-radius: 6px; overflow: hidden; margin: 12px 0 6px; }
.qr-bar > i { display: block; height: 100%; width: 0; background: var(--teal-dark, #3aa6a0); transition: width .4s ease; }
.qr-st { font-size: 13px; color: #444; min-height: 18px; white-space: pre-wrap; }
