/* ===== 淡紫毛玻璃(2026-11-21 刘总:照 Codex 生图的淡紫色毛玻璃效果,先做手机端样板) =====
   2026-11-21 Codex 按效果图调整
   只挂在 body.m-shell(≤768px 的手机外壳)下,电脑版一点不变;去掉 index.html 里这一行 <link> 就回到原样。
   做法:① 底层淡紫渐变 + 几团模糊光斑(固定,不跟着滚);
        ② 顶栏、标签切换、底栏、弹出层用真毛玻璃(半透明 + backdrop-filter 模糊),透出后面的光斑;
        ③ 卡片只用半透明白 + 细白边 + 柔和紫影,不做模糊 —— 长列表每张卡都模糊,安卓低端机滑动会卡;
        ④ 不支持 backdrop-filter 的安卓内核自动退成更不透明的白(@supports),不会看不清。
   页面各自注入的样式(cc-hub / todo-hub / perf-home / detail)在后面,这里统一加 body.m-shell 前缀压过它们,尽量不用 !important。 */

@media (max-width: 768px) {
body.m-shell {
  --g-ink: #191627;            /* 正文 */
  --g-sub: #605a70;            /* 次要文字(比原来的 #8d8597 深一档:半透明底上浅灰会发虚) */
  --g-faint: #8a8198;
  --g-pur: #8031ce;            /* 主紫 */
  --g-pur2: #b274e8;
  --g-pur-soft: rgba(155, 111, 214, .14);
  --g-card: rgba(255, 255, 255, .62);
  --g-card-edge: rgba(255, 255, 255, .95);
  --g-glass: rgba(255, 255, 255, .52);          /* 2026-11-22 刘总:比 Codex 图紫、深 —— 玻璃件更接近半透明白 */
  --g-glass-edge: rgba(255, 255, 255, .85);
  --g-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), 0 8px 24px rgba(120, 100, 200, .09);
  --g-blur: saturate(140%) blur(20px);
  color: var(--g-ink);
  /* 底色和玻璃球(2026-11-22 按 Codex 图取色重调):
     · 底色:浅的、略偏蓝的薰衣草 + 一层奶白的雾(原来更深更艳);
     · 玻璃球:比底色更亮、边缘柔和发光(原来边上一圈深紫,显重);
     · 光斑:降饱和、降不透明度。 */
  --g-bg:
    /* 玻璃球 = 有明暗的立体球:靠里一侧一团高光,球体本身是略深的薰衣草,边缘柔和收掉 */
    radial-gradient(circle 120px at 70px 8px, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle 192px at -40px 40px, rgba(206, 190, 250, .34) 0, rgba(192, 172, 247, .42) 80%, rgba(184, 162, 245, .40) 93%, rgba(184, 162, 245, 0) 100%),
    radial-gradient(circle 95px at calc(100% - 60px) 70px, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle 155px at calc(100% + 40px) 112px, rgba(208, 192, 251, .32) 0, rgba(194, 174, 248, .40) 80%, rgba(186, 164, 246, .38) 93%, rgba(186, 164, 246, 0) 100%),
    radial-gradient(circle 100px at 60px calc(100% - 210px), rgba(255, 255, 255, .45) 0, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle 165px at -34px calc(100% - 96px), rgba(210, 196, 252, .28) 0, rgba(196, 178, 248, .34) 80%, rgba(188, 168, 246, .32) 93%, rgba(188, 168, 246, 0) 100%),
    radial-gradient(ellipse 70% 40% at -6% 10%, rgba(198, 180, 252, .30), transparent 72%),
    radial-gradient(ellipse 60% 36% at 104% 24%, rgba(200, 184, 252, .30), transparent 74%),
    radial-gradient(ellipse 75% 40% at 12% 92%, rgba(208, 192, 254, .26), transparent 74%),
    radial-gradient(ellipse 55% 34% at 90% 80%, rgba(230, 222, 255, .45), transparent 72%),
    linear-gradient(160deg, #f1edff 0%, #ebe5fe 48%, #f2eeff 100%);
  background: var(--g-bg);
  background-attachment: fixed;
}
/* 内容区透明,让底层光斑透出来(原来铺了一层自己的渐变) */
body.m-shell #content.content,
body.m-shell .th-wrap, body.m-shell .pfh-wrap, body.m-shell .cxh, body.m-shell .content.cxh-wrap { background: transparent !important; }

/* ---------- 毛玻璃:顶栏、底栏 ---------- */
body.m-shell header.topbar {
  background: var(--g-glass); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  /* 保持原 flex 文档流:高度和上下外边距自然让出内容空间,不覆盖 main-wrap。 */
  height: 46px; flex: none; margin: calc(12px + env(safe-area-inset-top, 0px)) 7px 2px;
  border: 1px solid var(--g-glass-edge); border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 5px 20px rgba(108,68,170,.08);
}
body.m-shell .ms-title { color: var(--g-ink); font-size: 20px; font-weight: 750; letter-spacing: .5px; }
body.m-shell .ms-back { color: var(--g-ink); }
body.m-shell .ms-tabs {
  left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  height: 60px; padding-bottom: 0; border-radius: 28px;
  background: var(--g-glass); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-glass-edge); box-shadow: 0 10px 30px rgba(108, 68, 170, .16);
}
body.m-shell .main-wrap { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
body.m-shell .ms-tabs a { color: var(--g-sub); font-size: 12px; gap: 4px; }
body.m-shell .ms-tabs a svg { width: 24px; height: 24px; }
body.m-shell .ms-tabs a.on { color: var(--g-pur); }

/* ---------- 分段切换(今日/全部/逾期…、客户中心四段、详情页标签):毛玻璃底 + 选中白块 ---------- */
body.m-shell .th-seg, body.m-shell .cxh-seg4, body.m-shell .cxh-seg, body.m-shell .fx-detail .fd-tabs {
  background: var(--g-glass) !important; -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-glass-edge); box-shadow: var(--g-shadow);
}
body.m-shell .th-seg { border-radius: 18px; padding: 5px; }
body.m-shell .th-seg button { padding: 9px 0; font-size: 14px; }
body.m-shell .th-seg button.on, body.m-shell .cxh-seg4 button.on, body.m-shell .cxh-seg button.on {
  background: rgba(255,255,255,.92) !important; color: var(--g-ink) !important; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(108, 68, 170, .14);
}
body.m-shell .cxh-seg4 button.on b, body.m-shell .cxh-seg4 button.on small { color: var(--g-pur) !important; }

/* ---------- 卡片:半透明白 + 细白边 + 柔和紫影(不模糊) ---------- */
body.m-shell .th-card, body.m-shell .cxh-card, body.m-shell .pfh-card,
body.m-shell .fx-detail .fd-card, body.m-shell .fx-detail .fd-group, body.m-shell .fx-detail .fd-mhero,
body.m-shell .lc-card, body.m-shell .cxh-box, body.m-shell .lp-box {
  background: var(--g-card) !important; border: 1px solid var(--g-card-edge) !important;
  border-radius: 19px; box-shadow: var(--g-shadow);
}
body.m-shell .th-card { padding: 14px 15px; }
body.m-shell .th-top b { font-size: 15px; line-height: 1.45; }
body.m-shell .th-meta { font-size: 13px; }
/* 业绩页「我的提成」:原本就是紫色白字的主卡,保留深紫渐变,加玻璃高光和白边(不能换成半透明白:白字会看不见) */
body.m-shell .pfh-hero {
  background: linear-gradient(140deg, #ad72e1 0%, #8750ce 52%, #a879e6 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 20px;
  box-shadow: 0 12px 30px rgba(110, 66, 180, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}
body.m-shell .pfh-hero .pfh-sub, body.m-shell .pfh-hero .pfh-note, body.m-shell .pfh-hero .pfh-leg { color: #fff !important; }
/* 业绩页小格子:淡紫半透明,浮在白卡上 */
body.m-shell .pfh-tile { background: linear-gradient(135deg, rgba(221,204,248,.30), rgba(234,223,251,.48)); border: 1px solid rgba(197,174,233,.32); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }

/* 卡片里再套的小块(承揽进度框、步骤框):更淡一档,别和外层抢 */
body.m-shell .lp-card, body.m-shell .lc-empty, body.m-shell .td-form {
  background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(255, 255, 255, .8) !important;
}
body.m-shell .cxh-box, body.m-shell .lp-box { box-shadow: none; }

/* 文字层次 */
body.m-shell .th-card b, body.m-shell .cxh-name, body.m-shell .cxh-what { color: var(--g-ink); }
body.m-shell .th-meta, body.m-shell .th-sub, body.m-shell .th-src, body.m-shell .cxh-meta, body.m-shell .cxh-sub,
body.m-shell .pfh-sub, body.m-shell .pfh-note { color: var(--g-sub) !important; }

/* 日期 / 状态小标签:淡紫胶囊 */
body.m-shell .th-tag, body.m-shell .cxh-tag.t-pur, body.m-shell .lp-bs.active, body.m-shell .lp-bx, body.m-shell .pfh-tag {
  background: var(--g-pur-soft) !important; color: var(--g-pur) !important; border-radius: 999px;
}

/* ---------- 按钮:主按钮紫色渐变,次按钮半透明白 ---------- */
body.m-shell .th-btn.p, body.m-shell .cxh-btn.p, body.m-shell .cxh-new, body.m-shell .fx-detail .crm-btn.primary,
body.m-shell .pfh-btn.p, body.m-shell .lp-sign-btn:not(.again) {
  background: linear-gradient(180deg, var(--g-pur2) 0%, var(--g-pur) 100%) !important; color: #fff !important;
  border: 0 !important; box-shadow: 0 6px 16px rgba(123, 75, 196, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.m-shell .th-btn:not(.p), body.m-shell .cxh-btn:not(.p), body.m-shell .fx-detail .crm-btn:not(.primary),
body.m-shell .lp-sign-btn.again, body.m-shell .pfh-btn:not(.p), body.m-shell .cxh-search {
  background: rgba(255, 255, 255, .58) !important; border: 1px solid rgba(203, 186, 230, .8) !important; color: var(--g-ink);
}
body.m-shell .th-btn, body.m-shell .cxh-btn, body.m-shell .fx-detail .crm-btn { border-radius: 12px; }
body.m-shell .th-link, body.m-shell .cxh-link, body.m-shell .cxh-more { color: var(--g-pur) !important; }

/* ---------- 弹出层(客户中心事项详情、客户详情):毛玻璃 ---------- */
body.m-shell .cxh-sheet, body.m-shell .fx-detail {
  background: rgba(245, 239, 255, .80) !important; -webkit-backdrop-filter: saturate(160%) blur(24px); backdrop-filter: saturate(160%) blur(24px);
  border-top: 1px solid var(--g-glass-edge);
}
body.m-shell .cxh-sheet { border: 1px solid var(--g-glass-edge); border-radius: 24px; box-shadow: 0 -10px 40px rgba(108, 68, 170, .18); }
body.m-shell .fx-detail .fd-head, body.m-shell .fx-detail .fd-body { background: transparent !important; }
body.m-shell .cxh-mask, body.m-shell .fx-detail-mask { background: rgba(60, 36, 100, .22) !important; }

/* ---------- 对齐效果图的局部层次;不改变原有网格、流程和按钮可见性 ---------- */
body.m-shell .ms-bar { box-sizing: border-box; padding: 0 4px; }
body.m-shell .ms-back, body.m-shell .ms-side { width: 44px; flex: none; }
body.m-shell .th-kinds { margin-top: 18px; }
body.m-shell .th-chips button, body.m-shell .th-kinds button,
body.m-shell .cxh-chip, body.m-shell .cxh-chips2 button {
  background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 5px rgba(107,65,170,.05); color: var(--g-sub);
}
body.m-shell .th-chips button.on, body.m-shell .th-kinds button.on,
body.m-shell .cxh-chip.on {
  background: rgba(250,245,255,.65); border-color: #a465df; color: var(--g-pur);
}
body.m-shell .cxh-chips2 button.on {
  background: rgba(255,255,255,.7); border-color: #d9cbed; color: var(--g-ink);
}
body.m-shell .cxh-chips2 button.zero { color: #918a9b; }
body.m-shell .th-btn { font-size: 14px; }
body.m-shell .th-tag { font-size: 12px; }
body.m-shell .pfh-card { padding: 15px; }
body.m-shell .pfh-big { font-size: 36px; margin: 8px 0 6px; }
body.m-shell .pfh-acts a { border-radius: 12px; }
body.m-shell .pfh-btn:not(.p) { color: var(--g-pur); }
body.m-shell .cxh-search { border-radius: 16px; border-color: var(--g-card-edge) !important; }
body.m-shell .cxh-search input { font-size: 16px; }
body.m-shell .cxh-seg4 { border-radius: 15px; box-shadow: none; padding: 5px; }
body.m-shell .cxh-seg4 button { padding: 8px 0; }
body.m-shell .cxh-seg4 button.on { border-radius: 14px; }
body.m-shell .cxh-sheet .cxh-sh b { font-size: 18px; color: var(--g-ink); }
body.m-shell .cxh-sheet .cxh-sb { overscroll-behavior: contain; }
body.m-shell .cxh-sheet .cxh-sf {
  background: rgba(240,230,254,.45); border-top-color: rgba(255,255,255,.75);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
body.m-shell .cxh-mask { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
body.m-shell .fx-detail { background: var(--g-bg) !important; }
body.m-shell .fx-detail .fd-head { padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; }
body.m-shell .fx-detail .fd-mhero { padding: 18px; }
body.m-shell .fx-detail .fd-mh-name { color: var(--g-ink); }
body.m-shell .fx-detail .fd-mh-tag:not(.fd-mh-ok):not(.fd-mh-deal) {
  background: rgba(233,225,246,.55); border: 1px solid rgba(255,255,255,.75);
}
body.m-shell .lp-card, body.m-shell .lp-box { border-radius: 16px; }
body.m-shell .lc-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
/* 保留预警的红/橙色语义,不让通用紫色标签覆盖异常。 */
body.m-shell .th-card.late { border-left: 3px solid #c0392b !important; }
body.m-shell .th-tag.late, body.m-shell .pfh-tag.pfh-red {
  background: #fdecec !important; color: #b52c25 !important;
}
body.m-shell .th-tag.today, body.m-shell .pfh-tag.pfh-org {
  background: #fff4de !important; color: #955600 !important;
}
body.m-shell .pfh-tag.pfh-grn { background: #e6f6ec !important; color: #1a7f45 !important; }
body.m-shell .pfh-tag.pfh-gry { background: #f1eef4 !important; color: #706779 !important; }
body.m-shell .th-btn:focus-visible, body.m-shell .cxh-btn:focus-visible,
body.m-shell .pfh-btn:focus-visible, body.m-shell .ms-tabs a:focus-visible,
body.m-shell .ms-back:focus-visible, body.m-shell .cxh-new:focus-visible,
body.m-shell .fx-detail .crm-btn:focus-visible {
  outline: 2px solid var(--g-pur); outline-offset: 3px;
}

/* ===================== 其余手机页面(2026-11-22 刘总:把其余手机页面也改成毛玻璃) =====================
   在演示环境把「全部」里 40 多种页面逐个打开,按元素的作用归类:卡片 / 输入 / 主按钮 / 次按钮 / 分段与底栏。
   不动:状态标签的红绿橙(语义色)、数据驾驶舱与目标完成情况(深色大屏,自成一套)、企微/钉钉聊天窗(消息区要纯白才看得清)。 */

/* 卡片与分块:半透明白 + 细白边 + 柔和紫影(同待办卡片,不做模糊) */
body.m-shell .plain-card, body.m-shell .lcc, body.m-shell .home-card, body.m-shell .wr-card, body.m-shell .agy-kpi,
body.m-shell .agy-card, body.m-shell .agy-table, body.m-shell .cp-kpi, body.m-shell .cp-card, body.m-shell .pd-tile,
body.m-shell .wl-tile, body.m-shell .fr-kpi, body.m-shell .fr-card, body.m-shell .mk-tile, body.m-shell .cc2-mc,
body.m-shell .ch-card, body.m-shell .cm-tile, body.m-shell .pl-tile, body.m-shell .le-sec, body.m-shell .cm-sec,
body.m-shell .mk-sec, body.m-shell .pd-sec, body.m-shell .wl-sec, body.m-shell .pl-sec, body.m-shell .ma-sec,
body.m-shell .ex-mc, body.m-shell .rv-page, body.m-shell .ql-page, body.m-shell .co-tot, body.m-shell .co-mc,
body.m-shell .pb-detail, body.m-shell .td-card, body.m-shell .sc-a-form, body.m-shell .home-topfilter, body.m-shell .td-item {
  background: var(--g-card) !important; border: 1px solid var(--g-card-edge) !important;
  border-radius: 18px !important; box-shadow: var(--g-shadow) !important;
}
/* 卡片里再套的小格:更淡一档 */
body.m-shell .ch-cardlet, body.m-shell .dash-themed, body.m-shell .roi-banner {
  background: rgba(255, 255, 255, .5) !important; border: 1px solid rgba(255, 255, 255, .8) !important;
}

/* 输入框、搜索、下拉:半透明白 */
body.m-shell .f-search, body.m-shell .f-select, body.m-shell .f-btn, body.m-shell .le-in, body.m-shell .mk-in,
body.m-shell .ma-in, body.m-shell .ql-in, body.m-shell .rv-in, body.m-shell .db-date, body.m-shell .aip-input,
body.m-shell .roi-field, body.m-shell .ma-search, body.m-shell .lc-filter .f-search, body.m-shell .lc-filter .f-select,
body.m-shell .lc-filter .f-btn {
  background: rgba(255, 255, 255, .7) !important; border: 1px solid rgba(203, 186, 230, .7) !important; border-radius: 12px !important;
}
body.m-shell .f-search input, body.m-shell .ma-search input { background: transparent !important; }

/* 次按钮:半透明白 */
body.m-shell .crm-btn:not(.primary), body.m-shell .pg-btn, body.m-shell .td-refresh, body.m-shell .ml-empty,
body.m-shell .cc2-btn, body.m-shell .wr-add, body.m-shell .wl-btn, body.m-shell .ht-icon-btn, body.m-shell .ml-more,
body.m-shell .td-btn, body.m-shell .pd-btn, body.m-shell .rv-pp, body.m-shell .wr-upload, body.m-shell .fx-btn,
body.m-shell .home-filter-btn, body.m-shell .agy-mfilter {
  background: rgba(255, 255, 255, .62) !important; border: 1px solid rgba(203, 186, 230, .8) !important;
  color: var(--g-ink); border-radius: 12px !important;
}

/* 主按钮:紫色渐变(原来有几页还是旧的蓝色,统一成紫) */
body.m-shell .crm-btn.primary, body.m-shell .fs-go, body.m-shell .ma-btn.primary, body.m-shell .ex-btn.p,
body.m-shell .le-btn, body.m-shell .mk-btn, body.m-shell .pl-btn, body.m-shell .co-btn, body.m-shell .td-primary,
body.m-shell .sc-a-primary, body.m-shell .fr-primary, body.m-shell .cc2-btn.p {
  background: linear-gradient(180deg, var(--g-pur2) 0%, var(--g-pur) 100%) !important; color: #fff !important;
  border: 0 !important; border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(123, 75, 196, .30), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* 分段 / 页签条:毛玻璃底,选中白块 */
body.m-shell .cm-tabs, body.m-shell .mk-tabs, body.m-shell .ma-tabs, body.m-shell .remind-nav, body.m-shell .ex-seg {
  background: var(--g-glass) !important; -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-glass-edge) !important; border-radius: 16px !important; box-shadow: var(--g-shadow);
}
body.m-shell .lc-head .view-tab.cur, body.m-shell .todo-tab.cur, body.m-shell .td-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--g-pur2) 0%, var(--g-pur) 100%) !important; color: #fff !important; border-color: transparent !important;
}
body.m-shell .lc-head .view-tab:not(.cur) { background: rgba(255, 255, 255, .62) !important; border: 1px solid var(--g-card-edge); }

/* 列表页底部的分页条:毛玻璃 */
body.m-shell .lc-foot {
  background: var(--g-glass) !important; -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border-top: 1px solid var(--g-glass-edge) !important;
}

/* 整页外层容器透明,透出背景(原来各页自己铺了白或灰的底) */
body.m-shell .list-card, body.m-shell .lc-cards, body.m-shell .mc-page, body.m-shell .ma-page,
body.m-shell .le-page, body.m-shell .cm-page, body.m-shell .wl-page, body.m-shell .pd-page, body.m-shell .wr-page,
body.m-shell .cp-page, body.m-shell .mk-page, body.m-shell .pl-page, body.m-shell .ex-page { background: transparent !important; }

/* ---------- 不支持 backdrop-filter 的(部分安卓钉钉内核):玻璃退成更不透明的白,保证看得清 ---------- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.m-shell .topbar, body.m-shell .ms-tabs, body.m-shell .th-seg, body.m-shell .cxh-seg4, body.m-shell .cxh-seg,
  body.m-shell .fx-detail .fd-tabs, body.m-shell .cm-tabs, body.m-shell .mk-tabs, body.m-shell .ma-tabs, body.m-shell .remind-nav,
  body.m-shell .ex-seg, body.m-shell .lc-foot { background: rgba(250, 247, 255, .94) !important; }
  body.m-shell .cxh-sheet, body.m-shell .fx-detail { background: rgba(250, 247, 255, .97) !important; }
  body.m-shell { --g-card: rgba(255, 255, 255, .86); }
}
}

/* ---------- 2026-11-22 刘总:客户详情进度卡里的按钮和展开的小表单(记录洽谈 / 邀约 / 优惠 / 签约 / 加协同人 / 报流失)也走毛玻璃 ---------- */
@media (max-width: 768px) {
/* 展开的小表单:半透明白玻璃卡,细白边 + 柔和紫影 */
body.m-shell .lp-sbox {
  background: rgba(255, 255, 255, .55) !important; border: 1px solid var(--g-card-edge) !important;
  border-radius: 18px; box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
/* 方式选择(当面 / 电话 / 微信):玻璃分段,选中白块 */
body.m-shell .lp-kind {
  background: var(--g-glass); border: 1px solid var(--g-glass-edge); border-radius: 14px; padding: 4px; gap: 4px;
}
body.m-shell .lp-kind button { background: transparent !important; border: 0 !important; border-radius: 10px; color: var(--g-sub); }
body.m-shell .lp-kind button.on { background: rgba(255, 255, 255, .92) !important; color: var(--g-pur) !important; box-shadow: 0 2px 10px rgba(108, 68, 170, .14); }
/* 输入框 */
body.m-shell .lp-sbox textarea, body.m-shell .lp-sbox input:not([type=checkbox]):not([type=radio]), body.m-shell .lp-sbox select {
  background: rgba(255, 255, 255, .72) !important; border: 1px solid rgba(203, 186, 230, .7) !important; border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(108, 68, 170, .05);
}
body.m-shell .lp-sbox textarea:focus, body.m-shell .lp-sbox input:focus { outline: none; border-color: var(--g-pur2) !important; box-shadow: 0 0 0 3px var(--g-pur-soft); }
/* 常用短语:玻璃小胶囊 */
body.m-shell .lp-tchips button {
  background: rgba(255, 255, 255, .5) !important; border: 1px solid var(--g-glass-edge) !important; color: var(--g-sub); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
body.m-shell .lp-tchips button:active { background: var(--g-pur-soft) !important; color: var(--g-pur); }
/* 表单底部按钮:主按钮紫色渐变,次按钮半透明白 */
body.m-shell .lp-srow button { border-radius: 12px; height: 40px; }
body.m-shell .lp-srow button:not(.ghost):not(.red) {
  background: linear-gradient(180deg, var(--g-pur2) 0%, var(--g-pur) 100%) !important; color: #fff !important; border: 0 !important;
  box-shadow: 0 6px 16px rgba(123, 75, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.m-shell .lp-srow button.ghost { background: rgba(255, 255, 255, .58) !important; border: 1px solid rgba(203, 186, 230, .8) !important; color: var(--g-ink) !important; }
/* 洽谈阶段两个大按钮 + 一排小按钮 */
body.m-shell .lp-main > button {
  border-radius: 14px; background: linear-gradient(180deg, var(--g-pur2) 0%, var(--g-pur) 100%);
  box-shadow: 0 6px 16px rgba(123, 75, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body.m-shell .lp-main > button.sign {
  background: linear-gradient(180deg, #4cc283 0%, #239a55 100%);
  box-shadow: 0 6px 16px rgba(35, 154, 85, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
}
/* 洽谈记录:和下面「明细」同一套 —— 外面一个淡紫边玻璃框,每次洽谈一张玻璃小卡(2026-11-22 刘总) */
body.m-shell .lp-talks {
  padding: 12px 14px; background: rgba(255, 255, 255, .42); border: 1px solid rgba(203, 186, 230, .62); border-radius: 18px;
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), 0 6px 20px rgba(120, 100, 200, .10);
}
body.m-shell .lp-talks .lp-ptitle { margin: 0 0 8px; font-size: 15px; color: var(--g-ink); }
body.m-shell .lp-talk-i {
  background: rgba(255, 255, 255, .62) !important; border: 1px solid var(--g-card-edge) !important; border-radius: 13px;
  padding: 9px 12px; margin-bottom: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 3px 10px rgba(120, 100, 200, .06);
}
body.m-shell .lp-talk-i:last-of-type { margin-bottom: 0; }
body.m-shell .lp-talk-h em { background: var(--g-pur-soft); color: var(--g-pur); }
body.m-shell .lp-talk-all { color: var(--g-pur); }
/* 「查看建档、洽谈、签约和收款明细」:每一步一个玻璃框(边比原来清楚),步骤里的每条记录(电话反馈、第 N 次洽谈…)一张玻璃小卡 */
body.m-shell .lp-box {
  background: rgba(255, 255, 255, .42) !important; border: 1px solid rgba(203, 186, 230, .62) !important; border-radius: 18px;
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), 0 6px 20px rgba(120, 100, 200, .10) !important;
}
body.m-shell .lp-box.active { border-color: rgba(154, 99, 192, .55) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), 0 0 0 3px var(--g-pur-soft), 0 6px 20px rgba(120, 100, 200, .12) !important; }
body.m-shell .lp-sub {
  border-left: 0; margin-top: 8px; padding: 9px 12px;
  background: rgba(255, 255, 255, .62); border: 1px solid var(--g-card-edge); border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 3px 10px rgba(120, 100, 200, .06);
}
body.m-shell .lp-sub small { color: var(--g-faint); }
body.m-shell .lp-minor > button {
  background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(203, 186, 230, .62) !important; color: var(--g-pur);
  box-shadow: var(--g-shadow);
}
}

/* 客户列表卡片的业务类型:绿字(2026-11-23 刘总),压过毛玻璃对小标签的统一灰 */
@media (max-width: 768px) {
body.m-shell .lcc-tag.lcc-biz { background: rgba(230, 246, 236, .85) !important; color: #1a7f45 !important; font-weight: 600; }
}

/* ===== iOS 最新版(Liquid Glass 液态玻璃)的样式和动态细节(2026-11-24 刘总:钉钉手机端和小程序同步成一样的) =====
   · 大标题:底栏那几页顶上一行 32px 粗标题(js/mobile-shell.js 插的 .ms-large);页面里往下滚,大标题收起、顶栏浮起毛玻璃和小标题
   · 底栏:液态玻璃 + 选中「透镜」弹性滑动;选中图标实心;点按缩一下
   · 材质:卡片 / 底栏上缘镜面高光 + 双层柔和阴影,圆角加大;iOS 系统字体
   · 动效:换页时卡片依次浮起(body.ms-enter)、按下缩一下 */
@media (max-width: 768px) {
body.m-shell {
  --ios-spring: cubic-bezier(.34, 1.36, .64, 1);
  --ios-ease: cubic-bezier(.2, .8, .2, 1);
  --lg-hl: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 1px rgba(255, 255, 255, .35);
  --lg-shadow: 0 10px 30px rgba(70, 50, 140, .12), 0 2px 6px rgba(70, 50, 140, .05);
  font-family: -apple-system, 'SF Pro Text', 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.1px;
}
@keyframes ms-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---- 大标题 */
.ms-large { display: none; }
/* 大标题浮在内容区上面(不占布局),内容区顶上固定留 56px —— 滚动时只移走、淡出,内容位置不变(2026-11-24 真机反馈改) */
body.m-shell.ms-large-on .main-wrap { position: relative; }
body.m-shell.ms-large-on .ms-large {
  display: block; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 56px; padding: 2px 18px 0; box-sizing: border-box;
  pointer-events: none; will-change: transform, opacity;
}
body.m-shell.ms-large-on #content.content { padding-top: 56px !important; }
.ms-large-t { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; color: var(--g-ink, #191627);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 顶栏:大标题展开时透明、小标题隐藏;收起后浮起玻璃、出现小标题 */
body.m-shell header.topbar { transition: background .25s linear, border-color .25s linear, box-shadow .25s linear; }
body.m-shell .ms-title { transition: opacity .2s linear, transform .3s var(--ios-ease); }
body.m-shell.ms-large-on:not(.ms-collapsed) header.topbar {
  background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.m-shell.ms-large-on:not(.ms-collapsed) .ms-title { opacity: 0; transform: translateY(6px); }
body.m-shell header.topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
  box-shadow: var(--lg-hl), 0 6px 22px rgba(70, 50, 140, .10);
}

/* ---- 底栏:液态玻璃 + 滑动透镜 */
body.m-shell .ms-tabs {
  height: 64px; border-radius: 32px; padding: 0 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: var(--lg-hl), 0 14px 34px rgba(70, 50, 140, .18), 0 2px 6px rgba(70, 50, 140, .06);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
}
body.m-shell .main-wrap { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
/* 大标题插在内容上面:外层改成竖排(手机上左侧栏本来就隐藏) */
body.m-shell .main-wrap { flex-direction: column; }
body.m-shell .main-wrap > .content { flex: 1; min-height: 0; width: 100%; }
.ms-lens { display: none; }
body.m-shell .ms-lens {
  display: block; position: absolute; top: 6px; bottom: 6px; left: 0; width: 20%; border-radius: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(240, 232, 255, .8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 3px 10px rgba(110, 70, 190, .16);
  transition: transform .55s var(--ios-spring), width .55s var(--ios-spring), opacity .2s linear;
}
body.m-shell .ms-tabs a { position: relative; z-index: 1; font-size: 10.5px; font-weight: 500; letter-spacing: 0;
  transition: transform .25s var(--ios-spring), color .2s linear; }
body.m-shell .ms-tabs a:active { transform: scale(.88); }
body.m-shell .ms-tabs a svg { width: 25px; height: 25px; transition: transform .35s var(--ios-spring); }
body.m-shell .ms-tabs a.on { font-weight: 700; }
body.m-shell .ms-tabs a.on svg { transform: scale(1.06); fill: currentColor; fill-opacity: .18; }

/* ---- 卡片:更大圆角 + 镜面高光 + 双层阴影 */
body.m-shell .th-card, body.m-shell .cxh-card, body.m-shell .pfh-card,
body.m-shell .fx-detail .fd-card, body.m-shell .fx-detail .fd-group, body.m-shell .fx-detail .fd-mhero,
body.m-shell .lc-card, body.m-shell .cxh-box, body.m-shell .lp-box, body.m-shell .ma-card, body.m-shell .lcc-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .56)) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  box-shadow: var(--lg-hl), var(--lg-shadow);
  transition: transform .3s var(--ios-spring), box-shadow .3s var(--ios-ease);
}
body.m-shell .pfh-hero { border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 32px rgba(110, 66, 180, .34); }
/* 换页时依次浮起 */
body.m-shell.ms-enter .th-card, body.m-shell.ms-enter .cxh-card, body.m-shell.ms-enter .pfh-card, body.m-shell.ms-enter .pfh-hero,
body.m-shell.ms-enter .lc-card, body.m-shell.ms-enter .lcc-card, body.m-shell.ms-enter .ma-card, body.m-shell.ms-enter .fx-detail .fd-card {
  animation: ms-rise .55s var(--ios-ease) both;
}
body.m-shell.ms-enter .th-card:nth-child(2), body.m-shell.ms-enter .cxh-card:nth-child(2), body.m-shell.ms-enter .pfh-card:nth-child(2), body.m-shell.ms-enter .lcc-card:nth-child(2) { animation-delay: 40ms; }
body.m-shell.ms-enter .th-card:nth-child(3), body.m-shell.ms-enter .cxh-card:nth-child(3), body.m-shell.ms-enter .pfh-card:nth-child(3), body.m-shell.ms-enter .lcc-card:nth-child(3) { animation-delay: 80ms; }
body.m-shell.ms-enter .th-card:nth-child(4), body.m-shell.ms-enter .cxh-card:nth-child(4), body.m-shell.ms-enter .pfh-card:nth-child(4), body.m-shell.ms-enter .lcc-card:nth-child(4) { animation-delay: 120ms; }
body.m-shell.ms-enter .th-card:nth-child(n+5), body.m-shell.ms-enter .cxh-card:nth-child(n+5), body.m-shell.ms-enter .pfh-card:nth-child(n+5), body.m-shell.ms-enter .lcc-card:nth-child(n+5) { animation-delay: 160ms; }
/* 按下缩一下、松手弹回 */
body.m-shell .th-card:active, body.m-shell .cxh-item:active, body.m-shell .lcc-card:active, body.m-shell .ma-tile:active,
body.m-shell .pfh-btn:active, body.m-shell .cxh-btn:active, body.m-shell .th-btn:active, body.m-shell button.primary:active {
  transform: scale(.965); filter: brightness(.97);
}
body.m-shell .cxh-btn, body.m-shell .th-btn, body.m-shell .pfh-btn, body.m-shell .ma-tile { transition: transform .25s var(--ios-spring), filter .2s linear; }
@media (prefers-reduced-motion: reduce) {
  body.m-shell *, body.m-shell *::before { animation: none !important; transition: none !important; }
}
}

/* ===== iOS 动效第二批(2026-11-24):底栏收缩、页面推入 / 返回、底部玻璃面板、分段切换选中块(js/mobile-shell.js 配套) ===== */
@media (max-width: 768px) {
/* ① 底栏随滚动收缩成小胶囊:两边往里收、矮一截、文字淡出,图标还在 */
body.m-shell .ms-tabs { transition: left .4s var(--ios-spring), right .4s var(--ios-spring), height .4s var(--ios-spring), bottom .4s var(--ios-spring), border-radius .4s var(--ios-spring); }
body.m-shell .ms-tabs a span { transition: opacity .2s linear, max-height .3s var(--ios-ease); max-height: 16px; overflow: hidden; }
body.m-shell.ms-shrink .ms-tabs { left: 44px; right: 44px; height: 50px; border-radius: 25px; }
body.m-shell.ms-shrink .ms-tabs a span { opacity: 0; max-height: 0; }
body.m-shell.ms-shrink .ms-tabs a svg { width: 22px; height: 22px; }
body.m-shell.ms-shrink .ms-lens { top: 5px; bottom: 5px; border-radius: 20px; }

/* ② 页面推入 / 返回 / 淡入 */
@keyframes ms-push { from { transform: translateX(32%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes ms-pop  { from { transform: translateX(-24%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes ms-fadein { from { opacity: 0; transform: scale(.992); } to { opacity: 1; transform: none; } }
body.m-shell #content.ms-anim-push { animation: ms-push .42s var(--ios-ease) both; }
body.m-shell #content.ms-anim-pop  { animation: ms-pop .38s var(--ios-ease) both; }
body.m-shell #content.ms-anim-fade { animation: ms-fadein .28s var(--ios-ease) both; }

/* ③ 底部玻璃面板:贴底浮起(四周留 8px)、大圆角、顶上小横条;弹起带回弹,下拖跟手 */
@keyframes ms-sheet-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ms-mask-in { from { background-color: rgba(60, 36, 100, 0); } to { background-color: rgba(60, 36, 100, .22); } }
body.m-shell .ms-sheet-mask { align-items: flex-end !important; justify-content: center !important; padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(60, 36, 100, .22) !important; animation: ms-mask-in .25s linear both; }
body.m-shell .ms-sheet {
  position: relative; width: 100% !important; max-width: 100% !important; max-height: 86vh; margin: 0 !important; border-radius: 32px !important;
  padding-top: 22px !important; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(250, 247, 255, .84)) !important;
  -webkit-backdrop-filter: saturate(180%) blur(26px); backdrop-filter: saturate(180%) blur(26px);
  border: 1px solid rgba(255, 255, 255, .95) !important;
  box-shadow: var(--lg-hl), 0 -6px 40px rgba(70, 50, 140, .22) !important;
  animation: ms-sheet-up .5s var(--ios-spring) both; transition: transform .3s var(--ios-ease);
}
body.m-shell .ms-grab { position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(60, 50, 90, .22); }
body.m-shell .ms-sheet .fm-foot button, body.m-shell .ms-sheet .cxh-sf .cxh-btn { border-radius: 999px; min-height: 44px; }

/* ④ 分段切换:选中块是一块白色玻璃,在各项之间弹性滑动;原来各自画的选中底色去掉 */
body.m-shell .ms-seg { position: relative; }
body.m-shell .ms-seg > :not(.ms-thumb) { position: relative; z-index: 1; }
body.m-shell .ms-thumb { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 12px;
  background: rgba(255, 255, 255, .94); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 2px 10px rgba(108, 68, 170, .16);
  transition: transform .45s var(--ios-spring), width .45s var(--ios-spring), height .3s var(--ios-ease), opacity .2s linear; }
body.m-shell .ms-seg > .on, body.m-shell .ms-seg > .cur, body.m-shell .ms-seg > .active { background: transparent !important; box-shadow: none !important; }
body.m-shell .fx-detail .fd-tabs.ms-seg { border-bottom: 0; gap: 4px; padding: 4px; border-radius: 16px; }
body.m-shell .fx-detail .fd-tabs.ms-seg .fd-tab { padding: 7px 12px; border-radius: 12px; }
body.m-shell .fx-detail .fd-tabs.ms-seg .fd-tab.cur::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  body.m-shell #content, body.m-shell .ms-sheet, body.m-shell .ms-thumb, body.m-shell .ms-tabs { animation: none !important; transition: none !important; }
}
}
