:root { --bg: #ededed; --panel: #f7f7f7; --white: #fff; --text: #1f2421; --muted: #8a8f8c; --line: #e2e2e2; --green: #07c160; --green-dark: #06a050; --mine: #95ec69; --red: #fa5151; --side: #2e2e2e; }
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--text); border-radius: 6px; padding: 7px 14px; }
button.primary { background: var(--green); border-color: var(--green); color: #fff; }
button.primary:disabled { opacity: .5; cursor: default; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; background: var(--white); color: var(--text); outline: none; }
input:focus, textarea:focus { border-color: var(--green); }
.loading, .empty { color: var(--muted); text-align: center; margin: 40px auto; padding: 0 16px; }
.err { color: var(--red); font-size: 13px; margin: 6px 0 0; min-height: 1em; }

/* 表单页（联系我 / 进群 / 登录） */
.card-page { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.card { width: min(420px, 100%); background: var(--white); border-radius: 12px; padding: 26px 22px; box-shadow: 0 2px 16px rgb(0 0 0 / 6%); }
.card h1 { font-size: 22px; margin: 0 0 6px; }
.card p.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.card label { display: block; font-size: 13px; color: #555; margin: 12px 0 5px; }
.card .check { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #555; font-size: 14px; }
.card .check input { width: auto; }
.card button.primary { width: 100%; margin-top: 18px; padding: 11px; font-size: 16px; }
.card .mine-list { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.card .mine-list a { display: block; padding: 6px 0; color: var(--green-dark); text-decoration: none; }

/* 聊天窗口 */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--panel); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); min-height: 54px; }
.chat-head .title { flex: 1; min-width: 0; }
.chat-head .title b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .title small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head a.call, .chat-head button { flex: none; font-size: 13px; padding: 5px 10px; border-radius: 6px; text-decoration: none; }
.chat-head a.call { background: var(--green); color: #fff; }
.chat-head .back { display: none; border: 0; background: none; font-size: 24px; padding: 0 6px 0 0; line-height: 1; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px; overscroll-behavior: contain; }
.time-sep { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0; }
.sys { text-align: center; margin: 8px auto; max-width: 86%; }
.sys span { display: inline-block; background: rgb(0 0 0 / 6%); color: #777; font-size: 12px; padding: 4px 10px; border-radius: 4px; }
.msg { display: flex; gap: 8px; margin: 10px 0; align-items: flex-start; }
.msg.mine { flex-direction: row-reverse; }
.avatar { position: relative; flex: none; width: 40px; min-width: 40px; height: 40px; border-radius: 8px; overflow: visible; user-select: none; }
.avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
.avatar.big { width: 46px; min-width: 46px; height: 46px; font-size: 19px; border-radius: 9px; }
.avatar .tag { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); font-size: 9px; line-height: 13px; padding: 0 4px; border-radius: 6px; background: #fff; color: #d27200; font-weight: 700; text-shadow: none; white-space: nowrap; box-shadow: 0 1px 2px rgb(0 0 0 / 15%); }
.msg .body { max-width: min(70%, 520px); display: flex; flex-direction: column; align-items: flex-start; }
.msg.mine .body { align-items: flex-end; }
.msg .who { font-size: 12px; color: var(--muted); margin: 0 4px 3px; }
.bubble { background: var(--white); padding: 8px 11px; border-radius: 6px; white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble { background: var(--mine); }
.bubble img { display: block; max-width: 220px; max-height: 260px; border-radius: 4px; }
.bubble.pic { padding: 3px; }
.bubble a.file { color: var(--text); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.bubble a.file small { color: var(--muted); }
.msg .recall { font-size: 11px; color: var(--muted); border: 0; background: none; padding: 2px 4px; }
.toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 10px 0; border-top: 1px solid var(--line); background: var(--panel); }
.toolbar .tool { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 13px; border-radius: 16px; background: var(--white); }
.toolbar small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.chat.dragging { outline: 3px dashed var(--green); outline-offset: -6px; }
.compose { background: var(--panel); padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { resize: none; max-height: 140px; min-height: 40px; line-height: 1.4; }
.compose .send { flex: none; height: 40px; }
.compose-err { padding: 0 12px 6px; background: var(--panel); }
.newtip { position: sticky; bottom: 6px; margin-left: auto; display: block; font-size: 12px; background: var(--white); color: var(--green-dark); border-radius: 14px; padding: 4px 12px; box-shadow: 0 1px 6px rgb(0 0 0 / 12%); }

/* 负责人后台：三栏 */
.owner { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 100%; }
.list { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #e9e9e9; border-right: 1px solid #dcdcdc; }
.list-head { display: flex; gap: 6px; padding: 12px 10px 10px; }
.list-head input { padding: 6px 10px; font-size: 13px; background: #dcdcdc; border: 0; }
.list-head button { flex: none; font-size: 13px; padding: 4px 10px; }
.list-tools { display: flex; gap: 6px; padding: 0 10px 8px; }
.list-tools button { flex: 1; font-size: 12px; padding: 5px 4px; }
.rooms { flex: 1; overflow-y: auto; }
.room { display: flex; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.room:hover { background: #dedede; }
.room.sel { background: #c9c9c9; }
.room .avatar i { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 11px/18px system-ui; font-style: normal; text-align: center; }
.room .main { flex: 1; min-width: 0; overflow: hidden; }
.room .line { display: flex; justify-content: space-between; gap: 6px; }
.room .line b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .line time { flex: none; font-size: 11px; color: var(--muted); }
.room .last { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.right { display: flex; min-height: 0; min-width: 0; }
.right .chat { flex: 1; }
.info { width: 260px; flex: none; border-left: 1px solid var(--line); background: var(--white); overflow-y: auto; padding: 16px; font-size: 14px; }
.info h3 { font-size: 14px; margin: 16px 0 8px; color: #555; }
.info h3:first-child { margin-top: 0; }
.info .row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.info .row span { color: var(--muted); }
.info button { width: 100%; margin-top: 8px; font-size: 13px; }
.info .mem { padding: 4px 0; }
.info .mem em { font-style: normal; font-size: 11px; color: #b0731d; margin-left: 4px; }
.info a { color: var(--green-dark); }
.modal-bg { position: fixed; inset: 0; background: rgb(0 0 0 / 35%); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal { background: var(--white); border-radius: 10px; padding: 20px; width: min(400px, 100%); }
.modal h2 { font-size: 17px; margin: 0 0 12px; }
.modal label { display: block; font-size: 13px; color: #555; margin: 10px 0 4px; }
.modal .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal pre { white-space: pre-wrap; background: var(--panel); padding: 10px; border-radius: 6px; font: 13px/1.6 inherit; margin: 0; }
@media (max-width: 1100px) { .info { display: none; } .right.show-info .info { display: block; position: fixed; right: 0; top: 0; bottom: 0; z-index: 5; box-shadow: -4px 0 16px rgb(0 0 0 / 10%); } }
@media (max-width: 760px) {
  .toolbar small { display: none; }
  .owner { grid-template-columns: minmax(0, 1fr); }
  .owner.has-sel .list { display: none; }
  .owner:not(.has-sel) .right { display: none; }
  .chat-head .back { display: block; }
  .right.show-info .info { width: 86%; }
  .msg .body { max-width: 78%; }
}

/* 发起群聊：选联系人 */
.pick { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }
.modal label.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; color: var(--text); font-size: 14px; }
.pick-row input { width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.pick-row span { display: grid; min-width: 0; }
.pick-row small, .info small { color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); font-weight: 400; }
/* 群信息里的成员 */
.info .mem { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.info .mem .avatar { width: 34px; min-width: 34px; height: 34px; font-size: 14px; }
.info .mem-main { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.info .mem-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info button.mini { width: auto; margin: 0; padding: 2px 8px; font-size: 12px; }
/* 客户页：被拉进的群 */
.groups:empty { display: none; }
.groups { background: #fffbe8; border-bottom: 1px solid #f1e7b8; }
.group-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 14px; flex-wrap: wrap; }
.group-row span { flex: 1; min-width: 0; }
.group-row button { padding: 4px 12px; font-size: 13px; }
.group-row.other { background: var(--panel); font-size: 13px; color: var(--muted); }
.group-row.other span { flex: none; }
.group-row.other a { color: var(--green-dark); text-decoration: none; }
/* 看大图 */
.bubble.pic img { cursor: zoom-in; }
.viewer { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 88%); display: grid; place-items: center; padding: 56px 12px 12px; }
.viewer-img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 4px; cursor: zoom-out; }
.viewer-bar { position: fixed; top: 10px; right: 12px; display: flex; gap: 10px; align-items: center; }
.viewer-bar a { color: #fff; font-size: 14px; text-decoration: none; padding: 6px 12px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 18px; }
.viewer-close { background: #fff; color: #111; border: 0; border-radius: 18px; padding: 7px 16px; font-size: 15px; font-weight: 600; }

/* 2026-10-28 意向/成交 两部分 */
.tabs { display: flex; gap: 4px; padding: 0 10px 8px; }
.tabs button { flex: 1; padding: 5px 4px; font-size: 13px; border-radius: 6px; background: transparent; border-color: transparent; color: #555; position: relative; }
.tabs button.on { background: var(--white); border-color: var(--line); color: var(--text); font-weight: 600; }
.tabs button i { font-style: normal; margin-left: 4px; background: var(--red); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 11px; }
em.stage { font-style: normal; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }
em.stage.lead { background: #fff1d6; color: #b46a00; }
em.stage.deal { background: #dcf5e7; color: #0a7a40; }
em.stage.group { background: #e6ecf5; color: #4b6584; }
.stage-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 4px; }
.stage-box.lead { background: #fffaf0; border-color: #f3dfb3; }
.stage-box.deal { background: #f2fbf6; border-color: #bfe8d0; }
.stage-box button { margin-top: 6px; }
.info button.linkish { border: 0; background: none; color: var(--muted); font-size: 12px; margin-top: 2px; }
.info .wx-on { color: #0a7a40; } .info .wx-off { color: #b0b0b0; }
.group-row.profile { background: #eaf8f0; flex-wrap: wrap; }
.group-row.profile input { flex: 1 1 120px; min-width: 0; padding: 6px 8px; }
.group-row.wx { background: #eef5ff; }
.qr-box { text-align: center; }
.qr-img { width: 220px; height: 220px; margin: 6px auto; display: block; border: 1px solid var(--line); border-radius: 8px; }
.qr-tip { font-size: 13px; color: #555; } .qr-state { font-size: 13px; color: var(--muted); } .qr-state.ok { color: #0a7a40; font-weight: 600; }
.set-h { font-size: 15px; margin: 18px 0 4px; }
.set-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.set-btns button { font-size: 13px; }
details.how, details.return { margin-top: 8px; font-size: 13px; color: #555; }
details.how ol { padding-left: 20px; margin: 6px 0; }
details.return { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
details.return input { margin-top: 8px; }
details.return button { width: 100%; margin-top: 8px; }
.card a.primary-link { display: block; text-align: center; margin-top: 18px; padding: 11px; font-size: 16px; border-radius: 6px; background: var(--green); color: #fff; text-decoration: none; }
.card button.ghost { width: 100%; margin-top: 8px; }
.modal.wide { width: min(980px, 100%); max-height: 90vh; display: flex; flex-direction: column; }
.arch-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.arch-tools .tabs { padding: 0; flex: none; }
.arch-tools input { flex: 1; min-width: 160px; }
.arch-tools a.btn { padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.arch-body { overflow: auto; min-height: 120px; }
table.arch { width: 100%; border-collapse: collapse; font-size: 13px; }
table.arch th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); }
table.arch td { padding: 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
table.arch td small { display: block; color: var(--muted); }
table.arch tbody tr { cursor: pointer; } table.arch tbody tr:hover { background: #f6f8f7; }
.group-row.profile > span, .group-row.wx > span { flex: 1 1 100%; }
.group-row.profile > button { flex: none; }
@media (min-width: 761px) { .group-row.wx > span { flex: 1 1 0; } }
.arch-tools .tabs button, .tabs button { white-space: nowrap; } .arch-tools .tabs button { flex: none; padding: 5px 12px; }

.info p.small { font-size: 12px; margin: 0 0 4px; }
.info .mem-btns { display: grid; gap: 4px; }

/* 第二步（开发）表单 */
.step2 { background: #f2fbf6; border-bottom: 1px solid #bfe8d0; padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.step2 h3 { margin: 0; font-size: 16px; }
.step2 .sub { margin: 0; color: #4b5a54; font-size: 13px; }
.step2 label { display: grid; gap: 4px; font-size: 13px; color: #444; }
.step2 input[type=file] { padding: 6px; background: var(--white); }
.step2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.step2-btns { display: flex; gap: 8px; } .step2-btns .primary { flex: 1; }
@media (max-width: 760px) { .step2-grid { grid-template-columns: 1fr; } .step2 { max-height: 62vh; overflow-y: auto; } }
.group-row.quote-pending { background: #fff7e6; } .group-row.quote-confirmed { background: #eaf8f0; }
.group-row.quote-pending > span, .group-row.quote-confirmed > span { flex: 1 1 0; }
em.stage.deal.wait { background: #ffe1e1; color: #c0392b; }
.qbox { border-top: 1px dashed #cfe9da; margin-top: 6px; padding-top: 6px; display: grid; gap: 6px; font-size: 13px; }
.qbox.pending > b { color: #c0392b; } .qbox.confirmed > b { color: #0a7a40; }
.qitem { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; display: grid; gap: 4px; }
.qitem pre { margin: 0; white-space: pre-wrap; font: 12px/1.5 inherit; max-height: 160px; overflow-y: auto; }
.qitem a { color: var(--green-dark); font-size: 12px; word-break: break-all; }
.qitem small { color: var(--muted); font-size: 11px; }
.info .info-close { display: none; margin: 0 0 12px; }
@media (max-width: 1100px) { .info .info-close { display: block; background: var(--green, #07c160); color: #fff; border: 0; font-size: 14px; padding: 8px; } }
.bubble a, .sys a { color: var(--green-dark, #06ad56); word-break: break-all; }
.qbox small { display: block; word-break: break-all; margin-top: 4px; }

/* ===== 2026-10-29 照微信重做 ===== */
:root { --bg: #ededed; --panel: #f7f7f7; --feed: #ededed; --mine: #95ec69; --side: #2e2e2e; --list: #e6e6e6; }
.chat { background: var(--feed); }
.chat-head { background: #ededed; border-bottom: 1px solid #dcdcdc; min-height: 52px; padding: 8px 12px; }
.chat-head .title b { font-weight: 500; font-size: 17px; }
.chat-head .head-side { flex: none; display: flex; align-items: center; gap: 6px; }
.chat-head > span.head-side { width: 0; }
.chat-head button.more { border: 0; background: none; font-size: 22px; font-weight: 700; letter-spacing: 1px; padding: 0 6px; line-height: 1; color: #222; }
.chat-head a.call { background: none; color: #222; border: 1px solid #cfcfcf; border-radius: 16px; padding: 4px 10px; font-size: 13px; }
.feed { padding: 12px 12px 6px; }
.time-sep { font-size: 12px; color: #a3a3a3; margin: 14px 0 10px; }
.sys span { background: none; color: #a3a3a3; padding: 2px 6px; white-space: pre-wrap; text-align: center; }
.sys a { color: #576b95; }
.msg { gap: 10px; margin: 14px 0; }
.avatar, .avatar img { border-radius: 5px; }
.avatar img { box-shadow: none; }
.msg .who { font-size: 12px; color: #9a9a9a; margin: 0 0 4px 2px; }
.bubble { position: relative; padding: 9px 12px; border-radius: 5px; font-size: 16px; line-height: 1.45; background: #fff; min-height: 40px; }
.bubble::before { content: ""; position: absolute; top: 13px; left: -5px; border: 6px solid transparent; border-left: 0; border-right-color: #fff; }
.msg.mine .bubble::before { left: auto; right: -5px; border-right: 0; border-left: 6px solid var(--mine); }
.bubble.pic { padding: 0; background: none; min-height: 0; } .bubble.pic::before { display: none; }
.bubble.pic img { border-radius: 5px; max-width: 200px; max-height: 240px; }
.bubble a { color: #576b95; }
.bubble:has(a.file) { background: #fff !important; padding: 12px 14px; width: 230px; }
.msg.mine .bubble:has(a.file)::before { border-left-color: #fff; }
.bubble a.file { justify-content: space-between; }
.bubble a.file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; }
/* 输入区 */
.toolbar { display: none; }
.compose { background: #f7f7f7; border-top: 1px solid #e0e0e0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px; align-items: flex-end; }
.compose textarea { border: 0; border-radius: 5px; min-height: 40px; padding: 9px 10px; font-size: 16px; background: #fff; }
.compose .ic-btn { flex: none; width: 36px; height: 40px; padding: 0; border: 0; background: none; color: #1a1a1a; display: grid; place-items: center; }
.compose .ic-btn svg { width: 30px; height: 30px; }
.compose .send { display: none; flex: none; height: 36px; margin-bottom: 2px; padding: 0 14px; border: 0; border-radius: 5px; background: var(--green); color: #fff; font-size: 15px; }
.chat.typed .compose .send { display: block; }
.chat.typed .compose .ic-btn.plus { display: none; }
.plus-panel, .emoji-panel { display: none; background: #f7f7f7; border-top: 1px solid #e3e3e3; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.chat[data-panel="plus"] .plus-panel { display: grid; grid-template-columns: repeat(4, 64px); justify-content: space-around; row-gap: 14px; }
.chat[data-panel="emoji"] .emoji-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); max-height: 210px; overflow-y: auto; }
.plus-panel .tile { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 6px; }
.plus-panel .tile-ic { width: 60px; height: 60px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: #3a3a3a; }
.plus-panel .tile-ic svg { width: 30px; height: 30px; }
.plus-panel small { font-size: 12px; color: #777; }
.emoji-panel button { border: 0; background: none; font-size: 26px; padding: 4px 0; border-radius: 6px; }
.emoji-panel button:hover { background: #e6e6e6; }
/* 后台：电脑版微信三栏 */
.owner { grid-template-columns: 64px 280px minmax(0, 1fr); }
.side { background: var(--side); display: flex; flex-direction: column; align-items: center; padding: 22px 0 14px; gap: 6px; }
.side button { border: 0; background: none; padding: 0; border-radius: 0; }
.side-me { margin-bottom: 18px; }
.side-me .avatar { width: 38px; min-width: 38px; height: 38px; }
.side .nav { width: 64px; height: 50px; color: #9b9b9b; display: grid; place-items: center; }
.side .nav svg { width: 26px; height: 26px; }
.side .nav small { display: none; }
.side .nav:hover { color: #d6d6d6; }
.side .nav.on { color: var(--green); }
.side .nav.me-tab { display: none; }
.side-gap { flex: 1; }
.list { background: var(--list); border-right: 1px solid #d6d6d6; }
.list-title { display: none; }
.list-head { padding: 24px 12px 12px; gap: 8px; }
.list-head input { background: #dadada; border-radius: 5px; padding: 6px 10px; }
.list-head button.add { width: 30px; height: 30px; padding: 0; font-size: 22px; line-height: 1; background: #dadada; border: 0; border-radius: 5px; color: #555; }
.tabs { padding: 0 12px 8px; }
.room { padding: 12px; }
.room:hover { background: #dcdcdc; }
.room.sel { background: #c6c6c6; }
.room .line b { font-size: 15px; }
.room .avatar.big { width: 44px; min-width: 44px; height: 44px; }
.info .info-close { background: var(--green); }
.me-card { display: flex; gap: 12px; align-items: center; padding: 4px 0 8px; }
.me-card .avatar { width: 60px; min-width: 60px; height: 60px; }
.me-card b { display: block; font-size: 18px; } .me-card small { color: var(--muted); font-size: 12px; }
@media (min-width: 761px) {
  .chat-head .title { text-align: left; }
  .compose { padding: 10px 14px 12px; }
}
@media (max-width: 760px) {
  .chat-head { display: flex; }
  .chat-head .title { text-align: center; }
  .chat-head > span.head-side, .chat-head .back { width: 72px; text-align: left; }
  .chat-head .right-side { width: 72px; justify-content: flex-end; }
  .chat-head a.call span { display: none; }
  .chat-head a.call { border: 0; font-size: 20px; padding: 0 4px; }
  .chat-head .title small { display: none; }
  .owner { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .owner .list { grid-row: 1; }
  .owner .right { grid-row: 1 / span 2; }
  .side { grid-row: 2; flex-direction: row; justify-content: space-around; background: #f7f7f7; border-top: 1px solid #ddd; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); gap: 0; }
  .owner.has-sel .side { display: none; }
  .side-me, .side-gap, .side .nav.gear { display: none; }
  .side .nav.me-tab { display: grid; }
  .side .nav { width: auto; flex: 1; height: 52px; color: #1a1a1a; gap: 1px; }
  .side .nav small { display: block; font-size: 11px; }
  .side .nav svg { width: 24px; height: 24px; }
  .list-title { display: block; text-align: center; padding: 14px 0 4px; background: #ededed; font-size: 17px; }
  .list-title b { font-weight: 500; }
  .list { background: #fff; }
  .list-head { padding: 8px 12px; background: #ededed; }
  .list-head input { background: #fff; text-align: center; }
  .list-head button.add { background: none; font-size: 28px; color: #1a1a1a; }
  .tabs { background: #ededed; padding-bottom: 8px; }
  .room { border-bottom: 1px solid #efefef; }
  .room.sel { background: #fff; }
  .msg .body { max-width: 72%; }
}
.card p.tip { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
/* 群聊信息（照微信） */
.g-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; padding: 4px 0 14px; }
.info button.g-cell { width: auto; margin: 0; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.g-cell .avatar { width: 46px; min-width: 46px; height: 46px; }
.g-cell small { font-size: 11px; color: #777; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-plus { width: 46px; height: 46px; border: 1px dashed #bbb; border-radius: 5px; display: grid; place-items: center; font-size: 26px; color: #999; line-height: 1; }
.g-list { background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 0 -16px 10px; }
.info button.g-row { width: 100%; margin: 0; border: 0; border-bottom: 1px solid #f2f2f2; border-radius: 0; background: #fff; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 15px; text-align: left; }
.info button.g-row:last-child { border-bottom: 0; }
.g-row .val { flex: 1; min-width: 0; text-align: right; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row i { font-style: normal; color: #c4c4c4; font-size: 18px; }
.info button.g-row.danger { justify-content: center; color: var(--red); }
.g-tip { margin: -4px 0 12px !important; color: var(--muted); }
.mem-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.mem-card > div:nth-child(2) { display: grid; gap: 2px; } .mem-card b { font-size: 17px; } .mem-card small { color: var(--muted); }
.mem-card .mem-btns { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; } .mem-card .mem-btns button { flex: 1; }
.mem-card a { color: var(--green-dark); }
.info:has(.g-grid) { background: #ededed; }
/* 手机适配（2026-10-29）：高度跟随真实可视区域（地址栏、键盘弹出时输入框不被挡），输入框 16px 防止苹果手机点一下就放大 */
#app { height: var(--app-h, 100dvh); }
@media (max-width: 760px), (pointer: coarse) {
  input, textarea, select { font-size: 16px !important; }
  body { -webkit-text-size-adjust: 100%; }
  button, a { -webkit-tap-highlight-color: transparent; }
}
#app { overflow-y: auto; }
@media (max-width: 760px) { .right.show-info .info { width: 100%; box-shadow: none; } }
.info a.g-row { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f2f2f2; font-size: 15px; background: #fff; } .info:has(.g-grid) .stage-box, .info:has(.g-grid) h3 { margin-top: 12px; }
/* 开发中 / 助理回复记录 */
.avatar .tag.ai { color: #07a35a; }
.dev-list { display: grid; gap: 2px; }
.dev-row, .ai-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f0f0; border-radius: 0; background: #fff; padding: 12px 6px; }
.dev-row:hover, .ai-row:hover { background: #f6f8f7; }
.dev-main { flex: 1; min-width: 0; display: grid; gap: 3px; } .dev-main b { font-weight: 500; }
.dev-main small { color: var(--muted); font-size: 12px; } .dev-main .dev-now { color: #0a7a40; } .dev-main .dev-ai { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-row { display: grid; gap: 4px; } .ai-head { display: flex; justify-content: space-between; } .ai-head time { color: var(--muted); font-size: 12px; }
.ai-row p { margin: 0; font-size: 13px; white-space: pre-wrap; } .ai-ask { color: var(--muted); } .ai-text { color: #1f2421; }
@media (max-width: 760px) { .side .nav { min-width: 0; } .side .nav small { font-size: 10px; } }
/* 列表下面折叠的「开发中的客户」 */
.fold-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-top: 1px solid #dcdcdc; border-radius: 0; background: #e0e0e0; text-align: left; font-size: 14px; }
.fold-row b { flex: 1; font-weight: 500; } .fold-row em { font-style: normal; color: var(--muted); font-size: 12px; }
.fold-row .fold-ic { width: 44px; height: 30px; display: grid; place-items: center; color: #07a35a; font-size: 20px; }
.fold-row i { font-style: normal; background: var(--red); color: #fff; border-radius: 9px; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; text-align: center; }
.fold-row.on { background: #d6d6d6; }
.side a.nav { text-decoration: none; }
@media (max-width: 760px) { .fold-row { background: #f3f3f3; } .side a.wb-link { display: none; } }
/* 项目总览 */
.stage-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.stage-chips button { font-size: 12px; padding: 4px 10px; border-radius: 14px; }
.stage-chips button.on { background: #1f2421; color: #fff; border-color: #1f2421; }
.bgroup h3 { font-size: 14px; margin: 14px 0 8px; color: #555; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bcard { border: 1px solid var(--line); border-left: 4px solid #bbb; border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; background: #fff; font-size: 13px; }
.bcard p { margin: 0; } .bcard p.wait { color: #b46a00; } .bcard p.muted { color: var(--muted); }
.bhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .bhead b { font-size: 14px; }
.bhead em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #eee; white-space: nowrap; }
.bar { position: relative; height: 6px; background: #eee; border-radius: 3px; margin: 2px 34px 2px 0; } .bar i { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 3px; }
.bar span { position: absolute; right: -34px; top: -6px; font-size: 11px; color: var(--muted); }
.bfoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 2px; } .bfoot small { color: #aaa; font-size: 11px; }
.bcard.st-等我处理 { border-left-color: #fa5151; } .bcard.st-等我处理 .bhead em { background: #ffe1e1; color: #c0392b; }
.bcard.st-正在做 { border-left-color: #07c160; } .bcard.st-正在做 .bhead em { background: #dcf5e7; color: #0a7a40; }
.bcard.st-等客户 { border-left-color: #f0a020; } .bcard.st-等客户 .bhead em { background: #fff1d6; color: #b46a00; }
.bcard.st-已交付 { border-left-color: #8ab4f8; opacity: .85; } .bcard.st-已交付 .bhead em { background: #e6ecf5; color: #4b6584; }
.bcard.st-暂停 { border-left-color: #ccc; opacity: .75; }

/* 2026-10-29 开发中客户：确认收款 / 批准开发 / 验收通过 */
.wb-acts { display: grid; gap: 8px; margin-top: 4px; }
.wb-act { display: grid; gap: 4px; } .wb-act > b { font-size: 13px; color: var(--text, #111); }
.wb-item { display: flex; align-items: center; gap: 8px; background: var(--white, #fff); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.wb-item > span { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.wb-item > button, .info .wb-item > button { margin: 0; flex: none; width: auto; white-space: nowrap; padding: 5px 10px; font-size: 13px; }
.wb-item.none > span { color: var(--muted); }
