/* Shared tokens and existing component classes; no business state is defined here. */
:root {
  --color-primary:#B23A0A; --color-primary-soft:#FFEDE5;
  /* V9.2-B UI 2.0 品牌色：熔岩红 / 朝阳橙 / 竹青绿 / 大地棕。
     注意：#FF4E00 对比白字仅 3.31，只作强调色（图标、AI 入口、强调线），不用于白字底。 */
  --color-brand:#FF4E00; --color-brand-soft:#FFEDE5;
  --color-accent:#FFA000; --color-accent-soft:#FFF4E0;
  --color-bamboo:#7CB342; --color-earth:#5D4037;
  --color-background:#FDF8F4; --color-surface:#ffffff;
  --color-text-primary:#2B211D; --color-text-secondary:#6B5A52;
  --color-border:#EFE2DA; --color-warning:#8A5A00; --color-warning-soft:#FFF6E6;
  --color-success:#2F6B2A; --color-success-soft:#EAF3E9;
  --color-danger:#A32A22; --color-danger-soft:#FBE9E7;
  --color-maintenance:#1F6E6E; --color-maintenance-soft:#E6F2F1;
  --radius-card:18px; --radius-button:12px;
  --spacing-xs:4px; --spacing-sm:8px; --spacing-md:16px; --spacing-lg:24px;
  --font-page:24px; --font-section:18px; --font-body:15px; --font-meta:12px;
  --shadow:0 2px 12px rgba(93,64,55,.06);
  /* Compatibility aliases used by the original V8/V9 styles. */
  --bg:var(--color-background); --card:var(--color-surface); --p:var(--color-primary);
  --p2:var(--color-primary); --ink:var(--color-text-primary); --text:var(--color-text-primary);
  --muted:var(--color-text-secondary); --line:var(--color-border); --green:var(--color-success);
}
/* V9.2-B UI 2.0 组件（移动端优先，全部复用既有 Design Tokens） */
body .ui2-greeting {font-size:24px;font-weight:700;line-height:1.3}
body .ui2-slogan {margin:6px 0 14px;font-size:14px;color:var(--color-text-secondary)}
body .ui2-numbers {display:grid;grid-template-columns:repeat(3,1fr);gap:var(--spacing-sm);margin:0 0 var(--spacing-md)}
body .ui2-tile {background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:14px 12px;box-shadow:var(--shadow);text-align:left}
body .ui2-tile b {display:block;font-size:26px;line-height:1.15;color:var(--color-brand);font-variant-numeric:tabular-nums}
body .ui2-tile small {display:block;margin-top:4px;font-size:12px;color:var(--color-text-secondary)}
body .ui2-ai {display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#FFF3EC,#FFFFFF);border:1px solid var(--color-brand-soft);border-radius:var(--radius-card);padding:14px;box-shadow:var(--shadow);margin-bottom:var(--spacing-md)}
body .ui2-ai .dot {flex:0 0 40px;height:40px;border-radius:12px;background:var(--color-brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}
body .ui2-ai .txt {flex:1;min-width:0}
body .ui2-ai strong {display:block;font-size:15px}
body .ui2-ai span {font-size:12px;color:var(--color-text-secondary)}
body .ui2-actions {display:grid;grid-template-columns:repeat(2,1fr);gap:var(--spacing-sm);margin-bottom:var(--spacing-md)}
body .ui2-action {display:flex;flex-direction:column;gap:2px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);padding:14px;text-align:left;box-shadow:var(--shadow);min-height:72px}
body .ui2-action b {font-size:15px}
body .ui2-action span {font-size:12px;color:var(--color-text-secondary)}
body .ui2-action i {font-style:normal;font-size:18px;color:var(--color-accent)}
body .ui2-steps {display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 0}
body .ui2-step {font-size:12px;padding:4px 10px;border-radius:999px;background:var(--color-primary-soft);color:var(--color-primary)}
body .ui2-step.done {background:var(--color-success-soft);color:var(--color-success)}
body .ui2-step.current {background:var(--color-brand);color:#fff}
body .ui2-ai-card {border-left:3px solid var(--color-brand)}
body .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* V9.2-B B1.1 最终 UI：底部导航（AI 中间凸起）、页面 Tabs、筛选 chips、AI 聊天气泡 */
body .nav.nav-ai {position:relative;color:var(--color-brand);font-weight:600}
body .nav.nav-ai i {position:absolute;top:-18px;left:50%;transform:translateX(-50%);width:48px;height:48px;border-radius:50%;
  background:var(--color-brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-style:normal;
  box-shadow:0 6px 16px rgba(255,78,0,.32);border:3px solid var(--color-surface)}
body .nav.nav-ai.on {background:none;color:var(--color-brand)}
body .bottom {padding-top:10px}
body .ui2-chips {display:flex;gap:var(--spacing-sm);overflow-x:auto;padding:2px 0 10px}
body .ui2-chip {flex:0 0 auto;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-secondary);
  border-radius:999px;padding:7px 14px;font-size:13px;min-height:34px}
body .ui2-chip.on {background:var(--color-brand);border-color:var(--color-brand);color:#fff;font-weight:600}
body .ui2-tabs {display:flex;gap:var(--spacing-sm);border-bottom:1px solid var(--color-border);margin-bottom:var(--spacing-md)}
body .ui2-tab {flex:1;background:none;border:0;border-bottom:2px solid transparent;padding:10px 4px;font-size:14px;color:var(--color-text-secondary)}
body .ui2-tab.on {color:var(--color-brand);border-bottom-color:var(--color-brand);font-weight:600}
body .ui2-search {width:100%;display:flex;align-items:center;gap:8px;background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:999px;padding:10px 14px;margin-bottom:10px}
body .ui2-search input {border:0;padding:0;background:transparent;font-size:15px}
body .ui2-chat {display:flex;flex-direction:column;gap:10px;padding:4px 0 12px}
body .ui2-msg {max-width:86%;border-radius:16px;padding:11px 13px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
body .ui2-msg.me {align-self:flex-end;background:var(--color-brand);color:#fff;border-bottom-right-radius:6px}
body .ui2-msg.ai {align-self:flex-start;background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow);border-bottom-left-radius:6px}
body .ui2-msg.sys {align-self:center;background:var(--color-accent-soft);color:var(--color-warning);font-size:13px}
body .ui2-ctx {display:flex;align-items:center;gap:8px;background:var(--color-brand-soft);color:var(--color-primary);
  border-radius:999px;padding:6px 12px;font-size:13px;margin-bottom:8px}
body .ui2-chatbar {position:sticky;bottom:0;display:flex;gap:8px;align-items:center;background:var(--color-surface);
  border:1px solid var(--color-border);border-radius:999px;padding:8px 10px;margin-top:8px}
body .ui2-chatbar textarea {flex:1;border:0;background:transparent;resize:none;max-height:96px;padding:6px 2px;font-size:15px}
body .ui2-row {display:flex;align-items:center;gap:10px;background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-card);padding:12px;box-shadow:var(--shadow);margin-bottom:8px}
html {scroll-padding-bottom:100px}
body {background:var(--color-background);color:var(--color-text-primary);font-size:var(--font-body);line-height:1.55}
body .app {max-width:760px;padding-bottom:calc(104px + env(safe-area-inset-bottom))}
body .page {padding:var(--spacing-md)}
body .top {background:var(--color-surface);color:var(--color-text-primary);box-shadow:none;border-bottom:1px solid var(--color-border);backdrop-filter:none;padding:12px 16px}
body .brand {font-size:18px;font-weight:700;letter-spacing:0}
body .sub {color:var(--color-text-secondary);font-size:var(--font-meta)}
body .brandline {min-width:0;gap:var(--spacing-sm)}
body .logo {flex-shrink:0;width:34px;height:34px;border-radius:var(--radius-button);background:var(--color-primary);box-shadow:none;color:white}
body .top .badge {background:var(--color-primary-soft);color:var(--color-primary);max-width:150px;overflow-wrap:anywhere}
body .card,body .item,body .hero,body .next-card,body .guide-card {
  background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);
  box-shadow:var(--shadow);padding:var(--spacing-md);margin-bottom:var(--spacing-md);color:var(--color-text-primary);
}
body .card .card,body .card .item {box-shadow:none;border-radius:0;border:0;border-top:1px solid var(--color-border);padding:12px 0}
body .item {transition:none}
body .hero:after,body .metric:before {display:none}
body #home .hero {padding:var(--spacing-md)}
body #home .hero h1 {font-size:var(--font-page);font-weight:700;color:var(--color-text-primary);margin:0 0 6px}
body .hero p {color:var(--color-text-secondary);margin-bottom:var(--spacing-md);font-size:13px}
body #home .hero .grid {gap:var(--spacing-sm);margin:20px 0}
body #home button.metric {background:var(--color-primary-soft);border:0;border-radius:var(--radius-card);min-height:110px;padding:12px 8px;color:var(--color-primary);text-align:left}
body #home button.metric:first-child {background:var(--color-warning-soft);color:var(--color-warning)}
body #home button.metric:last-child {background:var(--color-maintenance-soft);color:var(--color-maintenance)}
body #home .metric b {font-size:34px;line-height:1.1;font-weight:700;color:inherit}
body #home .metric small {font-size:12px;color:inherit;line-height:1.5;margin-top:10px}
body #home .hero>.row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body #home .hero>.row .btn {padding:10px 3px;font-size:12px}
body h2,body .summary-card h2 {font-size:var(--font-section);font-weight:650;line-height:1.4;color:var(--color-text-primary)}
body .page-head h2 {font-size:22px}
body .name {font-weight:650}
body .muted,body .reference-status {color:var(--color-text-secondary);font-size:var(--font-meta)}
body .btn,body .back-btn {min-height:44px;padding:10px 14px;border-radius:var(--radius-button);font-size:14px;font-weight:600;background:var(--color-primary-soft);color:var(--color-primary);box-shadow:none;border:1px solid transparent}
body .btn.primary,body .btn.primary.ghost {background:var(--color-primary);color:white;box-shadow:none}
body .btn.ghost,body .btn.secondary,body .back-btn {background:var(--color-primary-soft);color:var(--color-primary)}
body .btn.text {background:transparent;color:var(--color-text-secondary);padding-left:8px;padding-right:8px}
body .btn.danger {background:var(--color-danger-soft);color:var(--color-danger)}
body .btn:disabled {opacity:.55;cursor:wait}
body .btn.full {width:100%}
body :is(button,input,textarea,select,summary):focus-visible {outline:2px solid var(--color-primary);outline-offset:3px}
body input,body textarea,body select {border:1px solid var(--color-border);border-radius:var(--radius-button);color:var(--color-text-primary);padding:12px;font-family:inherit;font-size:16px;min-width:0;max-width:100%;background:var(--color-surface)}
body input:focus,body textarea:focus,body select:focus {border-color:var(--color-primary);box-shadow:none}
body input[type=checkbox],body input[type=radio] {accent-color:var(--color-primary);width:18px;min-width:18px;height:18px}
body label:has(input[type=checkbox]) {min-height:40px;align-content:center}
body textarea {resize:vertical;line-height:1.6}
body .field label {color:var(--color-text-primary);font-size:14px;font-weight:500}
body .badge,body .mini-tag {background:var(--color-primary-soft);color:var(--color-primary);font-size:12px;font-weight:500;border-radius:8px;line-height:1.4}
body .priority-label {background:var(--color-warning-soft);color:var(--color-warning)}
body [data-status=completed] {background:var(--color-success-soft);color:var(--color-success)}
body [data-status=paused],body [data-status=cancelled] {background:var(--color-background);color:var(--color-text-secondary)}
body .task-actions,body .ip-actions {gap:var(--spacing-sm);flex-wrap:wrap}
body .summary-rows {grid-template-columns:84px minmax(0,1fr);font-size:14px;gap:8px 12px}
body .summary-rows dt {color:var(--color-text-secondary)}
body .summary-card [data-readonly] {border-color:var(--color-border)}
body .summary-card>.card {border:0}
body .communication-card {border-left:3px solid var(--color-primary-soft)}
body .communication-card p {margin:8px 0}
body summary {cursor:pointer;min-height:44px;display:list-item;align-content:center;color:var(--color-text-secondary);font-size:14px}
body summary::marker {color:var(--color-primary)}
body .record-history>summary {font-size:var(--font-body);font-weight:500}
body .detail-context {font-size:14px;line-height:1.6;margin:10px 0;color:var(--color-text-secondary)}
body .detail-context p {margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body .detail-context b {font-weight:500;color:var(--color-text-primary)}
body .detail-next-reason {margin:12px 0 8px;font-weight:500}
body .ai,body .guide-tip,body .privacy {background:var(--color-primary-soft);border:1px solid var(--color-border);border-radius:var(--radius-button);color:var(--color-text-primary)}
body .ai strong,body .next-title,body .guide-tip b {color:var(--color-primary)}
body .next-time {background:var(--color-primary-soft);color:var(--color-primary)}
body .upload,body .reference-upload {background:var(--color-background);border:1px dashed var(--color-border);border-radius:var(--radius-button)}
body .quota {background:var(--color-primary-soft);color:var(--color-primary)}
body .generated-img,body .reference-preview {border-radius:var(--radius-card);object-fit:contain}
body #contentProfile {margin-bottom:var(--spacing-sm);scroll-margin-top:90px}
body #contentProfile h2 {margin-top:0;margin-bottom:8px}
body #contentProfile .summary-rows {margin:8px 0;gap:4px 8px;font-size:13px}
body #contentProfile .task-actions {margin:8px 0 0}
body #contentProfileBody>details {margin-top:4px}
body #contentProfileBody>details>summary {font-size:12px;min-height:32px}
body #generateBtn {width:100%;margin:0 0 8px}
body #images>p {margin:0 0 12px}
body #contentProfile fieldset {border-color:var(--color-border);border-radius:var(--radius-button)}
body #contentProfile legend {font-weight:500}
body #itopic {min-height:112px}
body #images>.row>.badge {display:none}
body .release-card {border-left:3px solid var(--color-primary)}
body .release-card p {font-size:14px;line-height:1.6}
body .bottom {bottom:0;width:min(760px,100%);border-radius:0;background:var(--color-surface);border:0;border-top:1px solid var(--color-border);box-shadow:none;backdrop-filter:none;padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
body .nav {min-height:48px;font-size:12px;color:var(--color-text-secondary);border-radius:var(--radius-button)}
body .nav.on {color:var(--color-primary);background:var(--color-primary-soft);font-weight:600}
body .nav b {font-size:20px;font-weight:500}
body .login {background:var(--color-background)}
body .guide-icon {background:var(--color-primary-soft);color:var(--color-primary)}
body .guide-mask {padding-bottom:calc(18px + env(safe-area-inset-bottom))}
body .guide-card {max-height:90dvh;overflow:auto}
body .row>* {min-width:0}
body .task-section>h2 {border-color:var(--color-primary)}
@media(max-width:420px){
  body .top .row.space {align-items:flex-start;gap:4px}
  body .top .brand {font-size:16px;white-space:nowrap}
  body .top .sub {font-size:11px}
  body .top .badge {font-size:11px;max-width:100px}
  body .page-head {flex-wrap:wrap;gap:8px}
  body .page-head h2 {font-size:20px}
  body #home .hero>.row .btn {min-height:44px}
}
/* V9.2-A Batch 2.6A：销售数据与复盘的数值在窄屏换行，避免横向滚动 */
body [data-dashboard-body] .kv div,body [data-review-body] .kv div {overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){body *{transition:none!important;scroll-behavior:auto!important}}

/* ===== V9.2-B B1.3：真机 UI 收口（Hero / 信息密度 / 返回键 / 任务 Tabs / 品牌色）
   约定：#FF4E00 只用于图标、AI 入口与当前选中；正文/标题用大地棕；不使用大面积纯橙与厚重阴影。 */
body [hidden] {display:none!important}
/* 横向溢出：不写死容器宽度；长文本换行，可横向滚动的内容各自形成滚动区（不产生整页横向滚动） */
body .app {max-width:100%}
body .page {min-width:0}
body .ui2-answer,body .ui2-msg,body .ui2-block div {overflow-wrap:anywhere}
/* 首页 Hero：暖白 + 朝阳橙渐变的抽象日出氛围（纯 CSS，不使用网络版权图片） */
body #home .hero.ui2-hero {position:relative;overflow:hidden;color:var(--color-text-primary);
  background:linear-gradient(180deg,#FFF7F0 0%,#FFF1E6 46%,#FFFFFF 100%);
  border:1px solid var(--color-border);border-radius:var(--radius-card);padding:18px 16px 12px;box-shadow:var(--shadow)}
body #home .hero.ui2-hero:before {content:"";position:absolute;left:-20%;right:-20%;top:-64px;height:180px;border-radius:50%;
  background:radial-gradient(circle at 50% 60%,rgba(255,160,0,.34),rgba(255,78,0,.16) 46%,rgba(255,255,255,0) 74%)}
body #home .hero.ui2-hero>* {position:relative;z-index:1}
body #home .ui2-hero-top {margin-bottom:14px}
body #home .ui2-greeting {font-size:30px;line-height:1.24;font-weight:700;margin:2px 0 4px}
body #home .ui2-slogan {margin:0 0 4px;font-size:14px;color:var(--color-text-secondary)}
body #home .ui2-hero-note {margin:0;font-size:12px;color:var(--color-text-secondary)}
/* 三核心数字：一行三卡、数字突出、文字弱化、边框淡化、阴影极轻、整体高度压缩 */
body .ui2-numbers {gap:8px;margin-bottom:12px}
body .ui2-tile {padding:10px 10px 8px;border:1px solid rgba(93,64,55,.10);border-radius:14px;
  box-shadow:0 1px 3px rgba(93,64,55,.05);min-width:0}
body .ui2-tile b {font-size:24px;line-height:1.1}
body .ui2-tile small {font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* AI 主入口：整卡可点、全部左对齐、标题不折行、卡片更矮、右侧橙色圆形箭头 */
body .ui2-ai {text-align:left;align-items:center;gap:10px;padding:12px;margin-bottom:12px;width:100%}
body .ui2-ai .dot {flex:0 0 36px;height:36px;border-radius:11px;font-size:16px}
body .ui2-ai .txt {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body .ui2-ai strong {font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .ui2-ai .sub {font-size:12px;color:var(--color-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .ui2-ai .prompt {font-size:12px;color:var(--color-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .ui2-ai .go {flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:var(--color-brand);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
/* 四快捷功能：移动端 2×2、彩色图标、大地棕深色标题（不再使用蓝色标题）、轻卡片大留白 */
body .ui2-actions {gap:8px;margin-bottom:12px}
body .ui2-action {gap:1px;padding:12px;min-height:66px;border:1px solid rgba(93,64,55,.10);
  border-radius:14px;box-shadow:0 1px 3px rgba(93,64,55,.05)}
body .ui2-action b {font-size:15px;color:var(--color-earth)}
body .ui2-action span {font-size:12px;color:var(--color-text-secondary)}
body .ui2-action i {font-size:17px;color:var(--color-brand)}
body .ui2-action:nth-child(2) i {color:var(--color-accent)}
body .ui2-action:nth-child(3) i {color:var(--color-bamboo)}
body .ui2-action:nth-child(4) i {color:var(--color-earth)}
/* 任务 Tabs（首页与任务页共用同一套）：选中熔岩红底白字，未选暖白底深色字 */
body .ui2-taskarea {margin-bottom:12px}
body .ui2-tasktabs {display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:2px 0 10px}
body .ui2-tasktabs .ui2-tab {flex:1 1 0;min-width:0;border:1px solid var(--color-border);background:var(--color-surface);
  color:var(--color-text-primary);border-radius:999px;padding:8px 6px;font-size:12px;min-height:36px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .ui2-tasktabs .ui2-tab.on {background:var(--color-brand);border-color:var(--color-brand);color:#fff;font-weight:600}
body .ui2-tasklist .task-card {margin-bottom:10px}
body .ui2-home-extra {margin:0 0 var(--spacing-md)}
body .ui2-home-extra .row {display:flex;gap:8px;flex-wrap:wrap;width:100%}
body .ui2-task-meta {display:inline-flex;align-items:center;gap:6px}
body .ui2-task-time {font-size:12px;color:var(--color-text-secondary)}
/* 列表默认头像占位（系统无真实头像字段时使用姓名首字，不伪造真人照片） */
body .ui2-avatar {flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--color-primary-soft);
  color:var(--color-primary);display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:600;margin-right:8px}
body .ui2-avatar.large {flex:0 0 46px;width:46px;height:46px;font-size:18px}
/* 二级页统一返回键 */
body .ui2-back {flex:0 0 auto;min-height:40px;padding:8px 12px;border:1px solid var(--color-border);
  border-radius:var(--radius-button);background:var(--color-surface);color:var(--color-text-primary);font-size:14px}
/* 客户详情头部 */
body .ui2-customer-head {display:flex;align-items:flex-start}
body .ui2-customer-head .ui2-customer-info {flex:1;min-width:0}
body .ui2-customer-head p {margin:4px 0 0}
/* AI 助手：结构化回答白卡 + 紧凑输入条（不再出现超大输入框） */
body .ui2-chatbar textarea {min-height:44px;max-height:120px}
body .ui2-answer {align-self:flex-start;width:100%;max-width:100%;background:var(--color-surface);
  border:1px solid var(--color-border);border-radius:16px;padding:12px;box-shadow:var(--shadow)}
body .ui2-answer-head {display:flex;align-items:center;gap:6px;margin-bottom:6px}
body .ui2-answer-head .ui2-avatar {margin-right:0}
body .ui2-block {border-top:1px solid var(--color-border);padding:8px 0}
body .ui2-block:first-of-type {border-top:0}
body .ui2-block strong {display:block;font-size:13px;color:var(--color-primary);margin-bottom:3px}
body .ui2-block div {font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
body .ui2-block.script div {font-size:15px}
body .ui2-ctx[hidden] {display:none!important}
body .ui2-ctx.hidden {display:none!important}   /* 无客户上下文时不出现空白「切换 ×」 */
/* 我的：极简列表 */
body #account .ui2-row {min-height:48px}
body #account .ui2-row b {font-size:15px}
/* 底部导航：减小 glow、适配安全区、选中熔岩红 */
body .nav.nav-ai i {box-shadow:0 3px 10px rgba(255,78,0,.20)}
body .nav.on {color:var(--color-brand)}
@media(max-width:360px){
  body #home .ui2-greeting {font-size:26px}
  body .ui2-tile b {font-size:22px}
}

/* ===== V9.2-B B1.3 RC2：真机 UI 精修（Header 层级 / Hero 压缩 / 卡片轻量化 / 客户页与我的）=====
   约定：品牌橙只用于图标、AI 与当前选中；正文与标题用大地棕；不使用大面积纯橙与厚重阴影。 */
/* 0. 一级页不再使用旧公共 Header（.top 由脚本隐藏，这里兜底） */
body .top[hidden] {display:none!important}
/* 1. 一级页标题（客户 / 任务 / 我的）与列表说明 */
body .ui2-page-title {font-size:24px;font-weight:700;color:var(--color-text-primary);margin:2px 0 12px}
body #customers [data-customer-scope] {margin:-6px 0 10px}
body #customers [data-customer-scope]:empty {display:none}
/* 2. 二级页统一 Header：返回永远在左，标题随后，右侧只放真实功能按钮 */
body .ui2-subhead {display:flex;align-items:center;gap:10px;margin:0 0 12px}
body .ui2-subhead .ui2-back {flex:0 0 auto}
body .ui2-subhead-title {flex:1;min-width:0;font-size:20px;font-weight:700;margin:0;color:var(--color-text-primary);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .ui2-subhead-actions {flex:0 0 auto;display:flex;gap:6px;align-items:center}
body .ui2-subhead-actions:empty {display:none}
/* 3. Hero 压缩：393×852 首屏必须完整看到 品牌/问候/slogan/小文案/三数字/AI入口/四快捷/任务 Tabs */
body #home .hero.ui2-hero {padding:14px 14px 10px;margin-bottom:10px}
body #home .ui2-hero-top {margin-bottom:10px}
body #home .ui2-greeting {font-size:27px;line-height:1.2;margin:0 0 2px}
body #home .ui2-slogan {font-size:13px;margin:0 0 2px}
body #home .ui2-hero-note {font-size:11px}
body .ui2-numbers {gap:6px;margin-bottom:8px}
body .ui2-tile {padding:8px 8px 6px;border-radius:12px}
body .ui2-tile b {font-size:22px}
body .ui2-tile small {font-size:10px;margin-top:1px}
body .ui2-ai {gap:8px;padding:9px 10px;margin-bottom:8px;border-radius:14px}
body .ui2-ai .dot {flex:0 0 32px;height:32px;border-radius:10px;font-size:15px}
body .ui2-ai strong {font-size:14px}
body .ui2-ai .sub,body .ui2-ai .prompt {font-size:11px}
body .ui2-ai .go {flex:0 0 26px;width:26px;height:26px;font-size:14px}
body .ui2-actions {gap:6px;margin-bottom:0}
body .ui2-action {gap:0;padding:9px 10px;min-height:56px;border-radius:12px}
body .ui2-action i {font-size:15px;line-height:1.1}
body .ui2-action b {font-size:14px;line-height:1.3;color:var(--color-earth)}
body .ui2-action span {font-size:11px;line-height:1.3}
body #todoNotice:empty {margin-top:0}
/* 4. 任务区：Tabs 保持完整可见，次级操作弱化 */
body .ui2-taskarea {margin-bottom:12px}
body .ui2-tasktabs {padding:0 0 8px}
body .ui2-tasktabs .ui2-tab {padding:7px 6px;font-size:12px;min-height:34px}
body .ui2-more {width:100%;min-height:38px;border:0;background:none;color:var(--color-text-secondary);font-size:13px;margin:2px 0 6px}
body .ui2-home-extra {margin:0 0 var(--spacing-md)}
body .ui2-home-extra .row {display:flex;gap:6px;flex-wrap:wrap;width:100%}
body .ui2-home-extra .btn {min-height:36px;padding:6px 10px;font-size:13px;background:none;color:var(--color-text-secondary);
  border:1px solid var(--color-border)}
/* 5. 客户页：筛选选中态 + 列表式卡片（头像与姓名同一左侧信息组） */
body #customers .ui2-search {margin-bottom:8px}
body #customers .ui2-chip {min-height:32px;padding:6px 12px;font-size:13px}
body .ui2-cust-body {flex:1;min-width:0}
body .ui2-avatar {flex:0 0 32px;width:32px;height:32px;font-size:13px;margin-right:0}
body .ui2-avatar.large {flex:0 0 44px;width:44px;height:44px;font-size:17px}
body .item.ui2-line {display:flex;gap:8px;align-items:flex-start}
/* 6. 我的：四级极简列表 */
body .ui2-user-top {display:flex;align-items:flex-start;gap:10px}
body .ui2-user-top .kv {flex:1;min-width:0}
body .ui2-layer {padding:12px 14px}
body .ui2-layer-title {font-size:13px;font-weight:600;color:var(--color-text-secondary);margin:0 0 6px}
body #account .task-actions {margin-top:10px}
body #account .ui2-row {min-height:44px;box-shadow:none;margin-bottom:6px}
/* 7. AI 助手：简洁欢迎态 + 紧凑输入条 + 圆形发送 */
body .ui2-welcome {display:flex;gap:8px;align-items:flex-start;background:var(--color-background);
  border:1px solid var(--color-border);border-radius:14px;padding:10px 12px;margin-bottom:10px}
body .ui2-welcome .ui2-welcome-body {flex:1;min-width:0}
body .ui2-welcome-line {margin:0 0 4px;font-size:14px;line-height:1.55;color:var(--color-text-primary)}
body .ui2-hint {margin:0;font-size:12px;line-height:1.5;color:var(--color-text-secondary)}
body .ui2-chatbar {gap:6px;padding:6px 8px}
body .ui2-chatbar textarea {min-height:36px;max-height:96px;padding:4px 2px;font-size:14px}
body .ui2-send {flex:0 0 38px;width:38px;height:38px;border:0;border-radius:50%;background:var(--color-brand);color:#fff;
  font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center}
/* 8. 客户详情：真实重资料下沉为可展开的折叠区（不删除能力） */
body .ui2-fold {margin:12px 0 0;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}
body .ui2-fold>summary {padding:10px 14px;font-size:13px;min-height:44px}
body .ui2-fold .card {border:0;box-shadow:none;border-radius:0;border-top:1px solid var(--color-border);margin:0;padding:12px 14px}
body .ui2-fold .card:first-of-type {border-top:0}
/* 9. 底部导航：AI 未选中为常规灰、选中时给出明确品牌色选中态 */
body .nav.nav-ai {color:var(--color-text-secondary);font-weight:600}
body .nav.nav-ai.on {background:var(--color-primary-soft);color:var(--color-brand);font-weight:700}
@media(max-width:360px){
  body #home .ui2-greeting {font-size:24px}
  body .ui2-tile b {font-size:20px}
}

/* ======================================================================
   V9.2-B UI 视觉重构 Phase 1：移动端 Design System（390px 基准）+ 首页 + AI助手
   —— 少边框 / 轻阴影 / 大留白 / 强层级；品牌橙只用于主行动、选中态与关键数字。
   本区块只作用于首页与 AI 助手两个样板页，不改动其他页面既有样式。
   ====================================================================== */
:root {
  --page-padding:14px;
  --section-gap:14px;
  --card-radius:16px;
  --card-padding:14px;
  --card-border:1px solid rgba(93,64,55,.06);
  --card-shadow:0 2px 10px rgba(93,64,55,.05);
  --text-primary:#2B211D;
  --text-secondary:#6B5A52;
  --text-tertiary:#9C8C84;
  --brand-orange:#FF4E00;
  --brand-orange-light:#FFF1EA;
  --background:#FFFBF8;
  --surface:#FFFFFF;
  --nav-height:64px;
  --safe-bottom:env(safe-area-inset-bottom);
}
/* 全局：页面更轻、留白更大（仅限首页与 AI 助手容器内的通用卡片） */
body #home .card,body #assistant .card {
  border:var(--card-border);box-shadow:var(--card-shadow);border-radius:var(--card-radius);
}
body .hd {padding:0 0 8px}
body .hd section,body .hd div,body .hd p,body .hd h1 {box-sizing:border-box}
/* ---------- ① Hero ---------- */
body .hd-hero {
  position:relative;overflow:hidden;border:0;box-shadow:none;background:
    radial-gradient(120% 90% at 88% -10%, rgba(255,160,0,.28) 0%, rgba(255,78,0,.10) 42%, rgba(255,255,255,0) 72%),
    linear-gradient(180deg,#FFF6EE 0%,#FFF3EA 58%,#FFFAF7 100%);
  border-radius:20px;padding:18px 16px 14px;margin:0 0 var(--section-gap);
}
body #home .hd-hero .ui2-hero-top {margin:0}
body #home .ui2-greeting {font-size:28px;line-height:1.22;font-weight:750;color:var(--text-primary);margin:0 0 6px}
body #home .ui2-slogan {font-size:14px;color:var(--text-secondary);margin:0 0 3px}
body #home .ui2-hero-note {font-size:11.5px;color:var(--text-tertiary);margin:0}
/* ---------- ② 三个核心数字 ---------- */
body #home .ui2-numbers {display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 0 var(--section-gap)}
body #home .ui2-tile {
  background:var(--surface);border:0;border-radius:14px;box-shadow:var(--card-shadow);
  padding:13px 12px 11px;text-align:left;min-width:0;
}
body #home .ui2-tile b {display:block;font-size:26px;line-height:1.05;font-weight:750;color:var(--text-primary);letter-spacing:-.4px}
body #home .ui2-tile small {display:block;margin-top:5px;font-size:11px;color:var(--text-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ---------- ③ AI 主入口（首页第一行动） ---------- */
body #home .ui2-ai {
  width:100%;display:flex;align-items:center;gap:12px;text-align:left;
  background:linear-gradient(135deg,#FFF2E9 0%,#FFFFFF 78%);border:0;border-radius:18px;
  box-shadow:0 6px 18px rgba(255,78,0,.10);padding:14px;margin:0 0 var(--section-gap);
}
body #home .ui2-ai .dot {
  flex:0 0 44px;width:44px;height:44px;border-radius:14px;font-size:20px;
  background:linear-gradient(140deg,#FF8A3D,#FF4E00);color:#fff;box-shadow:0 4px 12px rgba(255,78,0,.28);
}
body #home .ui2-ai .txt {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body #home .ui2-ai strong {font-size:15.5px;font-weight:750;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #home .ui2-ai .sub {font-size:12px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #home .ui2-ai .prompt {font-size:12px;color:var(--brand-orange);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #home .ui2-ai .go {
  flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--brand-orange);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1;
}
/* ---------- ④ 2×2 快捷功能 ---------- */
body #home .ui2-actions {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 var(--section-gap)}
body #home .ui2-action {
  display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;
  background:var(--surface);border:0;border-radius:16px;box-shadow:var(--card-shadow);padding:14px;min-height:0;
}
body #home .ui2-action i {
  width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--brand-orange-light);color:var(--brand-orange);font-style:normal;
}
body #home .ui2-action i svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body #home .ui2-action:nth-child(2) i {background:#FFF6E6;color:#E09000}
body #home .ui2-action:nth-child(3) i {background:#EEF6E7;color:#5E9A2E}
body #home .ui2-action:nth-child(4) i {background:#F6EFEA;color:var(--color-earth)}
body #home .ui2-action b {font-size:14.5px;font-weight:700;color:var(--text-primary);line-height:1.25}
body #home .ui2-action span {font-size:11.5px;color:var(--text-tertiary);line-height:1.3}
/* ---------- ⑤ 今日任务 Tabs ---------- */
body #home .ui2-taskarea {margin:0 0 var(--section-gap)}
body #home .ui2-tasktabs,body #todoList .ui2-tasktabs {display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;-webkit-overflow-scrolling:touch}
body #home .ui2-tasktabs .ui2-tab,body #todoList .ui2-tasktabs .ui2-tab {
  flex:1 1 0;min-width:0;border:1px solid rgba(93,64,55,.07);background:var(--surface);color:var(--text-secondary);
  border-radius:999px;padding:8px 6px;font-size:12.5px;min-height:34px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 2px rgba(93,64,55,.03);
}
body #home .ui2-tasktabs .ui2-tab.on,body #todoList .ui2-tasktabs .ui2-tab.on {
  background:var(--brand-orange);border-color:var(--brand-orange);color:#fff;font-weight:650;box-shadow:0 4px 12px rgba(255,78,0,.22);
}
/* ---------- 二级页 Header：轻量返回箭头（不是大圆角按钮） ---------- */
body .ui2-subhead {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-height:40px;margin:0 0 10px}
body .ui2-subhead .ui2-back {
  justify-self:start;flex:0 0 auto;min-height:36px;padding:4px 6px 4px 0;border:0;border-radius:0;
  background:none;box-shadow:none;color:var(--text-secondary);font-size:15px;
  display:inline-flex;align-items:center;gap:2px;
}
body .ui2-subhead-title {text-align:center;font-size:17px;font-weight:700;color:var(--text-primary)}
body .ui2-subhead-actions {justify-self:end}
/* ---------- ⑥ 任务列表（移动端轻量行） ---------- */
body .task-card {
  background:var(--surface);border:0;border-radius:16px;box-shadow:var(--card-shadow);
  padding:13px 14px;margin:0 0 10px;overflow-wrap:anywhere;
}
body .ui2-task-head {display:flex;gap:10px;align-items:flex-start}
body .ui2-task-info {flex:1;min-width:0}
body .ui2-task-line {display:flex;align-items:baseline;justify-content:space-between;gap:8px}
body .ui2-task-line b {font-size:15px;font-weight:700;color:var(--text-primary);overflow-wrap:anywhere}
body .ui2-task-sub {margin:3px 0 0;font-size:12px;color:var(--text-tertiary);overflow-wrap:anywhere}
body .ui2-task-time {font-size:12px;color:var(--text-tertiary);font-variant-numeric:tabular-nums}
body .ui2-task-tags {display:flex;flex-wrap:wrap;gap:5px;margin:9px 0 0}
body .ui2-task-chip {
  font-size:11px;line-height:1.2;border-radius:7px;padding:4px 7px;background:#F7F3F0;color:var(--text-secondary);
}
body .ui2-task-chip.on {background:var(--brand-orange-light);color:var(--brand-orange);font-weight:600}
body .ui2-task-chip.warn {background:var(--color-warning-soft);color:var(--color-warning)}
body .ui2-task-goal {
  margin:9px 0 0;font-size:12.5px;line-height:1.5;color:var(--text-secondary);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
body .ui2-task-goal b {font-weight:600;color:var(--text-tertiary);margin-right:4px}
body .ui2-task-more {margin:8px 0 0}
body .ui2-task-more>summary {font-size:12px;min-height:28px;color:var(--text-tertiary)}
body .ui2-task-more p {margin:4px 0;font-size:12px}
body .task-card button[data-task-detail] {
  width:auto;min-height:32px;margin-top:10px;padding:6px 14px;font-size:13px;border-radius:999px;
}
/* ---------- ⑦ 次级入口 ---------- */
body .hd-more {display:flex;flex-direction:column;gap:8px;margin-bottom:calc(var(--nav-height) + 20px)}
body .hd-more .ui2-home-extra {display:flex;gap:14px;flex-wrap:wrap;margin:0}
body .hd-more .ui2-home-extra .row {display:flex;gap:14px;flex-wrap:wrap;width:100%}
body .hd-more .ui2-home-extra .btn {
  border:0;background:none;color:var(--text-secondary);font-size:12.5px;padding:0;min-height:28px;
}
body .hd-more .ui2-more {width:100%;border:0;background:none;color:var(--text-tertiary);font-size:12.5px;min-height:30px;text-align:left}
body .hd-more .card {background:transparent;border:0;box-shadow:none;padding:2px 0;margin:0}
body .hd-more summary {font-size:12.5px;color:var(--text-tertiary);min-height:32px}
/* ---------- AI 助手：真正的移动端聊天页 ---------- */
body #assistant.on {display:flex;flex-direction:column;min-height:calc(100dvh - var(--nav-height) - 20px);padding-bottom:6px}
body #assistant .ui2-subhead {margin-bottom:8px}
body #assistant .ui2-ctx {align-self:flex-start}
body #assistant .ui2-chat {flex:1;min-height:120px;overflow:auto;padding-bottom:8px}
body #assistant .ui2-welcome {background:transparent;border:0;padding:0;margin:2px 0 0;display:block}
body #assistant .ui2-welcome-line {font-size:14px;font-weight:600;color:var(--text-primary);margin:0 0 10px}
body #assistant .ui2-suggest {display:flex;flex-wrap:wrap;gap:8px}
body #assistant .ui2-suggest button {
  border:1px solid rgba(93,64,55,.08);background:var(--surface);color:var(--text-secondary);
  border-radius:999px;padding:8px 12px;font-size:12.5px;min-height:34px;box-shadow:0 1px 2px rgba(93,64,55,.03);
}
body #assistant .ui2-answer {border:0;box-shadow:var(--card-shadow);border-radius:16px}
body #assistant .ui2-chatbar {
  position:sticky;bottom:calc(var(--safe-bottom));margin-top:auto;z-index:3;
  background:var(--surface);border:1px solid rgba(93,64,55,.08);border-radius:24px;
  padding:6px 6px 6px 14px;gap:6px;box-shadow:0 4px 16px rgba(93,64,55,.08);
}
body #assistant .ui2-chatbar textarea {min-height:38px;max-height:110px;font-size:15px;padding:8px 0}
body .ui2-send {
  flex:0 0 40px;width:40px;height:40px;border:0;border-radius:50%;background:var(--brand-orange);color:#fff;
  font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(255,78,0,.24);
}
/* 底部导航：统一线性 SVG 图标 */
body .nav svg {width:22px;height:22px;display:block;margin:0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body .nav.nav-ai i svg {width:22px;height:22px;stroke-width:1.9}
body .nav b,body .nav i {font-size:0}
/* 键盘弹起（含微信内置浏览器）：隐藏固定导航，保证输入区可见 */
html.ui2-typing body .app {padding-bottom:18px}
html.ui2-typing body .ui2-chatbar {position:sticky;bottom:0}
body .ui2-chatbar textarea {scroll-margin-bottom:140px}
/* iPhone / 微信内置浏览器安全区：顶部不贴状态栏，底部不被菜单条遮挡 */
body .app {padding-top:env(safe-area-inset-top)}

/* ======================================================================
   V9.2-B UI Rebuild P1.1：最终视觉定稿校准
   —— 统一 Typography Scale / 组件比例 / Surface / 微交互；只作用于首页、AI助手、登录页。
   —— 不改信息架构、不改业务能力、不引入新口径。
   ====================================================================== */
:root {
  --font-hero:24px;          /* Hero 问候 */
  --font-block:16px;         /* 区块主标题（AI 主入口） */
  --font-number:26px;        /* 核心数字 */
  --font-card-title:14.5px;  /* 卡片标题 */
  --font-body:14px;          /* 正文 */
  --font-caption:12px;       /* 辅助说明 */
  --font-tag:11px;           /* 状态标签 */
  --radius-lg:20px; --radius-md:16px; --radius-sm:12px; --radius-pill:999px;
  --ease:cubic-bezier(.22,.61,.36,1);
}
/* Hero 构图：用户身份 + 问候 + 头像 */
body #home .hd-hero {padding:16px 16px 14px;border-radius:var(--radius-lg)}
body #home .hd-hero-row {display:flex;align-items:center;gap:14px}
body #home .hd-hero-row .ui2-hero-top {flex:1;min-width:0}
body #home .hd-avatar {
  flex:0 0 48px;width:48px;height:48px;border-radius:50%;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(140deg,#FFF1E8,#FFE2D1);color:var(--brand-orange);
  font-size:17px;font-weight:700;
}
body #home .hd-avatar img {width:100%;height:100%;object-fit:cover;display:block}
body #home .ui2-greeting {font-size:var(--font-hero);line-height:1.25;font-weight:700;margin:0 0 6px;letter-spacing:-.2px}
body #home .ui2-slogan {font-size:13px;color:var(--text-secondary);margin:0}
/* 三核心数字：统一数据概览面板（而非三张独立 CRM 卡） */
body #home .ui2-numbers {
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;overflow:hidden;
  background:var(--surface);border-radius:var(--radius-md);box-shadow:0 1px 6px rgba(93,64,55,.05);
  margin:0 0 var(--section-gap);
}
body #home .ui2-tile {background:transparent;border:0;border-radius:0;box-shadow:none;padding:14px 12px 12px;text-align:left;min-width:0}
body #home .ui2-tile+.ui2-tile {border-left:1px solid rgba(93,64,55,.06)}
body #home .ui2-tile b {font-size:var(--font-number);line-height:1.05;font-weight:750;color:var(--text-primary);letter-spacing:-.6px}
body #home .ui2-tile small {margin-top:4px;font-size:var(--font-tag);color:var(--text-tertiary)}
/* AI 主入口：视觉权重明显高于普通快捷 */
body #home .ui2-ai {gap:13px;padding:15px;border-radius:var(--radius-lg);box-shadow:0 8px 22px rgba(255,78,0,.12);background:linear-gradient(135deg,#FFF3EB 0%,#FFFFFF 72%)}
body #home .ui2-ai .dot {flex:0 0 46px;width:46px;height:46px;border-radius:15px}
body #home .ui2-ai .dot svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body #home .ui2-ai strong {font-size:var(--font-block);font-weight:750}
body #home .ui2-ai .sub {font-size:var(--font-caption);color:var(--text-secondary)}
body #home .ui2-ai .prompt {font-size:var(--font-caption);color:var(--brand-orange);font-weight:600}
body #home .ui2-ai .go {flex:0 0 36px;width:36px;height:36px}
/* 四快捷：统一的「快速入口」量级 */
body #home .ui2-actions {gap:10px}
body #home .ui2-action {padding:13px;border-radius:var(--radius-md);box-shadow:0 1px 6px rgba(93,64,55,.05);gap:9px}
body #home .ui2-action i {width:38px;height:38px;border-radius:var(--radius-sm)}
body #home .ui2-action i svg {width:19px;height:19px;stroke-width:1.6}
body #home .ui2-action b {font-size:var(--font-card-title);font-weight:650}
body #home .ui2-action span {font-size:var(--font-tag)}
/* 任务区：统一层级与量级 */
body #home .ui2-tasktabs .ui2-tab,body #todoList .ui2-tasktabs .ui2-tab {font-size:var(--font-caption);min-height:36px;padding:8px 10px}
body .task-card {border-radius:var(--radius-md);padding:14px;box-shadow:0 1px 6px rgba(93,64,55,.05)}
body .ui2-task-line b {font-size:var(--font-card-title)}
body .ui2-task-sub,body .ui2-task-time {font-size:var(--font-tag)}
body .ui2-task-goal {font-size:var(--font-caption)}
body .task-card button[data-task-detail] {font-size:var(--font-caption);min-height:34px;padding:7px 16px}
/* AI 助手：一级页标题（无返回）+ 空会话产品化 */
body .ai-head {display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 10px}
body .ai-head-title {font-size:17px;font-weight:700;margin:0;color:var(--text-primary)}
body #assistant .ui2-welcome {display:flex;gap:12px;align-items:flex-start;padding:4px 0 0}
body #assistant .ui2-welcome-mark {
  flex:0 0 52px;width:52px;height:52px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:var(--fu-primary-soft);font-size:0;overflow:hidden;box-shadow:0 2px 8px rgba(20,30,50,.10);
}
body #assistant .ui2-welcome-mark img {width:100%;height:100%;object-fit:cover;display:block}
body #assistant .ui2-answer-head .ui2-avatar {width:32px;height:32px;flex:0 0 32px;border-radius:50%;overflow:hidden;font-size:0;background:none}
body #assistant .ui2-answer-head .ui2-avatar img {width:100%;height:100%;object-fit:cover;display:block}
body #assistant .ui2-welcome-body {flex:1;min-width:0}
body #assistant .ui2-welcome-title {font-size:17px;font-weight:700;color:var(--text-primary);margin:2px 0 4px;line-height:1.3}
body #assistant .ui2-welcome-sub {font-size:var(--font-caption);color:var(--text-secondary);margin:0 0 12px;line-height:1.55}
body #assistant .ui2-suggest {display:flex;flex-direction:column;gap:8px}
body #assistant .ui2-suggest button {
  display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:11px 14px;border:0;
  border-radius:var(--radius-sm);background:var(--surface);color:var(--text-primary);font-size:var(--font-body);
  box-shadow:0 1px 6px rgba(93,64,55,.05);text-align:left;
}
body #assistant .ui2-suggest button::before {content:'✦';font-size:12px;color:var(--brand-orange)}
body #assistant .ui2-suggest button::after {content:'›';margin-left:auto;color:#C9BAB3;font-size:15px}
/* 微交互：快速、克制、统一 */
body #home .ui2-ai,body #home .ui2-action,body #assistant .ui2-suggest button,body .ui2-send,body .task-card button[data-task-detail] {
  transition:transform .12s var(--ease),box-shadow .12s var(--ease);
}
body #home .ui2-ai:active,body #home .ui2-action:active,body #assistant .ui2-suggest button:active,
body .ui2-send:active,body .task-card button[data-task-detail]:active,body #home .ui2-tile:active {transform:scale(.985)}
body .ui2-send:disabled,body .btn:disabled {opacity:.5}

/* ======================================================================
   V9.2-B Final UI 1:1 前端重建｜Phase 0（Design System）+ Phase 1（首页 / AI助手）
   —— 390px 设计基准；只作用于首页与 AI 助手，其他页面保持既有实现。
   —— 颜色、圆角、间距、阴影、字号全部走 --fu-* Token，禁止页面各写一套。
   ====================================================================== */
:root {
  /* COLOR */
  --fu-primary:#FF5A1F; --fu-primary-strong:#FF4614; --fu-primary-soft:#FFF1EB; --fu-primary-pale:#FFF7F3;
  --fu-text-1:#171A21; --fu-text-2:#626977; --fu-text-3:#969CA6; --fu-text-4:#B9BDC5;
  --fu-bg:#F7F8FA; --fu-surface:#FFFFFF; --fu-surface-2:#F4F5F7;
  --fu-border:#EAECF0; --fu-divider:#EEF0F3;
  --fu-success:#27B879; --fu-success-bg:#EAF8F2; --fu-info:#4285F4; --fu-info-bg:#EDF4FF;
  --fu-warning:#FF8A34; --fu-danger:#F25353;
  /* SPACING / RADIUS / SHADOW / SIZES */
  --fu-s1:4px; --fu-s2:6px; --fu-s3:8px; --fu-s4:12px; --fu-s5:16px; --fu-s6:20px; --fu-s7:24px; --fu-s8:32px;
  --fu-r-xs:6px; --fu-r-sm:8px; --fu-r-md:12px; --fu-r-lg:16px; --fu-r-xl:20px; --fu-r-pill:999px;
  --fu-shadow-card:0 2px 8px rgba(20,30,50,.05);
  --fu-shadow-float:0 4px 16px rgba(20,30,50,.08);
  --fu-shadow-cta:0 5px 14px rgba(255,80,25,.18);
  --fu-nav-h:64px; --fu-touch:44px;
  --fu-page-pad:16px;
  --fu-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
/* 公共页面容器：390 基准，左右 16（≤389 用 14，≥431 用 18）；>430 居中不无限拉宽 */
body #home,body #assistant,body #home .hd {max-width:430px;margin-left:auto;margin-right:auto;font-family:var(--fu-font)}
body #home,body #assistant {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad)}
body #home {padding-top:0}   /* 顶部沉浸：Top Tools 与 Hero 之间不再出现无效空白 */
@media(max-width:389px){body #home,body #assistant{padding-left:14px;padding-right:14px}}
@media(min-width:431px){body #home,body #assistant{padding-left:18px;padding-right:18px}}
@media(max-width:389px){:root{--fu-page-pad:14px}}
@media(min-width:431px){:root{--fu-page-pad:18px}}
/* ---------- 首页 Top Tools（Search / Notification / Avatar） ---------- */
body #home .hd-tools {display:flex;align-items:center;justify-content:flex-end;gap:var(--fu-s1);
  min-height:var(--fu-touch);padding-top:env(safe-area-inset-top);margin:0 0 4px}
body #home .hd-tool {width:var(--fu-touch);height:var(--fu-touch);min-width:var(--fu-touch);border:0;background:none;
  color:var(--fu-text-2);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--fu-r-pill);position:relative}
body #home .hd-tool svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body #home .hd-tool:active {background:var(--fu-surface-2)}
body #home .hd-badge {position:absolute;top:8px;right:8px;min-width:16px;height:16px;padding:0 4px;border-radius:var(--fu-r-pill);
  background:var(--fu-danger);color:#fff;font-size:10px;line-height:16px;text-align:center;font-weight:600}
body #home .hd-avatar-btn {width:var(--fu-touch);height:var(--fu-touch);border:0;background:none;padding:0;display:inline-flex;align-items:center;justify-content:center}
body #home .hd-avatar {width:36px;height:36px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;
  background:var(--fu-primary-pale);color:var(--fu-primary);font-size:14.5px;font-weight:600;
  border:1px solid rgba(255,90,31,.20);box-shadow:0 1px 4px rgba(20,30,50,.06)}
body #home .hd-avatar img {width:100%;height:100%;object-fit:cover;display:block}
/* ---------- Hero（日出视觉层，白色文字） ---------- */
/* 视觉上向页面顶部延伸：更贴近 Top Tools，同时保持圆角商业 App 卡片形态（非整页背景） */
body #home .hd-hero {position:relative;overflow:hidden;height:162px;padding:var(--fu-s5);margin:0 0 var(--fu-s5);
  display:flex;align-items:center;border-radius:var(--fu-r-lg);
  box-shadow:var(--fu-shadow-card),0 -6px 18px rgba(255,90,31,.05);
  background:#5E2410 url("hero-home.webp") center 42%/cover no-repeat}
body #home .hd-hero::after {content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(96deg,rgba(38,14,5,.46) 0%,rgba(38,14,5,.24) 48%,rgba(38,14,5,0) 78%)}
body #home .hd-hero-row {display:block;width:100%}
body #home .hd-hero .ui2-hero-top {position:relative;z-index:1;max-width:100%;margin-top:-4px}
body #home .ui2-greeting {color:#fff;font-size:23px;line-height:1.25;font-weight:700;letter-spacing:-.2px;margin:0 0 var(--fu-s2);text-shadow:0 1px 8px rgba(40,13,5,.35)}
body #home .ui2-slogan {color:rgba(255,255,255,.92);font-size:13px;line-height:1.5;margin:0;max-width:78%}
/* ---------- 三核心数据（三张独立卡片） ---------- */
body #home .ui2-numbers {display:grid;grid-template-columns:repeat(3,1fr);gap:var(--fu-s3);overflow:visible;
  background:none;border-radius:0;box-shadow:none;margin:0 0 var(--fu-s5)}
body #home .ui2-tile {background:var(--fu-surface);border:0;border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card);
  padding:var(--fu-s4);min-height:72px;display:flex;flex-direction:column;justify-content:center;text-align:left;min-width:0}
body #home .ui2-tile+.ui2-tile {border-left:0}
body #home .ui2-tile b {font-size:22px;line-height:1.1;font-weight:700;color:var(--fu-text-1);letter-spacing:-.4px;font-variant-numeric:tabular-nums}
body #home .ui2-tile small {margin-top:var(--fu-s1);font-size:11px;font-weight:400;color:var(--fu-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ---------- AI 助手主入口（首页核心业务入口） ---------- */
body #home .ui2-ai {display:flex;align-items:center;gap:var(--fu-s4);width:100%;min-height:80px;
  background:var(--fu-surface);border:0;border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-float);
  padding:var(--fu-s4);margin:0 0 var(--fu-s5);text-align:left}
body #home .ui2-ai .dot {flex:0 0 44px;width:44px;height:44px;border-radius:var(--fu-r-md);font-size:0;
  background:linear-gradient(140deg,#FF8A3D,var(--fu-primary-strong));color:#fff;box-shadow:0 3px 10px rgba(255,80,25,.16);
  border-radius:50%;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center}
body #home .ui2-ai .dot svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body #home .ui2-ai .dot img {width:100%;height:100%;object-fit:cover;display:block}
body #home .ui2-ai .txt {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body #home .ui2-ai strong {font-size:16px;font-weight:600;color:var(--fu-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #home .ui2-ai .sub {font-size:12px;color:var(--fu-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #home .ui2-ai .prompt {font-size:12px;color:var(--fu-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #home .ui2-ai .go {flex:0 0 42px;width:42px;height:42px;border-radius:var(--fu-r-pill);background:var(--fu-primary);
  color:#fff;font-size:17px;display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--fu-shadow-cta)}
body #home .ui2-ai .go svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* ---------- 四快捷入口（一排 4 个） ---------- */
body #home .ui2-actions {display:grid;grid-template-columns:repeat(4,1fr);gap:var(--fu-s3);margin:0 0 var(--fu-s5)}
body #home .ui2-action {display:flex;flex-direction:column;align-items:center;gap:var(--fu-s2);padding:0;min-height:0;
  background:none;border:0;box-shadow:none;text-align:center}
body #home .ui2-action i {width:47px;height:47px;border-radius:var(--fu-r-md);background:#FFE4D6;color:var(--fu-primary);font-style:normal;
  display:inline-flex;align-items:center;justify-content:center}
body #home .ui2-action i svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body #home .ui2-action:nth-child(2) i {background:#FFEBC7;color:#C97C00}
body #home .ui2-action:nth-child(3) i {background:#DDF2E4;color:#1F9E63}
body #home .ui2-action:nth-child(4) i {background:#DFEBFF;color:#2E74E0}
body #home .ui2-action b {font-size:13px;font-weight:600;color:var(--fu-text-1);line-height:1.25}
body #home .ui2-action span {font-size:10.5px;font-weight:400;color:var(--fu-text-3);line-height:1.3}
/* ---------- Tabs ---------- */
body #home .ui2-taskarea {margin:0 0 var(--fu-s4)}
body #home .ui2-tasktabs {gap:var(--fu-s2);padding:0 0 var(--fu-s4)}
body #home .ui2-tasktabs .ui2-tab {min-height:38px;padding:8px 10px;font-size:12px;font-weight:500;border-radius:var(--fu-r-pill);
  border:1px solid var(--fu-border);background:var(--fu-surface);color:var(--fu-text-2);box-shadow:none}
body #home .ui2-tasktabs .ui2-tab.on {background:var(--fu-primary-strong);border-color:var(--fu-primary-strong);color:#fff;font-weight:600;box-shadow:var(--fu-shadow-cta)}
/* ---------- 任务列表（紧凑 Row） ---------- */
body #home .ui2-tasklist .task-card {height:68px;display:flex;align-items:center;overflow:hidden;
  padding:0 var(--fu-s4);border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card);margin-bottom:var(--fu-s3)}
body #todoList .ui2-tasklist .task-card {padding:6px var(--fu-s4);border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card);margin-bottom:var(--fu-s3)}
body .ui2-task-head {display:flex;gap:var(--fu-s4);align-items:center;min-height:0}
body .ui2-task-info {display:flex;flex-direction:column;justify-content:center;gap:0;min-width:0}
body .ui2-task-line b,body .ui2-task-sub span {max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .ui2-task-row .ui2-avatar {flex:0 0 40px;width:40px;height:40px;font-size:15px}
body .ui2-task-line {display:flex;align-items:baseline;gap:var(--fu-s3)}
body .ui2-task-line b {font-size:15px;font-weight:600;color:var(--fu-text-1);line-height:1.15}
body .ui2-task-sub {margin:0;font-size:12px;color:var(--fu-text-3);line-height:1.2}
body .ui2-task-time {font-size:12px;color:var(--fu-text-3);font-variant-numeric:tabular-nums}
body .ui2-task-tags {display:flex;flex-wrap:wrap;gap:var(--fu-s1);margin-top:0}
body .ui2-task-chip {font-size:11px;font-weight:500;line-height:1.1;border-radius:var(--fu-r-pill);padding:1px 6px;background:var(--fu-surface-2);color:var(--fu-text-2)}
body .ui2-task-row {min-height:40px;max-height:56px;overflow:hidden}
body .ui2-task-row .ui2-task-tags {max-height:18px;overflow:hidden}
body .ui2-task-chip.on {background:var(--fu-primary-soft);color:var(--fu-primary)}
body .ui2-task-chip.warn {background:var(--fu-info-bg);color:var(--fu-info)}
/* 首页任务行为紧凑 Row（本次目标/更多信息不在首页行内展示；客户详情仍可查看真实内容） */
body #home .ui2-task-goal,body #home .ui2-task-more {display:none}
body .ui2-task-row {display:flex;align-items:center;gap:var(--fu-s4);width:100%;border:0;background:none;padding:0;text-align:left;min-height:44px}
body .ui2-task-sub {display:flex;align-items:center;gap:var(--fu-s2);flex-wrap:wrap}
/* ---------- AI 助手：Top Bar + 会话 + 底部 Composer ---------- */
body #assistant {max-width:430px}
body #assistant .ai-head {display:none}
body #assistant .ui2-subhead {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:48px;
  padding-top:env(safe-area-inset-top);margin:0 0 var(--fu-s4)}
body #assistant .ui2-subhead .ui2-back {justify-self:start;width:var(--fu-touch);height:var(--fu-touch);min-height:var(--fu-touch);
  padding:0 0 0 2px;border:0;background:none;color:var(--fu-text-1);font-size:0;display:inline-flex;align-items:center;justify-content:flex-start}
body #assistant .ui2-subhead .ui2-back::before {content:"";width:12px;height:12px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);border-radius:2px}
body #assistant .ui2-subhead-title {font-size:18px;font-weight:600;color:var(--fu-text-1)}
body #assistant.on {display:flex;flex-direction:column;min-height:calc(100dvh - var(--fu-nav-h) - 20px);padding-bottom:var(--fu-s2)}
body #assistant .ui2-chat {flex:1;min-height:120px;overflow:auto;padding-bottom:var(--fu-s3)}
body #assistant .ui2-msg.me {align-self:flex-end;max-width:78%;padding:10px 12px;border-radius:14px 14px 4px 14px;
  background:var(--fu-primary);color:#fff;font-size:14px;line-height:1.5}
body #assistant .ui2-msg.ai,body #assistant .ui2-msg.sys {max-width:88%;border-radius:var(--fu-r-lg);background:var(--fu-surface);
  border:0;box-shadow:var(--fu-shadow-card);color:var(--fu-text-1);font-size:14px;line-height:1.6;padding:var(--fu-s4)}
body #assistant .ui2-msg.sys {background:var(--fu-primary-pale);color:var(--fu-text-2)}
body #assistant .ui2-answer {max-width:88%;border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card);padding:var(--fu-s4)}
body #assistant .ui2-chatbar {min-height:56px;padding:6px 6px 6px var(--fu-s5);border:1px solid var(--fu-border);
  border-radius:var(--fu-r-xl);background:var(--fu-surface);box-shadow:var(--fu-shadow-float);gap:var(--fu-s2);
  position:sticky;bottom:calc(env(safe-area-inset-bottom) + 4px);margin-top:auto;z-index:3}
body #assistant .ui2-chatbar textarea {min-height:44px;max-height:110px;font-size:15px;padding:10px 0}
body .ui2-send {flex:0 0 44px;width:44px;height:44px;border:0;border-radius:var(--fu-r-pill);background:var(--fu-primary);
  color:#fff;font-size:17px;display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--fu-shadow-cta)}
/* ---------- Bottom Navigation（统一组件，64 + safe area） ---------- */
body .bottom {min-height:var(--fu-nav-h);padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  background:var(--fu-surface);border:0;border-top:1px solid var(--fu-divider);border-radius:0;box-shadow:none;backdrop-filter:none}
body .nav {min-height:52px;font-size:10.5px;font-weight:500;color:#697181;border-radius:var(--fu-r-md)}
body .nav b,body .nav i {font-size:0}
body .nav svg {width:22px;height:22px;display:block;margin:0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .nav.on {color:var(--fu-primary);background:none;font-weight:600}
body .nav.nav-ai {color:#697181}
/* 中央 AI：统一使用女性 AI 助手头像 + 品牌橙色圆环（不再使用星星作为主视觉） */
body .nav.nav-ai i {top:-17px;width:56px;height:56px;border-radius:50%;overflow:hidden;
  background:transparent;border:0;box-shadow:0 4px 14px rgba(255,80,25,.20)}
body .nav.nav-ai i img {width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
body .nav.nav-ai i::after {content:"";position:absolute;inset:0;border-radius:50%;
  border:2.5px solid var(--fu-primary);box-sizing:border-box;pointer-events:none}
body .nav.nav-ai.on {color:var(--fu-primary);background:none}

/* ======================================================================
   V9.2-B Final UI Phase 1｜增量 04 FINAL
   PART A：Home Header Scene（山景暖光融入页面顶部）+ Quick Actions 轻立体
   PART B：AI 助手移动端软键盘适配（visualViewport）+ Composer Focus 视觉
   ====================================================================== */
/* ---------- A1. Home Header Scene：满幅场景 + 底部自然渐隐 ---------- */
body #home .hd-scene {
  position:relative;overflow:hidden;min-height:236px;
  margin:0 calc(-1 * var(--fu-page-pad)) var(--fu-s5);
  padding:calc(env(safe-area-inset-top) + 10px) var(--fu-page-pad) 54px;
  display:flex;flex-direction:column;justify-content:space-between;
  background:#5E2410 url("hero-home.webp") center 40%/cover no-repeat;
}
/* 大气层：左侧轻暗化保白字可读 + 顶部轻微处理保工具清晰；不做整图重黑蒙版 */
body #home .hd-scene::before {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(96deg,rgba(38,14,5,.52) 0%,rgba(38,14,5,.24) 50%,rgba(38,14,5,0) 78%),
             linear-gradient(180deg,rgba(38,14,5,.30) 0%,rgba(38,14,5,.06) 30%,rgba(38,14,5,0) 54%);
}
/* 底部 Fade：山景 → 暖白 → 页面背景 (#F7F8FA)，避免矩形 Banner 底边 */
body #home .hd-scene::after {
  content:"";position:absolute;left:0;right:0;bottom:0;height:108px;pointer-events:none;
  background:linear-gradient(180deg,rgba(247,248,250,0) 0%,rgba(247,248,250,.55) 46%,rgba(247,248,250,.92) 78%,#F7F8FA 100%);
}
body #home .hd-scene>* {position:relative;z-index:1}
body #home .hd-scene .hd-tools {padding-top:0;margin:0}
body #home .hd-scene .ui2-hero-top {margin-top:0}
body #home .hd-scene .ui2-greeting {font-size:24px;line-height:1.24;margin:0 0 var(--fu-s2)}
body #home .hd-scene .ui2-slogan {font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.94);max-width:88%}
/* Top Tools 融入场景：半透明暖白玻璃圆 */
body #home .hd-scene .hd-tool {
  background:none;color:var(--fu-text-1);border:0;box-shadow:none;
}
/* 可见圆形 Surface 38px（Touch Target 仍 44×44），透明度与阴影轻微降低 */
body #home .hd-scene .hd-tool::before {
  content:"";position:absolute;width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.50);box-shadow:0 2px 6px rgba(20,30,50,.08);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
body #home .hd-scene .hd-tool svg {position:relative;width:20px;height:20px}
body #home .hd-scene .hd-tool:active::before {background:rgba(255,255,255,.86)}
body #home .hd-scene .hd-avatar {
  flex:0 0 38px;width:38px;height:38px;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.55);
  box-shadow:0 2px 6px rgba(20,30,50,.08);
}
/* ---------- A2. 四快捷入口：轻立体（Z 轴层级 + 点击感） ---------- */
body #home .ui2-action i {
  width:51px;height:51px;border-radius:15px;border:1px solid rgba(255,255,255,.72);
  background:linear-gradient(160deg,#FFEDE3,#FFDECB);color:var(--fu-primary);
  box-shadow:0 4px 10px rgba(255,90,31,.12),inset 0 1px 0 rgba(255,255,255,.60);
}
body #home .ui2-action i svg {width:25px;height:25px}
body #home .ui2-action:nth-child(2) i {background:linear-gradient(160deg,#FFF3D9,#FFE7BA);color:#C97C00;
  box-shadow:0 4px 10px rgba(201,124,0,.12),inset 0 1px 0 rgba(255,255,255,.60)}
body #home .ui2-action:nth-child(3) i {background:linear-gradient(160deg,#E7F6EC,#D6EFDF);color:#1F9E63;
  box-shadow:0 4px 10px rgba(31,158,99,.12),inset 0 1px 0 rgba(255,255,255,.60)}
body #home .ui2-action:nth-child(4) i {background:linear-gradient(160deg,#EDF4FF,#DFEBFF);color:#2E74E0;
  box-shadow:0 4px 10px rgba(46,116,224,.12),inset 0 1px 0 rgba(255,255,255,.60)}
body #home .ui2-action:active i {transform:translateY(1px)}
body #home .ui2-action i {transition:transform .12s var(--ease),box-shadow .12s var(--ease)}
body #home .ui2-action b {font-size:13px;font-weight:600;color:var(--fu-text-1)}
body #home .ui2-action span {font-size:10.5px;font-weight:400;color:var(--fu-text-3)}
/* ---------- B1. AI 助手：软键盘打开时的稳定纵向布局 ---------- */
html.ui2-kb-open #bottom {display:none!important}   /* 键盘真正打开时隐藏 Bottom Nav */
html.ui2-kb-open body .app {padding-bottom:10px}
html.ui2-kb-open body #assistant.on {
  min-height:calc(var(--visual-viewport-height,100dvh) - 6px);
  height:calc(var(--visual-viewport-height,100dvh) - 6px);
  overflow:hidden;display:flex;flex-direction:column;
}
html.ui2-kb-open body #assistant .ui2-chat {flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
html.ui2-kb-open body #assistant .ui2-chatbar {position:sticky;bottom:0;margin-top:auto}
/* ---------- B2. Composer Focus：统一 Final UI 橙色轻描边（移除棕色粗边框/系统 outline） ---------- */
body #assistant .ui2-chatbar textarea:focus,
body #assistant .ui2-chatbar textarea:focus-visible {outline:none;border:0;box-shadow:none}
body #assistant .ui2-chatbar:focus-within {
  border-color:var(--fu-primary);
  box-shadow:0 0 0 2px rgba(255,90,31,.08),var(--fu-shadow-float);
}
/* ---------- B3. 真机补丁：WebView 外层已有标题栏 → 页面内部不重复标题、减少顶部占位（返回逻辑不变） ---------- */
html.ui2-webview body #assistant .ui2-subhead {min-height:44px;padding-top:0;margin-bottom:8px}
html.ui2-webview body #assistant .ui2-subhead-title {display:none}
html.ui2-webview body #assistant .ui2-subhead .ui2-back {justify-self:start}

/* ======================================================================
   V9.2-B Final UI｜Phase 2：客户列表（Customers）+ 客户详情（Customer Detail）
   —— 沿用 Phase 1 Design System（--fu-*），只作用于 #customers 与 #detail。
   ====================================================================== */
/* ---------- 客户列表：页面头部 / 搜索 / 筛选 / 数量 ---------- */
body #customers {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad);font-family:var(--fu-font);max-width:430px;margin:0 auto}
body #customers>.row.space {align-items:center;margin-bottom:var(--fu-s4)}
body #customers h2 {font-size:24px;font-weight:700;color:var(--fu-text-1);margin:0}
body #customers .row.space .btn {min-height:36px;padding:8px 14px;border-radius:var(--fu-r-pill);
  background:var(--fu-primary-soft);color:var(--fu-primary);border:0;font-size:13px;font-weight:600}
body #customers [data-customer-scope] {margin:2px 0 var(--fu-s4);font-size:12.5px;color:var(--fu-text-3)}
body #customers .ui2-search {border:1px solid var(--fu-border);background:var(--fu-surface);border-radius:var(--fu-r-md);
  padding:10px 14px;box-shadow:var(--fu-shadow-card);margin-bottom:var(--fu-s3)}
body #customers .ui2-search input {font-size:14px;color:var(--fu-text-1)}
body #customers .ui2-search:focus-within {border-color:var(--fu-primary);box-shadow:0 0 0 2px rgba(255,90,31,.08)}
body #customers .ui2-chips {gap:var(--fu-s2);padding:0 0 var(--fu-s4)}
body #customers .ui2-chip {min-height:34px;padding:8px 14px;font-size:13px;border:1px solid var(--fu-border);
  background:var(--fu-surface);color:var(--fu-text-2);border-radius:var(--fu-r-pill);box-shadow:none}
body #customers .ui2-chip.on {background:var(--fu-primary-strong);border-color:var(--fu-primary-strong);color:#fff;font-weight:600}
/* ---------- 客户卡：头像 + 姓名 + 状态 / 公司 · 类型 · 意向 / 跟进信息 ---------- */
body #customers .item.ui2-cust {
  display:flex;gap:var(--fu-s4);align-items:flex-start;padding:9px var(--fu-s4);margin:0 0 var(--fu-s3);
  background:var(--fu-surface);border:0;border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card);
}
body #customers .item.ui2-cust:active {background:var(--fu-surface-2)}
body #customers .ui2-cust-info {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body #customers .ui2-cust-line {display:flex;align-items:center;gap:var(--fu-s2);min-width:0}
body #customers .ui2-cust-line b {font-size:15px;font-weight:600;color:var(--fu-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #customers .ui2-cust-tags {display:inline-flex;gap:4px;flex:0 0 auto}
body #customers .ui2-cust-tag {font-size:11px;font-weight:500;line-height:1.2;padding:2px 8px;border-radius:var(--fu-r-pill);
  background:var(--fu-surface-2);color:var(--fu-text-2)}
body #customers .ui2-cust-tag.is-hot {background:var(--fu-primary-soft);color:var(--fu-primary)}
body #customers .ui2-cust-company {margin:0;font-size:13px;color:var(--fu-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #customers .ui2-cust-meta {margin:0;font-size:11px;color:var(--fu-text-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #customers .ui2-cust-followrow {margin:2px 0 0}
body #customers .ui2-cust-follow {font-size:12px;color:var(--fu-text-2)}
body #customers .ui2-cust-follow.is-muted {color:var(--fu-text-4)}
body #customers .ui2-cust-follow.is-soon {color:var(--fu-primary);font-weight:600}
/* ---------- 客户详情：身份头 + 核心资料 + 行动 ---------- */
body #detail {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad);font-family:var(--fu-font);max-width:430px;margin:0 auto}
body #detail .card {border:1px solid var(--fu-border);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card)}
body #detail [data-b13-customer-head] {display:block;padding:var(--fu-s5);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-float)}
body #detail [data-b13-customer-head] .ui2-customer-info {display:block}
body #detail .ui2-detail-id {display:flex;gap:var(--fu-s4);align-items:center;margin-bottom:var(--fu-s4)}
body #detail .ui2-detail-idinfo {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body #detail .ui2-detail-line {display:flex;align-items:center;gap:var(--fu-s2);min-width:0}
body #detail .ui2-detail-line b {font-size:19px;font-weight:700;color:var(--fu-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #detail .ui2-detail-rows {margin:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px 12px;
  border-top:1px solid var(--fu-divider);padding-top:var(--fu-s4);font-size:13.5px}
body #detail .ui2-detail-rows dt {color:var(--fu-text-3);font-weight:400}
body #detail .ui2-detail-rows dd {margin:0;color:var(--fu-text-1);overflow-wrap:anywhere}
body #detail .ui2-detail-actions {display:grid;grid-template-columns:1fr 1fr;gap:var(--fu-s3);margin-top:var(--fu-s4)}
body #detail .ui2-btn-primary {min-height:44px;border:0;border-radius:var(--fu-r-md);background:var(--fu-primary);color:#fff;
  font-size:14px;font-weight:600;box-shadow:var(--fu-shadow-cta)}
body #detail .ui2-btn-ghost {min-height:44px;border:1px solid var(--fu-border);border-radius:var(--fu-r-md);
  background:var(--fu-surface);color:var(--fu-text-1);font-size:14px}
body #detail .ui2-btn-primary:active,body #detail .ui2-btn-ghost:active {transform:scale(.985)}
/* 详情内既有区块（阶段 / 7天跟进 / 折叠资料 / 时间轴）统一轻量化 */
body #detail .card>.row.space>h2,body #detail .card>h2 {font-size:16px;font-weight:600;color:var(--fu-text-1)}
body #detail .ui2-steps {gap:var(--fu-s2)}
body #detail .ui2-step {font-size:12px;padding:4px 10px;border-radius:var(--fu-r-pill);background:var(--fu-surface-2);color:var(--fu-text-2)}
body #detail .ui2-step.done {background:var(--fu-success-bg);color:var(--fu-success)}
body #detail .ui2-step.current {background:var(--fu-primary);color:#fff}
body #detail .ui2-fold {border:1px solid var(--fu-border);border-radius:var(--fu-r-md);background:var(--fu-surface);box-shadow:var(--fu-shadow-card)}
body #detail .ui2-fold>summary {font-size:13px;color:var(--fu-text-2)}

/* ---------- Phase 2 视觉校准：列表密度 + 详情层级（最多两层卡片，去重复信息） ---------- */
body #customers {padding-top:var(--fu-s4)}
body #customers .ui2-search {padding:9px 13px;margin-bottom:var(--fu-s2)}
body #customers .ui2-chips {padding:0 0 var(--fu-s3)}
body #customers .ui2-chip {min-height:32px;padding:7px 13px;font-size:12.5px}
body #detail .ui2-detail-rows--inline {grid-template-columns:72px minmax(0,1fr);gap:7px 12px;
  border-top:1px solid var(--fu-divider);padding-top:var(--fu-s4);margin-top:var(--fu-s4)}
body #detail .ui2-panel-title {margin:0 0 var(--fu-s3);font-size:16px;font-weight:600;color:var(--fu-text-1)}
body #detail [data-b12-panel] .card {border:0;box-shadow:none;background:transparent;padding:0;margin:0 0 var(--fu-s5)}
body #detail [data-b12-panel]>.card:first-child {
  border:1px solid var(--fu-border);border-radius:var(--fu-r-lg);background:var(--fu-surface);
  box-shadow:var(--fu-shadow-card);padding:var(--fu-s5);margin-bottom:var(--fu-s4);
}
body #detail [data-b12-panel] .card .card {border:0;box-shadow:none;background:transparent;padding:0;margin:var(--fu-s3) 0 0}

/* ======================================================================
   V9.2-B Final UI｜Phase 3：任务页 Tasks（沿用 --fu-* Design System）
   —— 只作用于 #todoList；Home 任务区由本区块的 #home 规则隐藏新增元素，保持冻结。
   ====================================================================== */
body #todoList {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad);padding-top:var(--fu-s4);
  max-width:430px;margin:0 auto;font-family:var(--fu-font)}
body #todoList .page-head {margin-bottom:var(--fu-s3)}
body #todoList .page-head h2 {font-size:24px;font-weight:700;color:var(--fu-text-1);margin:0}
/* 顶部数量 / 完成状态 */
body #todoList .ui2-task-summary {display:flex;align-items:baseline;gap:var(--fu-s3);margin:0 0 var(--fu-s4);
  color:var(--fu-text-2);font-size:13px}
body #todoList .ui2-task-summary-main {color:var(--fu-text-1);font-weight:600}
body #todoList .ui2-task-summary-main b {color:var(--fu-primary);font-size:18px;font-weight:700;margin:0 2px}
body #todoList .ui2-task-summary-sub {color:var(--fu-text-3);font-size:12.5px}
/* 任务卡：为什么现在联系 + 本次目标 + 时间 + 操作 */
/* 视觉校准：单卡收敛至 ~180–200px（压缩 padding / 行距 / 模块间距，不缩小核心字号） */
body #todoList .task-card {padding:8px var(--fu-s4) 6px;border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card);margin-bottom:var(--fu-s3)}
body #todoList .ui2-task-row {min-height:36px;max-height:none}
body #todoList .ui2-task-row .ui2-avatar {flex:0 0 36px;width:36px;height:36px;font-size:15px}
body #todoList .ui2-task-why {margin:2px 0 0;font-size:12.5px;line-height:1.4;color:var(--fu-text-2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body #todoList .ui2-task-why b {font-weight:600;color:var(--fu-text-3);margin-right:4px}
body #todoList .ui2-task-goal {margin:1px 0 0;font-size:12.5px;line-height:1.4;color:var(--fu-text-1);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body #todoList .ui2-task-goal b {font-weight:600;color:var(--fu-text-3);margin-right:4px}
body #todoList .ui2-task-actions {display:grid;grid-template-columns:1fr 1fr;gap:var(--fu-s3);margin-top:6px}
/* 按钮视觉高度 38px，通过外层热区保证 ≥44px 有效 Touch Target（真实点击逻辑不变） */
body #todoList .ui2-task-actions button {position:relative;min-height:38px;border-radius:var(--fu-r-md);font-size:13.5px;font-weight:600}
body #todoList .ui2-task-actions button::after {content:"";position:absolute;left:0;right:0;top:-3px;bottom:-3px;border-radius:inherit}
body #todoList .ui2-task-go {border:0;background:var(--fu-primary);color:#fff;box-shadow:var(--fu-shadow-cta)}
body #todoList .ui2-task-done {border:1px solid var(--fu-border);background:var(--fu-surface);color:var(--fu-text-1)}
body #todoList .ui2-task-actions button:active {transform:scale(.985)}
/* 「更多信息」弱化为轻文字入口 */
body #todoList .ui2-task-more {margin-top:0}
body #todoList .ui2-task-more>summary {min-height:20px;font-size:12px;color:var(--fu-text-3);line-height:1.3}
body #todoList .ui2-task-more>summary::after {content:" ›";color:var(--fu-text-4)}
body #todoList .ui2-task-more p {margin:2px 0;font-size:12px}
body #todoList .ui2-task-tags {margin-top:1px}
body #todoList .ui2-task-chip {padding:1px 6px}
/* Home 任务区冻结：首页不展示「为什么现在联系」与操作按钮 */
body #home .ui2-task-why,body #home .ui2-task-actions {display:none}

/* ======================================================================
   V9.2-B Final UI｜Phase 4：知识中心 + 销冠实战列表 + 知识详情
   —— 只作用于 #kb 与 #kbItem，沿用 --fu-* Design System；无真实数据模块由 JS 隐藏。
   ====================================================================== */
body #kb {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad);padding-top:var(--fu-s4);
  max-width:430px;margin:0 auto;font-family:var(--fu-font)}
/* 知识详情是知识中心页内的阅读视图（页内返回），不重复叠加页面内边距 */
body #kbItem {max-width:100%;font-family:var(--fu-font)}
body #kb .ui2-kb-head {margin-bottom:var(--fu-s4)}
body #kb .ui2-search {border:1px solid var(--fu-border);background:var(--fu-surface);border-radius:var(--fu-r-md);
  padding:10px 14px;box-shadow:var(--fu-shadow-card);margin-bottom:var(--fu-s3)}
body #kb .ui2-search input {font-size:14px;color:var(--fu-text-1)}
body #kb .ui2-search:focus-within {border-color:var(--fu-primary);box-shadow:0 0 0 2px rgba(255,90,31,.08)}
/* 分类 chips：保留横向滑动，但隐藏系统滚动条（真机截图出现过粗灰条） */
body #kb .ui2-chips {gap:var(--fu-s2);padding:0 0 var(--fu-s2);overflow-x:auto;
  scrollbar-width:none;-ms-overflow-style:none}
body #kb .ui2-chips::-webkit-scrollbar {display:none;width:0;height:0}
body #kb .ui2-chip {min-height:32px;padding:7px 13px;font-size:12.5px;border:1px solid var(--fu-border);
  background:var(--fu-surface);color:var(--fu-text-2);border-radius:var(--fu-r-pill)}
body #kb .ui2-chip.on {background:var(--fu-primary-strong);border-color:var(--fu-primary-strong);color:#fff;font-weight:600}
body #kb .ui2-panel-title {margin:var(--fu-s4) 0 var(--fu-s3);font-size:16px;font-weight:600;color:var(--fu-text-1)}
/* 知识卡：标题 + 标签 + 摘要 + 查看详情（轻阅读感，非文件列表） */
body #kb .item.ui2-kb-card {display:block;padding:14px;margin:0 0 var(--fu-s3);background:var(--fu-surface);
  border:1px solid var(--fu-border);border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card);cursor:pointer}
body #kb .ui2-kb-line {display:flex;align-items:center;gap:var(--fu-s2);min-width:0}
body #kb .ui2-kb-line b {font-size:15px;font-weight:600;color:var(--fu-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #kb .ui2-kb-tags {display:inline-flex;gap:4px;flex:0 0 auto}
/* 知识卡标签沿用与客户列表一致的轻量胶囊（原样式只作用于 #customers，知识页会退化成裸文本） */
body #kb .ui2-kb-tags .ui2-cust-tag {font-size:11px;font-weight:500;line-height:1.2;padding:2px 8px;
  border-radius:var(--fu-r-pill);background:var(--fu-surface-2);color:var(--fu-text-2);white-space:nowrap}
body #kb .ui2-kb-summary {margin:6px 0 0;font-size:13px;line-height:1.55;color:var(--fu-text-2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body #kb .ui2-kb-more {display:inline-block;margin-top:10px;font-size:12.5px;font-weight:600;color:var(--fu-primary)}
body #kb .ui2-kb-empty {padding:18px;font-size:13px;color:var(--fu-text-3);text-align:center;box-shadow:none;background:var(--fu-surface)}
/* 「我的知识包」：保留在下移位置，整块压缩 + 兑换行同一横排 */
body #kb [data-b14-kb-package] {padding:13px 14px;border-radius:var(--fu-r-md);box-shadow:var(--fu-shadow-card)}
body #kb [data-b14-kb-package] h2 {margin:0 0 var(--fu-s2);font-size:15px;font-weight:600;color:var(--fu-text-1)}
body #kb [data-b14-kb-package] [data-packages] {font-size:12.5px;line-height:1.5}
body #kb [data-b14-kb-package] [data-packages] .row {padding:2px 0;gap:var(--fu-s2)}
body #kb [data-b14-kb-package] [data-packages] .badge {background:var(--fu-surface-2);color:var(--fu-text-3);
  font-weight:500;font-size:11px;padding:2px 8px;border-radius:var(--fu-r-pill)}
body #kb [data-b14-kb-package] > .row {gap:var(--fu-s2);margin-top:var(--fu-s3)}
body #kb [data-b14-kb-package] input[data-code] {flex:1 1 auto;min-width:0;height:42px;padding:0 12px;
  font-size:13px;border:1px solid var(--fu-border);border-radius:var(--fu-r-md);background:var(--fu-surface)}
body #kb [data-b14-kb-package] button[data-redeem] {flex:0 0 auto;height:42px;min-height:42px;padding:0 18px;
  white-space:nowrap;border-radius:var(--fu-r-md);background:var(--fu-primary-soft);color:var(--fu-primary);
  font-size:13.5px;font-weight:600;line-height:1;box-shadow:none}
/* 知识详情：阅读优先 */
body #kbItem .ui2-kb-detail {padding:var(--fu-s5);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card)}
body #kbItem .ui2-kb-detail h2 {margin:0 0 var(--fu-s2);font-size:19px;font-weight:700;color:var(--fu-text-1);line-height:1.35}
body #kbItem .ui2-kb-body {font-size:14.5px;line-height:1.75;color:var(--fu-text-1);white-space:pre-wrap;overflow-wrap:anywhere}
/* 业务员阅读层：适用范围 / 来源（弱化）；日期等元数据只出现在管理员视图 */
body #kbItem .ui2-kb-scope {margin:var(--fu-s3) 0 0;font-size:13px;color:var(--fu-text-2)}
body #kbItem .ui2-kb-src {margin:var(--fu-s2) 0 0;font-size:12.5px;color:var(--fu-text-3)}
/* 资料行沿用客户详情的两列排版（该样式原本只作用于 #detail，知识详情会退化成上下堆叠） */
body #kbItem .ui2-detail-rows {margin:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px 12px;
  font-size:13.5px;border-top:1px solid var(--fu-divider);padding-top:var(--fu-s4);margin-top:var(--fu-s4)}
body #kbItem .ui2-detail-rows dt {color:var(--fu-text-3);font-weight:400}
body #kbItem .ui2-detail-rows dd {margin:0;color:var(--fu-text-1);overflow-wrap:anywhere}
body #kbItem .ui2-kb-keywords {margin:var(--fu-s3) 0 0;font-size:12.5px;color:var(--fu-text-3)}

/* ======================================================================
   V9.2-B Final UI｜Phase 5：我的（My）
   —— 只作用于 #account：身份卡 + iOS 设置式分组列表；不新增/删除任何真实入口。
   ====================================================================== */
body #account {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad);padding-top:var(--fu-s4);
  max-width:430px;margin:0 auto;font-family:var(--fu-font)}
body #account .ui2-page-title {font-size:24px;font-weight:700;color:var(--fu-text-1);margin:2px 0 var(--fu-s4)}
/* 身份卡 */
body #account .ui2-me-profile {display:flex;flex-wrap:wrap;align-items:center;gap:var(--fu-s3) var(--fu-s4);
  padding:var(--fu-s4) var(--fu-s5);background:var(--fu-surface);border:1px solid var(--fu-border);
  border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card);margin-bottom:var(--fu-s4)}
body #account .ui2-me-profile .ui2-user-top {flex:1 1 auto;min-width:0}
body #account .ui2-me-profile .ui2-user-top {align-items:center;gap:var(--fu-s4)}
body #account .ui2-me-profile .ui2-avatar.large {width:52px;height:52px;font-size:20px;font-weight:600;
  background:var(--fu-primary-soft);color:var(--fu-primary)}
body #account .ui2-me-identity {flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body #account .ui2-me-identity b {font-size:17px;font-weight:650;color:var(--fu-text-1);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #account .ui2-me-identity small {font-size:12.5px;color:var(--fu-text-3);font-variant-numeric:tabular-nums}
body #account .ui2-me-profile .task-actions {flex:0 0 auto;margin:0;justify-content:flex-end;gap:var(--fu-s4)}
/* 身份卡整体可点（沿用原「查看资料」能力），右侧只保留「编辑资料 ›」 */
body #account .ui2-me-profile[data-b15-me-tap] {cursor:pointer}
body #account .ui2-me-profile[data-b15-me-tap]:active {background:var(--fu-surface-2)}
body #account .ui2-me-profile .task-actions [data-b13-profile="view"] {display:none}
body #account .ui2-me-profile .task-actions .btn {min-height:44px;padding:0;border:0;background:none;box-shadow:none;
  color:var(--fu-primary);font-size:13.5px;font-weight:600}
body #account .ui2-me-profile .task-actions .btn:active {background:none}
/* 分组列表 */
body #account [data-b15-me-group] {padding:0;margin:0 0 var(--fu-s4);background:var(--fu-surface);
  border:1px solid var(--fu-border);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card);overflow:hidden}
body #account [data-b15-me-group] > h2 {margin:0;padding:10px var(--fu-s4) var(--fu-s1);
  font-size:12.5px;font-weight:600;color:var(--fu-text-3)}
body #account [data-b15-me-group] > .muted {margin:0;padding:0 var(--fu-s4) var(--fu-s1);
  font-size:11.5px;line-height:1.45;color:var(--fu-text-4)}
body #account [data-b15-me-group] > .row {display:block;padding:0;margin:0;gap:0}
body #account [data-b15-me-group] .ui2-row,
body #account [data-b15-me-group] > button,
body #account [data-b15-me-group] > .row > button {
  display:flex;align-items:center;gap:var(--fu-s2);width:100%;min-height:52px;margin:0;
  padding:0 var(--fu-s4);background:none;border:0;border-top:1px solid var(--fu-divider);border-radius:0;
  box-shadow:none;font-size:15px;font-weight:500;color:var(--fu-text-1);text-align:left;
}
body #account [data-b15-me-group] .ui2-row b {font-size:15px;font-weight:500;color:var(--fu-text-1)}
body #account [data-b15-me-group] .ui2-row .muted {font-size:12.5px;color:var(--fu-text-3)}
body #account [data-b15-me-group] > button::after,
body #account [data-b15-me-group] > .row > button::after {
  content:"›";margin-left:auto;color:var(--fu-text-4);font-size:16px;font-weight:400;
}
body #account [data-b15-me-group] button.ui2-me-danger {color:#C0392B}
body #account [data-b15-me-group] button.ui2-me-danger::after {color:#C0392B}
body #account [data-b15-me-group] > button:active,
body #account [data-b15-me-group] > .row > button:active,
body #account [data-b15-me-group] .ui2-row:active {background:var(--fu-surface-2)}

/* ======================================================================
   V9.2-B Final UI｜Phase 6：内容创作（Content Creation）
   —— 只作用于 #images：场景 chips / 输入 / 生成设置 / 结果 / 历史 / 个人IP；
     不新增能力，类型 chips 的数据源仍是既有 #itype。
   ====================================================================== */
body #images {padding-left:var(--fu-page-pad);padding-right:var(--fu-page-pad);padding-top:var(--fu-s4);
  max-width:430px;margin:0 auto;font-family:var(--fu-font)}
body #images [data-content-ip-subtitle] {margin:0 0 var(--fu-s4);font-size:12.5px;line-height:1.5;color:var(--fu-text-3)}
/* 场景 Tab（既有真实控件）+ 当前真实类型提示 */
body #images .ui2-tabs {display:grid;grid-template-columns:1fr 1fr;gap:var(--fu-s2);border:0;background:none;padding:0;margin:0 0 var(--fu-s2)}
body #images .ui2-tabs .ui2-tab {min-height:40px;border:1px solid var(--fu-border);border-radius:var(--fu-r-pill);
  background:var(--fu-surface);color:var(--fu-text-2);font-size:13.5px;font-weight:600;padding:8px 12px}
body #images .ui2-tabs .ui2-tab.on {background:var(--fu-primary-strong);border-color:var(--fu-primary-strong);color:#fff}
body #images .ui2-content-current {margin:0 0 var(--fu-s4);font-size:11.5px;color:var(--fu-text-4)}
/* Header 刷新：降为辅助轻按钮，不与主 CTA 争视觉权重（onclick 不变） */
body #images [data-ui2-subhead] .ui2-subhead-actions .btn {min-height:36px;padding:0 12px;border:0;background:none;
  box-shadow:none;color:var(--fu-primary);font-size:13.5px;font-weight:600}
body #images [data-ui2-subhead] .ui2-subhead-actions .btn:active {background:var(--fu-surface-2)}
body #images .ui2-content-label {margin:var(--fu-s5) 0 var(--fu-s3);font-size:13px;font-weight:600;color:var(--fu-text-1)}
/* 场景 / 类型：横向 chips（与客户、知识中心一致的轻量形态） */
body #images .ui2-content-chips {gap:var(--fu-s2);padding:0;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
body #images .ui2-content-chips::-webkit-scrollbar {display:none;width:0;height:0}
body #images .ui2-content-chips .ui2-chip {min-height:32px;padding:7px 13px;font-size:12.5px;border:1px solid var(--fu-border);
  background:var(--fu-surface);color:var(--fu-text-2);border-radius:var(--fu-r-pill)}
body #images .ui2-content-chips .ui2-chip.on {background:var(--fu-primary-strong);border-color:var(--fu-primary-strong);
  color:#fff;font-weight:600}
/* 额度：从绿色提示块降级为一行轻说明 */
body #images .quota {padding:0 0 var(--fu-s4);background:none;border:0;border-radius:0;box-shadow:none;
  font-size:11.5px;line-height:1.5;color:var(--fu-text-4)}
/* 输入与设置 card */
body #images #imageForm {padding:var(--fu-s5);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card);border:1px solid var(--fu-border)}
body #images #imageForm .field {margin-bottom:var(--fu-s4)}
body #images #imageForm .field label {font-size:12.5px;font-weight:600;color:var(--fu-text-2)}
body #images #imageForm input,body #images #imageForm textarea,body #images #imageForm select {font-size:14px;background:var(--fu-surface)}
body #images #imageForm .row {gap:var(--fu-s3)}
body #images #generateBtn {width:100%;min-height:48px;margin-top:var(--fu-s2);border-radius:var(--fu-r-md);
  font-size:15px;font-weight:650}
/* 参考图折叠区（沿用既有 details，不新增控件） */
body #images .reference-upload {border:1px dashed var(--fu-border);border-radius:var(--fu-r-md);background:var(--fu-surface-2);padding:var(--fu-s4)}
body #images .reference-status {font-size:11.5px;line-height:1.5;color:var(--fu-text-4)}
body #images #referencePreview {border-radius:var(--fu-r-md);margin-top:var(--fu-s3)}
/* 本次结果 */
body #images #imageResult .card {padding:var(--fu-s5);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card);border:1px solid var(--fu-border)}
body #images #imageResult h2 {font-size:16px;font-weight:600;color:var(--fu-text-1);margin:0}
body #images #imageResult .muted {font-size:11.5px;line-height:1.5;color:var(--fu-text-4)}
/* 结果预览：完整比例 contain，视觉高度收敛到约 300px，让操作更早进入首屏 */
body #images .generated-img {border-radius:var(--fu-r-md);min-height:0;margin:var(--fu-s3) 0;background:var(--fu-surface-2)}
body #images #imageResult .generated-img {height:300px;object-fit:contain;object-position:center}
body #images .ip-actions {display:grid;grid-template-columns:1fr 1fr;gap:var(--fu-s3);margin:var(--fu-s3) 0}
body #images .ip-actions button {min-height:44px;border-radius:var(--fu-r-md);font-size:13.5px;font-weight:600}
body #images .ip-actions #confirmImage {grid-column:1/-1}
body #images #imageForm .btn.primary,body #images #imageResult .btn.primary,body #images #contentProfile .btn.primary {
  background:var(--fu-primary);color:#fff;border:0;box-shadow:var(--fu-shadow-cta)}
body #images #imageForm .btn.ghost,body #images #imageResult .btn.ghost,body #images #contentProfile .btn.ghost {
  background:var(--fu-primary-soft);color:var(--fu-primary);border:0;box-shadow:none}
body #images #imageResult .btn:disabled,body #images #contentProfile .btn:disabled,body #images #imageForm .btn:disabled {
  background:var(--fu-surface-2);color:var(--fu-text-4);box-shadow:none;border:0}
body #images #contentStatus {font-size:12px;color:var(--fu-text-3);margin:var(--fu-s3) 0 0}
body #images .ip-mode {margin:var(--fu-s2) 0 var(--fu-s3);font-size:11.5px;line-height:1.5;color:var(--fu-text-4)}
body #images .ip-copy {font-size:14.5px;line-height:1.75;color:var(--fu-text-1);white-space:pre-wrap;overflow-wrap:anywhere}
body #images .ip-copy-versions {margin-top:var(--fu-s4);border-top:1px solid var(--fu-divider);padding-top:var(--fu-s3)}
body #images #ipVersions article {padding:var(--fu-s3) 0;border-top:1px solid var(--fu-divider)}
body #images #ipVersions article:first-child {border-top:0}
body #images #ipVersions small {font-size:11px;color:var(--fu-text-4)}
/* 最近生成：缩略图 + 元信息 + 真实动作 */
body #images #imageHistory .item {display:grid;grid-template-columns:84px minmax(0,1fr);gap:var(--fu-s2) var(--fu-s4);
  align-items:center;padding:var(--fu-s3) var(--fu-s4);border:1px solid var(--fu-border);border-radius:var(--fu-r-md);
  box-shadow:var(--fu-shadow-card);background:var(--fu-surface)}
body #images #imageHistory .item img {grid-row:1/span 3;width:84px;height:84px;object-fit:cover;border-radius:var(--fu-r-sm);margin:0;min-height:0}
body #images #imageHistory .item b {font-size:14.5px;font-weight:600;color:var(--fu-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #images #imageHistory .item p.muted {font-size:11.5px;color:var(--fu-text-4);margin:0}
body #images #imageHistory .item button {justify-self:start;min-height:36px;font-size:12.5px;padding:7px 12px;border-radius:var(--fu-r-pill)}
/* 个人IP：覆盖既有内联浅蓝框样式，改为 Design System 分组与 chips */
body #images #contentProfile {padding:var(--fu-s5);border-radius:var(--fu-r-lg);box-shadow:var(--fu-shadow-card);border:1px solid var(--fu-border)}
body #images #contentProfile fieldset {border:0;border-radius:0;padding:0;margin:0 0 var(--fu-s5)}
body #images #contentProfile legend {margin:0 0 var(--fu-s3);padding:0;font-size:13px;font-weight:600;color:var(--fu-text-1)}
body #images #contentProfile .ip-choice {display:inline-flex;align-items:center;gap:6px;margin:0 6px 8px 0;padding:7px 12px;
  border:1px solid var(--fu-border);border-radius:var(--fu-r-pill);background:var(--fu-surface);font-size:12.5px;color:var(--fu-text-2)}
body #images #contentProfile .ip-choice:has(input:checked) {border-color:var(--fu-primary);background:var(--fu-primary-soft);
  color:var(--fu-primary);font-weight:600}
body #images #contentProfile .ip-choice input {position:absolute;opacity:0;width:1px;height:1px;margin:0}
body #images #contentProfile .ip-choice:has(input:focus-visible) {box-shadow:0 0 0 2px rgba(255,90,31,.18)}
body #images #contentProfile label > input,body #images #contentProfile label > textarea,
body #images #contentProfile label > select {margin-top:6px}
body #images #contentProfile summary {font-size:13px;color:var(--fu-text-2);min-height:40px;display:flex;align-items:center}
body #images #contentProfile .muted {font-size:11.5px;line-height:1.5;color:var(--fu-text-4)}
/* 个人IP 摘要卡：压缩高度，只保留定位/文案偏好/图片偏好 + 查看全部/修改 */
body #images #contentProfile [data-b16-summary] {display:block}
body #images #contentProfile [data-b16-summary] h2 {font-size:16px;font-weight:600;margin:0 0 var(--fu-s2);color:var(--fu-text-1)}
body #images #contentProfile [data-b16-summary] .summary-rows {margin:0 0 var(--fu-s3);grid-template-columns:76px minmax(0,1fr);
  gap:4px 10px;font-size:13px;line-height:1.5}
body #images #contentProfile [data-b16-summary] .summary-rows dt {color:var(--fu-text-3)}
body #images #contentProfile [data-b16-summary] .summary-rows dd {color:var(--fu-text-1)}
body #images #contentProfile [data-b16-summary] .task-actions {margin:0;gap:var(--fu-s3)}
body #images #contentProfile [data-b16-summary] .task-actions .btn {min-height:40px;padding:0 14px;border:0;border-radius:var(--fu-r-md);
  font-size:13.5px;font-weight:600}
body #images #contentProfile [data-b16-summary] .task-actions .btn.ghost,
body #images #contentProfile [data-b16-summary] .task-actions .btn.secondary {background:var(--fu-primary-soft);color:var(--fu-primary)}
/* ---------- C. 客户上下文条：修正为真正的轻量 Context Bar（此前继承 .btn 最小高度被撑成 56px 橙色大药丸） ---------- */
body #assistant .ui2-ctx {
  display:inline-flex;align-items:center;gap:var(--fu-s2);align-self:flex-start;max-width:100%;
  height:34px;padding:0 var(--fu-s2) 0 var(--fu-s4);margin:0 0 var(--fu-s4);
  background:var(--fu-primary-soft);color:var(--fu-primary);border-radius:var(--fu-r-pill);font-size:12.5px;
}
body #assistant .ui2-ctx [data-ui2-ctx-name] {
  max-width:42vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:34px;
}
body #assistant .ui2-ctx .btn {
  min-height:26px;height:26px;padding:0 8px;font-size:12.5px;line-height:24px;
  background:rgba(255,255,255,.72);color:var(--fu-primary);border:0;border-radius:var(--fu-r-pill);
}
body #assistant .ui2-ctx .btn:active {background:rgba(255,255,255,.95)}
