/* 经营驾驶舱（pages/dashboard.js）。全部作用域在 .dx 内，不影响其它页面。
   视觉：暖杏底 + 珊瑚橙主色 + 青绿数据色；两类标签区分口径——「随周期」(橙) 与「实时」(绿)。 */
.dashboard > .dx { grid-column: 1 / -1; min-width: 0; }
.dx { --ink: #1f2a2e; --mut: #8a8f86; --line: #ece6da; --coral: #d9622f; --coral-d: #b44c28; --teal: #2f8f9d; --green: #22916b; --gold: #b8874f; --red: #d14b4b; --violet: #7c5cd6; --blue: #2f6fd6;
  font-variant-numeric: tabular-nums; color: var(--ink); transition: opacity .2s; }
.dx.loading { opacity: .5; pointer-events: none; }
.dx > * + * { margin-top: 18px; }
.dx i { font-style: normal; }

/* ---- 通用：卡片 / 区块头 / 标签 ---- */
.dx-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 2px #3a2e1f08, 0 10px 28px #3a2e1f07; min-width: 0; }
.dx-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.dx-hd h3 { font-size:14px; font-weight: 700; color: var(--ink); }
.dx-hint { font-size:12px; color: var(--mut); }
.dx-right { margin-left: auto; }
.dx-tag { display: inline-flex; align-items: center; gap: 6px; font-size:11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; white-space: nowrap; line-height: 1.5; }
.dx-tag.period { background: #fff1e6; color: var(--coral-d); }
.dx-tag.period::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--coral); }
.dx-tag.live { background: #e8f7f0; color: #1b7a58; }
.dx-tag.live i { width: 7px; height: 7px; border-radius: 50%; background: #22c07a; animation: dxPulse 2.2s infinite; }
@keyframes dxPulse { 0% { box-shadow: 0 0 0 0 #22c07a88; } 70% { box-shadow: 0 0 0 7px #22c07a00; } 100% { box-shadow: 0 0 0 0 #22c07a00; } }
.dx-zone { display: flex; align-items: center; gap: 12px; margin-top: 30px !important; }
.dx-zone h2 { font-size:19px; font-weight: 700; letter-spacing: .5px; }
.dx-zone::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #e3d8c4, transparent); }
.dx-delta { display: inline-block; font-size:12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.dx-delta.up { color: #1b7a58; background: #e8f7f0; }
.dx-delta.down { color: #c0392b; background: #fdeeee; }
.dx-delta.flat { color: var(--mut); background: #f1efe9; }
.dx-meter { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--acc, #d9622f) 16%, #fff); overflow: hidden; margin: 2px 0; }
.dx-meter i { display: block; height: 100%; border-radius: 99px; background: var(--acc, #d9622f); }
.dx .empty { padding: 34px 12px; }

/* ---- 横幅：问候 + 周期切换 + 本周期 GMV ---- */
.dx-hero { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 26px 32px 20px; isolation: isolate;
  background: radial-gradient(640px 260px at 92% -25%, #ffb27a5c, transparent 70%), radial-gradient(460px 240px at -4% 125%, #2f8f9d38, transparent 70%), linear-gradient(120deg, #241b16 0%, #3a281d 50%, #62341d 100%);
  box-shadow: 0 24px 54px #3d2a1f36; }
.dx-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: linear-gradient(110deg, transparent 10%, #000 85%); mask-image: linear-gradient(110deg, transparent 10%, #000 85%); }
.dx-hero > .dx-spark { position: absolute; right: 0; bottom: 34px; width: 34%; height: 58%; z-index: -1; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.dx-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.dx-eyebrow { font-size:11px; letter-spacing: 1.5px; color: #e9c9a8; }
.dx-hero h2 { font-size:25px; font-weight: 600; margin: 8px 0 6px; letter-spacing: .5px; }
.dx-hero p { font-size:13px; color: #e5d6c8; }
.dx-hero p b { color: #ffb27a; font-size:14px; }
.dx-hero p a { color: #ffd9b8; text-decoration: underline; text-underline-offset: 3px; }
.dx-range-box { display: flex; flex-direction: column; align-items: flex-end; }
.dx-range { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: #ffffff14; border: 1px solid #ffffff22; backdrop-filter: blur(8px); }
.dx-chip { padding: 8px 15px; border-radius: 10px; font-size:12px; font-weight: 500; color: #f0dccb; background: transparent; cursor: pointer; transition: .15s; white-space: nowrap; }
.dx-chip:hover { background: #ffffff1c; }
.dx-chip.on { background: #fff; color: #8a3a1a; font-weight: 700; box-shadow: 0 4px 14px #0003; }
.dx-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #e9c9a8; }
.dx-custom input { background: #ffffff1a; border: 1px solid #ffffff33; color: #fff; border-radius: 8px; padding: 6px 10px; min-height: 34px; color-scheme: dark; outline: none; }
.dx-custom input:focus { border-color: #ffb27a; }
.dx-hero-main { display: flex; align-items: flex-end; gap: 56px; flex-wrap: wrap; margin: 26px 0 22px; }
.dx-hero-label { font-size:12px; letter-spacing: 2px; color: #e9c9a8; }
.dx-hero-num b { display: block; font-size:44px; line-height: 1.1; font-weight: 600; letter-spacing: -1.5px; margin: 6px 0 10px; text-shadow: 0 6px 30px #0006; }
.dx-hero-cmp { display: flex; align-items: center; gap: 8px; font-size:12px; color: #e5d6c8; }
.dx-hero .dx-delta.up { background: #ffffff1f; color: #7ff0bf; }
.dx-hero .dx-delta.down { background: #ffffff1f; color: #ff9d95; }
.dx-hero .dx-delta.flat { background: #ffffff1f; color: #e5d6c8; }
.dx-hero-facts { display: flex; gap: 34px; flex-wrap: wrap; padding-bottom: 6px; }
.dx-hero-facts span { display: block; font-size:12px; color: #d9c2a8; margin-bottom: 4px; }
.dx-hero-facts b { font-size:16px; font-weight: 600; }
.dx-hero-foot { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #ffffff1a; font-size:12px; color: #cdb8a3; }
.dx-hero-foot b { color: #fff; font-weight: 600; }

/* ---- 实时区：待办 + 告警 + 预算池 ---- */
.dx-live-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 1px repeat(2, minmax(0, 1.1fr)); gap: 12px; align-items: stretch; }
.dx-sep { background: linear-gradient(#0000, #e3d8c4, #0000); }
.dx-todo, .dx-stat { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid #efe8da; background: #fffdf9; cursor: pointer; transition: .16s; min-width: 0; --acc: var(--coral); }
.dx-todo:hover, .dx-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #3a2e1f14; border-color: #e8c7a1; }
.dx-todo-l { display: flex; align-items: center; gap: 8px; font-size:12px; color: #7b827c; white-space: nowrap; }
.dx-todo-l i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f4efe4; color: #9a8f7e; flex-shrink: 0; }
.dx-todo-l svg { width: 15px; height: 15px; }
.dx-todo b, .dx-stat b { font-size:30px; line-height: 1.1; font-weight: 700; color: #b3b8ae; }
.dx-todo-go { font-size:12px; color: #98a09a; margin-top: auto; }
.dx-todo.has { background: linear-gradient(160deg, #fff4e8, #fff); border-color: #f2d3b2; box-shadow: 0 6px 16px #c64e2812; }
.dx-todo.has b { color: var(--coral-d); }
.dx-todo.has .dx-todo-l i { background: #ffe6d0; color: var(--coral-d); }
.dx-todo.has .dx-todo-go { color: var(--coral-d); font-weight: 600; }
.dx-pill-go { cursor: pointer; border: 0; font-size:12px; font-weight: 600; padding: 5px 14px; transition: .15s; }
.dx-pill-go:hover { background: #ffe3c7; box-shadow: 0 4px 12px #c64e2826; transform: translateY(-1px); }
.dx-stat b { color: var(--ink); }
.dx-stat.red { --acc: var(--red); }
.dx-stat.red.has { background: linear-gradient(160deg, #fff0ee, #fff); border-color: #f2c3be; }
.dx-stat.red.has b { color: var(--red); }
.dx-stat.red .dx-todo-l i { background: #fdeeee; color: var(--red); }
.dx-stat.gold { --acc: var(--gold); }
.dx-stat.gold .dx-todo-l i { background: #fbf3e6; color: var(--gold); }

/* ---- KPI 卡片 ---- */
.dx .dx-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
.dx-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 148px; padding: 18px 20px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .18s; --acc: var(--coral); }
.dx-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acc); opacity: .85; }
.dx-kpi.c-blue { --acc: var(--blue); } .dx-kpi.c-amber { --acc: #d9622f; } .dx-kpi.c-violet { --acc: var(--violet); }
.dx-kpi.c-teal { --acc: var(--teal); } .dx-kpi.c-green { --acc: var(--green); } .dx-kpi.c-gold { --acc: var(--gold); }
.dx-kpi-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.dx-kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 13%, #fff); color: var(--acc); flex-shrink: 0; }
.dx-kpi .ico svg { width: 18px; height: 18px; }
.dx-kpi .l { font-size:12px; color: #6f7872; }
.dx-kpi .v { font-size:30px; font-weight: 600; line-height: 1.15; letter-spacing: -.5px; position: relative; z-index: 1; }
.dx-kpi .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size:12px; color: #98a09a; position: relative; z-index: 1; flex-wrap: wrap; }
.dx-kpi > .dx-spark { position: absolute; right: 0; bottom: 34px; width: 52%; height: 40px; opacity: .9; pointer-events: none; }
.dx-kpi .dx-meter { margin-top: 6px; position: relative; z-index: 1; }

/* ---- 栅格 ---- */
.dx-row { display: grid; gap: 16px; margin-top: 16px !important; }
.dx-row.r-main { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.dx-row.r-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-kpis + .dx-row { margin-top: 16px !important; }

/* ---- 趋势图 ---- */
.dx-chart { position: relative; }
.dx-chart svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.dx-grid { stroke: #efe9dc; stroke-dasharray: 3 5; } .dx-grid.base { stroke: #e3dccb; stroke-dasharray: none; }
.dx-axis { font-size:11px; fill: #9aa09a; }
.dx-line { stroke: var(--coral); stroke-width: 2.6; stroke-linecap: round; }
.dx-line-prev { stroke: #b9b4a8; stroke-width: 1.8; stroke-dasharray: 5 5; }
.dx-bar-o { fill: var(--teal); opacity: .26; }
.dx-dot { fill: #fff; stroke: var(--coral); stroke-width: 2.2; }
.dx-guide { stroke: #d9cfba; stroke-dasharray: 3 3; }
.dx-hot { fill: var(--coral); stroke: #fff; stroke-width: 2.5; }
.dx-tip { position: absolute; top: 6px; z-index: 5; display: none; min-width: 156px; padding: 9px 12px; border-radius: 10px; background: #1f2a2e; color: #fff; font-size:12px; pointer-events: none; transform: translateX(14px); box-shadow: 0 12px 30px #1f2a2e40; }
.dx-tip.flip { transform: translateX(calc(-100% - 14px)); }
.dx-tip b { display: block; margin-bottom: 6px; font-size:12px; }
.dx-tip div { display: flex; align-items: center; gap: 7px; color: #d8d2c6; line-height: 1.9; }
.dx-tip div i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dx-tip div em { margin-left: auto; padding-left: 14px; font-style: normal; font-weight: 700; color: #fff; }
.dx-tip div.mut em { color: #cfc8b8; font-weight: 500; }
.dx-legend { display: flex; gap: 16px; font-size:12px; color: var(--mut); }
.dx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dx-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.dx-legend i.dash { background: repeating-linear-gradient(90deg, #b9b4a8 0 4px, transparent 4px 7px); }

/* ---- TOP5 ---- */
.dx-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.dx-top li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; }
.dx-top .rk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size:12px; font-weight: 700; background: #f3efe6; color: #9a8f7e; }
.dx-top .nm { font-size:13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-top .amt { font-size:14px; font-weight: 600; color: var(--coral-d); }
.dx-top .trk { grid-column: 2 / 3; height: 7px; border-radius: 99px; background: #f4efe4; overflow: hidden; }
.dx-top .trk i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f0a06e, var(--coral)); }
.dx-top .sub { font-size:12px; color: var(--mut); text-align: right; white-space: nowrap; }

/* ---- 漏斗 ---- */
.dx-fn { display: grid; gap: 8px; padding-top: 4px; }
.dx-fn-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; font-size:12px; color: #6f7872; }
.dx-fn-bar { height: 42px; border-radius: 10px; display: flex; align-items: center; padding: 0 14px; color: #fff; background: linear-gradient(90deg, #e3743f, var(--coral)); box-shadow: 0 6px 14px #d9622f2e; min-width: 54px; transition: width .4s; }
.dx-fn-bar.b2 { background: linear-gradient(90deg, #4aa5b2, var(--teal)); box-shadow: 0 6px 14px #2f8f9d2e; }
.dx-fn-bar.b3 { background: linear-gradient(90deg, #35a883, var(--green)); box-shadow: 0 6px 14px #22916b2e; }
.dx-fn-bar b { font-size:16px; font-weight: 600; }
.dx-fn-conv { padding-left: 64px; font-size:12px; color: var(--mut); }
.dx-fn-conv b { color: var(--ink); font-weight: 700; }

/* ---- 订单构成 ---- */
.dx-donut { display: flex; align-items: center; gap: 22px; }
.dx-donut svg { width: 138px; height: 138px; flex-shrink: 0; }
.dx-d-n { font-size:19px; font-weight: 600; fill: var(--ink); } .dx-d-l { font-size:11px; fill: #9aa09a; }
.dx-donut ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 9px; }
.dx-donut li { display: flex; align-items: center; gap: 8px; font-size:12px; color: #55605b; white-space: nowrap; }
.dx-donut li.z { opacity: .45; }
.dx-donut li i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.dx-donut li b { margin-left: auto; font-weight: 600; color: var(--ink); }
.dx-donut li em { width: 38px; text-align: right; font-style: normal; color: var(--mut); font-size:12px; }

/* ---- 小程序访问 ---- */
.dx-mini-n { display: flex; gap: 32px; margin-bottom: 8px; }
.dx-mini-n span { display: block; font-size:12px; color: var(--mut); }
.dx-mini-n b { font-size:25px; font-weight: 600; }
.dx-mini-chart .dx-spark { display: block; width: 100%; height: 90px; }
.dx-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 168px; padding: 18px 12px; border: 1.5px dashed #e6dccb; border-radius: 14px; background: #fffcf7; }
.dx-ph i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f4efe4; color: #a99a82; }
.dx-ph svg { width: 21px; height: 21px; }
.dx-ph p { font-size:13px; font-weight: 600; margin: 2px 0 0; }
.dx-ph span { font-size:12px; color: var(--mut); line-height: 1.7; max-width: 250px; }

/* ---- 可点击元素（下钻链接）：只有带 .go 的才有手型 / 悬停反馈 ---- */
.dx .go { cursor: pointer; }
.dx .go:focus-visible, .dx-link:focus-visible { outline: 2px solid #ce8053; outline-offset: 2px; }
.dx-kpi.go { transition: .18s; }
.dx-kpi.go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px #3a2e1f14; border-color: #e8c7a1; }
.dx-arrow { position: absolute; right: 14px; top: 12px; z-index: 1; font-size:14px; color: #cfc5b3; transition: .15s; }
.dx-kpi.go:hover .dx-arrow { color: var(--coral); transform: translate(2px, -2px); }
.dx-top li.go { padding: 8px 10px; margin: -8px -10px; border-radius: 12px; transition: .15s; }
.dx-top li.go:hover { background: #fff7ee; }
.dx-fn-row.go:hover .dx-fn-bar { filter: brightness(1.07); transform: translateX(3px); }
.dx-donut li.go { padding: 3px 6px; margin: -3px -6px; border-radius: 8px; transition: .15s; }
.dx-donut li.go:hover { background: #fff7ee; }
.dx-donut circle.go:hover { opacity: .82; }
.dx-link { margin-left: 4px; padding: 3px 11px; border-radius: 999px; background: #ffffff1a; color: #ffd9b8; font-size:12px; font-weight: 600; cursor: pointer; transition: .15s; }
.dx-link:hover { background: #ffffff2e; }
.dx-tip .foot { margin-top: 5px; padding-top: 6px; border-top: 1px solid #ffffff24; color: #ffb27a; font-size:11px; }
/* 订单页：来自经营概览的筛选标签（订单页不在 .dx 内，故不加作用域） */
.src-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; padding: 9px 12px; border-radius: 10px; background: #fff7ee; border: 1px solid #f2d3b2; }
.src-chip { font-size:12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; color: #b44c28; border: 1px solid #f2d3b2; }

/* ---- 全站：可点击的 KPI / 统计卡（只有真链接才有手型、悬停与 ↗ 提示；不可点的卡片保持静态） ---- */
.kpi.go, .pstat.go { position: relative; cursor: pointer; transition: .18s; }
.kpi.go:hover, .pstat.go:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #3a2e1f14; border-color: #e8c7a1; }
.kpi.go:focus-visible, .pstat.go:focus-visible, .inl-go:focus-visible { outline: 2px solid #ce8053; outline-offset: 2px; }
.go-arrow { position: absolute; right: 12px; top: 9px; font-size:13px; font-style: normal; color: #cfc5b3; transition: .15s; }
.kpi.go:hover .go-arrow, .pstat.go:hover .go-arrow { color: #d9622f; transform: translate(2px, -2px); }
#dxLive, #coList, #coLedger, #cdTrade, #cdLikes, #sysJobs { scroll-margin-top: 92px; }
.num-go { font: inherit; font-weight: 700; color: inherit; border-bottom: 2px dashed #d9622f66; }
.num-go:hover { color: #b44c28; border-bottom-color: #b44c28; } /* 页内定位别被吸顶顶栏盖住 */
.inl-go { padding: 0; background: none; color: #b44c28; font-weight: 600; cursor: pointer; border-bottom: 1px dashed currentColor; }
.inl-go:hover { color: #8a3a1a; }

/* ---- 响应式 ---- */
@media (max-width: 1360px) { .dx .dx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dx-hero-main { gap: 36px; } }
@media (max-width: 1280px) { .dx-live-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dx-sep { display: none; } .dx-row.r-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dx-row.r-three > :last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .dx-row.r-main { grid-template-columns: 1fr; } .dx-hero-num b { font-size:44px; } }
@media (max-width: 760px) {
  .dx-hero { padding: 20px 18px 16px; border-radius: 18px; } .dx-hero-num b { font-size:44px; } .dx-hero-main { gap: 18px; margin: 18px 0 16px; }
  .dx-range-box { align-items: flex-start; width: 100%; } .dx-range { width: 100%; overflow-x: auto; } .dx-chip { flex: 1; padding: 8px 10px; }
  .dx-custom { flex-wrap: wrap; } .dx-hero > .dx-spark { width: 100%; }
  .dx-live-grid, .dx .dx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dx-row.r-three { grid-template-columns: 1fr; } .dx-card { padding: 18px 16px; border-radius: 14px; }
  .dx-kpi { padding: 14px 14px 12px; min-height: 132px; } .dx-kpi .v { font-size:25px; }
  .dx-donut { flex-direction: column; align-items: stretch; } .dx-donut svg { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .dx-tag.live i { animation: none; } .dx-fn-bar { transition: none; } }

/* 官方 Logo 图标（img 版本）适配 */
img.brand-symbol{border:0;background:transparent;border-radius:50