/* 共享龙虾平台 V1.38 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f4f8; color: #1a202c; }
/* V2.36（2026-09-20 赵国伟反馈「界面错位」）：底部留白 4.5rem
   —— 底部有固定浮层（当班虾条 bottom:0.75rem 高约 3.5rem / 虾坞 dock 高约 3.9rem），
   原来页面没有底部留白，滚到底时最后一行内容（如小铺的「下单」按钮）仍被浮层压住且点击被抢走。
   实测：改前滚到底最后按钮 bottom=642 vs 浮条 top=635（被压 8px）→ 改后余量 73px。 */
.page { min-height: 100vh; min-height: var(--vvh, 100vh); max-width: 480px; margin: 0 auto; background: #fff; position: relative; padding-bottom: 4.5rem; }
/* 2026-09-21：手机上 100vh = "含地址栏"的虚高值，比真实可视高度(--vvh)大一大截 → 页面底部会空一块。
   上面前后用 var(--vvh) 兜住（老浏览器不支持时回落到 100vh，行为不变）。 */
/* ★ 2026-10-14：同 `.login-page` —— 只有 100vh 的都在手机 WebView 里会矮一截露白底。
   `.page` 早修过，这里一并补齐（后端不加 CSS 也无法兜住这个洞）。 */
.page-full { min-height: 100vh; min-height: var(--vvh, 100vh); background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%); }

/* ★★ 2026-10-14（主人下载正式版实测：「登录的时候下面一片白」）★★
   老写法只有 `min-height: 100vh`。手机 WebView 里 100vh 跟**真实可视高度**对不上
   （状态栏占位、键盘弹起、壳里满屏高度算法不同都会错）⇒ 这一层比屏幕矮，
   底下的 body 底色（#f0f4f8 浅灰，看着就是"白"）就露出来了。
   正解：跟上面 `.page` 用同一套 —— `min-height: var(--vvh, 100vh)`。
        `--vvh` 是 visualViewport 实测高度（app.js:22 维护），100vh 只作老浏览器回落。
   ⚠️ `.page` 早在 2026-09-21 就修过这一条，**登录页和 .page-full 当时漏了** —— 就是这块白。 */
.login-page { min-height: 100vh; min-height: var(--vvh, 100vh); background-color: #1a365d; background-image: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #1a365d 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.login-logo { font-size: 4rem; margin-bottom: 0.5rem; }
.login-title { font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.login-sub { font-size: 0.875rem; color: #a0aec0; margin-bottom: 2.5rem; }
.login-btn { width: 100%; padding: 1.25rem; border-radius: 1rem; font-size: 1.125rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; transition: all 0.2s; border: none; }
.login-btn-fan { background: #3182ce; color: #fff; }
.login-btn-fan:hover { background: #2c5aa0; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(49,130,206,0.4); }
.login-btn-inf { background: linear-gradient(135deg, #ed8936, #dd6b20); color: #fff; }
.login-btn-inf:hover { background: linear-gradient(135deg, #dd6b20, #c05621); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237,137,54,0.4); }
.login-admin { margin-top: 1.5rem; color: #a0aec0; font-size: 0.875rem; cursor: pointer; text-decoration: underline; }

/* 顶部导航 */
/* 2026-09-21（用户：顶栏"有点儿大"）——上下留白 0.75rem→0.5rem，标题 1.125rem→1rem：
   一屏上顶栏省下约 10px 给正文/对话区；左上角现在是「个人中心」入口，标题字可以更小。 */
.nav-bar { background: #1a365d; color: #fff; padding: 0.5rem 0.875rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
/* ★ 2026-10-22（D1021-01「顶部栏被遮挡了」）：让出手机状态栏的那一条，顶栏和🔔红点不再被压住。
   没有安全区的环境（桌面浏览器 / 老系统）env() = 0，版式一点不变，可放心上。
   iOS 的 WKWebView 同一条规则也吃得到，不用分端写。 */
.nav-bar { padding-top: calc(0.5rem + env(safe-area-inset-top, 0px)); padding-left: calc(0.875rem + env(safe-area-inset-left, 0px)); padding-right: calc(0.875rem + env(safe-area-inset-right, 0px)); }
.nav-bar-inf { background: linear-gradient(135deg, #c05621, #dd6b20); }
/* ═══ ★ 2026-10-22 主人令：「要就跟微信一样，有那个红标，这样大家都知道有消息了」
   原来 27 处红点各写一段内联样式：直径 15.75px、字号 10px —— 在小屏上糊成一粒，等于没标。
   现在统一收成一个类，按微信那套做：
     · 直径 19px（1.0625rem @18px 根字号），数字 12px，两位数字自动变胶囊；
     · 微信同款红 #FA5151，外面一圈 1.5px 白边 —— 压在深蓝顶栏上才认得出来是"角标"；
     · 位置稍微出界（top/right 负值），跟微信一样"贴在图标的犄角上"；
     · 数字是后端下发的未读总数（界面零计算），超过 99 显示 99+。
   只改长相，不动点击逻辑：点还是 openNoticeSheet()。 */
.nav-badge { position: absolute; top: -0.3rem; right: -0.5rem; min-width: 1.0625rem; height: 1.0625rem; padding: 0 0.25rem; border-radius: 999px; background: #fa5151; color: #fff; font-size: 0.6875rem; font-weight: 800; line-height: 0.9375rem; text-align: center; box-sizing: border-box; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.28); pointer-events: none; }
/* ═══ 2026-10-17（主人令「这几个键混到一起，摁着可麻烦，一个跟一个隔离开」）═══
   顶栏那几个小图标（🗂 归档 / 🔔 消息 / 🔄 刷新 / ❓ 讲解）原来只隔 0.25rem、还不到 30px 宽，
   手指按下去容易点到隔壁、也没个按到的感觉。
   改法：① 每个图标给一个**独立的方形热区**（36×36px，圆角小方块底），彼此留空隙；
         ② 组与组之间插一根**细竖线**（隔离键），一眼看得出这是几个分开的键；
         ③ 按下有反馈（底变亮 + 微缩）——**按下去必须有回应**，这是主人定的铁律。
   只动观感与热区，不动任何点击逻辑。 */
.nav-bar .nav-ico { min-width: 2.125rem; height: 2.125rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.625rem; background: rgba(255,255,255,0.16); font-size: 1rem; line-height: 1; cursor: pointer; flex: none; margin-left: 0.25rem; -webkit-tap-highlight-color: transparent; transition: background 0.12s ease, transform 0.08s ease; }
.nav-bar .nav-ico:active { background: rgba(255,255,255,0.42); transform: scale(0.92); }
.nav-bar .nav-sep { width: 1px; height: 1.125rem; background: rgba(255,255,255,0.42); flex: none; margin: 0 0.25rem; }
/* ❓讲解是 guide_mode.js 插进来的，同样按这套热区走（它自带老样式，这里覆盖掉） */
.nav-bar .wl-nav-help { min-width: 2.125rem; height: 2.125rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.625rem; background: rgba(255,255,255,0.16); font-size: 1rem; line-height: 1; margin-left: 0.625rem; padding: 0; -webkit-tap-highlight-color: transparent; position: relative; }
/* ❓ 是最后插进来的，跟前面那颗 🔄 之间同样补一根隔离竖线（画在空隙里，不占按钮） */
.nav-bar .wl-nav-help::after { content: ''; position: absolute; left: -0.375rem; top: 50%; transform: translateY(-50%); width: 1px; height: 1.125rem; background: rgba(255,255,255,0.42); }
.nav-bar .wl-nav-help:active { background: rgba(255,255,255,0.42); }
.nav-bar .wl-nav-help.on { background: #fde68a; color: #78350f; }
.nav-title { font-weight: 600; font-size: 1rem; }
.nav-role-badge { font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 0.5rem; background: rgba(255,255,255,0.2); }
.nav-back { cursor: pointer; font-size: 1.5rem; }
/* ═══ ★ V4.226（2026-11-11 白班·工单 D1110-06 赵国伟「商品名称显示错位」）═══
   只治公司端→元锦小铺·商品维护台这一条顶栏（.nav-yuanjin）。
   真实现状（375 宽实测）：这一排塞了 6 样 —— ‹ / 标题「🛒 元锦小铺 · 商品维护台」/
   👑总管 / 🎭技能表 / 返回首页 / 🔔。标题是普通 flex 项，被三颗定宽键挤到 121px，
   「🛒 元锦小铺 ·」和「商品维护台」断成两行，第二行正好落在 ‹ 与三颗键中间，
   看着就是"名字错位"；根字号放大到 131% 时标题挤成三行、「返回首页」也断成两行。
   治法（只动这一屏，别处顶栏一个字不改）：
     · 标题不缩成多行 —— 单行，真放不下才用省略号（min-width:0 兜底，320 屏也不会顶破）；
     · 右边四颗收进 .nav-keys 一组，整组不许折行；一行放不下就整组落到第二行、靠右。
   没动任何点击逻辑（‹ 返回、👑总管、🎭技能表、返回首页、🔔 都还是原来的 @click）。 */
.nav-yuanjin { flex-wrap: wrap; justify-content: flex-start; row-gap: 0.25rem; }
.nav-yuanjin .nav-title { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-yuanjin .nav-keys { display: flex; align-items: center; gap: 0.25rem; flex: none; margin-left: auto; }
.nav-yuanjin .nav-keys .nav-role-badge { white-space: nowrap; }

/* V1.24: 达人端双标签页 */
.inf-tabs { display: flex; max-width: 480px; margin: 0 auto; background: #fff; border-bottom: 1px solid #e2e8f0; }
.inf-tab { flex: 1; text-align: center; padding: 0.875rem 0.5rem; font-size: 0.9375rem; font-weight: 600; color: #718096; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.inf-tab-active { color: #dd6b20; border-bottom-color: #dd6b20; background: #fff7ed; }

/* 虾卡片 */
.shrimp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem; }
.shrimp-card { background: #fff; border-radius: 1rem; padding: 1.25rem 1rem; text-align: center; cursor: pointer; transition: all 0.2s; border: 2px solid #e2e8f0; }
.shrimp-card:hover { border-color: #3182ce; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.shrimp-card.active { border-color: #3182ce; background: #ebf8ff; }
.shrimp-card-gold { border: 2px solid #ecc94b; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.shrimp-card-gold:hover { border-color: #d69e2e; box-shadow: 0 4px 12px rgba(236,201,75,0.3); }
.shrimp-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.shrimp-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.shrimp-desc { font-size: 0.75rem; color: #718096; }
.shrimp-gold-badge { font-size: 0.625rem; color: #d69e2e; font-weight: 600; margin-top: 0.25rem; }

/* V1.30: 预留组件样式 */
.proposal-slot { margin-top: 0.5rem; padding: 0.375rem 0.5rem; background: #fef3c7; border: 1px dashed #d69e2e; border-radius: 0.375rem; font-size: 0.6875rem; color: #975a16; text-align: center; }
.resource-slot { margin-top: 0.375rem; padding: 0.25rem 0.5rem; background: #e0e7ff; border: 1px dashed #6366f1; border-radius: 0.375rem; font-size: 0.6875rem; color: #4338ca; text-align: center; }
.companion-slot { margin: 0.75rem 1rem; padding: 0.625rem; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-radius: 0.5rem; font-size: 0.75rem; color: #075985; text-align: center; border: 1px solid #bae6fd; }

/* 对话区 */
.chat-area { display: flex; flex-direction: column; height: 100vh; height: var(--vvh, 100vh); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; }
.msg-user { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.msg-user .bubble { background: #3182ce; color: #fff; border-radius: 1rem 1rem 0.25rem 1rem; }
.msg-bot { display: flex; justify-content: flex-start; margin-bottom: 0.75rem; }
.msg-bot .bubble { background: #f7fafc; color: #1a202c; border-radius: 1rem 1rem 1rem 0.25rem; }
.bubble { max-width: 80%; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap; }
.msg-shrimp-tag { font-size: 0.6875rem; color: #3182ce; font-weight: 600; margin-bottom: 0.125rem; }
.msg-dispatch { font-size: 0.6875rem; color: #d69e2e; font-weight: 600; margin-bottom: 0.125rem; }
.chat-input-bar { padding: 0.75rem; background: #fff; border-top: 1px solid #e2e8f0; display: flex; gap: 0.5rem; }
.chat-input { flex: 1; padding: 0.625rem 0.875rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; font-size: 0.875rem; outline: none; }
.chat-input:focus { border-color: #3182ce; }
.chat-send-btn { padding: 0.625rem 1.25rem; background: #3182ce; color: #fff; border: none; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.chat-send-btn:disabled { background: #a0aec0; }

/* 画像表单 */
.form-section { padding: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: #4a5568; margin-bottom: 0.375rem; display: block; }
.form-input, .form-select { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; font-size: 0.875rem; outline: none; }
.form-input:focus, .form-select:focus { border-color: #3182ce; }
.btn-primary { width: 100%; padding: 0.875rem; background: #3182ce; color: #fff; border: none; border-radius: 0.75rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.btn-primary:disabled { background: #a0aec0; }

/* 打卡 */
.checkin-card { margin: 0.75rem; padding: 1rem; background: #fff; border-radius: 1rem; border: 1px solid #e2e8f0; }

/* 达人列表 */
.inf-card { display: flex; align-items: center; padding: 1rem; border-bottom: 1px solid #e2e8f0; }
.inf-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 0.75rem; }
.inf-info { flex: 1; }
.inf-name { font-weight: 600; font-size: 0.9rem; }
.inf-fans { font-size: 0.75rem; color: #718096; }
.inf-intro { font-size: 0.75rem; color: #718096; margin-top: 0.125rem; }
.follow-btn { padding: 0.375rem 0.875rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; border: none; }
.follow-btn-active { background: #e2e8f0; color: #4a5568; }
.follow-btn-inactive { background: #3182ce; color: #fff; }

/* 产品 */
.product-card { margin: 0.75rem; padding: 1rem; background: #fff; border-radius: 1rem; border: 1px solid #e2e8f0; display: flex; gap: 0.75rem; }
.product-img { width: 5rem; height: 5rem; border-radius: 0.75rem; background: #f0f4f8; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.product-info { flex: 1; }
.product-name { font-weight: 600; font-size: 0.875rem; }
.product-price { color: #e53e3e; font-weight: 700; font-size: 1rem; margin-top: 0.25rem; }
.product-desc { font-size: 0.75rem; color: #718096; margin-top: 0.25rem; }

/* 升级表单 */
.upgrade-section { padding: 1rem; }
.threshold-info { background: #fffbeb; border: 1px solid #ecc94b; border-radius: 0.75rem; padding: 0.75rem; margin-bottom: 1rem; font-size: 0.8125rem; color: #744210; }
.threshold-ok { color: #38a169; font-size: 0.8125rem; font-weight: 600; }
.threshold-fail { color: #e53e3e; font-size: 0.8125rem; font-weight: 600; }

/* 管理后台 */
.admin-page { max-width: 100%; background: #f0f4f8; }
.stat-card { background: #fff; border-radius: 0.75rem; padding: 1rem; text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: #1a365d; }
.stat-label { font-size: 0.75rem; color: #718096; margin-top: 0.25rem; }
.admin-table { width: 100%; font-size: 0.8125rem; }
.admin-table th { text-align: left; padding: 0.5rem; background: #e2e8f0; font-weight: 600; }
.admin-table td { padding: 0.5rem; border-bottom: 1px solid #e2e8f0; }

/* V1.40: 三级进化链 */
.evo-chain { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0.75rem; margin: 0 1rem 0.75rem; background: #fff; border-radius: 0.75rem; position: relative; overflow: hidden; }
.evo-node { flex: 1; text-align: center; padding: 0.625rem 0.5rem; border-radius: 0.625rem; position: relative; z-index: 1; transition: all 0.3s; min-width: 0; }
.evo-node-active { background: linear-gradient(135deg, #0ea5e9, #38bdf8); box-shadow: 0 4px 12px rgba(14,165,233,0.35); }
.evo-node-pending { background: #f1f5f9; border: 1.5px dashed #cbd5e1; }
.evo-node-future { background: #f8fafc; border: 1.5px dashed #e2e8f0; opacity: 0.6; }
.evo-icon { font-size: 1.25rem; margin-bottom: 0.125rem; }
.evo-title { font-size: 0.7rem; font-weight: 700; margin-bottom: 0.0625rem; }
.evo-active-title { color: #fff; }
.evo-pending-title { color: #334155; }
.evo-future-title { color: #94a3b8; }
.evo-desc { font-size: 0.5625rem; line-height: 1.35; }
.evo-active-desc { color: rgba(255,255,255,0.85); }
.evo-pending-desc { color: #64748b; }
.evo-future-desc { color: #94a3b8; }
.evo-arrow { font-size: 1rem; color: #cbd5e1; z-index: 1; flex-shrink: 0; padding: 0 0.125rem; }
.evo-arrow-active { color: #0ea5e9; }
.evo-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.5625rem; font-weight: 600; margin-top: 0.25rem; }
.evo-badge-current { background: rgba(255,255,255,0.3); color: #fff; }
.evo-badge-building { background: #e2e8f0; color: #475569; }
.evo-badge-planned { background: #f1f5f9; color: #94a3b8; }
.evo-indicator { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.375rem; font-size: 0.5625rem; }
.evo-indicator-active { color: rgba(255,255,255,0.9); }
.evo-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.evo-dot-active { background: #fff; animation: pulse 1.4s infinite; }
.evo-dot-pending { background: #94a3b8; }

/* 加载动画 */
.loading-dots { display: inline-flex; gap: 0.25rem; }
.loading-dots span { width: 0.5rem; height: 0.5rem; background: #3182ce; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; }
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* V1.66: 真流式打字光标 */
.stream-caret { display: inline-block; color: #3182ce; font-weight: 700; animation: caretBlink 0.9s steps(1) infinite; margin-left: 1px; }
@keyframes caretBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }

/* V1.32: 语音按钮 & 动画 */
.btn-voice { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-voice:hover { background: linear-gradient(135deg, #d97706, #b45309); transform: scale(1.05); }
.btn-recording { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.6); } 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239,68,68,0); } }

/* V1.32: 数据分级标签 */
.tier-badge-local { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-size: 0.625rem; }
.tier-badge-encrypted { background: #ede9fe; color: #7c3aed; padding: 1px 6px; border-radius: 4px; font-size: 0.625rem; }

/* details/summary 折叠面板 */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ═══ V1.38: 动画 ═══ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 75%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes floatPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ═══ V1.47.4补充: 总管球弹窗动画（demo风格: 缩放淡入） ═══ */
.boss-popup-enter-active { transition: transform 0.25s ease-out, opacity 0.25s ease-out; }
.boss-popup-leave-active { transition: transform 0.15s ease-in, opacity 0.15s ease-in; }
.boss-popup-enter-from { transform: scale(0.85) translateY(10px); opacity: 0; }
.boss-popup-leave-to { transform: scale(0.85); opacity: 0; }

/* ═══ V1.37: 对话优先界面改造 ═══ */

/* 粉丝运营对话窗口 */
.fo-chat-container { display: flex; flex-direction: column; height: 100%; }
.fo-chat-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fo-chat-body::-webkit-scrollbar { width: 4px; }
.fo-chat-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* 虾消息气泡 */
.chat-bubble-shrimp { max-width: 85%; background: #f1f5f9; border-radius: 10px 10px 10px 2px; padding: 0.625rem 0.75rem; font-size: 0.8125rem; color: #334155; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* 用户消息气泡 */
.chat-bubble-user { max-width: 85%; background: linear-gradient(135deg, #0ea5e9, #38bdf8); border-radius: 10px 10px 2px 10px; padding: 0.625rem 0.75rem; font-size: 0.8125rem; color: #fff; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* 指标卡片点击态 */
.fo-metric-card { padding: 0.5rem; cursor: pointer; text-align: center; border-radius: 8px; transition: all 0.15s; }
.fo-metric-card:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.fo-metric-card:active { transform: scale(0.97); }

/* 底部功能栏 */
.fo-bottom-bar { display: flex; border-top: 1px solid #e2e8f0; background: #fff; padding: 0.375rem 0.5rem; padding-bottom: max(0.375rem, env(safe-area-inset-bottom)); }
.fo-bottom-item { flex: 1; text-align: center; cursor: pointer; padding: 0.25rem 0; transition: all 0.15s; }
.fo-bottom-item:hover { color: #0ea5e9; }
.fo-bottom-item:active { transform: scale(0.95); }
.fo-bottom-item-icon { font-size: 1.25rem; margin-bottom: 0.125rem; }
.fo-bottom-item-label { font-size: 0.625rem; color: #64748b; }

/* 确认按钮组 */
.fo-confirm-btns { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.fo-confirm-btns button { border-radius: 8px; padding: 6px 16px; font-size: 0.75rem; cursor: pointer; border: none; }

/* 对话输入栏 */
.fo-input-bar { padding: 0.5rem 0.75rem; background: #fff; border-top: 1px solid #e2e8f0; display: flex; gap: 0.5rem; align-items: center; }
.fo-input { flex: 1; border: none; outline: none; background: #f1f5f9; border-radius: 20px; padding: 8px 16px; font-size: 0.8125rem; }
.fo-send-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.15s; }
.fo-send-btn:hover { transform: scale(1.08); }
.fo-send-btn:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }
.fo-send-btn:disabled:hover { transform: none; }

/* ═══ V1.44 粉丝窗口·小明神奇之旅 ═══ */
.fan-window { background: #f8fafc; padding-bottom: 0; }
/* 五幕进度条 */
.fw-progress { display: flex; justify-content: space-around; padding: 0.625rem 0.5rem; background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 48px; z-index: 40; }
.fw-progress-dot { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; opacity: 0.4; transition: all 0.3s; }
.fw-progress-done { opacity: 0.8; }
.fw-progress-active { opacity: 1; transform: scale(1.1); }
.fw-dot-icon { font-size: 1.25rem; }
.fw-dot-label { font-size: 0.5625rem; font-weight: 600; color: #64748b; }
.fw-progress-active .fw-dot-label { color: #6366f1; }
/* V1.46.3: 顶部导航8项 */
.fw-top-nav { display: flex; justify-content: space-around; align-items: center; padding: 0.5rem 0.25rem; background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 48px; z-index: 40; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0.125rem; }
.fw-top-nav::-webkit-scrollbar { display: none; }
.fw-top-nav-item { display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; padding: 0.25rem 0.375rem; border-radius: 8px; transition: all 0.2s; flex-shrink: 0; opacity: 0.55; }
.fw-top-nav-item:active { background: #f1f5f9; }
.fw-top-nav-active { opacity: 1; background: #eef2ff; }
.fw-top-nav-active span:last-child { color: #6366f1; font-weight: 700; }
/* 测评弹窗 */
.fw-assessment-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.fw-assessment-card { background: #fff; border-radius: 16px; padding: 1.25rem; max-width: 360px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: fadeIn 0.3s; }
.fw-quiz-q { font-weight: 600; font-size: 0.8125rem; color: #334155; margin-bottom: 0.375rem; }
.fw-quiz-opt { padding: 6px 14px; border-radius: 20px; border: 1px solid #e2e8f0; background: #fff; font-size: 0.75rem; cursor: pointer; transition: all 0.15s; }
.fw-quiz-opt:hover { border-color: #6366f1; }
.fw-quiz-opt-sel { background: #6366f1; color: #fff; border-color: #6366f1; }
/* 达人卡片 */
.fw-influencer-card { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem; background: #fff; border-radius: 12px; margin-bottom: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.fw-inf-avatar { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.fw-inf-body { flex: 1; min-width: 0; }
.fw-tag { padding: 3px 10px; border-radius: 12px; font-size: 0.6875rem; background: #f1f5f9; color: #64748b; border: none; cursor: pointer; }
.fw-tag-active { background: #eef2ff; color: #6366f1; font-weight: 600; }
.fw-follow-btn { padding: 6px 14px; border-radius: 8px; border: 1px solid #6366f1; background: #fff; color: #6366f1; font-size: 0.75rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fw-follow-btn-done { background: #6366f1; color: #fff; }
/* V1.46.6: 达人工作台三段式 */
.inf-data-bar { display: flex; max-width: 480px; margin: 0 auto; background: linear-gradient(135deg, #1e40af, #3b82f6); padding: 0.625rem 0.5rem; }
.inf-data-item { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.inf-data-num { font-size: 0.9375rem; font-weight: 800; color: #fff; }
.inf-data-label { font-size: 0.5625rem; color: rgba(255,255,255,0.75); margin-top: 2px; }
.inf-section { max-width: 480px; margin: 0 auto; padding: 0.75rem 1rem; }
.inf-section-title { font-size: 0.9375rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.375rem; }
.inf-section-sub { font-size: 0.6875rem; color: #64748b; font-weight: 400; }
.fan-meet-card { background: linear-gradient(135deg, #fef3c7, #fef9e7); border-radius: 14px; margin: 0 1rem 0.75rem; padding: 0.75rem; border: 1px solid #fde68a; max-width: 448px; }
.fan-meet-status { font-size: 0.75rem; font-weight: 600; color: #92400e; margin-bottom: 0.5rem; background: rgba(255,255,255,0.6); padding: 0.25rem 0.5rem; border-radius: 6px; display: inline-block; }
.fan-meet-body { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 0.625rem; }
.fan-meet-item { font-size: 0.75rem; color: #78350f; line-height: 1.5; }
.fan-meet-actions { display: flex; gap: 0.5rem; }
.fan-meet-btn { flex: 1; padding: 0.5rem 0.25rem; border-radius: 10px; border: none; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
/* V1.46.7: 达人端剧场式布局 */
.inf-ops-bar { max-width: 480px; margin: 0 auto; padding: 0.625rem 1rem; background: #fff; border-bottom: 1px solid #f1f5f9; }
.inf-ops-bar-label { font-size: 0.75rem; font-weight: 700; color: #1e293b; margin-bottom: 0.375rem; }
.inf-ops-bar-items { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.inf-ops-chip { display: flex; flex-direction: column; align-items: center; padding: 0.375rem 0.5rem; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.15s; min-width: 3.5rem; }
.inf-ops-chip:hover { background: #eef2ff; border-color: #c7d2fe; }
/* V1.48.1 变更2: 五师战场横排大卡（横向滑动，每张一句"今天该干嘛"） */
.inf-scene-area { max-width: 480px; margin: 0 auto; padding: 0.625rem 1rem; display: flex; flex-direction: row; gap: 0.625rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.inf-scene-area::-webkit-scrollbar { display: none; }
.inf-scene-card { flex: 0 0 80%; min-width: 240px; scroll-snap-align: center; border-radius: 14px; padding: 0.75rem; border: 1px solid; }
.scene-meet { background: linear-gradient(135deg, #fef3c7, #fef9e7); border-color: #fde68a; }
.scene-create { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-color: #c7d2fe; }
.inf-scene-header { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.5rem; }
.inf-scene-title { font-size: 0.9375rem; font-weight: 800; color: #1e293b; }
.inf-scene-tag { font-size: 0.5625rem; font-weight: 600; color: #92400e; background: rgba(255,255,255,0.6); padding: 0.125rem 0.375rem; border-radius: 6px; margin-left: auto; }
.scene-create .inf-scene-tag { color: #4338ca; }
.inf-scene-body { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 0.625rem; }
.inf-scene-item { font-size: 0.75rem; color: #78350f; line-height: 1.5; }
.scene-create .inf-scene-item { color: #3730a3; }
.inf-scene-actions { display: flex; gap: 0.5rem; }
.inf-scene-btn { flex: 1; padding: 0.5rem 0.25rem; border-radius: 10px; border: none; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
/* V1.48.2: 五师界面卡配色（导航卡点入的完整页，一师一色） */
.scene-promote { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.scene-promote .inf-scene-item { color: #1e40af; }
.scene-fanops { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.scene-fanops .inf-scene-item { color: #166534; }
.scene-biz { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.scene-biz .inf-scene-item { color: #92400e; }
.scene-match { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border-color: #f9a8d4; }
.scene-match .inf-scene-item { color: #9d174d; }
.scene-promote .inf-scene-btn { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.scene-fanops .inf-scene-btn { background: linear-gradient(135deg, #10b981, #059669); }
.scene-match .inf-scene-btn { background: linear-gradient(135deg, #ec4899, #db2777); }
/* V1.46.9: 4虾加工建议区 */
.v9-boss-advice { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; background: linear-gradient(135deg, #1e293b, #334155); border-bottom: 1px solid rgba(251,191,36,0.2); }
.v9-shrimp-grid { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.625rem 1rem; background: #fff; border-bottom: 1px solid #f1f5f9; }
.v9-shrimp-card { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-radius: 10px; padding: 0.625rem; border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.15s; }
.v9-shrimp-card:hover { border-color: #c7d2fe; background: linear-gradient(135deg, #eef2ff, #f5f3ff); }
.v9-shrimp-card:active { transform: scale(0.98); }
.v9-shrimp-header { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.375rem; }
.v9-shrimp-name { font-size: 0.6875rem; font-weight: 700; color: #1e293b; }
.v9-shrimp-output { font-size: 0.625rem; color: #475569; line-height: 1.45; }
.v9-shrimp-basis { font-size: 0.5625rem; color: #7c3aed; margin-top: 0.375rem; padding: 0.25rem 0.375rem; background: rgba(124,58,237,0.06); border-radius: 6px; line-height: 1.4; }
.v9-shrimp-hint { font-size: 0.5rem; color: #94a3b8; margin-top: 0.25rem; }
.v9-shrimp-empty { max-width: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 1rem; background: #fff; border-bottom: 1px solid #f1f5f9; }
.scene-create .inf-scene-btn { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.creation-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: rgba(255,255,255,0.7); border-radius: 8px; margin-bottom: 0.375rem; }
.creation-publish-btn { font-size: 0.5625rem; padding: 0.25rem 0.5rem; border-radius: 6px; border: none; background: #7c3aed; color: #fff; cursor: pointer; font-weight: 600; white-space: nowrap; }
.creation-publish-btn:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }
.inf-scene-placeholder { text-align: center; padding: 0.625rem; background: #f8fafc; border-radius: 10px; border: 1px dashed #cbd5e1; }
/* V1.46.10: Toast 动画 */
.toast-fade-enter-active, .toast-fade-leave-active { transition: opacity 0.3s, transform 0.3s; }
.toast-fade-enter-from, .toast-fade-leave-to { opacity: 0; transform: translateX(-50%) translateY(10px); }
.inf-redbook-entry { max-width: 448px; margin: 0 auto 0.75rem; display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; background: linear-gradient(135deg, #fff1f2, #fff7f8); border-radius: 14px; border: 1px solid #fecdd3; cursor: pointer; transition: transform 0.15s; }
.inf-redbook-entry:hover { transform: translateY(-1px); }
/* 权益卡片 */
.fw-benefit-card { background: #fff; border-radius: 10px; padding: 0.625rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.15s; }
.fw-benefit-card:hover { transform: translateY(-2px); }
/* 任务项 */
.fw-task-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem; background: #fff; border-radius: 10px; margin-bottom: 0.375rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.fw-task-done { opacity: 0.6; }
/* Toast */
.fw-toast { padding: 0.625rem 0.75rem; border-radius: 10px; font-size: 0.75rem; text-align: center; }
/* 社群卡片 */
.fw-community-card { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; background: #fff; border-radius: 10px; margin-bottom: 0.375rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
/* 活动卡片 */
.fw-event-card { display: flex; align-items: flex-start; padding: 0.625rem 0.75rem; background: #fff; border-radius: 10px; margin-bottom: 0.375rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
/* 底部导航栏 */
.fw-bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 480px; width: 100%; background: #fff; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-around; align-items: center; padding: 6px 0.25rem; padding-bottom: max(6px, env(safe-area-inset-bottom)); z-index: 50; }
.fw-bottom-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 6px; cursor: pointer; border-radius: 8px; transition: all 0.15s; flex: 1; max-width: 55px; }
.fw-bottom-tab-active { background: #eef2ff; }
.fw-bottom-tab-active span:last-child { color: #6366f1; font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
/* V1.46: 四虾护航栏 */
.four-shrimp-section { margin-top: 0.75rem; }
.four-shrimp-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.625rem; color: #334155; text-align: center; }
.four-shrimp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.four-shrimp-card { background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid #e0e7ff; border-radius: 12px; padding: 0.625rem; cursor: pointer; transition: all 0.2s; text-align: center; }
.four-shrimp-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.15); border-color: #c7d2fe; }
.four-shrimp-card:active { transform: scale(0.97); }
.four-shrimp-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.four-shrimp-name { font-weight: 700; font-size: 0.8125rem; color: #1e293b; margin-bottom: 0.125rem; }
.four-shrimp-role { font-size: 0.6875rem; color: #64748b; margin-bottom: 0.375rem; }
.four-shrimp-hint { font-size: 0.625rem; color: #6366f1; font-style: italic; background: rgba(99,102,241,0.08); border-radius: 6px; padding: 3px 6px; }

/* ═══ V1.46: 共享达人平台 ═══ */
.expert-platform { background: #faf5ff; }

/* 看板数据栏 */
.ep-stats-bar { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0.375rem; padding: 0.625rem 0.75rem; background: linear-gradient(135deg, #7c3aed, #c026d3); }
.ep-stat-item { text-align: center; background: rgba(255,255,255,0.15); border-radius: 10px; padding: 0.5rem 0.25rem; }
.ep-stat-icon { font-size: 1.25rem; }
.ep-stat-num { font-size: 1rem; font-weight: 800; color: #fff; margin-top: 0.125rem; }
.ep-stat-label { font-size: 0.5625rem; color: rgba(255,255,255,0.8); }

/* Tab 导航 */
.ep-tab-bar { display: flex; background: #fff; border-bottom: 1px solid #e9d5ff; position: sticky; top: 48px; z-index: 40; }
.ep-tab { flex: 1; text-align: center; padding: 0.625rem 0.5rem; font-size: 0.8125rem; font-weight: 600; color: #94a3b8; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.ep-tab-active { color: #7c3aed; border-bottom-color: #7c3aed; background: #faf5ff; }
.ep-tab-publish { color: #c026d3; font-weight: 700; }

/* 筛选标签 */
.ep-filter-tag { padding: 5px 14px; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; font-size: 0.6875rem; color: #64748b; cursor: pointer; transition: all 0.15s; }
.ep-filter-active { background: #7c3aed; color: #fff; border-color: #7c3aed; }

/* 达人卡片 */
.ep-expert-card { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem; background: #fff; border-radius: 14px; margin-bottom: 0.5rem; box-shadow: 0 1px 4px rgba(124,58,237,0.06); cursor: pointer; transition: all 0.2s; }
.ep-expert-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(124,58,237,0.12); }
.ep-expert-card:active { transform: scale(0.98); }
.ep-expert-avatar { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #f3e8ff, #e9d5ff); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; flex-shrink: 0; }
.ep-expert-body { flex: 1; min-width: 0; }
.ep-expert-go { font-size: 1.125rem; color: #c4b5fd; flex-shrink: 0; }
.ep-mini-tag { padding: 1px 8px; border-radius: 10px; font-size: 0.5625rem; background: #f3e8ff; color: #7c3aed; }

/* 动态列表 */
.ep-feed-publish-entry { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; background: #fff; border-radius: 12px; margin-bottom: 0.625rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.15s; }
.ep-feed-publish-entry:active { transform: scale(0.98); }
.ep-feed-card { background: #fff; border-radius: 14px; padding: 0.75rem; margin-bottom: 0.625rem; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.ep-feed-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.ep-feed-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ddd6fe, #c4b5fd); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.ep-feed-text { font-size: 0.8125rem; color: #1e293b; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ep-feed-img { width: 60px; height: 60px; border-radius: 10px; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.ep-feed-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.625rem; color: #7c3aed; background: #f3e8ff; margin-top: 0.375rem; cursor: pointer; }
.ep-feed-actions { display: flex; gap: 0.75rem; margin-top: 0.625rem; padding-top: 0.5rem; border-top: 1px solid #f1f5f9; }
.ep-action { font-size: 0.75rem; color: #64748b; cursor: pointer; display: flex; align-items: center; gap: 0.25rem; transition: all 0.15s; }
.ep-action:hover { color: #7c3aed; }
.ep-action:active { transform: scale(0.95); }
.ep-action-liked { color: #ec4899; }
.ep-badge-work { font-size: 0.5625rem; padding: 1px 6px; border-radius: 8px; background: #dbeafe; color: #2563eb; margin-left: 0.25rem; }
.ep-badge-dynamic { font-size: 0.5625rem; padding: 1px 6px; border-radius: 8px; background: #fef3c7; color: #d97706; margin-left: 0.25rem; }

/* 评论 */
.ep-comment-list { margin-top: 0.5rem; padding: 0.5rem; background: #f8fafc; border-radius: 10px; }
.ep-comment-item { display: flex; gap: 0.375rem; margin-bottom: 0.375rem; align-items: flex-start; }
.ep-comment-item:last-child { margin-bottom: 0; }
.ep-comment-avatar { font-size: 1rem; flex-shrink: 0; }
.ep-comment-input-area { display: flex; gap: 0.375rem; margin-top: 0.5rem; }
.ep-comment-send { padding: 0.375rem 0.875rem; border-radius: 8px; border: none; background: #7c3aed; color: #fff; cursor: pointer; font-weight: 600; }

/* 达人主页 */
.ep-back-bar { padding: 0.5rem 0.75rem; font-size: 0.8125rem; color: #7c3aed; cursor: pointer; background: #fff; border-bottom: 1px solid #f3e8ff; }
.ep-back-bar:active { background: #faf5ff; }
.ep-expert-profile { display: flex; gap: 0.75rem; padding: 1rem; background: linear-gradient(135deg, #faf5ff, #f3e8ff); }
.ep-profile-avatar { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.25rem; flex-shrink: 0; box-shadow: 0 2px 8px rgba(124,58,237,0.1); }
.ep-profile-info { flex: 1; min-width: 0; }

/* 课程卡片 */
.ep-course-card { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem; background: #fff; border-radius: 12px; margin-bottom: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.2s; }
.ep-course-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(124,58,237,0.1); }
.ep-course-card:active { transform: scale(0.98); }
.ep-course-icon { width: 40px; height: 40px; border-radius: 10px; background: #f3e8ff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.ep-course-body { flex: 1; min-width: 0; }
.ep-follow-btn { padding: 6px 12px; border-radius: 8px; border: none; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; font-size: 0.6875rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }

/* 课程跟练 */
.ep-follow-container { padding: 1rem; }
.ep-follow-course-info { background: #fff; border-radius: 14px; padding: 1.5rem 1rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.ep-timer-area { display: flex; justify-content: center; padding: 2rem 0; }
.ep-timer-circle { position: relative; width: 120px; height: 120px; }
.ep-timer-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ep-follow-done { text-align: center; animation: fadeIn 0.5s; }
.ep-skip-btn { padding: 0.625rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 0.8125rem; cursor: pointer; }

/* 发布作品 */
.ep-publish-tag-area { margin-bottom: 0.625rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.ep-select-expert { padding: 5px 12px; border-radius: 16px; border: 1px solid #e9d5ff; background: #fff; font-size: 0.6875rem; color: #7c3aed; cursor: pointer; }
.ep-select-expert:hover { background: #faf5ff; }
.ep-img-preview { position: relative; width: 56px; height: 56px; border-radius: 10px; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; }
.ep-img-remove { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 0.5625rem; display: flex; align-items: center; justify-content: center; }
.ep-add-img { padding: 0; width: 56px; height: 56px; border-radius: 10px; border: 1.5px dashed #c4b5fd; background: #faf5ff; color: #7c3aed; font-size: 0.5625rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ep-add-img:hover { border-color: #7c3aed; background: #f3e8ff; }

/* 总管对话框（浮动） */
.ep-chat-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; cursor: pointer; z-index: 200; box-shadow: 0 4px 20px rgba(124,58,237,0.4); animation: chatPulse 2s infinite; transition: transform 0.2s; }
.ep-chat-fab:active { transform: scale(0.9); }
@keyframes chatPulse { 0%, 100% { box-shadow: 0 4px 20px rgba(124,58,237,0.4); } 50% { box-shadow: 0 4px 30px rgba(124,58,237,0.6); } }

.ep-chat-panel { position: fixed; bottom: 0; right: 0; left: 0; max-width: 480px; margin: 0 auto; height: 70vh; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,0.15); z-index: 200; display: flex; flex-direction: column; animation: slideUp 0.3s; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.ep-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: linear-gradient(135deg, #7c3aed, #c026d3); border-radius: 20px 20px 0 0; color: #fff; }
.ep-chat-close { font-size: 1.25rem; cursor: pointer; opacity: 0.8; }
.ep-chat-close:active { opacity: 1; }

.ep-chat-body { flex: 1; overflow-y: auto; padding: 0.75rem; -webkit-overflow-scrolling: touch; }
.ep-chat-body::-webkit-scrollbar { width: 3px; }
.ep-chat-body::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 2px; }

.ep-chat-msg { display: flex; margin-bottom: 0.625rem; }
.ep-chat-msg-user { justify-content: flex-end; }
.ep-chat-msg-bot { justify-content: flex-start; }
.ep-chat-bubble { max-width: 80%; padding: 0.625rem 0.875rem; border-radius: 14px; font-size: 0.75rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ep-chat-msg-user .ep-chat-bubble { background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; border-radius: 14px 14px 2px 14px; }
.ep-chat-msg-bot .ep-chat-bubble { background: #f3e8ff; color: #1e293b; border-radius: 14px 14px 14px 2px; }
.ep-chat-typing { opacity: 0.6; font-style: italic; }

.ep-chat-quick { display: flex; gap: 0.375rem; padding: 0.375rem 0.75rem; flex-wrap: wrap; }
.ep-chat-quick button { padding: 4px 12px; border-radius: 16px; border: 1px solid #e9d5ff; background: #faf5ff; font-size: 0.6875rem; color: #7c3aed; cursor: pointer; }
.ep-chat-quick button:active { transform: scale(0.95); }

.ep-chat-input-area { display: flex; gap: 0.375rem; padding: 0.625rem 0.75rem; padding-bottom: max(0.625rem, env(safe-area-inset-bottom)); border-top: 1px solid #f3e8ff; }
.ep-chat-input { flex: 1; padding: 0.5rem 0.875rem; border: 1px solid #e9d5ff; border-radius: 20px; font-size: 0.75rem; outline: none; background: #faf5ff; color: #1e293b; }
.ep-chat-input:focus { border-color: #7c3aed; background: #fff; }
.ep-chat-send { padding: 0.5rem 1rem; border-radius: 20px; border: none; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.ep-chat-send:disabled { opacity: 0.5; }

/* ═══ V1.46.1: 近期安排 / 近日动向 ═══ */
.ep-schedule-card { background: #fff; border-radius: 12px; padding: 0.75rem; margin-bottom: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; }
.ep-schedule-icon { font-size: 1.5rem; flex-shrink: 0; }
.ep-schedule-type { font-size: 0.5625rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.ep-dynamic-card { background: #fff; border-radius: 12px; padding: 0.75rem; margin-bottom: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; }
.ep-dynamic-icon { font-size: 1.5rem; flex-shrink: 0; }
.ep-view-detail { font-size: 0.625rem; color: #7c3aed; font-weight: 600; cursor: pointer; margin-top: 0.5rem; padding: 0.25rem 0; border-top: 1px dashed #e9d5ff; }
.ep-view-detail:active { opacity: 0.6; }

/* ═══ V1.46.1: 模拟社媒页面 ═══ */
.ep-social-switch { display: flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0.625rem; border-radius: 20px; border: 1px solid #fde68a; background: #fff; cursor: pointer; }
.ep-social-switch:active { transform: scale(0.95); }
.ep-social-waterfall { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ep-social-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.ep-social-cover { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; }
.ep-social-play { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.625rem; padding: 2px 6px; border-radius: 10px; }
.ep-social-body { padding: 0.5rem; }
.ep-social-action { font-size: 0.6875rem; color: #64748b; cursor: pointer; user-select: none; }
.ep-social-action:active { transform: scale(0.95); }
.ep-social-liked { color: #ef4444; }
.ep-social-comments { padding: 0.5rem; border-top: 1px solid #f5f5f5; }
.ep-social-comment { display: flex; gap: 0.375rem; margin-bottom: 0.375rem; }
.ep-social-comment-avatar { font-size: 1rem; flex-shrink: 0; }
.ep-social-comment-input { display: flex; gap: 0.375rem; margin-top: 0.5rem; }

/* V1.46.2: 四虾弹窗 */
.shrimp-popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.shrimp-popup-box { background: white; border-radius: 16px; padding: 1.5rem; width: 100%; max-width: 340px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); animation: popIn 0.25s ease; }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.shrimp-popup-header { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 0.5rem; }
.shrimp-popup-close { position: absolute; right: 0; top: 0; font-size: 1.25rem; color: #94a3b8; cursor: pointer; padding: 0.25rem; }

/* V1.46.2: 统一总管对话（粉丝窗口浮层） */
.unified-chat-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.unified-chat-box { background: white; width: 100%; max-width: 420px; height: 75vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; animation: slideUp 0.25s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.unified-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: linear-gradient(135deg,#7c3aed,#c026d3); color: white; border-radius: 16px 16px 0 0; }
.unified-chat-close { font-size: 1.25rem; cursor: pointer; opacity: 0.8; }
.unified-chat-body { flex: 1; overflow-y: auto; padding: 0.75rem; background: #f8fafc; }
.unified-chat-msg { margin-bottom: 0.625rem; display: flex; }
.unified-chat-msg-user { justify-content: flex-end; }
.unified-chat-msg-bot { justify-content: flex-start; }
.unified-chat-bubble { max-width: 80%; padding: 0.5rem 0.75rem; border-radius: 12px; font-size: 0.8125rem; white-space: pre-wrap; line-height: 1.5; }
.unified-chat-msg-user .unified-chat-bubble { background: #7c3aed; color: white; border-bottom-right-radius: 4px; }
.unified-chat-msg-bot .unified-chat-bubble { background: white; color: #1e293b; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.unified-chat-typing { color: #94a3b8; font-style: italic; }
.unified-chat-quick { display: flex; gap: 0.375rem; padding: 0.5rem 0.75rem; flex-wrap: wrap; border-top: 1px solid #e2e8f0; }
.unified-chat-quick button { padding: 0.25rem 0.625rem; border-radius: 16px; border: 1px solid #d8b4fe; background: #faf5ff; color: #7c3aed; font-size: 0.6875rem; cursor: pointer; }
.unified-chat-input-area { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid #e2e8f0; background: white; }
.unified-chat-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.8125rem; outline: none; }
.unified-chat-input:focus { border-color: #7c3aed; }
.unified-chat-send { padding: 0.5rem 1rem; background: #7c3aed; color: white; border: none; border-radius: 10px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.unified-chat-send:disabled { opacity: 0.5; }


/* V1.51 方案C补丁: 作品操作菜单（底部弹出） */
.work-menu-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 1100; display: flex; align-items: flex-end; justify-content: center; }
.work-menu { width: 100%; max-width: 420px; background: #fff; border-radius: 16px 16px 0 0; padding: 1rem 0.875rem 1.75rem; animation: slideUp 0.25s ease; }
.work-menu-item { background: #f8fafc; border-radius: 12px; padding: 0.75rem 0.375rem; text-align: center; cursor: pointer; }
.work-menu-item:active { background: #f1f5f9; }

/* V1.57 健康台浮层动画 */
@keyframes healthUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ═══ V2.83（2026-09-21 用户令）：输入框"边输边长"的配套修复 ═══
   凡是「满屏高等分列（flex column）」里的滚动消息区，都必须允许被压到内容高度以下：
   flex 子项默认 min-height:auto —— 不肯压缩，于是输入框一长高，整条输入栏
   （连右边的"发送"键）会被顶出屏幕底下，最后一行也看不见（用户实测截图就是这个）。
   同类容器一并修，不只修总管这一处。 */
.assistant-msgs-box, .chat-messages, .unified-chat-body, .chat-msg-list,
.manager-chat-body, .health-chat-msgs, .scene-chat-msgs { min-height: 0; }

/* ═══ V2.94（2026-09-21 看图发现的粗糙）═══
   输入框提示语一行放不下会折成两行，而框高只有一行 ⇒ 第二行被裁掉半截（截图里"（打 @ 就能上…"
   只露一截）。这里给 placeholder 上 nowrap + 省略号：宁可尾巴打…，也不许出现半截字。 */
.ub-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══ ★ V4.60（2026-10-28）二级房间拨盘的滑入 = 拨一下要有回音 ═══
   用户铁律「操作没有反馈＝功能坏了」：拨一格必须有位移感，只换个高亮人是察觉不到的。
   往左拨（看右边一格）内容从右滑进来，往右拨反过来 —— 方向跟手指走，手感才对。
   回滚：删掉这三条即可，不影响任何逻辑。 */
@keyframes hrRoomInL { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform:none; } }
@keyframes hrRoomInR { from { opacity:0; transform: translateX(-30px); } to { opacity:1; transform:none; } }
.hr-in-l { animation: hrRoomInL .2s ease-out; }
.hr-in-r { animation: hrRoomInR .2s ease-out; }

/* ═══ ★ V4.233（2026-11-12 夜班·工单 D1110-06 赵国伟 商品维护台）═══
   蓝色总管浮球默认停在屏幕右中，球身 + 四周 16px 透明热区会盖住商品行最右边那颗
   「下架/上架」键 —— 实测真点键心，落点是球（弹出转盘，商品没下架）。
   治法：这一组键右侧让出 72px（球径 56 + 12 边距 ≈ 68，再留 4px 余量），并允许组内换行
   —— 320 屏 + 大字时四颗键本来就塞不进球左边那点宽度，硬挤就会整排压到球下；
   换行后每行仍右对齐，逐行都落在球左边。球的横坐标是按 px 算的（innerWidth-40 再减
   半径 28 ⇒ 球左沿恒在 innerWidth-68），所以让位也用 px，不随根字号缩放。
   桌面宽屏照旧一行、只是最右多一条 72px 窄缝，不影响任何点击。 */
.shop-row-keys { margin-right: 72px; max-width: calc(100% - 72px); flex-wrap: wrap; justify-content: flex-end; row-gap: 0.25rem; }

/* ═══ ★ V4.235（2026-11-12 夜班·工单 D1110-06 赵国伟）═══
   上一版（V4.233）只治了商品行那组键，同一屏还有一个地方被球压着：「✏️修改/上架」面板
   本身是贴在页里的一道卡片，右边缘就在球下面。实测 375 默认字号：商品名称输入框右边缘
   331.3，球身左沿 303、透明热区左沿 287 ⇒ 框被压 28.3px；把框滚到球心高度，点它右端
   6px 处，落点是球（弹出总管转盘，输入框不聚焦），长名字最后几个字也藏在球后看不见。
   桌面 1280 同病（框右沿 1236.3、球身左沿 1208）—— 球永远停在「屏右 72px」这个位置，
   所以让位就按 72px 让，且不分屏宽一律生效（卡片右侧多一条 72px 的边，宽屏上几乎看不出）。
   治法：样式从行内搬到这里，右侧 padding = 0.625rem + 72px ⇒ 输入框右沿比热区左沿还往里
   27.7px（375 默认字号量得），点右端落回 INPUT、长名字尾字不再藏在球后。
   不动任何 @click、不动上传/保存/规格逻辑与商品数据。 */
.shop-form-card { margin-top: 0.625rem; border: 1px solid #e0e7ff; border-radius: 10px; padding: 0.625rem; padding-right: calc(0.625rem + 72px); background: #f5f3ff; }

