
html{background:#fff}
:root{
  --bg:#fff; --surface:#fff; --border:#f0f0f2;
  --text:#1d1d1f; --text-dim:#86868b; --text-sub:#a1a1a6;
  --brand:#0b93f6; --brand-light:#e8f4fe;
  --bubble-bot:#f2f2f7;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* 🔴 iOS Safari 输入框聚焦自动放大页面：所有可输入元素字号强制 ≥16px（2026-08-16） */
input,textarea,select{font-size:16px !important}
/* 🔒 2026-08-22 框架锁缩放：禁双击/双指放大页面（单指滚动保留）。
   内容（图片等）如需缩放：单独给容器 touch-action: pinch-zoom 放行。 */
html,body{touch-action:pan-x pan-y}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","SF Pro Text","Helvetica Neue",sans-serif;background:var(--bg);color:var(--text);height:100dvh;display:flex;flex-direction:column;overflow:hidden}
/* ═══ 微信内打开强制引导层（方案A：微信内不可用，必须浏览器打开，2026-08-22） ═══ */
.wx-gate{display:none;position:fixed;inset:0;z-index:99999;background:#fff;
  flex-direction:column;align-items:center;justify-content:center;
  padding:2rem max(1.6rem,env(safe-area-inset-left,1.6rem)) calc(2.5rem + env(safe-area-inset-bottom,0px))}
.wx-gate.show{display:flex}
.wx-gate .wg-logo{width:76px;height:76px;border-radius:20px;box-shadow:0 8px 30px rgba(11,147,246,.18);margin-bottom:1.2rem}
.wx-gate .wg-title{font-size:1.25rem;font-weight:700;color:#1d1d1f;letter-spacing:.02em}
.wx-gate .wg-sub{font-size:.78rem;color:#86868b;margin-top:.4rem;text-align:center;line-height:1.6}
.wx-gate .wg-steps{width:100%;max-width:340px;margin-top:1.6rem;display:flex;flex-direction:column;gap:.7rem}
.wx-gate .wg-step{display:flex;align-items:center;gap:.8rem;background:#f5f7fa;border-radius:14px;padding:.85rem 1rem}
.wx-gate .wg-num{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#0b93f6;color:#fff;
  font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.wx-gate .wg-step-txt{font-size:.82rem;color:#2c2c2e;line-height:1.5}
.wx-gate .wg-step-txt b{color:#1d1d1f}
.wx-gate .wg-hint{margin-top:1.4rem;font-size:.7rem;color:#a1a1a6;text-align:center;line-height:1.6}
.wx-gate .wg-hint b{color:#0b93f6}
/* ═══ HEADER ═══ */
.chat-header{flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;
  padding:.85rem max(1.2rem,env(safe-area-inset-left,1.2rem)) .65rem max(1.2rem,env(safe-area-inset-right,1.2rem));
  padding-top:calc(.85rem + env(safe-area-inset-top,0px));background:var(--surface)}
.chat-h-center{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.chat-h-center .brand-mark{font-size:1.05rem;color:var(--text);font-weight:600;letter-spacing:.12em;text-indent:.12em;line-height:1.25}
.chat-h-center .brand-sub{font-size:.62rem;color:var(--text-sub);letter-spacing:.2em;text-indent:.2em;font-weight:400;
  display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;padding:.34rem 1rem;border-radius:999px;
  transition:all .25s;-webkit-tap-highlight-color:transparent;user-select:none}
.chat-h-center .brand-sub:active{transform:scale(.96)}
.chat-h-center .brand-sub .msg-dot{width:.34rem;height:.34rem;border-radius:50%;background:transparent;transition:background .3s;flex-shrink:0}
.chat-h-center .brand-sub.has-msg{color:var(--brand);background:var(--brand-light);letter-spacing:.14em;text-indent:.14em}
.chat-h-center .brand-sub.has-msg .msg-dot{background:var(--brand);animation:msgDotBreath 1.8s ease-in-out infinite}
@keyframes msgDotBreath{0%,100%{opacity:.35}50%{opacity:1}}
.chat-clear-btn{position:absolute;right:max(1.1rem,env(safe-area-inset-right,1.1rem));top:50%;transform:translateY(-50%);
  background:none;border:none;color:var(--text-dim);cursor:pointer;font-size:.68rem;padding:6px;display:flex;align-items:center;gap:4px;transition:all .2s}
.chat-clear-btn svg{width:15px;height:15px}
.chat-clear-btn:hover{color:var(--text)}
/* ═══ MEMORY CHIP ═══ */
.mem-bar{flex-shrink:0;display:flex;gap:6px;padding:.5rem .9rem;overflow-x:auto;background:var(--surface);border-bottom:1px solid var(--border);-webkit-overflow-scrolling:touch}
.mem-bar::-webkit-scrollbar{display:none}
.mem-chip{flex-shrink:0;display:flex;align-items:center;gap:4px;font-size:.66rem;font-weight:600;color:var(--text);
  background:var(--bubble-bot);border-radius:14px;padding:.3rem .7rem;white-space:nowrap;cursor:pointer;transition:all .2s;border:1px solid transparent}
.mem-chip .dot{width:5px;height:5px;border-radius:50%;background:var(--brand);flex-shrink:0}
.mem-chip.plain{background:var(--surface);border:1px solid var(--border);color:var(--text-dim)}
.mem-chip.plain .dot{background:#c7c7cc}
.mem-chip:hover{transform:translateY(-1px);border-color:var(--brand);color:var(--brand)}
/* ═══ MESSAGES ═══ */
.chat-msgs{flex:1;overflow-y:auto;padding:1rem .9rem 1rem;display:flex;flex-direction:column;gap:.7rem;-webkit-overflow-scrolling:touch}
.chat-msg{max-width:84%;padding:.62rem .85rem;font-size:.84rem;line-height:1.65;animation:msgIn .25s ease}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.chat-msg.bot{align-self:flex-start;background:var(--bubble-bot);border-radius:16px 16px 16px 4px;color:var(--text)}
.chat-msg.bot .sender{font-size:.62rem;font-weight:600;color:var(--brand);margin-bottom:.15rem;letter-spacing:.05em}
.chat-msg.user{align-self:flex-end;background:var(--brand);color:#fff;border-radius:16px 16px 4px 16px}
.chat-msg .plain{white-space:pre-wrap;word-break:break-word}
.chat-msg .msg-thumbs{display:flex;gap:.3rem;margin-top:.45rem;flex-wrap:wrap}
.chat-msg .msg-thumb{width:64px;height:64px;border-radius:10px;object-fit:cover;cursor:pointer;border:1px solid rgba(255,255,255,.25);display:block}
/* Markdown 表格（2026-08-17：佛系点菜结构化输出） */
.chat-msg .md-table-wrap{overflow-x:auto;margin:.5rem 0;-webkit-overflow-scrolling:touch}
.chat-msg .md-table{border-collapse:collapse;width:100%;min-width:280px;font-size:.74rem;line-height:1.5}
.chat-msg .md-table th{background:rgba(0,0,0,.06);font-weight:600;text-align:left;padding:.4rem .55rem;border:1px solid rgba(0,0,0,.1)}
.chat-msg .md-table td{padding:.38rem .55rem;border:1px solid rgba(0,0,0,.08)}
.chat-msg.user .md-table th{background:rgba(255,255,255,.18)}
.chat-msg.user .md-table td{border-color:rgba(255,255,255,.28)}
.chat-msg.bot .md-table th{background:#ececf0}
/* AI 回复操作条（复制/下载） */
/* 复制/下载操作：右下角 ⋮ 点点点，点击弹出菜单（对话清爽） */
.doc-actions{display:flex;align-items:center;justify-content:flex-end;margin-top:.5rem;opacity:.55;transition:opacity .2s}
/* 🔴 2026-08-19：待办确认回复结构化列表——flex 行：编号+时间胶囊+事项，文字换行自动对齐 */
.todo-list{margin:.1rem 0}
.todo-row{display:flex;align-items:flex-start;gap:.45rem;margin:.34rem 0}
.todo-num{flex-shrink:0;color:var(--text-sub);font-size:.76rem;line-height:1.9;min-width:.9rem;text-align:right}
.todo-txt{flex:1;min-width:0;line-height:1.8;word-break:break-word;font-size:.78rem}
.todo-row .todo-time-btn{flex-shrink:0;white-space:nowrap}
/* 2026-08-18：待办确认按钮（两轮确认第一轮后，气泡下方快捷确认） */
.todo-confirm-actions{display:flex;flex-direction:column;align-items:center;gap:.35rem;margin-top:.75rem}
.todo-confirm-btn{min-width:12rem;padding:.6rem 1.2rem;border-radius:999px;border:none;background:linear-gradient(135deg,#0b93f6 0%,#38b6ff 100%);color:#fff;font-size:.78rem;font-weight:500;letter-spacing:.06em;cursor:pointer;box-shadow:0 4px 12px rgba(11,147,246,.28);transition:all .2s;-webkit-tap-highlight-color:transparent}
.todo-confirm-btn:active{transform:scale(.96);filter:brightness(1.06)}
.todo-confirm-btn:disabled{opacity:.65;transform:none}
.todo-confirm-hint{font-size:.58rem;color:var(--text-dim)}
/* 🔴 2026-08-19：气泡内时间胶囊（点它改时间，不用打字） */
.todo-time-btn{display:inline-flex;align-items:center;gap:.3rem;padding:.22rem .6rem;margin:.05rem .1rem;border-radius:999px;border:1px solid rgba(11,147,246,.45);background:rgba(11,147,246,.10);color:#0b93f6;font-size:.74rem;font-weight:500;cursor:pointer;vertical-align:middle;transition:all .15s;-webkit-tap-highlight-color:transparent}
.todo-time-btn:active{transform:scale(.95);background:rgba(11,147,246,.22)}
.todo-time-btn .todo-time-edit{font-size:.6rem;color:rgba(11,147,246,.75)}
/* 时间修改面板（overlay） */
.todo-time-mask{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:9999;display:flex;align-items:flex-end;justify-content:center;animation:ttfade .18s ease}
.todo-time-sheet{background:#fff;width:100%;max-width:420px;border-radius:20px 20px 0 0;padding:1.1rem 1.2rem calc(1.1rem + env(safe-area-inset-bottom));box-shadow:0 -8px 32px rgba(0,0,0,.18);animation:ttup .22s ease}
.todo-time-title{font-size:.86rem;font-weight:600;color:#222;text-align:center;margin-bottom:.9rem}
.todo-time-row{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.8rem}
.todo-time-chip{padding:.4rem .85rem;border-radius:999px;border:1px solid #d9d9e3;background:#f7f7fa;color:#444;font-size:.76rem;cursor:pointer;transition:all .15s;-webkit-tap-highlight-color:transparent}
.todo-time-chip.on{background:#0b93f6;border-color:#0b93f6;color:#fff;font-weight:500}
.todo-time-acts{display:flex;gap:.6rem;margin-top:.4rem}
.todo-time-cancel{flex:1;padding:.7rem;border-radius:14px;border:1px solid #e2e2ea;background:#f7f7fa;color:#666;font-size:.82rem;cursor:pointer}
.todo-time-ok{flex:2;padding:.7rem;border-radius:14px;border:none;background:linear-gradient(135deg,#0b93f6,#38b6ff);color:#fff;font-size:.84rem;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgba(11,147,246,.28)}
@keyframes ttfade{from{opacity:0}to{opacity:1}}
@keyframes ttup{from{transform:translateY(24px);opacity:.6}to{transform:translateY(0);opacity:1}}
.chat-msg:hover .doc-actions{opacity:1}
.doc-actions .doc-dots{width:26px;height:26px;border-radius:9px;border:none;background:transparent;color:var(--text-dim);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0;padding:0;-webkit-tap-highlight-color:transparent}
.doc-actions .doc-dots:active{background:var(--brand);color:#fff;transform:scale(.92)}
.doc-actions .doc-dots svg{width:18px;height:18px}
.chat-msg.user .doc-actions .doc-dots{color:rgba(255,255,255,.75)}
/* ⋮ 弹出菜单：白色小卡，浮动在按钮上方 */
.doc-menu{
  position:fixed;z-index:520;min-width:140px;background:#fff;border-radius:14px;
  box-shadow:0 10px 34px rgba(0,0,0,.16),0 0 0 1px rgba(0,0,0,.04);
  padding:5px;display:none;animation:docMenuIn .16s cubic-bezier(.32,.72,.35,1);
}
@keyframes docMenuIn{from{opacity:0;transform:translateY(-100%) scale(.94)}to{opacity:1;transform:translateY(-100%) scale(1)}}
.doc-menu.show{display:block}
.doc-menu button{
  display:flex;align-items:center;gap:.55rem;width:100%;padding:.5rem .65rem;
  border:none;background:none;border-radius:9px;cursor:pointer;
  font-size:.8rem;font-weight:500;color:var(--text);text-align:left;
  transition:background .12s;-webkit-tap-highlight-color:transparent;
}
.doc-menu button:active{background:var(--brand-light)}
.doc-menu button svg{width:15px;height:15px;color:var(--text-sub);flex-shrink:0}
.doc-menu button:active svg{color:var(--brand)}
/* 记忆徽章 */
.mem-tag{display:inline-flex;align-items:center;gap:3px;font-size:.58rem;font-weight:700;color:var(--brand);background:var(--brand-light);border-radius:7px;padding:.06rem .4rem;margin-right:.3rem;vertical-align:middle}
/* 文档卡片 */
.doc-card{margin-top:.5rem;background:var(--surface);border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.doc-card .dc-head{display:flex;align-items:center;gap:.5rem;padding:.55rem .7rem;border-bottom:1px solid var(--border);background:var(--surface)}
.doc-card .dc-icon{width:26px;height:26px;border-radius:7px;background:var(--brand-light);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.doc-card .dc-icon svg{width:13px;height:13px;color:var(--brand)}
.doc-card .dc-title{font-size:.76rem;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-card .dc-doc{font-size:.58rem;color:var(--text-sub);flex-shrink:0}
.doc-card .dc-body{padding:.5rem .7rem;font-size:.73rem;color:var(--text-dim);line-height:1.6;background:var(--surface)}
.doc-card .dc-body b{color:var(--text);font-weight:600}
.doc-card .dc-body .row{display:flex;gap:.4rem;align-items:baseline}
.doc-card .dc-body .num{width:1.1em;font-weight:700;color:var(--brand);flex-shrink:0}
.doc-card .dc-foot{padding:.35rem .7rem .55rem;display:flex;gap:.4rem;flex-wrap:wrap}
.dc-btn{font-size:.66rem;font-weight:600;padding:.28rem .65rem;border-radius:15px;border:none;cursor:pointer;transition:all .2s}
.dc-btn.primary{background:var(--brand);color:#fff}
.dc-btn.primary:hover{background:#0a85e0}
.dc-btn.ghost{background:var(--bubble-bot);color:var(--text)}
.dc-btn.ghost:hover{background:#e8e8ed}
/* 提醒卡片 */
.remind-card{margin-top:.5rem;background:var(--surface);border-radius:12px;padding:.6rem .75rem;font-size:.74rem;line-height:1.6;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.remind-card .rc-time{font-weight:700;color:var(--brand);font-size:.76rem;display:flex;align-items:center;gap:4px}
.remind-card .rc-time svg{width:13px;height:13px;color:var(--brand)}
.remind-card .rc-text{color:var(--text);margin-top:.15rem}
.remind-card .rc-sub{font-size:.62rem;color:var(--text-sub);margin-top:.3rem}
/* 表格 */
.u-tbl{width:100%;font-size:.62rem;border-collapse:collapse;margin-top:.4rem;border-radius:8px;overflow:hidden}
.u-tbl td{border-bottom:1px solid rgba(0,0,0,.06);padding:.32rem .5rem;color:#3a3a3c}
.u-tbl tr:first-child td{font-weight:600;color:var(--text);background:rgba(0,0,0,.03)}
/* ═══ WELCOME EMPTY ═══ */
.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;padding:0 2rem;text-align:center;overflow-y:auto;min-height:0}
.empty-avatar{width:64px;height:64px;border-radius:20px;background:var(--brand-light);
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(11,147,246,.12)}
.empty-avatar svg{width:30px;height:30px;color:var(--brand)}
.empty-title{font-size:1rem;font-weight:600;color:var(--text);letter-spacing:.02em}
.empty-sub{font-size:.74rem;color:var(--text-dim);line-height:1.8}
.empty-examples{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center;max-width:310px}
.example-chip{font-size:.7rem;color:var(--brand);background:var(--brand-light);border-radius:16px;padding:.35rem .75rem;cursor:pointer;transition:all .2s;border:1px solid transparent}
.example-chip:hover{border-color:var(--brand);transform:translateY(-1px)}
/* ═══ INPUT BAR（对标赛美：白底细边框输入框 + 36px 浅灰圆形按钮 + 语音条40px） ═══ */
.chat-input-wrap{flex-shrink:0;display:flex;align-items:flex-end;gap:.6rem;padding:.7rem max(1rem,env(safe-area-inset-left,1rem)) calc(.7rem + env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-right,1rem));background:#fff;border-top:1px solid #f0f0f2}
.chat-voice-switch{width:36px;height:36px;border-radius:50%;background:#f2f2f7;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .2s;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.chat-voice-switch svg{width:20px;height:20px;color:#1d1d1f}
.chat-voice-switch:hover{background:#e8e8ed}
.chat-voice-switch:active{background:var(--brand);transform:scale(.9)}
.chat-voice-switch:active svg{color:#fff}
.chat-voice-switch.recording{background:var(--brand);box-shadow:0 0 0 0 rgba(11,147,246,.35);animation:holdPulse 1.2s infinite}
.chat-voice-switch.recording svg{color:#fff}
@keyframes holdPulse{0%,100%{box-shadow:0 0 0 0 rgba(11,147,246,.35)}50%{box-shadow:0 0 0 10px rgba(11,147,246,0)}}
.chat-input-wrap .input-wrap{flex:1;display:flex;align-items:center;background:#fff;border:1px solid #e5e5ea;border-radius:24px;padding:.5rem .6rem .5rem 1rem;min-height:42px;transition:border-color .2s,box-shadow .2s;position:relative}
.chat-input-wrap .input-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,147,246,.12)}
/* 自渲染 placeholder（div 绝对定位居中，浏览器原生 placeholder 无法可靠居中） */
.chat-input-wrap .input-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--text-dim);font-size:16px;white-space:nowrap;pointer-events:none;transition:opacity .15s}
.chat-input-wrap .input-ph.hide{opacity:0}
.chat-input-wrap textarea{flex:1;border:none;background:none;outline:none;font-size:16px;color:var(--text);padding:0;min-width:0;resize:none;font-family:inherit;line-height:22px;max-height:120px;height:22px;min-height:22px;overflow-y:auto;text-align:left}
.hold-talk-bar{display:none;flex:1;height:40px;border-radius:24px;background:#f2f2f7;border:none;font-size:.88rem;font-weight:500;color:#86868b;letter-spacing:.15em;text-indent:.15em;cursor:pointer;transition:all .2s;align-items:center;justify-content:center;line-height:1;padding:0 .5rem;text-align:center;box-sizing:border-box;user-select:none;-webkit-user-select:none;touch-action:none;-webkit-tap-highlight-color:transparent}
.hold-talk-bar:active{background:var(--brand);color:#fff}
.hold-talk-bar.recording{background:var(--brand);color:#fff;box-shadow:0 0 0 0 rgba(11,147,246,.35);animation:holdPulse 1.2s infinite}
.chat-send{width:36px;height:36px;border-radius:50%;background:var(--brand);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .2s;box-shadow:0 2px 8px rgba(11,147,246,.3);touch-action:manipulation}
.chat-send:hover{transform:scale(1.05);box-shadow:0 2px 12px rgba(11,147,246,.35)}
.chat-send:active{transform:scale(.88)}
.chat-send svg{width:19px;height:19px;color:#fff;fill:none}
.quick-plus{width:36px;height:36px;border-radius:50%;background:#f2f2f7;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;transition:all .2s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.quick-plus svg{width:20px;height:20px;color:#1d1d1f;fill:none}
.quick-plus:hover{background:#e8e8ed}
.quick-plus:active{transform:scale(.9)}
/* ═══ 素材附件条（方案A：微信式缩略图条，可多图横滚） ═══ */
.attach-bar{flex-shrink:0;display:flex;align-items:center;gap:.5rem;padding:.45rem .85rem 0;background:var(--surface)}
.attach-tray{flex:1;display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.3rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.attach-tray::-webkit-scrollbar{display:none}
.att-thumb-wrap{position:relative;flex-shrink:0;width:56px;height:56px;border-radius:12px;overflow:hidden;background:var(--bubble-bot);border:1px solid var(--border)}
.att-thumb-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.att-thumb-wrap .att-x{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:.58rem;line-height:16px;text-align:center;cursor:pointer;z-index:2}
.att-thumb-wrap .att-file{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#f7f7fa}
.att-thumb-wrap .att-file svg{width:18px;height:18px;color:var(--brand)}
.att-thumb-wrap .att-file .att-ext{font-size:.52rem;color:var(--text-sub);font-weight:600;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.att-thumb-wrap .att-loading{position:absolute;inset:0;background:rgba(255,255,255,.72);display:flex;align-items:center;justify-content:center;font-size:.52rem;color:var(--text-sub)}
.att-tray-add{flex-shrink:0;width:56px;height:56px;border-radius:12px;border:1.5px dashed var(--border);background:transparent;display:flex;align-items:center;justify-content:center;color:var(--text-dim);font-size:1.2rem;cursor:pointer;transition:all .2s}
.att-tray-add:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-light)}
/* ⏰ 跟进提醒站内条 */
#remindToast{position:fixed;left:50%;top:14px;transform:translateX(-50%) translateY(-80px);z-index:400;background:#fff;border:1px solid var(--border);border-left:4px solid var(--brand);border-radius:14px;padding:.7rem 1rem;font-size:.82rem;display:flex;align-items:center;gap:.6rem;box-shadow:0 8px 30px rgba(0,0,0,.14);transition:transform .3s ease;max-width:88vw}
#remindToast.show{transform:translateX(-50%) translateY(0)}
#remindToast button{background:var(--brand-light);color:var(--brand);border:none;border-radius:12px;font-size:.68rem;font-weight:600;padding:.3rem .7rem;cursor:pointer;flex-shrink:0}
/* 🔒 登录门禁：专属子域未登录 */
#loginGate{position:fixed;inset:0;z-index:500;background:var(--surface);display:flex;align-items:center;justify-content:center}
#loginGate .login-gate-card{width:min(86vw,340px);text-align:center;display:flex;flex-direction:column;align-items:center;gap:.6rem}
#loginGate .login-gate-icon{width:64px;height:64px;border-radius:50%;background:var(--brand-light);color:var(--brand);display:flex;align-items:center;justify-content:center;margin-bottom:.4rem}
#loginGate .login-gate-icon svg{width:30px;height:30px}
#loginGate .login-gate-title{font-size:1.15rem;font-weight:600;color:var(--text)}
#loginGate .login-gate-sub{font-size:.78rem;color:var(--text-sub);line-height:1.7;margin-bottom:.6rem}
#loginGate .login-btn{width:100%;padding:.85rem 0;border:none;border-radius:22px;background:var(--brand);color:#fff;font-size:.95rem;font-weight:600;cursor:pointer;box-shadow:0 6px 20px rgba(11,147,246,.3)}
/* 登录双 Tab（2026-08-20：密码 / 手机号验证码） */
.auth-tabs{display:flex;background:#f2f2f7;border-radius:12px;padding:3px;margin:.4rem 0 .9rem}
.auth-tab{flex:1;padding:.5rem 0;border:none;border-radius:10px;background:transparent;color:var(--text-sub);font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s}
.auth-tab.active{background:#fff;color:var(--brand);font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.sms-send-btn{padding:.55rem .8rem;border:none;border-radius:10px;background:var(--brand);color:#fff;font-size:.75rem;font-weight:600;cursor:pointer;white-space:nowrap;flex-shrink:0}
.sms-send-btn:disabled{background:#c7c7cc;cursor:not-allowed}
.fw-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:.15rem}
.fw-actions button{flex:none;min-width:12.5rem;padding:.82rem 0;border-radius:999px;border:none;font-size:.92rem;font-weight:500;letter-spacing:.14em;cursor:pointer;transition:all .2s}
.fw-cancel{background:#fff;border:1px solid var(--border);color:var(--text-dim)}
.fw-cancel:active{background:var(--bubble-bot)}
.fw-save{background:linear-gradient(135deg,#0b93f6 0%,#38b6ff 100%);color:#fff;box-shadow:0 6px 18px rgba(11,147,246,.32)}
.fw-save:hover{filter:brightness(1.06)}
.fw-save:active{transform:scale(.97);box-shadow:0 3px 10px rgba(11,147,246,.3)}
.fw-test-app{margin-top:.6rem;width:100%;padding:.6rem 0;border:none;border-radius:999px;background:var(--brand-light);color:var(--brand);font-size:.82rem;font-weight:600;cursor:pointer;letter-spacing:.08em;transition:all .2s}
.fw-test-app:hover{background:#dceefd}
.fw-test-app:disabled{opacity:.6}
/* ═══ 按住说话提示浮层（对标赛美：实时转写 + 上滑取消 + 松手确认发送） ═══ */
body.voice-lock{overflow:hidden}
.hold-hint{
  position:fixed;inset:0;z-index:300;
  background:rgba(29,29,31,.72);
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;
}
.hold-hint .hh-card{
  background:#fff;border-radius:24px;
  padding:28px 26px 22px;
  display:flex;flex-direction:column;align-items:center;gap:.7rem;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
  max-width:84vw;
  pointer-events:auto;
}
.hold-hint .hh-circle{
  width:70px;height:70px;border-radius:50%;
  background:var(--brand);display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(11,147,246,.35);
}
.hold-hint .hh-circle svg{width:32px;height:32px;color:#fff}
.hold-hint .hh-circle.done{background:#34c759;box-shadow:0 8px 24px rgba(52,199,89,.35)}
.hold-hint .hh-wave{display:flex;gap:3px;align-items:center;height:20px}
.hold-hint .hh-wave span{width:4px;border-radius:2px;background:var(--brand);animation:hhWave 1s ease-in-out infinite}
.hold-hint .hh-wave span:nth-child(1){height:10px}
.hold-hint .hh-wave span:nth-child(2){height:18px;animation-delay:.1s}
.hold-hint .hh-wave span:nth-child(3){height:12px;animation-delay:.2s}
.hold-hint .hh-wave span:nth-child(4){height:20px;animation-delay:.3s}
.hold-hint .hh-wave span:nth-child(5){height:14px;animation-delay:.15s}
.hold-hint .hh-wave span:nth-child(6){height:8px;animation-delay:.25s}
@keyframes hhWave{0%,100%{transform:scaleY(.7)}50%{transform:scaleY(1.2)}}
.hold-hint .hh-status{font-size:.8rem;font-weight:600;color:#1d1d1f}
.hold-hint .hh-live-tag{
  margin-top:.9rem;display:flex;align-items:center;gap:.35rem;
  font-size:.68rem;color:#86868b;letter-spacing:.15em;
}
.hold-hint .hh-live-tag .pulse-dot{
  width:6px;height:6px;border-radius:50%;background:#4ade80;
  animation:pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
.hold-hint .hh-live{
  margin-top:.5rem;max-width:82vw;font-size:1.02rem;color:#1d1d1f;
  text-align:center;line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
  opacity:.95;min-height:1.55em;
  animation:liveIn .25s ease;
}
@keyframes liveIn{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.hold-hint .hh-live.has-text{font-weight:500;opacity:1}
/* 松手后原地变「确认发送」态 */
.hold-hint.confirm .hh-wave{display:none}
.hold-hint.confirm .hh-live-tag{display:none}
.hold-hint.confirm .hh-status{color:#34c759}
.hold-hint.confirm .hh-live{max-height:150px;overflow-y:auto;padding:8px 10px;background:#f8f8fa;border-radius:10px;min-width:200px;text-align:left;font-size:.92rem;outline:none;border:1px solid transparent;color:#1d1d1f}
.hold-hint.confirm .hh-live:focus{border-color:var(--brand);background:#fff}
.hold-hint .hh-confirm-actions{display:none;justify-content:center;gap:10px;margin-top:12px}
.hold-hint.confirm .hh-confirm-actions{display:flex}
.hh-confirm-actions button{flex:none;min-width:104px;padding:9px 24px;border:none;border-radius:18px;font-size:.82rem;font-weight:600;cursor:pointer;white-space:nowrap;line-height:1.2}
.hh-cancel{background:#f2f2f7;color:#8e8e93}
.hh-send{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(11,147,246,.25)}
/* 上滑取消状态（微信逻辑） */
.hold-hint.cancel .hh-circle{background:#8a8a8e;box-shadow:0 8px 24px rgba(138,138,142,.3)}
.hold-hint.cancel .hh-status{color:#ff6b6b}
.hold-hint.cancel .hh-wave span{background:#ff6b6b}
.hold-hint.cancel .hh-live-tag .pulse-dot{background:#ff6b6b}
.hold-hint.cancel .hh-live{opacity:.5}
/* 语音转写结果卡片（降级路径：浮层不在时显示文案+发送按钮） */
.voice-result-card{
  position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  width:min(88vw,420px);background:#fff;border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,.14);
  padding:1rem 1rem .9rem;z-index:350;
  display:flex;flex-direction:column;gap:.7rem;
  animation:popIn .22s cubic-bezier(.32,.72,.35,1);
}
@keyframes popIn{from{opacity:0;transform:translateX(-50%) scale(.96)}to{opacity:1;transform:translateX(-50%) scale(1)}}
.voice-result-card .vr-text{
  font-size:.95rem;color:#1d1d1f;line-height:1.6;
  min-height:1.6em;max-height:7.2em;overflow-y:auto;
  word-break:break-word;padding:.15rem .2rem;
  border:none;outline:none;resize:none;background:transparent;
  width:100%;font-family:inherit;-webkit-appearance:none;
  border-radius:8px;transition:background .15s;
}
.voice-result-card .vr-text:focus{background:#f5f5f7}
.voice-result-card .vr-actions{display:flex;align-items:center;justify-content:flex-end;gap:.8rem}
.voice-result-card .vr-close{
  width:38px;height:38px;border-radius:50%;border:none;
  background:#f2f2f7;color:#86868b;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:all .15s;
  -webkit-tap-highlight-color:transparent;
}
.voice-result-card .vr-close:active{background:#e8e8ed}
.voice-result-card .vr-close svg{width:18px;height:18px}
.voice-result-card .vr-send{
  width:44px;height:44px;border-radius:50%;border:none;
  background:var(--brand);color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(11,147,246,.35);transition:all .15s;
  -webkit-tap-highlight-color:transparent;
}
.voice-result-card .vr-send:active{background:#0a84e0;transform:scale(.94)}
.voice-result-card .vr-send svg{width:20px;height:20px}
/* 语音轻提示 */
.voice-toast{
  position:fixed;left:50%;bottom:5.5rem;transform:translateX(-50%);
  background:rgba(29,29,31,.9);color:#fff;border-radius:20px;
  padding:.45rem 1.1rem;font-size:.75rem;z-index:310;
  animation:toastIn .25s ease;white-space:nowrap;
}
@keyframes toastIn{from{opacity:0;transform:translateX(-50%) translateY(8px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}

/* ═══ 拍照识别功能选择（方案B：全屏大卡片，2026-08-17） ═══ */
.photo-picker-overlay{position:fixed;inset:0;z-index:300;background:var(--bg,#f4f4f6);display:flex;flex-direction:column;animation:ppFade .2s ease}
@keyframes ppFade{from{opacity:0}to{opacity:1}}
.photo-picker{display:flex;flex-direction:column;height:100%;max-width:560px;margin:0 auto;width:100%}
.pp-head{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1.2rem;background:#fff;border-bottom:1px solid var(--border)}
.pp-title{font-size:1.05rem;font-weight:700;letter-spacing:1px}
.pp-close{width:30px;height:30px;border-radius:50%;background:var(--bg,#f2f2f7);border:none;font-size:.8rem;color:var(--text-sub);cursor:pointer}
.pp-sub{padding:1rem 1.2rem .6rem;font-size:.85rem;color:var(--text-sub)}
.pp-cards{flex:1;padding:.4rem 1.2rem;display:flex;flex-direction:column;gap:.7rem;overflow-y:auto}
.pp-card{display:flex;align-items:center;gap:.85rem;background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:18px;padding:.95rem 1rem;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.05);transition:all .15s;text-align:left;font-family:inherit}
.pp-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.09)}
.pp-card:active{transform:scale(.985)}
.pp-ico{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex-shrink:0}
.pp-main{flex:1;min-width:0}
.pp-name{font-size:.92rem;font-weight:700;letter-spacing:.5px}
.pp-desc{font-size:.7rem;color:var(--text-sub);margin-top:.2rem;line-height:1.5}
.pp-arrow{color:var(--text-dim);font-size:1.2rem;flex-shrink:0}
.pp-foot{padding:1rem 1.2rem calc(1rem + env(safe-area-inset-bottom,0px));text-align:center;font-size:.72rem;color:var(--text-dim)}
/* 选中后拍照提示（全屏页收起，输入框上方显示当前功能 chip） */
.photo-func-chip{display:inline-flex;align-items:center;gap:.35rem;background:var(--brand-light);border:1px solid var(--brand);color:var(--brand);border-radius:16px;padding:.2rem .7rem;font-size:.68rem;font-weight:600;margin-right:.4rem;cursor:pointer;flex-shrink:0}
.photo-func-chip .x{font-size:.6rem;opacity:.7}
/* ═══ 功能专属页（方案4：说明+示例+拍照/相册）2026-08-17 ═══ */
.photo-func-page{position:fixed;inset:0;z-index:301;background:var(--bg,#f4f4f6);display:flex;flex-direction:column;animation:ppFade .2s ease}
.fp-head{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1.2rem;background:#fff;border-bottom:1px solid var(--border)}
.fp-title{font-size:1.05rem;font-weight:700;letter-spacing:1px}
.fp-close{width:30px;height:30px;border-radius:50%;background:var(--bg,#f2f2f7);border:none;font-size:.8rem;color:var(--text-sub);cursor:pointer}
.fp-hero{background:#fff;margin:.9rem .9rem 0;border-radius:18px;padding:1.4rem 1rem;text-align:center;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.fp-ico{width:56px;height:56px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:1.7rem;margin:0 auto .6rem}
.fp-name{font-size:1rem;font-weight:700;letter-spacing:1px}
.fp-desc{font-size:.72rem;color:var(--text-sub);margin-top:.3rem;line-height:1.6}
.fp-example{margin:.6rem .9rem 0;background:#fff;border-radius:14px;padding:.8rem .95rem;font-size:.68rem;color:var(--text-sub);line-height:1.7;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.fp-example b{color:var(--text)}
.fp-hint{text-align:center;font-size:.68rem;color:var(--brand);font-weight:600;margin:.9rem 0 .2rem}
.fp-btns{display:flex;gap:.7rem;margin:.5rem .9rem calc(1rem + env(safe-area-inset-bottom,0px))}
.fp-btn{flex:1;padding:.85rem;border:none;border-radius:20px;font-size:.78rem;font-weight:600;cursor:pointer}
.fp-btn.cam{background:var(--brand);color:#fff}
.fp-btn.cam:active{background:var(--brand-dark)}
.fp-btn.album{background:#fff;color:var(--brand);border:1px solid var(--brand)}
.fp-btn.album:active{background:var(--brand-light)}
/* ═══ SHEET ═══ */
/* ═══ 消息中心（2026-08-22：副标题入口 → 提醒/跟进 → 完成即消失） ═══ */
.msg-overlay{position:fixed;inset:0;background:rgba(20,24,30,.42);z-index:330;opacity:0;pointer-events:none;transition:opacity .3s}
.msg-overlay.open{opacity:1;pointer-events:auto}
.msg-sheet{position:fixed;left:0;right:0;bottom:0;z-index:340;max-width:560px;margin:0 auto;
  background:#f5f6f8;border-radius:22px 22px 0 0;box-shadow:0 -8px 40px rgba(0,0,0,.14);
  display:flex;flex-direction:column;height:min(68dvh,640px);
  transform:translateY(105%);transition:transform .32s cubic-bezier(.32,.72,.28,1)}
.msg-sheet.open{transform:translateY(0)}
.msg-sheet .msg-grab{width:36px;height:4px;border-radius:4px;background:#d6dbe2;margin:.55rem auto .35rem;flex-shrink:0}
.msg-sheet .msg-head{display:flex;align-items:center;justify-content:space-between;padding:.2rem 1.1rem .55rem;flex-shrink:0}
.msg-sheet .msg-head .msg-title{font-size:1rem;font-weight:700}
.msg-sheet .msg-head .msg-readall{font-size:.68rem;color:var(--brand);font-weight:600;background:none;border:none;cursor:pointer;padding:.3rem .5rem;border-radius:12px}
.msg-sheet .msg-head .msg-readall:active{background:var(--brand-light)}
.msg-tabs{display:flex;gap:.4rem;overflow-x:auto;padding:0 1.1rem .55rem;flex-shrink:0;scrollbar-width:none}
.msg-tabs::-webkit-scrollbar{display:none}
.msg-tab{font-family:inherit;font-size:.7rem;font-weight:500;color:var(--text-sub);
  padding:.32rem .8rem;border-radius:999px;background:#fff;border:1px solid var(--border);cursor:pointer;white-space:nowrap;flex-shrink:0}
.msg-tab.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.msg-tab .cnt{opacity:.65;margin-left:.15rem;font-size:.62rem}
.msg-list{flex:1;overflow-y:auto;padding:0 1.1rem .7rem;display:flex;flex-direction:column;gap:.55rem;-webkit-overflow-scrolling:touch}
.msg-item{display:flex;align-items:center;gap:.65rem;background:#fff;border-radius:14px;padding:.72rem .8rem;
  border:1px solid rgba(0,0,0,.04);cursor:pointer;position:relative;transition:transform .1s,opacity .3s;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.msg-item:active{transform:scale(.985)}
.msg-item .msg-lv{width:3.5px;align-self:stretch;border-radius:4px;flex-shrink:0}
.msg-item .msg-lv.p0{background:#e5484d} .msg-item .msg-lv.p1{background:#d9822b} .msg-item .msg-lv.p2{background:#c9cdd4}
.msg-item .msg-ic{width:36px;height:36px;border-radius:11px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:1rem}
.msg-item .msg-ic.rm{background:#fdecec} .msg-item .msg-ic.fl{background:#fdf3e7}
.msg-item .msg-body{flex:1;min-width:0}
.msg-item .msg-title2{font-size:.8rem;font-weight:600;color:var(--text);display:flex;align-items:center;gap:.35rem;line-height:1.35}
.msg-item .msg-title2 .msg-pill{font-size:.55rem;font-weight:700;padding:.05rem .38rem;border-radius:999px;letter-spacing:.04em;flex-shrink:0}
.msg-item .msg-title2 .msg-pill.p0{background:#fdecec;color:#e5484d}
.msg-item .msg-title2 .msg-pill.p1{background:#fdf3e7;color:#d9822b}
.msg-item .msg-title2 .msg-pill.p2{background:#f2f4f7;color:#8a919b}
.msg-item .msg-desc{font-size:.66rem;color:var(--text-sub);margin-top:.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-item .msg-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;flex-shrink:0}
.msg-item .msg-time{font-size:.6rem;color:var(--text-dim);white-space:nowrap}
.msg-item .msg-done{flex-shrink:0;font-family:inherit;font-size:.66rem;font-weight:600;color:var(--brand);
  background:var(--brand-light);border:none;border-radius:999px;padding:.34rem .7rem;cursor:pointer;transition:transform .1s}
.msg-item .msg-done:active{transform:scale(.93)}
/* 2026-08-22：卡片底部按钮行（稍后提醒 + 完成） */
.msg-item .msg-acts{display:flex;gap:.45rem;margin-top:.55rem;flex-shrink:0}
.msg-item .msg-acts button{flex:1;font-family:inherit;font-size:.68rem;font-weight:600;border:none;border-radius:999px;
  padding:.42rem 0;cursor:pointer;transition:transform .1s}
.msg-item .msg-acts button:active{transform:scale(.96)}
.msg-item .msg-acts .act-snooze{background:var(--gray);color:var(--text-sub)}
.msg-item .msg-acts .act-done{background:var(--brand-light);color:var(--brand)}
.msg-item.removing{opacity:0;transform:scale(.97)}
/* 🔴 2026-08-22：确认弹窗必须在消息中心 sheet(340) 之上——复用 .fav-confirm-mask(330) 会被盖住 */
#msgConfirmMask{z-index:360}
.msg-empty{text-align:center;color:var(--text-sub);font-size:.74rem;padding:2.8rem 0;line-height:2}
.msg-empty .me-big{font-size:2rem;display:block;margin-bottom:.3rem}
.msg-foot{padding:.4rem 1.2rem .8rem;font-size:.6rem;color:var(--text-sub);text-align:center;flex-shrink:0}
/* ═══ 收藏夹（2026-08-20：header 左 ★ → 收藏列表 → 详情 → AI 二创 C4 模板风格） ═══ */
.fav-btn{position:absolute;left:max(.9rem,env(safe-area-inset-left,.9rem));top:50%;transform:translateY(-50%);
  background:none;border:none;color:var(--text-dim);cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center;transition:all .2s;-webkit-tap-highlight-color:transparent}
.fav-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fav-btn:hover{color:var(--brand)}
.fav-btn:active{transform:translateY(-50%) scale(.9)}
.fav-overlay{position:fixed;inset:0;z-index:320;background:var(--bg,#f4f4f6);display:flex;flex-direction:column;animation:ppFade .2s ease}
.fav-main{display:flex;flex-direction:column;height:100%;max-width:560px;margin:0 auto;width:100%}
.fav-head{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.2rem;background:#fff;border-bottom:1px solid var(--border);flex-shrink:0}
.fav-head .fav-title{font-size:1.02rem;font-weight:700;letter-spacing:1px}
.fav-head .fav-close{width:30px;height:30px;border-radius:50%;background:var(--bg,#f2f2f7);border:none;font-size:.8rem;color:var(--text-sub);cursor:pointer}
.fav-head .fav-add{display:inline-flex;align-items:center;gap:.25rem;background:var(--brand);color:#fff;border:none;border-radius:16px;padding:.32rem .8rem;font-size:.72rem;font-weight:600;cursor:pointer}
.fav-head .fav-add:active{background:var(--brand-dark)}
.fav-head .fav-add svg{width:12px;height:12px}
.fav-list{flex:1;overflow-y:auto;padding:.8rem 1.2rem;display:flex;flex-direction:column;gap:.6rem;-webkit-overflow-scrolling:touch}
.fav-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--text-sub);font-size:.8rem;padding:2rem 1.5rem;text-align:center}
.fav-empty .fe-ico{font-size:2.2rem}
.fav-empty .fe-tip{font-size:.68rem;line-height:1.7;opacity:.8}
.fav-empty-add{margin-top:.9rem;display:inline-flex;align-items:center;gap:.3rem;background:var(--brand);color:#fff;border:none;border-radius:18px;padding:.5rem 1.2rem;font-size:.74rem;font-weight:600;cursor:pointer;font-family:inherit}
.fav-empty-add:active{background:var(--brand-dark)}
.fav-card{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:16px;padding:.8rem .95rem;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.05);transition:all .15s;text-align:left;font-family:inherit}
.fav-card:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
.fav-card:active{transform:scale(.985)}
.fav-card .fc-title{font-size:.86rem;font-weight:700;color:var(--text);letter-spacing:.3px;margin-bottom:.25rem;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.fav-card .fc-sum{font-size:.72rem;color:var(--text-sub);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.fav-card .fc-meta{display:flex;align-items:center;gap:.4rem;margin-top:.45rem;font-size:.62rem;color:var(--text-dim)}
.fav-card .fc-meta .fc-type{background:var(--brand-light);color:var(--brand);border-radius:8px;padding:.06rem .4rem;font-weight:600}
.fav-card .fc-meta .fc-time{flex:1}
/* 收藏详情页 */
.fav-detail{display:flex;flex-direction:column;height:100%;max-width:560px;margin:0 auto;width:100%}
.fd-body{flex:1;overflow-y:auto;padding:.9rem 1.2rem calc(1rem + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
/* 预览视图（2026-08-22：阅读排版，干净不表单化） */
.fd-pv-title{font-size:1.12rem;font-weight:700;color:var(--text);line-height:1.5;letter-spacing:.3px;padding:.2rem .2rem .6rem;word-break:break-word}
.fd-pv-content{background:#fff;border-radius:14px;padding:.9rem 1rem;font-size:.82rem;line-height:1.9;color:var(--text);box-shadow:0 1px 6px rgba(0,0,0,.04);white-space:pre-wrap;word-break:break-word}
.fd-pv-content:empty{display:none}
.fd-title-edit{width:100%;border:none;background:#fff;border-radius:12px;padding:.75rem .9rem;font-size:.95rem;font-weight:700;color:var(--text);font-family:inherit;box-shadow:0 1px 6px rgba(0,0,0,.04);margin-bottom:.6rem}
.fd-title-edit:focus{outline:2px solid var(--brand);outline-offset:-1px}
.fd-content-edit{width:100%;border:none;background:#fff;border-radius:12px;padding:.8rem .9rem;font-size:.8rem;line-height:1.75;color:var(--text);font-family:inherit;box-shadow:0 1px 6px rgba(0,0,0,.04);resize:none;min-height:180px}
.fd-content-edit:focus{outline:2px solid var(--brand);outline-offset:-1px}
.fd-actions{display:flex;gap:.5rem;margin-top:.8rem}
.fd-btn{flex:1;padding:.72rem;border:none;border-radius:16px;font-size:.76rem;font-weight:600;cursor:pointer;font-family:inherit}
.fd-btn.ai{background:linear-gradient(135deg,#0b93f6,#5b7cfa);color:#fff;box-shadow:0 4px 14px rgba(11,147,246,.25)}
.fd-btn.ai:active{filter:brightness(.92);transform:scale(.985)}
.fd-btn.save{background:var(--brand-light);color:var(--brand);flex:0 0 auto;padding:.72rem 1.1rem}
.fd-btn.save:active{background:#d8ecfd}
.fd-btn.del{background:#fff;color:#ff3b30;border:1px solid #ffd1cf;flex:0 0 auto;width:2.6rem;font-size:.8rem;border-radius:14px}
.fd-btn.del:active{background:#fff0ef}
/* 二创面板（C4：先选平台 → 再选风格模板 → 生成 → 精修 → 复制） */
.fav-create{display:flex;flex-direction:column;height:100%;max-width:560px;margin:0 auto;width:100%}
.fc-body{flex:1;overflow-y:auto;padding:.9rem 1.2rem calc(1rem + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
.fc-sec-label{font-size:.7rem;font-weight:700;color:var(--text-sub);letter-spacing:1px;margin:.7rem .2rem .45rem}
.fc-plat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.fc-plat{display:flex;flex-direction:column;align-items:center;gap:.3rem;background:#fff;border:1.5px solid var(--border);border-radius:14px;padding:.7rem .3rem;cursor:pointer;transition:all .15s;font-family:inherit}
.fc-plat.on{border-color:var(--brand);background:#f0f6ff;box-shadow:0 2px 8px rgba(11,147,246,.12)}
.fc-plat .fp-ico{font-size:1.3rem}
.fc-plat .fp-nm{font-size:.72rem;font-weight:600;color:var(--text)}
.fc-plat.on .fp-nm{color:var(--brand)}
.fc-plat .fp-ds{font-size:.58rem;color:var(--text-sub)}
.fc-tpl-row{display:flex;gap:.45rem;overflow-x:auto;padding:.1rem .1rem .4rem;-webkit-overflow-scrolling:touch}
.fc-tpl-row::-webkit-scrollbar{display:none}
.fc-tpl{flex-shrink:0;display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;padding:.45rem .8rem;border-radius:16px;background:#fff;border:1px solid var(--border);color:var(--text-sub);cursor:pointer;transition:all .15s;font-family:inherit;white-space:nowrap}
.fc-tpl.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.fc-tpl .e{font-size:.85rem}
.fc-gen-btn{width:100%;margin-top:.9rem;padding:.85rem;border:none;border-radius:20px;background:var(--brand);color:#fff;font-size:.8rem;font-weight:700;cursor:pointer;font-family:inherit;box-shadow:0 4px 14px rgba(11,147,246,.25);transition:all .2s}
.fc-gen-btn:active{background:var(--brand-dark);transform:scale(.985)}
.fc-gen-btn:disabled{background:#b9d9f5;box-shadow:none;cursor:not-allowed}
.fc-loading{text-align:center;padding:1.4rem .5rem;color:var(--text-sub);font-size:.74rem}
.fc-loading .sp{display:inline-block;width:16px;height:16px;border:2px solid var(--brand-light);border-top-color:var(--brand);border-radius:50%;animation:fcSpin .8s linear infinite;vertical-align:-3px;margin-right:.4rem}
@keyframes fcSpin{to{transform:rotate(360deg)}}
.fc-result{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.05);margin-top:.7rem;overflow:hidden}
.fc-result .fr-head{display:flex;align-items:center;justify-content:space-between;padding:.6rem .9rem;border-bottom:1px solid var(--border)}
.fc-result .fr-tag{font-size:.66rem;font-weight:700;color:var(--pink,#ff2e63);background:#fff0f3;border-radius:8px;padding:.12rem .5rem}
.fc-result .fr-acts{display:flex;gap:.4rem}
.fc-result .fr-save{display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;color:#fff;background:var(--brand);border:none;border-radius:10px;padding:.3rem .7rem;cursor:pointer;font-family:inherit}
.fc-result .fr-save:active{background:var(--brand-dark)}
.fc-result .fr-save svg{width:12px;height:12px}
.fc-result .fr-copy{display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;color:var(--brand);background:#eef4ff;border:none;border-radius:10px;padding:.3rem .7rem;cursor:pointer;font-family:inherit}
.fc-result .fr-copy:active{background:#dcebfd}
.fc-result .fr-copy svg{width:12px;height:12px}
.fc-result .fr-body{padding:.8rem .9rem;font-size:.78rem;line-height:1.8;color:var(--text);white-space:pre-wrap;word-break:break-word;max-height:50vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
/* 精修输入条（固定底部） */
.fc-polish-bar{display:flex;align-items:center;gap:.5rem;padding:.6rem .9rem calc(.6rem + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--border);flex-shrink:0}
.fc-polish-bar input{flex:1;border:1px solid var(--border);border-radius:18px;padding:.6rem .95rem;font-size:.78rem;background:var(--bg,#f4f4f6);outline:none;font-family:inherit}
.fc-polish-bar input:focus{border-color:var(--brand);background:#fff}
.fc-polish-bar .fc-send{width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;font-size:.95rem}
.fc-polish-bar .fc-send:active{background:var(--brand-dark);transform:scale(.92)}
.fc-polish-bar .fc-send:disabled{background:#b9d9f5}
.fc-polish-note{font-size:.62rem;color:var(--text-dim);text-align:center;padding:.35rem .9rem 0;background:#fff}
/* 二创结果保存提示条 */
.fc-save-tip{display:flex;align-items:center;gap:.5rem;background:var(--brand-light);border-radius:12px;padding:.55rem .8rem;margin-top:.6rem;font-size:.7rem;color:var(--brand)}
.fc-save-tip button{background:var(--brand);color:#fff;border:none;border-radius:12px;padding:.3rem .7rem;font-size:.66rem;font-weight:600;cursor:pointer;margin-left:auto;font-family:inherit}
/* 全屏新建页（2026-08-22：替代原生 prompt，输入空间最大） */
.fav-new{display:flex;flex-direction:column;height:100%;max-width:560px;margin:0 auto;width:100%}
.fav-new .fn-hd{display:flex;align-items:center;gap:.6rem;padding:.85rem 1.2rem;background:#fff;border-bottom:1px solid var(--border);flex-shrink:0}
.fav-new .fn-hd .fn-back{width:30px;height:30px;border-radius:50%;background:var(--bg,#f2f2f7);border:none;font-size:.9rem;color:var(--text);cursor:pointer;flex-shrink:0}
.fav-new .fn-hd .fn-back:active{background:#e5e6ea}
.fav-new .fn-hd .fn-title{font-size:1.02rem;font-weight:700;letter-spacing:1px;flex:1;text-align:center}
.fav-new .fn-hd .fn-save{background:var(--brand);color:#fff;border:none;border-radius:16px;padding:.34rem .95rem;font-size:.74rem;font-weight:600;cursor:pointer;font-family:inherit;flex-shrink:0}
.fav-new .fn-hd .fn-save:active{background:var(--brand-dark)}
.fav-new .fn-hd .fn-save:disabled{background:#b9d9f5}
.fav-new .fn-body{flex:1;overflow-y:auto;padding:.9rem 1.2rem calc(1rem + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:.6rem;-webkit-overflow-scrolling:touch}
.fav-new .fn-body textarea{flex:2;width:100%;border:none;background:#fff;border-radius:14px;padding:.9rem 1rem;font-size:.82rem;line-height:1.85;color:var(--text);font-family:inherit;box-shadow:0 1px 6px rgba(0,0,0,.04);resize:none;min-height:220px}
.fav-new .fn-body textarea:focus{outline:2px solid var(--brand);outline-offset:-1px}
.fav-new .fn-body input{width:100%;border:1px solid var(--border);background:#fff;border-radius:14px;padding:.75rem 1rem;font-size:.8rem;font-weight:600;color:var(--text);font-family:inherit;box-shadow:0 1px 6px rgba(0,0,0,.04)}
.fav-new .fn-body input:focus{border-color:var(--brand);outline:2px solid var(--brand);outline-offset:-1px}
.fav-new .fn-hint{font-size:.62rem;color:var(--text-dim);text-align:center;padding:.2rem 0 .3rem}
.fav-new .fn-hint b{color:var(--brand);font-weight:600}
/* 收藏删除确认弹窗（2026-08-22：替代原生 confirm） */
.fav-confirm-mask{position:fixed;inset:0;background:rgba(15,20,30,.45);z-index:330;display:flex;align-items:center;justify-content:center;animation:ppFade .2s ease}
.fav-confirm{width:calc(100% - 3rem);max-width:300px;background:#fff;border-radius:20px;padding:1.4rem 1.2rem 1.1rem;text-align:center;animation:ppPop .22s ease;box-shadow:0 10px 40px rgba(0,0,0,.18)}
@keyframes ppPop{from{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}
.fav-confirm .fc-ico{font-size:1.9rem;margin-bottom:.5rem}
.fav-confirm .fc-t{font-size:.92rem;font-weight:700;color:var(--text)}
.fav-confirm .fc-d{font-size:.72rem;color:var(--text-sub);line-height:1.7;margin-top:.35rem}
.fav-confirm .fc-btns{display:flex;gap:.6rem;margin-top:1.1rem}
.fav-confirm .fc-btn{flex:1;padding:.7rem;border:none;border-radius:14px;font-size:.76rem;font-weight:600;cursor:pointer;font-family:inherit}
.fav-confirm .fc-btn.cancel{background:#f2f3f5;color:var(--text-sub)}
.fav-confirm .fc-btn.cancel:active{background:#e8eaed}
.fav-confirm .fc-btn.danger{background:#ff3b30;color:#fff}
.fav-confirm .fc-btn.danger:active{background:#e0352b}
.sheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200;opacity:0;visibility:hidden;transition:all .25s}
.sheet-overlay.open{opacity:1;visibility:visible}
.wxqr-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.92);z-index:100001;background:var(--surface,#fff);border-radius:18px;padding:1.2rem 1.4rem;width:min(320px,86vw);opacity:0;visibility:hidden;transition:all .25s;box-shadow:0 12px 40px rgba(0,0,0,.25);border:1px solid var(--border)}
.wxqr-modal.open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.wxqr-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem}
.wxqr-title{font-weight:600;font-size:.95rem}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:201;background:var(--surface);border-radius:22px 22px 0 0;
  border-top:1px solid var(--border);transform:translateY(105%);transition:transform .3s cubic-bezier(.32,.72,.35,1);padding-bottom:env(safe-area-inset-bottom,0);box-shadow:0 -8px 30px rgba(0,0,0,.06);max-height:75vh;display:flex;flex-direction:column}
.sheet.open{transform:translateY(0)}
.sheet-grab{width:36px;height:4px;border-radius:2px;background:#e8e8ed;margin:.55rem auto .2rem}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:.2rem 1.1rem .6rem}
.sheet-title{font-size:1rem;font-weight:600}
.sheet-close{background:none;border:none;font-size:1.2rem;color:var(--text-dim);cursor:pointer;padding:4px}
.sheet-body{padding:0 1.1rem 1.2rem;overflow-y:auto;max-height:calc(75vh - 90px)}
.func-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.func-item{display:flex;flex-direction:column;align-items:center;gap:.35rem;background:none;border:none;cursor:pointer;padding:.35rem 0;border-radius:12px;transition:all .2s}
.func-item:hover{background:var(--bg)}
.func-item .f-icon{width:44px;height:44px;border-radius:14px;background:var(--bubble-bot);display:flex;align-items:center;justify-content:center}
.func-item .f-icon svg{width:21px;height:21px;color:#3a3a3c;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.func-item .f-text{font-size:.62rem;color:#3a3a3c;font-weight:500}
.func-item .f-text .f-tag{display:inline-block;font-style:normal;font-size:.5rem;color:#0b93f6;background:var(--brand-light);border-radius:5px;padding:.08rem .28rem;margin-left:.18rem;vertical-align:1px;font-weight:600}
.func-item.acc .f-icon{background:var(--brand-light)}
.func-item.acc .f-icon svg{color:var(--brand)}
/* 素材上传区（+ 面板底部） */
.attach-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--border)}
.attach-item-btn{display:flex;flex-direction:column;align-items:center;gap:.3rem;background:none;border:none;cursor:pointer;padding:.35rem 0;border-radius:12px;transition:all .2s}
.attach-item-btn:hover{background:var(--bg)}
.attach-item-btn .f-icon{width:42px;height:42px;border-radius:14px;background:var(--bubble-bot);display:flex;align-items:center;justify-content:center}
.attach-item-btn .f-icon svg{width:19px;height:19px;color:#3a3a3c;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.attach-item-btn .f-text{font-size:.66rem;color:#3a3a3c;font-weight:600}
.attach-item-btn .f-sub{font-size:.56rem;color:var(--text-sub)}
/* 功能引导表单（点 + 功能后弹出，用户填真实内容） */
.func-form{display:flex;flex-direction:column;gap:.65rem;min-height:calc(75vh - 150px);background:#f6f6f8;margin:0 -1.1rem -1.2rem;padding:.15rem 1.1rem calc(1.6rem + env(safe-area-inset-bottom,0px))}
.func-form .ff-head{display:flex;align-items:center;justify-content:space-between;padding:.5rem .15rem .05rem}
.func-form .ff-title{font-size:.98rem;font-weight:500;color:var(--text);letter-spacing:.04em}
.func-form .ff-close{width:28px;height:28px;border-radius:50%;background:transparent;color:var(--text-sub);display:flex;align-items:center;justify-content:center;font-size:.8rem;border:none;cursor:pointer;transition:all .2s}
.func-form .ff-close:active{background:var(--bubble-bot);color:var(--text)}
.func-form .ff-intro{font-size:.72rem;color:#fff;line-height:1.7;background:linear-gradient(135deg,#0b93f6 0%,#38b6ff 100%);border-radius:14px;padding:.85rem 1rem;box-shadow:0 4px 14px rgba(11,147,246,.22)}
.func-form .ff-card{background:#fff;border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.05);padding:.85rem .95rem .95rem}
.func-form .ff-field{margin-bottom:14px}
.func-form .ff-field:last-child{margin-bottom:0}
.func-form label{font-size:.6rem;font-weight:500;color:var(--text-sub);letter-spacing:.08em;margin-bottom:6px;display:block}
.func-form input,.func-form textarea{width:100%;padding:.7rem .85rem;border:none;border-radius:12px;font-size:16px;background:#f6f6f8;outline:none;transition:all .2s;font-family:inherit;line-height:1.5;color:var(--text)}
.func-form input::placeholder,.func-form textarea::placeholder{color:#c0c0c6;font-weight:300}
.func-form input:focus,.func-form textarea:focus{background:var(--brand-light)}
.func-form textarea{min-height:120px;resize:vertical}
.func-form .ff-row{display:flex;gap:.6rem}
.func-form .ff-row > div{flex:1}
.func-form .ff-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:.15rem}
.func-form .ff-actions button{flex:none;min-width:12.5rem;padding:.82rem 0;border-radius:999px;border:none;font-size:.92rem;font-weight:500;letter-spacing:.14em;cursor:pointer;transition:all .2s}
.func-form .ff-cancel{background:#fff;border:1px solid var(--border);color:var(--text-dim)}
.func-form .ff-cancel:active{background:var(--bubble-bot)}
.func-form .ff-go{background:linear-gradient(135deg,#0b93f6 0%,#38b6ff 100%);color:#fff;box-shadow:0 6px 18px rgba(11,147,246,.32)}
.func-form .ff-go:hover{filter:brightness(1.06)}
.func-form .ff-go:active{transform:scale(.97);box-shadow:0 3px 10px rgba(11,147,246,.3)}
/* 我的待办 → iPhone 提醒：两个层级（默认提醒 + 配置提醒）（2026-08-18） */
.func-form .ff-caldav-block{margin-top:.3rem;padding:.55rem .7rem;border-radius:12px;background:#fafbfc;border:1px dashed var(--border);font-size:.66rem;color:var(--text-sub);line-height:1.6}
.func-form .ff-caldav-h{font-weight:600;color:var(--text-dim);letter-spacing:.05em;margin-bottom:.15rem}
.func-form .ff-caldav-default{color:var(--text-sub)}
.func-form .ff-caldav-row{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:.4rem;padding:.5rem .6rem;border-radius:10px;background:#fff;border:1px dashed var(--border);cursor:pointer;font-size:.68rem;color:var(--text-sub);transition:all .2s}
.func-form .ff-caldav-row:active{background:var(--bubble-bot)}
.func-form .ff-caldav-row .ff-caldav-go{color:var(--brand);font-weight:600;letter-spacing:.04em}
.func-form .ff-caldav-bound{display:flex;align-items:center;justify-content:center;gap:.35rem;margin-top:.4rem;padding:.3rem .4rem;border-radius:10px;cursor:pointer;font-size:.64rem;color:var(--text-dim);transition:all .2s}
.func-form .ff-caldav-bound:active{background:var(--bubble-bot)}
.func-form .ff-caldav-bound .ff-caldav-ok{color:#34c759;font-weight:600}
/* 表单内素材上传 */
.ff-attach{border-top:1px dashed var(--border);padding-top:.8rem;margin-top:.2rem}
.ff-attach-label{font-size:.6rem;font-weight:500;color:var(--text-sub);letter-spacing:.08em;margin-bottom:.6rem}
.ff-attach-btns{display:flex;gap:.5rem}
.ff-attach-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:.55rem;border-radius:12px;border:1px solid var(--border);background:#fff;font-size:.68rem;font-weight:500;color:var(--text-dim);cursor:pointer;transition:all .2s}
.ff-attach-btn svg{width:13px;height:13px;stroke:var(--text-dim);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ff-attach-btn:hover{border-color:var(--brand);background:var(--brand-light);color:var(--brand)}
.ff-attach-btn:hover svg{stroke:var(--brand)}
.ff-attach-list{margin-top:.5rem;display:flex;flex-direction:column;gap:.35rem}
.ff-attach-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:var(--brand-light);border-radius:10px;padding:.45rem .7rem;font-size:.68rem;color:var(--brand)}
.ff-attach-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff-attach-item button{background:none;border:none;color:var(--text-dim);font-size:.85rem;cursor:pointer;padding:2px;flex-shrink:0}
/* 记忆表单 */
.mem-form{display:flex;flex-direction:column;gap:.75rem}
.mem-form label{font-size:.74rem;font-weight:600;color:var(--text-dim)}
.mem-form input,.mem-form select,.mem-form textarea{width:100%;padding:.6rem .8rem;border:1px solid var(--border);border-radius:10px;font-size:16px;background:#fafafa;outline:none;transition:all .2s;font-family:inherit}
.mem-form input:focus,.mem-form select:focus,.mem-form textarea:focus{border-color:var(--brand);background:#fff}
.mem-form textarea{min-height:64px;resize:vertical}
.mem-save{background:var(--brand);color:#fff;border:none;border-radius:20px;padding:.68rem;font-size:.84rem;font-weight:600;cursor:pointer;transition:all .2s}
.mem-save:hover{background:#0a85e0}
.mem-hint{font-size:.66rem;color:var(--text-sub);line-height:1.7}
/* loading */
.chat-loading{display:flex;gap:4px;padding:.5rem;align-self:flex-start}
.chat-loading span{width:6px;height:6px;border-radius:50%;background:var(--brand);animation:botBounce .8s infinite}
.chat-loading span:nth-child(2){animation-delay:.15s}
.chat-loading span:nth-child(3){animation-delay:.3s}
@keyframes botBounce{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}}
/* ═══ 三点菜单（header 最右） ═══ */
.chat-menu-btn{position:absolute;right:max(1.1rem,env(safe-area-inset-right,1.1rem));top:50%;transform:translateY(-50%);
  background:none;border:none;color:var(--text-dim);cursor:pointer;padding:6px;display:flex;flex-direction:column;gap:3px;transition:all .2s}
.chat-menu-btn:hover{color:var(--brand)}
.chat-menu-btn span{width:3.5px;height:3.5px;border-radius:50%;background:currentColor;display:block}
/* 账号面板 */
.account-sheet .sheet-body{padding:0 1.1rem 1.4rem;overflow-y:auto;max-height:calc(82vh - 90px);display:flex;flex-direction:column}
.account-sheet .sheet-body > *{flex-shrink:0}
.acc-card{background:var(--bubble-bot);border-radius:14px;padding:1rem;display:flex;align-items:center;gap:.8rem;margin-bottom:.8rem}
.acc-avatar{width:44px;height:44px;border-radius:12px;background:var(--brand-light);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.acc-avatar svg{width:22px;height:22px;color:var(--brand)}
.acc-info{flex:1;min-width:0}
.acc-name{font-size:.88rem;font-weight:600;color:var(--text)}
.acc-slug{font-size:.64rem;color:var(--text-sub);margin-top:1px}
.acc-row{display:flex;justify-content:space-between;align-items:center;padding:.7rem 0;border-bottom:1px solid var(--border)}
.acc-row:last-child{border-bottom:none}
.acc-row .ar-label{font-size:.76rem;color:var(--text-dim)}
.acc-row .ar-value{font-size:.82rem;font-weight:600;color:var(--text)}
.acc-row .ar-value.brand{color:var(--brand)}
.acc-row .ar-value.warn{color:#e05c4f}
.acc-topup-btn{width:100%;background:var(--brand);color:#fff;border:none;border-radius:20px;padding:.68rem;font-size:.84rem;font-weight:600;cursor:pointer;transition:all .2s;margin-top:.6rem}
.acc-topup-btn:hover{background:#0a85e0}
.acc-topup-btn:disabled{background:#c7c7cc;cursor:not-allowed}
.acc-custom-btn{width:100%;background:linear-gradient(135deg,#0b93f6,#7c5cff);color:#fff;border:none;border-radius:20px;padding:.68rem;font-size:.84rem;font-weight:600;cursor:pointer;transition:all .2s;margin-top:.5rem}
.acc-custom-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}
.acc-clear-row{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.7rem 0 .2rem;color:var(--text-sub);cursor:pointer;transition:all .2s;font-size:.74rem}
.acc-clear-row svg{width:15px;height:15px}
.acc-clear-row:hover{color:#e05c4f}
.acc-clear-divider{height:1px;background:var(--border);margin:.7rem 0 .2rem}
.acc-hint{font-size:.62rem;color:var(--text-sub);line-height:1.6;margin-top:.6rem;text-align:center}
/* ═══ 桌面端工作台（默认隐藏，≥768px 生效） ═══ */
.workbench{position:fixed;top:50%;left:calc(50% + 24px);right:auto;transform:translateY(-50%) translateX(50px);width:max(360px,min(29.4vw,448px));height:calc(70dvh - 67px);max-height:calc(70dvh - 67px);min-height:calc(70dvh - 66px);background:var(--surface);border-radius:18px;border:1px solid #e8e8ec;box-shadow:0 6px 24px rgba(0,0,0,.07);z-index:150;display:flex;flex-direction:column;transition:transform .4s cubic-bezier(.4,.7,.3,1),opacity .3s,visibility .3s;opacity:0;visibility:hidden;pointer-events:none;overflow:hidden}
.workbench.open{transform:translateY(-50%) translateX(0);opacity:1;visibility:visible;pointer-events:auto}
.wb-head{display:flex;align-items:center;justify-content:space-between;padding:0 1.3rem;height:61px;box-sizing:border-box;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}
.wb-title{font-size:.98rem;font-weight:600;color:var(--text)}
.wb-close{width:30px;height:30px;border-radius:50%;background:var(--bubble-bot);border:none;color:var(--text-sub);font-size:.95rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
.wb-close:hover{background:#ffebeb;color:#e05c4f}
.wb-body{flex:1;overflow-y:auto;padding:1.2rem 1.3rem;background:#fafafc}
/* 工作台内的功能网格（桌面版 4 列，2 行放下 8 个，避免滚动） */
.workbench .func-grid{grid-template-columns:repeat(4,1fr);gap:.7rem}
.workbench .attach-grid{grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:.9rem}
.workbench .f-sub{display:block}
/* 工作台快捷操作：分组层级设计 */
.wb-func{display:flex;flex-direction:column}
.wb-func-label{font-size:.64rem;color:var(--text-sub);font-weight:600;margin:.05rem 0 .4rem;letter-spacing:.05em}
.wb-func-grid{display:grid;gap:.45rem}
.wb-func-grid.main{grid-template-columns:repeat(2,1fr)}
.wb-func-grid.sub{grid-template-columns:repeat(2,1fr);margin-bottom:.05rem}
.wb-func-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:.55rem .4rem;cursor:pointer;transition:all .2s}
.wb-func-card:hover{border-color:var(--brand);box-shadow:0 4px 14px rgba(11,147,246,.12)}
.wb-func-card .f-icon{width:38px;height:38px;border-radius:12px;background:var(--bubble-bot);color:var(--text-sub);display:flex;align-items:center;justify-content:center}
.wb-func-card .f-icon svg{width:19px;height:19px}
.wb-func-card .f-text{font-size:.72rem;font-weight:500;color:var(--text)}
.wb-func-card.main{background:var(--brand-light);border-color:transparent}
.wb-func-card.main .f-icon{background:var(--brand);color:#fff}
.wb-func-card.main .f-text{color:var(--brand);font-weight:600}
.wb-func-card.main:hover{background:#d8ecfd;border-color:transparent}
.wb-func-card.main .f-tag{background:var(--brand);color:#fff;font-size:.54rem;font-style:normal;border-radius:8px;padding:.06rem .35rem;margin-left:.2rem;vertical-align:1px}
.wb-attach{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:.55rem;padding-top:.65rem;border-top:1px solid var(--border)}
.wb-attach-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;background:transparent;border:1px dashed var(--border);border-radius:11px;padding:.5rem .3rem;cursor:pointer;transition:all .2s}
.wb-attach-btn:hover{border-color:var(--brand);background:var(--brand-light)}
.wb-attach-btn .f-icon{width:28px;height:28px;border-radius:9px;background:var(--bubble-bot);color:var(--text-sub);display:flex;align-items:center;justify-content:center}
.wb-attach-btn .f-icon svg{width:14px;height:14px}
.wb-attach-btn .f-text{font-size:.64rem;color:var(--text-sub);font-weight:500}
.wb-attach-btn:hover .f-text{color:var(--brand)}
.wb-func-hint{font-size:.58rem;color:var(--text-sub);text-align:center;margin-top:.6rem;line-height:1.6}
/* 工作台内的表单 */
.workbench .func-form{max-width:460px;margin:0;padding:0;background:transparent;min-height:0}
.workbench .ff-actions{display:flex;gap:.6rem}
.workbench .ff-go{flex:none}
.workbench .ff-cancel{flex:none}
/* ═══ 桌面端适配（≥768px） ═══ */
@media (min-width: 768px){
  /* 桌面端比例方法论（2026-08-16 晚）：
     留白 = CSS 变量 --desk-pad；聊天卡高 = 100dvh - 2*--desk-pad；工作台严格同高。
     宽度有上下限（360-448px），高度不再跟视口百分比线性缩 → 任意屏幕宽高比恒定。 */
  body{background:#f4f4f6;justify-content:center;padding:calc(15dvh + 33px) 0}  /* 大屏（iMac）：舒服的观感 */
  /* 聊天整体：与工作台等高（70dvh-66px）等宽（29.4vw），小桌面窗口保底 360px（2026-08-16 修复平板/小窗过窄） */
  .chat-header{width:max(360px,min(29.4vw,448px));margin:0 auto;border-radius:18px 18px 0 0;background:var(--surface);box-shadow:0 6px 24px rgba(0,0,0,.07);position:relative;z-index:2;flex-shrink:0;padding:0;height:61px;box-sizing:border-box}
  .chat-msgs{max-width:none;width:max(360px,min(29.4vw,448px));margin:0 auto;padding:1.2rem 1.4rem;background:var(--surface);flex:1;min-height:0;overflow-y:auto}
  .attach-bar{max-width:none;width:max(360px,min(29.4vw,448px));margin:0 auto;background:var(--surface);flex-shrink:0}
  .chat-input-wrap{max-width:none;width:max(360px,min(29.4vw,448px));margin:0 auto;border-radius:0 0 18px 18px;background:var(--surface);box-shadow:0 6px 24px rgba(0,0,0,.07);flex-shrink:0}
  .chat-msg{max-width:78%;font-size:.9rem;padding:.75rem 1rem}
  /* header 内容：桌面端用 flex 正常布局（标题居中，菜单在右，不被挤出） */
  .chat-h-center{position:static;transform:none;max-width:none;flex:1;margin:0 auto}
  .chat-menu-btn{position:static;transform:none;margin-left:.5rem;flex-shrink:0}
  /* 打开工作台：聊天整体左移让位（对半分），关闭回中。chat-h-center 是 header 子元素随 header 移动，无需单独位移 */
  body.wb-open .chat-header, body.wb-open .chat-msgs, body.wb-open .attach-bar, body.wb-open .chat-input-wrap{transform:translateX(calc(-1 * max(180px,min(14.7vw,224px))));transition:transform .4s cubic-bezier(.4,.7,.3,1)}
  /* 桌面端 sheet 不再弹出（功能走工作台），但登录/账号面板保留居中对话框 */
  .sheet:not(.open){transform:translate(-50%,-1600px) scale(.95);opacity:0;visibility:hidden;pointer-events:none}
  .sheet{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-46%) scale(.97);
    width:min(640px,92vw);border-radius:22px;max-height:82vh;border:1px solid var(--border);
    box-shadow:0 20px 60px rgba(0,0,0,.18);transition:transform .3s cubic-bezier(.32,.72,.35,1),opacity .25s,visibility .3s}
  .sheet.open{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}
  .sheet-body{max-height:calc(82vh - 90px);padding:0 1.4rem 1.5rem;overflow-y:auto}
  .func-form{min-height:0}
  .func-form textarea{min-height:100px}
  .func-grid{grid-template-columns:repeat(6,1fr);gap:1rem}
  .func-item{padding:.6rem 0}
  .func-item .f-icon{width:50px;height:50px;border-radius:16px}
  .func-item .f-text{font-size:.72rem}
  /* 附件按钮三列保持 */
  .ff-attach-btns{max-width:520px;margin:0 auto}
  /* 账号面板也居中 */
  .account-sheet .sheet{width:min(480px,92vw)}
  /* 笔记本（681-900px 高，MacBook 常见）：留白固定 64px，卡片高 = 视口-128，宽高比回到 ~2.0（2026-08-16 晚修复） */
  @media (max-height: 900px){
    body{padding:64px 0}
    .workbench{height:calc(100dvh - 129px);max-height:calc(100dvh - 129px);min-height:calc(100dvh - 128px)}
  }
  /* 矮窗口（笔记本常见 600-700px 高）：压缩空状态，防功能按钮被输入区遮挡（2026-08-16） */
  @media (max-height: 680px){
    body{padding:40px 0}   /* 固定留白 40px，卡片尽量高（2026-08-16 晚：改固定值，不用百分比） */
    .workbench{height:calc(100dvh - 81px);max-height:calc(100dvh - 81px);min-height:calc(100dvh - 80px)}  /* 与聊天卡严格等高 */
    .wb-body{padding:.8rem 1rem}
    .wb-func-grid{gap:.45rem}
    .wb-func-card{padding:.45rem 0}
    .wb-func-card .f-icon{width:40px;height:40px;border-radius:13px}
    .wb-func-label{margin:.4rem 0 .35rem}
    .wb-attach{margin-top:.5rem}
    .empty-state{gap:.55rem;padding-top:.6rem}
    .empty-avatar{width:48px;height:48px;border-radius:15px}
    .empty-title{font-size:.92rem}
    .empty-sub{font-size:.68rem;line-height:1.6}
    .empty-examples{margin-top:.2rem}
  }
}


.login-wrap{display:flex;flex-direction:column;align-items:center;padding:.6rem 0 .4rem}
.acc-tabs{display:flex;background:var(--bubble-bot);border-radius:12px;padding:.25rem;margin-bottom:.9rem;gap:.25rem}
.acc-tab{flex:1;border:none;background:transparent;border-radius:10px;padding:.55rem .4rem;font-size:.78rem;font-weight:600;color:var(--text-sub);cursor:pointer;transition:all .2s}
.acc-tab.on{background:#fff;color:var(--brand);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.login-icon{width:56px;height:56px;border-radius:18px;background:var(--brand-light);display:flex;align-items:center;justify-content:center;margin-bottom:.8rem}
.login-icon svg{width:26px;height:26px;color:var(--brand)}
.login-title{font-size:.95rem;font-weight:600;margin-bottom:.2rem}
.login-sub{font-size:.72rem;color:var(--text-sub);margin-bottom:1.1rem}
.login-field{width:100%;margin-bottom:.5rem}
.login-field label{display:block;font-size:.7rem;font-weight:600;color:var(--text-dim);margin-bottom:.3rem}
.login-field input{width:100%;padding:.7rem .9rem;border:1px solid var(--border);border-radius:12px;font-size:16px;background:#fafafa;outline:none;transition:all .2s;font-family:inherit}
.login-field input:focus{border-color:var(--brand);background:#fff}
.login-btn{width:100%;background:var(--brand);color:#fff;border:none;border-radius:22px;padding:.75rem;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;margin-top:.6rem;letter-spacing:.2em}
.login-btn:hover{background:#0a85e0}
.login-err{width:100%;color:#e05c4f;font-size:.7rem;min-height:1rem;text-align:left;padding-left:.1rem}
.login-hint{font-size:.62rem;color:var(--text-sub);line-height:1.7;margin-top:.9rem;text-align:center}
/* ═══ 飞书群提醒配置面板 ═══ */
.fw-status{display:flex;align-items:center;gap:.7rem;background:var(--bubble-bot);border-radius:14px;padding:.8rem .9rem;margin-bottom:1rem;border:1px solid var(--border)}
.fw-status.ok{background:#eaf7ef;border-color:#cdeedd}
.fw-status-dot{width:10px;height:10px;border-radius:50%;background:#c0c4cc;flex-shrink:0}
.fw-status.ok .fw-status-dot{background:#34c759}
.fw-status-text{flex:1;min-width:0}
.fw-status-title{font-size:.82rem;font-weight:600;color:var(--text)}
.fw-status-sub{font-size:.66rem;color:var(--text-sub);margin-top:.15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fw-unlink{flex-shrink:0;background:transparent;border:1px solid #e0c4c4;color:#d0554a;font-size:.68rem;padding:.35rem .7rem;border-radius:14px;cursor:pointer;transition:all .2s}
.fw-unlink:hover{background:#ffebeb}
.fw-steps{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.1rem}
.fw-step{display:flex;align-items:flex-start;gap:.6rem}
.fw-step-num{width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font-size:.68rem;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.fw-step-txt b{display:block;font-size:.76rem;color:var(--text)}
.fw-step-txt span{font-size:.64rem;color:var(--text-sub);line-height:1.5}
.fw-input-wrap{margin-bottom:.8rem}
.fw-input-row{display:flex;gap:.5rem;margin-top:.35rem}
.fw-input-row input{flex:1;min-width:0}
.fw-test{flex-shrink:0;background:var(--brand-light);color:var(--brand);border:none;border-radius:10px;padding:0 1rem;font-size:.76rem;font-weight:600;cursor:pointer;transition:all .2s}
.fw-test:hover{background:#d8ecfd}
.fw-test:disabled{opacity:.5;cursor:not-allowed}
/* 2026-08-14 群选择器（@ 人极致版） */
.fw-group-pick{margin-top:.2rem;margin-bottom:.8rem;background:var(--bubble-bot);border:1px dashed var(--border);border-radius:14px;padding:.8rem .9rem}
.fw-gp-title{font-size:.76rem;font-weight:600;color:var(--text)}
.fw-gp-sub{font-size:.64rem;color:var(--text-sub);margin-top:.2rem;line-height:1.5}
.fw-gp-item{display:flex;align-items:center;justify-content:space-between;padding:.5rem .6rem;margin-top:.4rem;background:#fff;border:1px solid var(--border);border-radius:10px;cursor:pointer;transition:all .2s}
.fw-gp-item.sel{border-color:var(--brand);background:var(--brand-light)}
.fw-gp-name{font-size:.74rem;color:var(--text);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-gp-m{font-size:.62rem;color:var(--text-sub);flex-shrink:0;margin-left:.4rem}
/* 2026-08-14 提醒表单成员选择器 */
.ff-at-pick{margin-top:.5rem;background:#fff;color:var(--brand);border:1px solid var(--border);border-radius:12px;padding:.5rem .9rem;font-size:.68rem;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:5px;width:100%}
.ff-at-pick:hover{border-color:var(--brand);background:var(--brand-light)}
.ff-group-sel{margin-top:.4rem;background:#fff;border:1px solid var(--border);border-radius:12px;padding:.55rem .8rem;font-size:.8rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer}
.ff-group-sel-tip{color:#999}
.ff-group-sel-val{color:var(--text,#222);font-weight:500}
.ff-group-sel-arrow{color:#999}
.ff-group-list{display:none;margin-top:.3rem;border:1px solid var(--border);border-radius:12px;overflow:hidden;max-height:200px;overflow-y:auto}
.ff-gp-item{padding:.55rem .8rem;font-size:.78rem;display:flex;justify-content:space-between;align-items:center;cursor:pointer;border-bottom:1px solid rgba(0,0,0,.04)}
.ff-gp-item:last-child{border-bottom:none}
.ff-gp-item.sel{background:rgba(120,80,255,.06);color:var(--brand)}
.ff-gp-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ff-gp-check{color:var(--brand);font-weight:700;margin-left:.5rem}
.fw-gp-del{background:transparent;border:none;color:#bbb;font-size:.85rem;cursor:pointer;padding:.1rem .3rem;flex-shrink:0}
.fw-gp-del:hover{color:#e05c4f}
.fw-gp-item.clickable:hover{background:rgba(120,80,255,.04)}
.ff-at-sel{display:none;margin-top:.5rem;background:#fff;border:1px solid var(--border);border-radius:12px;padding:.6rem .75rem}
.ff-at-tip{font-size:.66rem;color:var(--text-sub);line-height:1.55}
.ff-at-tip.sel{color:#34c759;font-weight:600}
.ff-at-tip.warn{background:#fff8e6;border:1px solid #f0e0a0;color:#8a6d1a;border-radius:10px;padding:.5rem .7rem}
.ff-at-members{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}
.ff-at-member{background:#fff;border:1px solid var(--border);border-radius:16px;padding:.3rem .7rem;font-size:.7rem;color:var(--text);cursor:pointer;transition:all .2s}
.ff-at-member:hover{border-color:var(--brand);color:var(--brand)}
.fw-valid{font-size:.64rem;min-height:1rem;margin-top:.3rem;padding-left:.1rem}
.fw-valid.ok{color:#34c759}
.fw-valid.err{color:#e05c4f}
/* 2026-08-16 面板重设计：sticky 底部操作栏 + 紧凑布局 */
.fw-actions{display:flex;justify-content:center;gap:.6rem;margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--border);position:sticky;bottom:-1.4rem;background:var(--white,#fff);margin-bottom:-1.4rem;padding-bottom:1.4rem}
.fw-cancel{background:var(--white,#fff);border:1px solid var(--border);color:var(--text-dim);border-radius:999px;padding:.68rem 1.6rem;font-size:.85rem;cursor:pointer;min-width:7rem}
.fw-save{background:linear-gradient(135deg,var(--brand),#38b6ff);color:#fff;border:none;border-radius:999px;padding:.68rem 2rem;font-size:.85rem;font-weight:600;cursor:pointer;min-width:9rem;box-shadow:0 4px 14px rgba(11,147,246,.25)}
.fw-save:disabled{opacity:.55;cursor:not-allowed}
.fw-test-app{margin-top:.6rem;width:100%;background:var(--brand-light);color:var(--brand);border:none;border-radius:999px;padding:.6rem 1rem;font-size:.76rem;font-weight:600;cursor:pointer;transition:all .2s}
.fw-test-app:hover{background:#d8ecfd}
.fw-test-app:disabled{opacity:.5;cursor:not-allowed}
/* 面板内分区卡 */
.fw-card{background:var(--bubble-bot,#f2f2f7);border:1px solid var(--border);border-radius:14px;padding:.85rem .95rem;margin-bottom:.75rem}
.fw-card-title{font-size:.8rem;font-weight:600;color:var(--text);display:flex;align-items:center;gap:.4rem}
.fw-card-title .en{font-family:'Cormorant Garamond',Georgia,serif;font-size:.6rem;letter-spacing:.28em;text-transform:uppercase;color:var(--brand);display:block;margin-bottom:.1rem}
.fw-card-sub{font-size:.64rem;color:var(--text-sub);margin-top:.2rem;line-height:1.5}
.fw-hint{font-size:.62rem;color:var(--text-faint);line-height:1.6;margin-top:.5rem;text-align:center}
/* 2026-08-18 提醒事项绑定向导：步骤条 */
.cd-steps{display:flex;align-items:flex-start;justify-content:space-between;margin:.1rem 0 1rem}
.cd-step{display:flex;flex-direction:column;align-items:center;gap:.3rem;flex:1;position:relative;min-width:0}
.cd-step::before{content:'';position:absolute;top:10px;left:calc(-50% + 14px);width:calc(100% - 28px);height:2px;background:var(--border);z-index:0}
.cd-step:first-child::before{display:none}
.cd-step.on::before,.cd-step.done::before{background:var(--brand)}
.cd-step-dot{width:22px;height:22px;border-radius:50%;background:#e9eaee;color:var(--text-dim);font-size:.68rem;font-weight:600;display:flex;align-items:center;justify-content:center;position:relative;z-index:1;flex-shrink:0}
.cd-step.on .cd-step-dot{background:var(--brand);color:#fff}
.cd-step.done .cd-step-dot{background:#34c759;color:#fff}
.cd-step-t{font-size:.6rem;color:var(--text-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cd-step.on .cd-step-t{color:var(--brand);font-weight:600}
.cd-path{background:#fff;border:1px solid var(--border);border-radius:10px;padding:.55rem .7rem;margin-top:.5rem;font-size:.68rem;color:var(--text);line-height:1.65}
.cd-path b{color:var(--text)}
.cd-link{display:flex;align-items:center;justify-content:center;gap:.3rem;margin-top:.6rem;padding:.6rem .7rem;border-radius:10px;background:linear-gradient(135deg,#0b93f6 0%,#38b6ff 100%);color:#fff;font-size:.74rem;font-weight:600;letter-spacing:.04em;text-decoration:none;transition:all .2s}
.cd-link:active{transform:scale(.97);filter:brightness(1.06)}
.cd-return-tip{font-size:.62rem;color:#ff9500;margin-top:.45rem;line-height:1.5}
/* 🔴 2026-08-19：双重认证前置检查卡（dumio 反复失败根因引导） */
.cd-2fa{margin:.55rem 0 .2rem;padding:.62rem .72rem;border-radius:10px;background:#fff8e6;border:1px solid #f0d98c;font-size:.66rem;color:#7a5b00;line-height:1.7}
.cd-2fa-t{font-weight:600;margin-bottom:.15rem}
.cd-copy{display:block;width:100%;margin-top:.4rem;padding:.5rem .7rem;border-radius:10px;border:1px dashed var(--border);background:#fff;font-size:.66rem;color:var(--text-sub);cursor:pointer;transition:all .2s}
.cd-copy:active{background:var(--bubble-bot)}
/* 🔴 2026-08-19：专用密码一键粘贴按钮 + 绑定成功测试引导 */
.cd-pass-group{display:flex;align-items:center;border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden}
.cd-pass-group:focus-within{border-color:#0b93f6}
.cd-paste{padding:.5rem .7rem;border:none;background:#f0f4fb;color:#0b93f6;font-size:.72rem;font-weight:600;cursor:pointer;transition:all .15s;flex-shrink:0;-webkit-tap-highlight-color:transparent}
.cd-paste:active{background:#e2ecfa;transform:scale(.97)}
.cd-test-guide{margin-top:.7rem;padding:.75rem .8rem;border-radius:12px;background:linear-gradient(135deg,rgba(11,147,246,.08),rgba(56,182,255,.06));border:1px solid rgba(11,147,246,.25);text-align:left}
.cd-test-icon{font-size:1.1rem;margin-bottom:.25rem}
.cd-test-t{font-size:.76rem;font-weight:600;color:#0b93f6;margin-bottom:.2rem}
.cd-test-s{font-size:.66rem;color:var(--text-sub);line-height:1.6}
.cd-fields{margin-top:.5rem;background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.cd-field{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.55rem .7rem;font-size:.68rem}
.cd-field + .cd-field{border-top:1px solid var(--border)}
.cd-field span{color:var(--text-sub);flex:none}
.cd-field b{color:var(--text);text-align:right;word-break:break-all}
.cd-tip{font-size:.62rem;color:#34c759;margin-top:.45rem;line-height:1.5}
.cd-done-hero{text-align:center;padding:.6rem 0 .2rem}
.cd-done-hero .cd-done-icon{width:46px;height:46px;border-radius:50%;background:#eaf7ef;color:#34c759;display:flex;align-items:center;justify-content:center;margin:0 auto .5rem;font-size:1.3rem}
.cd-done-hero .cd-done-title{font-size:.86rem;font-weight:600;color:var(--text)}
.cd-done-hero .cd-done-sub{font-size:.66rem;color:var(--text-sub);margin-top:.25rem;line-height:1.6}
/* ═══ 账号面板档案行 ═══ */
.acc-profile-row{display:flex;align-items:center;gap:.7rem;background:var(--bubble-bot);border-radius:14px;padding:.75rem .9rem;margin-bottom:.8rem;cursor:pointer;transition:all .2s}
.acc-profile-row:hover{background:#eaeaf0}
.mem-guide{display:flex;align-items:center;gap:.5rem;background:#e8f4fe;border:1px solid #cde9fd;border-radius:12px;padding:.65rem .75rem;margin-bottom:.8rem;font-size:.72rem;color:var(--brand);line-height:1.5}
.mem-guide svg{width:16px;height:16px;flex-shrink:0}
.ap-icon{width:34px;height:34px;border-radius:10px;background:#e8f4fe;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ap-icon svg{width:17px;height:17px;color:var(--brand)}
.ap-info{flex:1;min-width:0}
.ap-title{font-size:.8rem;font-weight:600;color:var(--text)}
.ap-desc{font-size:.64rem;color:var(--text-sub);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-arrow{color:#c7c7cc;font-size:1.1rem;flex-shrink:0}
/* ═══ 清除确认弹窗（滑动标题触发） ═══ */
.confirm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:400;display:none;align-items:center;justify-content:center;padding:1.5rem}
.confirm-overlay.open{display:flex}
.confirm-modal{background:var(--surface);border-radius:22px;padding:1.5rem 1.3rem 1.2rem;width:100%;max-width:320px;text-align:center;animation:confirmIn .25s ease}
@keyframes confirmIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
/* 协议弹窗（2026-08-16 合规）——复用 confirm-overlay 背景，独立内容样式 */
.policy-modal{background:var(--surface);border-radius:18px;width:100%;max-width:520px;display:flex;flex-direction:column;max-height:78vh;animation:confirmIn .25s ease;overflow:hidden}
.policy-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.3rem .8rem;border-bottom:1px solid var(--border);flex-shrink:0}
.policy-title{font-size:.95rem;font-weight:600;color:var(--text)}
.policy-close{border:none;background:none;font-size:1rem;color:var(--text-sub);cursor:pointer;padding:.2rem .4rem}
.policy-body{flex:1;overflow-y:auto;padding:1rem 1.3rem;font-size:.78rem;color:var(--text);line-height:1.7}
.policy-body h4{font-size:.83rem;font-weight:600;margin:1rem 0 .4rem;color:var(--text)}
.policy-body p{margin:.25rem 0}
.policy-body .hl{color:var(--brand);font-weight:500}
.policy-foot{padding:.7rem 1.3rem 1rem;border-top:1px solid var(--border);flex-shrink:0;text-align:center}
.policy-ok{background:var(--brand);color:#fff;border:none;border-radius:20px;padding:.5rem 2.2rem;font-size:.82rem;cursor:pointer;font-weight:500}
.confirm-icon{width:56px;height:56px;border-radius:50%;background:var(--brand-light);display:flex;align-items:center;justify-content:center;margin:0 auto .8rem}
.confirm-icon svg{width:26px;height:26px;color:var(--brand)}
.confirm-title{font-size:.95rem;font-weight:600;margin-bottom:.3rem}
.confirm-desc{font-size:.74rem;color:var(--text-sub);line-height:1.6;margin-bottom:1rem}
.confirm-btns{display:flex;gap:.6rem}
.confirm-btns .btn{flex:1;padding:.65rem;font-size:.8rem;font-weight:600;border-radius:18px;border:none;cursor:pointer;transition:all .2s}
.confirm-btns .btn.cancel{background:var(--bubble-bot);color:var(--text)}
.confirm-btns .btn.danger{background:var(--brand);color:#fff}
.confirm-btns .btn.danger:hover{background:#0a85e0}
/* ═══ 轻提示 Toast ═══ */
.app-toast{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:50%;transform:translateX(-50%);z-index:500;
  background:rgba(28,28,30,.92);color:#fff;font-size:.78rem;line-height:1.5;padding:.65rem 1.1rem;border-radius:16px;
  max-width:82%;text-align:center;opacity:0;pointer-events:none;transition:opacity .25s ease, transform .25s ease;transform:translateX(-50%) translateY(-8px)}
.app-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.app-toast.success{background:rgba(45,138,78,.95)}
.app-toast.error{background:rgba(224,92,79,.95)}
