/* 首屏演示 · 元气章鱼工作台（基于腾讯 WorkBuddy）界面演绎
   由 /yq-demo.js 渲染。客户、人员与金额均为虚构数据，不对应任何真实客户。 */

.yq {
  --q-ink: #24271F; --q-ink2: #4A4E43; --q-mute: #6F7366; --q-faint: #A2A598;
  --q-line: #E6E2D7; --q-line2: #EFECE4; --q-paper: #FAF8F3; --q-card: #FFFFFF;
  --q-accent: #AD6248; --q-accent-d: #9A5540; --q-label: #A2483A;
  --q-sage: #C3CEB2; --q-sage-d: #7E9A72; --q-lilac: #8C7CA0;
  --q-cream: #F5ECDA; --q-cream-line: #E9DCC0; --q-dark: #2A2D26;
  --q-green: #E5EDDD; --q-green-line: #CCDABF;
  --q-serif: Newsreader, "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif;
  --q-num: Newsreader, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --q-ease: cubic-bezier(.2, .7, .2, 1);
  --q-stage: 384px; --q-row: 34px;
  position: relative; min-width: 0; color: var(--q-ink);
}
.yq[data-size="n"] { --q-stage: 404px; --q-row: 33px; }
.yq[data-size="w"] { --q-stage: 412px; }
.yq *, .yq *::before, .yq *::after { box-sizing: border-box; }
.yq--instant *, .yq--instant *::before, .yq--instant *::after { transition: none !important; }

.yq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 窗口 ---------- */
.yq-win {
  position: relative; overflow: hidden; background: var(--q-paper); border: 1px solid #DDDFD2; border-radius: 18px;
  box-shadow: 0 30px 60px -34px rgba(48, 51, 41, .35); font-size: 12px; line-height: 1.5;
  -webkit-user-select: none; user-select: none; cursor: default; isolation: isolate;
}
.yq-bar { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 16px; background: rgba(255, 255, 255, .72); border-bottom: 1px solid var(--q-line); }
.yq-brand { display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; }
.yq-brand b { font-family: var(--q-serif); font-size: 16.5px; font-weight: 600; letter-spacing: .03em; color: var(--q-ink); }
.yq[data-size="n"] .yq-brand b { font-size: 15px; letter-spacing: .01em; }
.yq-brand i { width: 1px; height: 13px; background: #D6D2C6; }
.yq-brand span { font-size: 11.5px; color: var(--q-mute); letter-spacing: .06em; }
.yq[data-size="n"] .yq-brand i, .yq[data-size="n"] .yq-brand span { display: none; }
.yq-mods { display: flex; align-items: center; gap: 2px; }
.yq-mod { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; color: var(--q-ink2); white-space: nowrap; transition: background .35s, border-color .35s, box-shadow .35s; }
.yq-mod em { font-style: normal; font-family: var(--q-num); font-size: 11.5px; color: var(--q-accent); }
.yq-mod span { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; vertical-align: top; transition: max-width .5s var(--q-ease), opacity .35s, margin .5s var(--q-ease); }
.yq-mod.is-on { background: #fff; border-color: var(--q-line); box-shadow: 0 1px 2px rgba(48, 51, 41, .06); color: var(--q-ink); font-weight: 600; }
.yq-mod.is-on span, .yq[data-size="w"] .yq-mod span { max-width: 5em; opacity: 1; margin-left: 5px; }
.yq-mod.is-on em { font-weight: 400; }

.yq-main { position: relative; }
.yq-sub { position: relative; height: 42px; border-bottom: 1px solid var(--q-line2); overflow: hidden; }
.yq-subnav { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; padding: 0 10px; white-space: nowrap; transition: opacity .35s, transform .45s var(--q-ease); }
.yq-subnav.is-off { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.yq-tabpill { position: absolute; top: 7px; height: 28px; left: 0; width: 0; border-radius: 999px; background: #fff; border: 1px solid var(--q-line); box-shadow: 0 1px 2px rgba(48, 51, 41, .06); transition: left .45s var(--q-ease), width .45s var(--q-ease); }
.yq-tab { position: relative; z-index: 1; height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--q-ink2); transition: color .3s; }
.yq-tab em { font-style: normal; font-family: var(--q-num); font-size: 11px; color: var(--q-accent); }
.yq-tab.is-on { color: var(--q-ink); font-weight: 600; }
.yq-tab.is-on em { font-weight: 400; }
.yq[data-size="n"] .yq-tab em, .yq[data-size="n"] .yq-tab--x { display: none; }
.yq[data-size="n"] .yq-tab { padding: 0 8px; }
.yq-subnav--cal { gap: 8px; padding: 0 14px; }
.yq-mnav { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--q-line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--q-ink2); background: #fff; }
.yq-month { font-family: var(--q-serif); font-size: 14.5px; font-weight: 500; color: var(--q-ink); }
.yq-legend { margin-left: 6px; display: inline-flex; align-items: center; gap: 4px 9px; font-size: 10.5px; color: var(--q-mute); }
.yq-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 3px; vertical-align: 0; }
.yq-today-btn { margin-left: auto; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--q-dark); font-size: 10.5px; display: inline-flex; align-items: center; color: var(--q-ink); }
.yq[data-size="n"] .yq-legend span:nth-child(n+3) { display: none; }

.yq-stage { position: relative; height: var(--q-stage); overflow: hidden; }
.yq-scene { position: absolute; inset: 12px 14px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .55s var(--q-ease), filter .4s; pointer-events: none; }
.yq-scene.is-on { opacity: 1; transform: none; }
.yq-main.is-dim .yq-scene { filter: blur(1.5px); }
.yq-main.is-leaving .yq-stage, .yq-main.is-leaving .yq-sub { opacity: 0; transition: opacity .6s; }

.yq-foot { position: relative; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-top: 1px solid var(--q-line); background: rgba(255, 255, 255, .72); font-size: 11px; color: var(--q-mute); white-space: nowrap; }
.yq-foot > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #2C6A55; }
.yq-foot-txt { overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity .25s; }
.yq-foot-time { margin-left: auto; color: var(--q-faint); font-variant-numeric: tabular-nums; }
.yq[data-size="n"] .yq-foot-time { display: none; }

.yq-card { background: var(--q-card); border: 1px solid var(--q-line); border-radius: 14px; }
.yq-h { font-family: var(--q-serif); font-weight: 500; color: var(--q-ink); letter-spacing: .01em; }
.yq-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: #F1EFE8; color: var(--q-mute); font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 01 经营总览 ---------- */
.yq-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--q-line2); border: 1px solid var(--q-line); border-radius: 14px; overflow: hidden; }
.yq[data-size="w"] .yq-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yq-kpi { background: #fff; padding: 9px 12px 9px; min-width: 0; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s var(--q-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.is-in .yq-kpi { opacity: 1; transform: none; }
.yq-kpi-hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.yq-kpi-lbl { font-size: 11px; font-weight: 500; color: var(--q-label); white-space: nowrap; }
.yq-kpi-val { margin-top: 3px; font-family: var(--q-num); font-size: 20px; line-height: 1.2; color: var(--q-ink); white-space: nowrap; letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.yq-kpi-note { margin-top: 2px; font-size: 10px; color: var(--q-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq-kpi-cov { display: flex; gap: 14px; }
.yq-kpi-cov small { display: block; font-family: inherit; font-size: 9.5px; color: var(--q-mute); letter-spacing: 0; margin-top: 1px; }
.yq-kpi-note { display: none; }
.yq[data-size="w"] .yq-kpi-note { display: block; }
.yq[data-size="n"] .yq-kpi-val { font-size: 18px; }

.yq-ovrow { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 10px; }
.yq[data-size="n"] .yq-ovrow { grid-template-columns: minmax(0, 1fr); height: calc(100% - 140px); }
.yq[data-size="n"] .yq-focus { display: none; }
.yq-chart { position: relative; padding: 10px 12px 8px; display: flex; flex-direction: column; min-width: 0; }
.yq-chart-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.yq-chart-hd .yq-h { font-size: 14.5px; line-height: 1.3; }
.yq-chart-hd small { display: block; font-size: 9.5px; color: var(--q-mute); margin-top: 1px; white-space: nowrap; }
.yq-mseg { flex: none; display: inline-flex; padding: 2px; border-radius: 999px; background: #F1EFE8; font-size: 10px; }
.yq-mseg span { padding: 2px 8px; border-radius: 999px; color: var(--q-ink2); }
.yq-mseg span.is-on { background: var(--q-dark); color: #fff; }
.yq-plot { position: relative; flex: 1; min-height: 110px; margin-top: 10px; padding-left: 24px; }
.yq-grid { position: absolute; left: 24px; right: 0; border-top: 1px dashed #E7E4DA; }
.yq-grid b { position: absolute; right: 100%; margin-right: 4px; top: -6px; font-size: 8.5px; font-weight: 400; color: var(--q-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.yq-bars { position: absolute; left: 24px; right: 0; top: 0; bottom: 14px; display: flex; align-items: flex-end; }
.yq-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.yq-col i { display: block; width: 56%; max-width: 18px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--q-sage); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--q-ease); transition-delay: calc(var(--i) * 45ms); }
.yq-col.is-cur i { background: var(--q-dark); }
.yq-col.is-empty i { height: 2px; background: #E8E5DC; }
.is-grown .yq-col i { transform: none; }
.yq-col span { position: absolute; bottom: -14px; font-size: 8.5px; color: var(--q-faint); }
.yq-col.is-cur span { color: var(--q-ink); font-weight: 600; }
.yq-tip { font-style: normal; position: absolute; z-index: 3; bottom: calc(var(--h) + 6px); left: 50%; transform: translate(-78%, 4px); opacity: 0; padding: 4px 8px; border-radius: 8px; background: var(--q-dark); color: #fff; font-size: 10px; line-height: 1.4; white-space: nowrap; transition: opacity .25s, transform .35s var(--q-ease); pointer-events: none; }
.yq-tip b { font-family: var(--q-num); font-weight: 400; font-size: 11.5px; margin: 0 2px; }
.yq-col.is-tip .yq-tip { opacity: 1; transform: translate(-78%, 0); }
.yq-plot-note { display: none; margin-top: 18px; font-size: 9.5px; color: var(--q-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq[data-size="w"] .yq-plot-note { display: block; }
.yq[data-size="w"] .yq-chart { padding-bottom: 10px; }

.yq-focus { background: var(--q-cream); border: 1px solid var(--q-cream-line); border-radius: 14px; padding: 10px 10px 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--q-ease); }
.is-focus .yq-focus { opacity: 1; transform: none; }
.yq-focus-hd { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2px; }
.yq-focus-hd small { display: block; font-size: 10px; color: var(--q-accent); letter-spacing: .08em; }
.yq-focus-hd .yq-h { font-size: 15px; line-height: 1.35; }
.yq-focus-hd > span { color: var(--q-accent); font-size: 13px; }
.yq-fi { display: flex; gap: 7px; align-items: flex-start; padding: 7px 8px; border-radius: 10px; background: #fff; opacity: 0; transform: translateX(10px); transition: opacity .45s, transform .55s var(--q-ease); transition-delay: calc(.15s + var(--i) * 120ms); }
.is-focus .yq-fi { opacity: 1; transform: none; }
.yq-fi > i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; font-weight: 700; }
.yq-fi > i.r { background: #F6E1DC; color: #A2483A; }
.yq-fi > i.g { background: var(--q-green); color: #4F6E45; }
.yq-fi b { display: block; font-size: 11.5px; line-height: 1.4; color: var(--q-ink); }
.yq-fi > span { min-width: 0; }
.yq-fi b, .yq-fi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq-fi small { display: block; font-size: 10px; line-height: 1.45; color: var(--q-mute); margin-top: 1px; }
.yq-fbtn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 999px; background: var(--q-accent); color: #fff; font-size: 11px; white-space: nowrap; box-shadow: 0 8px 16px -10px rgba(173, 98, 72, .7); }

/* ---------- 02 客户排行 ---------- */
.yq-rank-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.yq-rank-hd .yq-h { font-size: 17px; line-height: 1.3; }
.yq-rank-hd small { display: block; font-size: 10px; color: var(--q-mute); margin-top: 2px; white-space: nowrap; }
.yq-seg { position: relative; flex: none; display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--q-line); font-size: 11px; }
.yq-seg span[data-seg] { position: relative; z-index: 1; padding: 3px 9px; border-radius: 999px; color: var(--q-ink2); transition: color .3s; white-space: nowrap; }
.yq-seg span[data-seg].is-on { color: #fff; }
.yq-seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; background: var(--q-dark); transition: left .45s var(--q-ease), width .45s var(--q-ease); }
.yq[data-size="n"] .yq-rank-hd small { display: none; }
.yq-rank-cards { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.yq[data-size="w"] .yq-rank-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yq-rank-card--flow { display: none; }
.yq[data-size="w"] .yq-rank-card--flow { display: block; }
.yq-rank-card { padding: 9px 14px 8px; }
.yq-rank-card-hd { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--q-line2); }
.yq-rank-card-hd .yq-h { font-size: 13.5px; }
.yq-rows { position: relative; height: calc(var(--q-row) * 6); overflow: hidden; }
.yq-row { position: absolute; left: -6px; right: -6px; top: 0; height: var(--q-row); display: grid; grid-template-columns: 26px minmax(0, 1fr) 6.9em; align-items: center; gap: 8px; padding: 0 6px; border-radius: 8px; transform: translateY(calc(var(--q-row) * var(--r, 6) + 10px)); opacity: 0; transition: transform .75s cubic-bezier(.5, 0, .2, 1), opacity .45s, background .4s; }
.yq-row.is-shown { opacity: 1; transform: translateY(calc(var(--q-row) * var(--r))); }
.yq-row::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; border-bottom: 1px solid var(--q-line2); }
.yq-row.is-hl { background: #EEF3EA; }
.yq-row.is-hl::after { opacity: 0; }
.yq-row-n { font-family: var(--q-num); font-size: 12.5px; color: var(--q-faint); font-variant-numeric: tabular-nums; }
.yq-row-k { min-width: 0; }
.yq-row-k b { display: block; font-size: 12px; font-weight: 500; color: var(--q-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq-row-k i { display: block; height: 3px; margin-top: 3px; border-radius: 3px; background: #ECEEE6; overflow: hidden; }
.yq-row-k i s { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--q-sage-d); transition: width .9s var(--q-ease); }
.yq-rank-card--flow .yq-row-k i s { background: var(--q-lilac); }
.yq-row-v { font-size: 12px; color: var(--q-ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.yq-rank-card--flow .yq-row { grid-template-columns: 26px minmax(0, 1fr) 8.4em; }

.yq-ask { position: absolute; z-index: 4; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 4px; border-radius: 999px; background: var(--q-accent); color: #fff; font-size: 12px; font-weight: 500; box-shadow: 0 10px 22px -10px rgba(154, 85, 64, .8); opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.yq-ask i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; }
.yq-ask.is-on { opacity: 1; transform: none; }

/* ---------- 03 经营小助手 ---------- */
.yq-chat { position: absolute; z-index: 6; inset: 8px; display: flex; flex-direction: column; background: #fff; border: 1px solid #E2DDE4; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(48, 51, 41, .45); opacity: 0; transform: translateY(14px) scale(.96); transform-origin: 92% 100%; transition: opacity .35s, transform .5s var(--q-ease); pointer-events: none; }
.yq[data-size="w"] .yq-chat { left: auto; width: 64%; }
.yq-chat.is-on { opacity: 1; transform: none; }
.yq-chat-hd { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(120deg, #EEE9F0, #E8E3EC); overflow: hidden; }
.yq-chat-hd::after { content: ""; position: absolute; right: -40px; top: -70px; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(140, 124, 160, .28); }
.yq-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--q-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.yq-chat-hd .yq-h { display: block; font-size: 15px; line-height: 1.25; }
.yq-chat-hd small { display: block; font-size: 10px; color: var(--q-mute); }
.yq-chat-ctl { position: relative; z-index: 1; margin-left: auto; display: flex; gap: 4px; color: var(--q-ink2); }
.yq-chat-ctl span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.yq-chat-min { background: rgba(255, 255, 255, .7); }
.yq-chat-ctx { flex: none; padding: 5px 12px; background: #F4F2EB; border-bottom: 1px solid var(--q-line2); font-size: 10px; color: var(--q-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq-chat-body { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 10px 12px; font-size: 11.5px; line-height: 1.65; }
.yq-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 26px; text-align: center; color: var(--q-mute); font-size: 11px; transition: opacity .3s; }
.yq-empty b { font-family: var(--q-serif); font-weight: 500; font-size: 14px; color: var(--q-ink); }
.yq-empty i { font-style: normal; color: var(--q-accent); font-size: 16px; }
.yq-chat-body.is-live .yq-empty { opacity: 0; }
.yq-msg-u { display: none; align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--q-dark); color: #fff; }
.yq-chat-body.is-live .yq-msg-u { display: block; animation: yq-up .4s var(--q-ease) both; }
.yq-status { display: none; align-items: center; gap: 7px; font-size: 10.5px; color: var(--q-mute); }
.yq-status.is-on { display: flex; }
.yq-status i { width: 6px; height: 6px; border-radius: 50%; background: #D29A87; animation: yq-pulse 1.2s ease-in-out infinite; }
.yq-verify { display: none; padding: 7px 10px; border-radius: 10px; background: var(--q-green); border: 1px solid var(--q-green-line); font-size: 10.5px; color: #34472E; }
.yq-verify.is-on { display: block; animation: yq-up .4s var(--q-ease) both; }
.yq-answer { display: none; padding: 9px 11px 8px; border: 1px solid var(--q-line); border-radius: 12px; background: #fff; color: #33362D; }
.yq-answer.is-on { display: block; animation: yq-up .4s var(--q-ease) both; }
.yq-ans-hd { font-size: 10.5px; color: var(--q-mute); margin-bottom: 3px; }
.yq-answer p, .yq-answer ol { margin: 0; padding: 0; }
.yq-answer ol { list-style: none; counter-reset: q; }
.yq-s { display: none; }
.yq-s.is-v { display: block; }
.yq-answer li.yq-s { position: relative; padding-left: 15px; margin-top: 3px; counter-increment: q; }
.yq-answer li.yq-s::before { content: counter(q) "."; position: absolute; left: 0; color: var(--q-accent); font-variant-numeric: tabular-nums; }
.yq-answer b { font-weight: 600; color: var(--q-ink); }
.yq-ans-note { margin-top: 4px !important; color: var(--q-mute); font-size: 10.5px; }
.yq-ans-ft { display: none; margin-top: 4px; font-size: 10px; color: var(--q-faint); }
.yq-answer.is-done .yq-ans-ft { display: block; }
.yq-caret { display: inline-block; width: 6px; height: 11px; margin-left: 1px; vertical-align: -1px; background: var(--q-accent); animation: yq-blink .9s steps(1) infinite; }
.yq-chat-ft { flex: none; padding: 0 10px 8px; }
.yq-chips { display: flex; gap: 5px; overflow: hidden; max-height: 30px; padding: 2px 0 6px; transition: max-height .4s var(--q-ease), opacity .3s, padding .4s; }
.yq-chips.is-gone { max-height: 0; opacity: 0; padding: 0; }
.yq-chip { flex: none; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--q-line); background: #fff; font-size: 10.5px; color: var(--q-ink2); white-space: nowrap; transition: background .2s, border-color .2s, transform .15s; }
.yq-chip.is-hit { background: #F7EFEA; border-color: #E6C9BD; color: var(--q-accent-d); }
.yq-input { position: relative; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 6px 6px 12px; border: 1px solid #DCD8CC; border-radius: 14px; background: #FDFCF9; transition: border-color .25s, box-shadow .25s; }
.yq-input.is-focus { border-color: #D2A796; box-shadow: 0 0 0 3px rgba(173, 98, 72, .1); }
.yq-input-t { flex: 1; min-width: 0; font-size: 11px; line-height: 1.45; color: var(--q-ink); }
.yq-input-t:empty { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq-input-t:empty::before { content: attr(data-ph); color: var(--q-faint); }
.yq-input-t.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--q-ink); animation: yq-blink 1s steps(1) infinite; }
.yq-send { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--q-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .15s; }
.yq-chat-note { margin-top: 5px; font-size: 9.5px; color: var(--q-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 04 客户查询 / 客户 360 ---------- */
.yq-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 14px; border: 1px solid #D9C7BD; border-radius: 999px; background: #fff; transition: box-shadow .25s, border-color .25s; }
.yq-search.is-focus { border-color: #C98F79; box-shadow: 0 0 0 3px rgba(173, 98, 72, .1); }
.yq-search > i { font-style: normal; color: var(--q-mute); font-size: 12px; }
.yq-search-t { flex: 1; min-width: 0; font-size: 12px; color: var(--q-ink); white-space: nowrap; }
.yq-search-t:empty::before { content: attr(data-ph); color: var(--q-faint); }
.yq-search-t.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--q-ink); animation: yq-blink 1s steps(1) infinite; }
.yq-search-btn { flex: none; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--q-accent); color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; transition: transform .15s; }
.yq-c360 { position: relative; margin-top: 12px; padding: 18px 18px 16px; overflow: hidden; }
.yq-c360::before, .yq-c360::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid #EBD8CC; }
.yq-c360::before { right: -60px; top: -70px; width: 190px; height: 190px; }
.yq-c360::after { right: -30px; top: -40px; width: 130px; height: 130px; }
.yq-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--q-ink2); }
.yq-eyebrow i { font-style: normal; color: var(--q-accent); margin-right: 6px; letter-spacing: 0; }
.yq-c360 .yq-h { margin-top: 8px; font-size: 19px; line-height: 1.35; }
.yq-c360 p { margin: 8px 0 0; font-size: 11px; line-height: 1.7; color: var(--q-ink2); max-width: 28em; }
.yq-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.yq-tags span { padding: 3px 10px; border-radius: 999px; font-size: 10.5px; }
.yq-c360 small { display: block; margin-top: 12px; font-size: 10px; color: var(--q-mute); }
.yq-t-a { background: #F4EAD3; color: #7F6326; }
.yq-t-g { background: var(--q-green); color: #4F6E45; }
.yq-t-l { background: #ECE6F1; color: #6C5C84; }
.yq-t-p { background: #F6E1DC; color: #9C4F3E; }

.yq-scrim { position: absolute; z-index: 5; inset: 0; background: rgba(42, 45, 38, .22); opacity: 0; transition: opacity .35s; pointer-events: none; }
.yq-main.is-dim .yq-scrim { opacity: 1; }
.yq-modal { position: absolute; z-index: 6; inset: 8px; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(48, 51, 41, .5); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .35s, transform .5s var(--q-ease); pointer-events: none; }
.yq[data-size="w"] .yq-modal { left: 10%; right: 10%; }
.yq-modal.is-on { opacity: 1; transform: none; }
.yq-mhd { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; background: #F8F6F0; border-bottom: 1px solid var(--q-line2); }
.yq-mhd .yq-h { display: block; margin-top: 3px; font-size: 16px; line-height: 1.3; }
.yq-mhd-tools { display: flex; align-items: center; gap: 5px; }
.yq-mhd-tools span { height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--q-line); background: #fff; font-size: 10px; display: inline-flex; align-items: center; white-space: nowrap; color: var(--q-ink2); }
.yq-mhd-tools span.x { border: 0; background: none; font-size: 13px; padding: 0 2px; }
.yq[data-size="n"] .yq-mhd-tools span:not(.x) { display: none; }
.yq-mbody { position: relative; flex: 1; min-height: 0; padding: 9px 14px; overflow: hidden; }
.yq-mscroll { transition: transform .9s var(--q-ease); }
.yq-mload { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--q-mute); background: #fff; transition: opacity .3s; z-index: 1; }
.yq-mload i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #EADFD8; border-top-color: var(--q-accent); animation: yq-spin .8s linear infinite; }
.yq-modal.is-ready .yq-mload { opacity: 0; }
.yq-mmeta { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--q-mute); white-space: nowrap; }
.yq[data-size="n"] .yq-mmeta span + span { display: none; }
.yq-mgrid { margin-top: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.yq[data-size="n"] .yq-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yq-mc { padding: 6px 9px 7px; border: 1px solid var(--q-line); border-radius: 10px; min-width: 0; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .55s var(--q-ease); transition-delay: calc(var(--i) * 70ms); }
.yq-modal.is-ready .yq-mc { opacity: 1; transform: none; }
.yq-mc.is-hi { background: #F5EBD6; border-color: #E8D6B3; }
.yq-mc small { display: block; font-size: 10px; color: var(--q-label); }
.yq-mc b { display: block; margin-top: 2px; font-family: var(--q-num); font-weight: 400; font-size: 15.5px; line-height: 1.25; color: var(--q-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.yq-mmonth { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 10px; border-radius: 9px; background: #F2F0E9; font-size: 10.5px; color: var(--q-ink2); }
.yq-mmonth b { font-weight: 600; color: var(--q-ink); }
.yq-mnote { margin-top: 5px; font-size: 9.5px; color: var(--q-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yq-mtabs { margin-top: 6px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--q-line2); font-size: 11px; color: var(--q-ink2); text-align: center; }
.yq-mtabs span { padding: 5px 0 6px; white-space: nowrap; }
.yq-mtabs span.is-on { color: var(--q-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--q-accent); }
.yq[data-size="n"] .yq-mnote { display: none; }
.yq-mtable { margin-top: 8px; border: 1px solid var(--q-line); border-radius: 10px; overflow: hidden; font-size: 10.5px; opacity: 0; transform: translateY(6px); transition: opacity .45s .35s, transform .55s .35s var(--q-ease); }
.yq-modal.is-ready .yq-mtable { opacity: 1; transform: none; }
.yq-mt-hd { display: flex; justify-content: space-between; padding: 5px 10px; background: #F8F6F0; }
.yq-mt-hd b { font-weight: 600; color: var(--q-ink); }
.yq-mt-hd span { color: var(--q-mute); }
.yq-mt-r { display: grid; grid-template-columns: 0.7fr 1.3fr 1fr; padding: 4px 10px; border-top: 1px solid var(--q-line2); color: var(--q-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.yq-mt-th { background: #F3F1EA; color: var(--q-mute); font-weight: 500; }
.yq-mft { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--q-line2); background: #F8F6F0; }
.yq-mft span { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; white-space: nowrap; transition: transform .15s; }
.yq-mft .ask { background: var(--q-accent); color: #fff; }
.yq-mft .cal { border: 1px solid var(--q-line); background: #fff; color: var(--q-ink); }
.yq-mft small { margin-left: auto; font-size: 10px; color: var(--q-mute); white-space: nowrap; }
.yq[data-size="n"] .yq-mft small { display: none; }

/* ---------- 05 待办日历 ---------- */
.yq-ctiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.yq[data-size="n"] .yq-ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yq[data-size="n"] .yq-ct:nth-child(5) { display: none; }
.yq-ct { padding: 5px 9px 6px; border-radius: 10px; border: 1px solid var(--q-line); min-width: 0; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .55s var(--q-ease); transition-delay: calc(var(--i) * 60ms); }
.is-in .yq-ct { opacity: 1; transform: none; }
.yq-ct small { display: block; font-size: 9.5px; color: var(--q-mute); white-space: nowrap; }
.yq-ct b { display: inline-block; font-family: var(--q-num); font-weight: 400; font-size: 17px; line-height: 1.2; color: var(--q-ink); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), color .3s; }
.yq-ct b.is-bump { transform: scale(1.18); color: var(--q-accent); }
.yq-ct.w { background: #fff; } .yq-ct.a { background: #F5ECD6; border-color: #EADCBA; } .yq-ct.g { background: var(--q-green); border-color: #D6E2CB; }
.yq-ct.p { background: #F6E4DF; border-color: #EBCFC6; } .yq-ct.l { background: #EEE9F2; border-color: #DDD3E5; }
.yq-scene--cal { display: flex; flex-direction: column; }
.yq-calwrap { position: relative; flex: 1; min-height: 0; margin-top: 10px; }
.yq-cal { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.yq-wk { flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 5px 0 4px; border-bottom: 1px solid var(--q-line2); font-size: 9.5px; color: var(--q-mute); }
.yq-wk span { padding-left: 7px; }
.yq-weeks { flex: 1; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); }
.yq-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--q-line2); min-height: 0; }
.yq-week:last-child { border-bottom: 0; }
.yq-cell { position: relative; padding: 4px 4px 0; border-right: 1px solid var(--q-line2); min-width: 0; overflow: hidden; transition: background .3s, box-shadow .3s; }
.yq-cell:last-child { border-right: 0; }
.yq-cell.is-out { background: #F8F7F2; }
.yq-cell.is-out .yq-dn { color: var(--q-faint); }
.yq-cell.is-sel { background: #FFF8F3; box-shadow: inset 0 0 0 1.5px var(--q-accent); }
.yq-dn { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 3px; font-size: 10px; color: var(--q-ink2); font-variant-numeric: tabular-nums; }
.yq-cell.is-today .yq-dn { border-radius: 999px; background: var(--q-accent); color: #fff; font-weight: 600; }
.yq-ev { display: block; margin-top: 2px; padding: 0 4px; border: 1px solid; border-radius: 4px; font-size: 9px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: scale(.9); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(.1s + var(--i) * 35ms); }
.is-in .yq-ev { opacity: 1; transform: none; }
.yq-ev.done { text-decoration: line-through; }
.is-in .yq-ev.done { opacity: .5; }
.yq-ev.p, .yq-legend i.p { background: #F6E4DF; border-color: #E2B8AC; color: #9C4F3E; }
.yq-ev.l, .yq-legend i.l { background: #ECE7F1; border-color: #CFC3DC; color: #6C5C84; }
.yq-ev.a, .yq-legend i.a { background: #F5ECD6; border-color: #E3CF9F; color: #8A6A2A; }
.yq-ev.g, .yq-legend i.g { background: #E5EDDD; border-color: #C3D5B5; color: #4F6E45; }
.yq-legend i { border: 1px solid; }
.yq-ev.new { display: none; transition-delay: 0s; }
.yq-ev.new.is-ghost { display: block; background: #fff; border-style: dashed; border-color: #D9A694; color: var(--q-accent-d); opacity: 1; transform: none; }
.yq-ev.new.is-solid { display: block; opacity: 1; transform: none; animation: yq-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.yq-drawer { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 43%; max-width: 240px; display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; background: #fff; border: 1px solid var(--q-line); border-radius: 14px; box-shadow: -18px 0 30px -22px rgba(48, 51, 41, .45); overflow: hidden; opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .5s var(--q-ease); }
.yq[data-size="n"] .yq-drawer { width: 82%; max-width: none; }
.yq-drawer.is-on { opacity: 1; transform: none; }
.yq-dr-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.yq-dr-date { font-size: 9.5px; letter-spacing: .1em; color: var(--q-accent); font-variant-numeric: tabular-nums; }
.yq-dr-hd .yq-h { display: block; font-size: 15px; line-height: 1.3; }
.yq-dr-pill { flex: none; padding: 1px 7px; border-radius: 999px; background: #F1EFE8; font-size: 9.5px; color: var(--q-ink2); white-space: nowrap; transition: background .3s, color .3s; }
.yq-dr-pill.is-ok { background: var(--q-green); color: #3F5E37; }
.yq-dr-note { padding: 6px 8px; border-radius: 8px; background: #F3F1EA; font-size: 9.5px; line-height: 1.55; color: var(--q-mute); }
.yq-dr-item b { display: block; font-size: 12px; color: var(--q-ink); }
.yq-dr-item div { font-size: 10px; line-height: 1.6; color: var(--q-ink2); }
.yq-dr-tag { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #F5ECD6; color: #7F6326; font-size: 9.5px; }
.yq-dr-check { display: flex; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid var(--q-line2); font-size: 10.5px; color: var(--q-ink); }
.yq-dr-check i { flex: none; width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #B9BCAD; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 9px; color: transparent; transition: background .25s, border-color .25s, color .25s; }
.yq-dr-check.is-on i { background: var(--q-dark); border-color: var(--q-dark); color: #fff; }
.yq-dr-btns { display: flex; gap: 6px; }
.yq-dr-btns span { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 10.5px; white-space: nowrap; transition: transform .15s; }
.yq-dr-ok { background: var(--q-dark); color: #fff; }
.yq-dr-edit { border: 1px solid var(--q-line); color: var(--q-ink2); }
.yq-toast { position: absolute; z-index: 7; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--q-dark); color: #fff; font-size: 11px; white-space: nowrap; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, 12px); transition: opacity .35s, transform .5s var(--q-ease); }
.yq-toast i { font-style: normal; width: 16px; height: 16px; border-radius: 50%; background: #5E8A6E; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
.yq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 光标 ---------- */
.yq-cursor { position: absolute; z-index: 20; left: 0; top: 0; width: 18px; height: 22px; pointer-events: none; opacity: 0; transform: translate(var(--x, 80%), var(--y, 90%)); transition: transform .7s cubic-bezier(.45, .05, .2, 1), opacity .35s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)); }
.yq-cursor.is-on { opacity: 1; }
.yq-cursor svg { display: block; transform-origin: 2px 2px; transition: transform .14s; }
.yq-cursor.is-down svg { transform: scale(.82); }
.yq-ripple { position: absolute; z-index: 19; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid rgba(173, 98, 72, .55); background: rgba(173, 98, 72, .12); pointer-events: none; opacity: 0; }
.yq-ripple.is-go { animation: yq-ripple .55s ease-out both; }
.is-press { transform: scale(.94) !important; }
.yq--static .yq-cursor, .yq--static .yq-ripple { display: none; }

/* ---------- 步骤 ---------- */
.yq-steps { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.yq-step { position: relative; display: block; min-width: 0; padding: 7px 0 0; border: 0; background: none; font: inherit; text-align: left; color: #6B7064; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yq-step::before, .yq-step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.yq-step::before { right: 0; background: #E3E2D8; }
.yq-step::after { width: calc(var(--p, 0) * 100%); background: #AD6248; }
.yq-step em { font-style: normal; font-family: Newsreader, "Times New Roman", serif; font-size: 11px; color: #AD6248; margin-right: 4px; }
.yq-step span { font-size: 11.5px; white-space: nowrap; }
.yq-step span.s { display: none; }
.yq-step:hover, .yq-step[aria-current="step"] { color: #2F3229; }
.yq-step:focus-visible { outline: 2px solid #AD6248; outline-offset: 3px; border-radius: 2px; }
.yq[data-size="n"] .yq-step span.l { display: none; }
.yq[data-size="n"] .yq-step span.s { display: inline; }
.yq[data-size="n"] .yq-step em { display: none; }

@keyframes yq-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes yq-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes yq-blink { 50% { opacity: 0; } }
@keyframes yq-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .35; } }
@keyframes yq-spin { to { transform: rotate(360deg); } }
@keyframes yq-ripple { 0% { opacity: 1; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.45); } }
.yq[data-yq-ready] { min-height: 0 !important; }
