/* ===== AIGC SaaS 统一样式（PC + H5 自适应，零框架）===== */
:root {
  --brand: #6c5ce7;
  --brand2: #a29bfe;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #2d3436;
  --muted: #888;
  --line: #ececec;
  --ok: #00b894;
  --warn: #fdcb6e;
  --err: #e17055;
  --gold: #f7b500;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
  line-height: 1.6; padding-bottom: 64px; /* 给移动端底栏留位 */
}
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 布局容器 */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 16px; }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }

/* 按钮（四态：默认/悬停/按下/禁用）*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  padding: 11px 18px; font-size: 15px; font-weight: 600; transition: .15s;
}
.btn:hover { background: #5a4bd6; }
.btn:active { transform: scale(.97); }
.btn:disabled { background: #c8c4e8; cursor: not-allowed; }
.btn.ghost { background: #f0eeff; color: var(--brand); }
.btn.gold { background: var(--gold); color: #5a4500; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 13px; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--text); outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.err-text { color: var(--err); font-size: 13px; min-height: 18px; }

/* 标签/徽章 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: #f0eeff; color: var(--brand); }
.badge.lock { background: #fff3d6; color: #b8860b; }
.badge.free { background: #eee; color: #777; }
.tag-price { color: var(--brand); font-weight: 800; font-size: 20px; }

/* 顶部会员条 */
.member-bar { background: linear-gradient(120deg, var(--brand), var(--brand2)); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.member-bar .pts { font-size: 26px; font-weight: 800; }
.member-bar .sub { opacity: .9; font-size: 13px; }

/* 顶部导航美化：渐变背景 + 毛玻璃 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 100%);
  border-bottom: 1px solid rgba(108,92,231,0.12);
  box-shadow: 0 4px 20px rgba(108,92,231,0.08);
  display: flex; align-items: center;
  justify-content: space-between; padding: 12px 16px;
}
.topbar .logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, #8e44ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.5px;
}
.topbar .logo::before {
  content: "✨"; font-size: 20px; color: var(--brand); background: none; -webkit-background-clip: initial; background-clip: initial;
}
.topbar .nav a {
  position: relative; color: var(--text); font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 8px; transition: .15s;
}
.topbar .nav a:hover { background: #f0eeff; color: var(--brand); }
.topbar .nav a.active { color: var(--brand); font-weight: 700; background: #f0eeff; }
.topbar .nav a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 10px; right: 10px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.topbar .user { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.top-user-name {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: #f5f6fa; border-radius: 20px;
  border: 1px solid var(--line); font-weight: 500;
}
.top-user-name .level-badge {
  display: inline-block; padding: 1px 7px; border-radius: 12px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* 空态 / loading / 错误 */
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty .ico { font-size: 40px; }
.skeleton { background: linear-gradient(90deg,#eee,#f5f5f5,#eee); background-size:200% 100%; animation: sk 1.2s infinite; border-radius:10px; height: 60px; margin-bottom:10px; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Toast */
#toast { position: fixed; top: 70px; left: 0; right: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: #333; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; opacity: 0; transform: translateY(-10px); transition: .3s; max-width: 90%; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-err { background: var(--err); }
.toast-ok { background: var(--ok); }

/* 底部 Tab（移动端） */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 30; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0; font-size: 12px; color: var(--muted); }
.tabbar a.active { color: var(--brand); font-weight: 700; }
.tabbar a .ic { font-size: 20px; display: block; }

/* 资产列表 */
.asset { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.asset .meta { flex: 1; min-width: 0; }
.asset .ttl { font-weight: 600; }
.asset .desc { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 40px; }
.asset .acts { display: flex; flex-direction: column; gap: 6px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 20px; width: 100%; max-width: 420px; max-height: 86vh; overflow: auto; }
.modal h3 { margin: 0 0 14px; }
.key-hint { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; padding:10px 12px; border-radius:8px; font-size:13px; line-height:1.7; margin:4px 0 12px; }
.key-hint code { background:#fff; border:1px solid #fed7aa; border-radius:4px; padding:1px 5px; font-size:12px; word-break:break-all; }

/* ===== AI 对话（聊天气泡 + 角色头像）===== */
.chat-card { padding: 0 !important; overflow: visible; display: flex; flex-direction: column; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-box { flex: 1; min-height: 42vh; max-height: 42vh; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; background: #f8f9fc; }
.chat-box.expanded { min-height: calc(100vh - 180px); max-height: calc(100vh - 180px); }
/* 底部权益提示：强制一行紧凑显示 */
.chat-points-bar {
  position: relative;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #f8f6ff 0%, #ffffff 100%);
  border: 1px solid rgba(108,92,231,0.10);
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  overflow: visible;
}
.chat-points-bar .cap-line { display: flex; align-items: center; width: 100%; min-width: 0; }
.chat-points-bar .cap-line.one-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chat-points-bar .cap-line.one-line::-webkit-scrollbar { display: none; }
.chat-points-bar .cap-tip {
  color: var(--muted); font-size: 12px; white-space: nowrap; line-height: 1.5;
  display: inline-flex; align-items: center; gap: 4px;
}
.chat-points-bar .cap-tip b { color: var(--brand); font-weight: 800; }
.cap-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; cursor: pointer; user-select: none; flex-shrink: 0;
}
.up-link { color: var(--brand); text-decoration: none; cursor: pointer; font-weight: 700; white-space: nowrap; }
.up-link:hover { text-decoration: underline; }
.cap-pop {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 40;
  min-width: 260px; max-width: min(92vw, 360px);
  background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 12px 14px;
  font-size: 12px; line-height: 1.75; color: #333; text-align: left;
}
.cap-pop-title { font-weight: 700; color: var(--primary, #3b6cff); margin-bottom: 6px; }
.cap-pop-row { white-space: normal; }
.up-link { color: var(--primary, #3b6cff); text-decoration: underline; cursor: pointer; font-weight: 600; white-space: nowrap; }
.up-link:hover { opacity: .8; }
.cap-pop-sep { height: 1px; background: var(--line, #e5e7eb); margin: 8px 0; }
.cap-pop-used { color: var(--muted); margin-top: 2px; }
.chat-welcome { text-align: center; color: var(--muted); padding: 30px 0; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.chat-msg.me { flex-direction: row-reverse; align-self: flex-end; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.chat-avatar.ai { background: linear-gradient(135deg, #6c5ce7, #00b894); }
.chat-avatar.me { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.chat-bubble {
  background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
  line-height: 1.75; font-size: 15px; word-break: break-word; min-width: 40px;
}
.chat-msg.me .chat-bubble { background: linear-gradient(135deg, #6c5ce7, #5b4bd6); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ai .chat-bubble { border-bottom-left-radius: 4px; }
.chat-bubble p { margin: 0 0 10px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble b, .chat-bubble strong { font-weight: 700; }
.chat-bubble ul, .chat-bubble ol { margin: 8px 0; padding-left: 20px; }
.chat-bubble li { margin: 4px 0; }
/* 每轮对话底部操作：复制 / 转为文档 */
.chat-msg-actions { display: flex; gap: 8px; margin-top: 10px; }
.chat-act {
  font-size: 12px; line-height: 1; color: var(--brand, #6c5ce7);
  background: rgba(108,92,231,0.08); border: 1px solid rgba(108,92,231,0.18);
  border-radius: 8px; padding: 5px 9px; cursor: pointer; user-select: none; white-space: nowrap;
}
.chat-act:hover { background: rgba(108,92,231,0.16); }
.chat-msg.me .chat-act { color: #fff; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.chat-msg.me .chat-act:hover { background: rgba(255,255,255,0.28); }

/* 输入区 */
.chat-input-area { border-top: 1px solid var(--line); background: #fff; padding: 10px 12px; }
.chat-modes { display: flex; gap: 8px; padding: 2px 2px 8px; }
.chat-mode {
  font-size: 13px; color: var(--muted); padding: 5px 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line); background: #f8f9fc; transition: .15s; user-select: none;
}
.chat-mode:hover { background: #f0eeff; color: var(--brand); }

/* 对话生成中提示（等待期间不再白屏） */
.gen-waiting { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.gen-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #d8d8ef; border-top-color: var(--brand);
  animation: gen-spin .8s linear infinite; flex-shrink: 0;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
.chat-mode.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chat-params { display: flex; gap: 14px; align-items: center; padding: 4px 2px 8px; flex-wrap: wrap; }
.param-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.param-item label { font-weight: 500; }
.input.sm { width: auto; min-width: 96px; padding: 5px 8px; font-size: 13px; border-radius: 8px; height: auto; }
.chat-tool-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chat-input-wrap { display: flex; gap: 10px; align-items: flex-end; }
.chat-textarea {
  flex: 1; min-height: 54px; max-height: 160px; resize: none; border-radius: 18px; padding: 10px 14px;
  line-height: 1.6; overflow-y: auto;
}
.chat-tools { display: flex; gap: 10px; align-items: center; padding: 6px 2px 0; }
.chat-tool-btn {
  display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; cursor: pointer;
  padding: 4px 8px; border-radius: 8px; transition: .15s;
}
.chat-tool-btn:hover { background: #f0eeff; color: var(--brand); }
.chat-send { border-radius: 18px; padding: 10px 20px; align-self: flex-end; }
.chat-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 2px 0; }
.chat-att-thumb {
  position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: #f8f9fc;
}
.chat-att-thumb img, .chat-att-thumb video { width: 100%; height: 100%; object-fit: cover; }
.chat-att-thumb .del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: rgba(0,0,0,.5); color: #fff;
  border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chat-att-name { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }

/* AI 生成结果：缩略图 + 查看 + 下载 */
.chat-media-wrap { margin-top: 8px; }
.chat-media-thumb {
  position: relative; display: inline-block; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #f8f9fc; vertical-align: top;
}
.chat-media-thumb img { display: block; max-width: 160px; max-height: 160px; object-fit: cover; }
.chat-media-thumb video { display: block; max-width: 200px; max-height: 140px; object-fit: cover; }
.chat-media-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s;
}
.chat-media-thumb:hover .chat-media-overlay { opacity: 1; }
.chat-media-overlay span {
  color: #fff; font-size: 13px; background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 20px;
}
.chat-media-actions { display: flex; gap: 12px; margin-top: 6px; }
.chat-media-actions a {
  font-size: 12px; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 3px;
}
.chat-media-actions a:active { opacity: .7; }

/* 图片/视频灯箱 */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px;
}
.lightbox-close {
  position: absolute; top: 12px; right: 16px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
}
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; object-fit: contain; }
.lightbox video { max-width: 100%; max-height: 78vh; border-radius: 10px; }
.lightbox-download {
  margin-top: 14px; background: var(--brand); color: #fff; padding: 9px 22px; border-radius: 20px;
  font-size: 14px; text-decoration: none; font-weight: 600;
}
.lightbox-download:active { transform: scale(.97); }

/* ===== 办公技能模块 ===== */
.subnav { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font-size: 14px; }
.subnav a { color: var(--brand); text-decoration: none; }
.subnav-title { font-weight: 700; color: var(--text); }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.office-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px;
  text-decoration: none; color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s; display: block;
}
.office-card:active, .office-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(108,92,231,.15); border-color: var(--brand); }
.office-card-ic { font-size: 30px; margin-bottom: 8px; }
.office-card-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.office-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.form-row .hint { display: block; font-size: 11px; color: var(--muted); opacity: .8; margin-top: 3px; line-height: 1.4; }
/* 开关行：标签在左，开关在右 */
.form-row-toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 4px; }
.form-row-toggle label { margin-bottom: 0; flex: 1 1 auto; min-width: 0; padding-right: 6px; }
.form-row-toggle .hint { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; opacity: .75; }
/* iOS 风格开关（紧凑版） */
.switch,
.form-row-toggle .switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cfd3dc; border-radius: 24px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.switch input:checked + .slider::before { transform: translateX(16px); }
.slides { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.slide { display: flex; gap: 12px; background: #faf9ff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.slide-no {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.slide-body { flex: 1; min-width: 0; }
.slide-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.slide-points { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.7; }
.slide-note { margin-top: 8px; font-size: 12px; color: #6c5ce7; background: #f0eeff; border-radius: 8px; padding: 6px 10px; }
/* PPT 预览：16:9 卡片，更像真实幻灯片 */
.slides.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.slides.preview .slide { display: block; padding: 0; overflow: hidden; background: #fff; }
.slides.preview .slide-frame { aspect-ratio: 16 / 9; display: flex; flex-direction: column; }
.slides.preview .slide-top { background: linear-gradient(135deg, #6C5CE7, #4A7CFF); padding: 14px 16px; }
.slides.preview .slide-no2 { color: rgba(255,255,255,.85); font-size: 11px; }
.slides.preview .slide-title { color: #fff; font-weight: 700; font-size: 15px; margin-top: 2px; line-height: 1.3; }
.slides.preview .slide-body { padding: 12px 16px; flex: 1; overflow: hidden; }
.slides.preview .slide-points { margin: 0; padding-left: 16px; font-size: 11px; line-height: 1.55; color: #333; }
.slides.preview .slide-points li { margin: 2px 0; }
.slides.preview .slide-note { margin-top: 8px; font-size: 10px; color: #6c5ce7; background: #f0eeff; border-radius: 6px; padding: 5px 8px; }
/* 每页 AI 配图缩略图 */
.slides.preview .slide-img { width: 100%; aspect-ratio: 16 / 7; overflow: hidden; background: #eee; }
.slides.preview .slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 封面大图预览 */
.cover-prev { width: 100%; max-width: 520px; margin: 0 auto 14px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(108,92,231,.18); }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 点数不足提示 */
.warn-box { background: #fff7e6; border: 1px solid #ffe0a3; color: #a36b00; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 10px; line-height: 1.6; }
@media (max-width: 600px) { .slides.preview { grid-template-columns: 1fr; } .cover-prev { max-width: 100%; } }
.md-body { font-size: 14px; line-height: 1.8; color: var(--text); }
.md-body pre { background: #1e1e2e; color: #e6e6e6; padding: 12px; border-radius: 8px; overflow: auto; }
.md-body code { background: #f0eeff; color: var(--brand); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--text); background: #fff; }
.stat.err { border-color: #ffd0d0; color: #e74c3c; background: #fff5f5; }
.skel { background: linear-gradient(90deg,#eee,#f5f5f5,#eee); background-size:200% 100%; animation: sk 1.2s infinite; border-radius:10px; height: 80px; }

/* ===== 响应式：窄屏（手机 H5）===== */
@media (max-width: 720px) {
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  .topbar .logo { width: 100%; text-align: center; font-size: 17px; }
  /* 第二行：会员信息与退出整体靠右，避免用户信息被拉到左边 */
  .topbar .user { width: 100%; justify-content: flex-end; font-size: 13px; color: var(--text); gap: 8px; }
  .topbar .user .btn.sm { padding: 4px 10px; font-size: 12px; }
  .topbar .nav { display: none; }   /* 手机用底部 Tab */
  .wrap { padding: 12px; }
  .hide-mobile { display: none !important; }
  .chat-box { min-height: 36vh; max-height: 36vh; }
  .chat-points-bar { padding: 5px 8px; font-size: 11px; border-radius: 8px; }
  .chat-points-bar .cap-tip { font-size: 11px; }
  .chat-points-bar .cap-line.one-line { flex-wrap: nowrap; overflow-x: auto; }
  .chat-points-bar .cap-tip b { font-size: 12px; }
  .cap-help { width: 13px; height: 13px; font-size: 9px; }
  /* 手机端对话卡片标题保留，但稍微紧凑 */
  .chat-header { padding: 8px 12px; }
  .chat-header .chat-title { font-size: 15px; }
  /* 手机端顶部用户信息紧凑 */
  .topbar .user { gap: 4px 6px; }
  .top-user-name { padding: 3px 8px; font-size: 12px; }
  .top-user-name .level-badge { font-size: 10px; padding: 1px 5px; }
  .topbar .user .btn.sm { padding: 4px 10px; font-size: 12px; }
  /* 手机端办公技能卡片单列 */
  .office-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) {
  .tabbar { display: none; }        /* PC 用顶部导航 */
}

/* 个人中心头像 */
.uc-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.top-user-name:hover { color: var(--brand) !important; }
