/* 经营总览专属品牌展示：保留欢迎、销售额、AI 洞察和业务快捷入口。 */
/* ---------- 驾驶舱主视觉 ---------- */
#view-dashboard .ops-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
  gap: 28px;
  padding: 32px 36px;
  border: 1px solid var(--dash-line-strong);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(720px 360px at 88% -30%, rgba(47, 99, 238, .14), transparent 64%),
    radial-gradient(560px 300px at 40% 130%, rgba(111, 80, 233, .09), transparent 62%),
    linear-gradient(122deg, #ffffff 0%, #f7faff 52%, #f7f4ff 100%);
  box-shadow: var(--dash-shadow);
}
#view-dashboard .ops-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -190px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(47, 99, 238, .14);
  background: radial-gradient(circle at 42% 42%, rgba(47, 99, 238, .08), rgba(255, 255, 255, .55) 66%);
  box-shadow: inset 0 0 70px rgba(47, 99, 238, .06);
  pointer-events: none;
}
#view-dashboard .ops-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(47, 99, 238, .2) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .14;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000, transparent 68%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 68%);
}
#view-dashboard .ops-hero-main { position: relative; z-index: 1; min-width: 0; }

.ops-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--dash-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ops-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(25, 135, 107, .22);
  border-radius: 999px;
  background: rgba(25, 135, 107, .07);
  color: #19876b;
  font-size: 9.5px;
  letter-spacing: .12em;
}
.ops-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1aa678;
  box-shadow: 0 0 0 3px rgba(25, 166, 120, .16);
  animation: opsLive 2s ease-in-out infinite;
}
@keyframes opsLive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ops-eyebrow-text { color: var(--dash-faint); }
.ops-date { margin-left: auto; color: var(--dash-muted); font-size: 10.5px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

#view-dashboard .ops-greeting {
  margin: 18px 0 6px;
  color: var(--dash-ink);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.03em;
}
#view-dashboard .ops-sub { margin: 0; color: var(--dash-muted); font-size: 12.5px; line-height: 1.65; }

.ops-revenue { margin-top: 24px; }
.ops-revenue-head { display: flex; align-items: center; gap: 10px; }
.ops-micro { color: var(--dash-faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ops-revenue-head .delta { margin: 0; }
.ops-revenue-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--dash-ink);
  font-variant-numeric: tabular-nums;
}
.ops-revenue-value .ops-cur { color: var(--dash-muted); font-size: 19px; font-weight: 700; }
.ops-revenue-value b { font-size: clamp(38px, 4.6vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.ops-revenue-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--dash-faint);
  font-size: 11px;
}
.ops-revenue-foot em { font-style: normal; color: var(--dash-ink); font-weight: 800; }
.ops-sep { width: 1px; height: 10px; background: var(--dash-line-strong); }

#view-dashboard .ops-hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}
.ops-period { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ops-period .range-tabs { border-color: var(--dash-line-strong); background: rgba(255, 255, 255, .86); }
.ops-period .range-tabs button.active { background: var(--dash-ink); box-shadow: 0 6px 16px rgba(12, 24, 48, .18); }
.ops-copilot {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 0;
  padding: 18px 20px;
  border: 1px solid rgba(111, 80, 233, .24);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(180px 150px at 100% 0%, rgba(111, 80, 233, .2), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, .94), rgba(245, 242, 255, .92));
  color: var(--dash-ink);
  text-align: left;
  box-shadow: 0 16px 36px rgba(76, 84, 180, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.ops-copilot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, .55) 50%, transparent 66%);
  transform: translateX(-140%);
  animation: aiSweep 7s ease-in-out infinite;
  pointer-events: none;
}
.ops-copilot:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 80, 233, .38);
  box-shadow: 0 22px 46px rgba(76, 84, 180, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.ops-copilot-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.ops-ai-badge {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: linear-gradient(140deg, #6ea4ff, #5b4df0 58%, #7c3aed);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 6px 14px rgba(99, 102, 241, .3);
}
.ops-copilot-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 2px;
}
.ops-copilot-emblem {
  position: relative;
  flex: none;
  display: block;
  width: 44px;
  height: 44px;
  margin-left: auto;
  filter: drop-shadow(0 10px 18px rgba(91, 77, 240, .3));
  transition: transform 220ms ease, filter 220ms ease;
}
.ops-copilot-emblem::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 80, 233, .22), rgba(111, 80, 233, 0) 70%);
  z-index: -1;
}
.ops-copilot-emblem svg { display: block; width: 100%; height: 100%; }
.ops-copilot:hover .ops-copilot-emblem {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 14px 22px rgba(91, 77, 240, .4));
}
.ops-copilot strong { position: relative; z-index: 1; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.ops-copilot p { position: relative; z-index: 1; margin: 0; color: var(--dash-muted); font-size: 11px; line-height: 1.6; }
.ops-copilot-flow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(111, 80, 233, .16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 246, 255, .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}
.ops-copilot-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5b46c4;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ops-copilot-step svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
}
.ops-copilot-dash {
  flex: 1;
  min-width: 8px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(111, 80, 233, .38) 0 3px, transparent 3px 6px);
}
.ops-copilot-note {
  position: relative;
  z-index: 1;
  color: var(--dash-faint, #8b93a7);
  font-size: 10px;
  letter-spacing: .01em;
}
.ops-copilot-cta {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 5px;
  color: #5b46c4;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ops-copilot-cta i { font-style: normal; transition: transform 160ms ease; }
.ops-copilot:hover .ops-copilot-cta i { transform: translateX(3px); }


/* ---------- AI 经营中枢 ---------- */
#view-dashboard .ops-ai {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 28px;
  margin-top: 18px;
  padding: 30px 34px;
  border: 1px solid rgba(111, 80, 233, .2);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(620px 320px at 88% 6%, rgba(111, 80, 233, .15), transparent 64%),
    radial-gradient(520px 300px at 4% 118%, rgba(47, 99, 238, .11), transparent 62%),
    linear-gradient(118deg, #ffffff, #f9f6ff 58%, #f4f8ff);
  box-shadow: 0 22px 52px rgba(76, 84, 180, .11);
}
#view-dashboard .ops-ai::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(111, 80, 233, .34) 1px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: .18;
  animation: particleDrift 26s linear infinite;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 72%, transparent);
}
.ops-ai-main { position: relative; z-index: 1; min-width: 0; }
.ops-ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(111, 80, 233, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #5b46c4;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
}
.ops-ai-pill i {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: linear-gradient(140deg, #6ea4ff, #6f50e9);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
#view-dashboard .ops-ai h2 {
  margin: 14px 0 9px;
  max-width: 660px;
  color: var(--dash-ink);
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.03em;
}
.ops-ai-main > p { margin: 0; max-width: 600px; color: var(--dash-muted); font-size: 12.5px; line-height: 1.7; }
.ops-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.ops-ai-cta { min-height: 40px; padding: 0 20px; font-size: 12.5px; }
.ops-ai-note { color: var(--dash-faint); font-size: 11px; font-weight: 600; }
.ops-ai-note b { color: var(--dash-ink); font-weight: 800; }
.ops-ai-insights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ops-insight {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(47, 99, 238, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(18, 40, 82, .04);
}
.ops-insight b {
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(47, 99, 238, .12), rgba(111, 80, 233, .14));
  color: #4b5fd0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ops-insight.muted { border-color: var(--dash-line); color: var(--dash-faint); }

.ops-ai-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; min-width: 0; }
.ops-ai-visual { position: relative; display: grid; place-items: center; min-height: 126px; }
.ops-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #e6efff, #6ea4ff 34%, #6f50e9 74%, #332e92);
  box-shadow: 0 0 40px rgba(99, 102, 241, .32), inset 0 0 22px rgba(255, 255, 255, .3);
  animation: orbFloat 6s ease-in-out infinite;
}
.ops-orb i { color: #fff; font-size: 26px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-shadow: 0 0 16px rgba(255, 255, 255, .62); }
.ops-ring { position: absolute; width: 150px; height: 150px; border: 1px solid rgba(47, 99, 238, .16); border-radius: 50%; transform: rotate(-14deg); }
.ops-ring.r2 { width: 186px; height: 186px; border-color: rgba(111, 80, 233, .12); transform: rotate(12deg); animation: ringPulse 6s ease-in-out infinite; }
.ops-flow { display: grid; gap: 9px; }
.ops-flow-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(47, 99, 238, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: var(--dash-ink);
  text-align: left;
  box-shadow: 0 3px 12px rgba(18, 40, 82, .04);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.ops-flow-item:hover { transform: translateX(3px); border-color: rgba(47, 99, 238, .32); background: #fff; }
.ops-flow-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--dash-blue-soft), var(--dash-violet-soft));
  color: #4a5fd0;
  font-size: 14px;
  font-weight: 800;
}
.ops-flow-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ops-flow-copy strong { font-size: 12.5px; font-weight: 800; }
.ops-flow-copy small { color: var(--dash-faint); font-size: 10.5px; }
.ops-flow-arrow { color: var(--dash-faint); font-size: 15px; font-weight: 700; }


/* 首页以品牌蓝、轻光和大数字建立展示层级；所有数据仍由原接口填充。 */
#view-dashboard {
  --dash-line-strong: #d6e1f4;
  --dash-violet: #7156d8;
  --dash-violet-soft: #f3efff;
  --dash-shadow: 0 10px 32px rgb(33 67 133 / 6%);
  --dash-shadow-sm: 0 3px 16px rgb(33 67 133 / 3%);
}
#view-dashboard .ops-hero { grid-template-columns: minmax(0,1.5fr) minmax(290px,.85fr); gap: 24px; padding: 26px 30px; border-radius: 16px; box-shadow: var(--dash-shadow); }
#view-dashboard .ops-hero::before { opacity: .45; }
#view-dashboard .ops-hero::after { opacity: .13; }
#view-dashboard .ops-greeting { font-size: clamp(27px,2.6vw,38px); margin: 14px 0 7px; }
#view-dashboard .ops-sub { font-size: 12px; line-height: 1.8; }
#view-dashboard .ops-eyebrow { gap: 10px; }
#view-dashboard .ops-eyebrow-text { font-size: 9px; letter-spacing: .17em; }
#view-dashboard .ops-date { font-size: 10px; }
#view-dashboard .ops-live { font-size: 9px; padding: 3px 8px; }
#view-dashboard .ops-revenue { margin-top: 22px; }
#view-dashboard .ops-revenue-value { gap: 6px; margin-top: 8px; }
#view-dashboard .ops-revenue-value b { font-size: clamp(40px,4.2vw,60px); line-height: 1.15; }
#view-dashboard .ops-cur { font-size: 23px; }
#view-dashboard .ops-revenue-foot { margin-top: 12px; font-size: 11px; gap: 9px; flex-wrap: wrap; }
#view-dashboard .ops-hero-side { gap: 14px; }
#view-dashboard .ops-copilot { gap: 10px; padding: 18px 20px; border-radius: 12px; box-shadow: 0 6px 22px rgb(89 70 194 / 5%); }
#view-dashboard .ops-copilot-head { gap: 8px; }
#view-dashboard .ops-copilot-title { margin-top: 12px; gap: 8px; }
#view-dashboard .ops-copilot-title strong { font-size: 18px; }
#view-dashboard .ops-copilot-emblem { width: 38px; height: 38px; }
#view-dashboard .ops-copilot-emblem svg { width: 38px; height: 38px; }
#view-dashboard .ops-copilot-flow { margin-top: 14px; padding: 10px; font-size: 12px; }
#view-dashboard .ops-copilot-note { margin-top: 9px; font-size: 10px; }
#view-dashboard .ops-copilot-cta { margin-top: 8px; font-size: 12px; }
#view-dashboard .ops-kpi-grid { margin-top: 18px; }
#view-dashboard .ops-kpi { border-radius: 10px; padding: 18px 22px; }
#view-dashboard .ops-kpi.accent { border-top: 2px solid #527ff0; }
#view-dashboard .ops-kpi.blue { border-top: 2px solid #9cb8ef; }
#view-dashboard .ops-kpi.violet { border-top: 2px solid #b1a1e2; }
#view-dashboard .ops-main-grid > .card, #view-dashboard .ops-bottom-grid > .card { border-radius: 12px; }
#view-dashboard .ops-ai { grid-template-columns: minmax(0,1.55fr) minmax(250px,.75fr); gap: 24px; margin-top: 18px; padding: 24px 28px; border-radius: 16px; box-shadow: var(--dash-shadow-sm); }
#view-dashboard .ops-ai h2 { margin: 14px 0 18px; font-size: clamp(21px,2vw,28px); max-width: 620px; line-height: 1.5; }
#view-dashboard .ops-ai-pill { padding: 5px 10px; font-size: 11px; }
#view-dashboard .ops-ai-actions { flex-wrap: wrap; gap: 12px; }
#view-dashboard .ops-ai-note { font-size: 11px; }
#view-dashboard .ops-ai-insights { margin-top: 18px; gap: 8px; }
#view-dashboard .ops-insight { padding: 6px 10px; border: 1px solid #e1e7fb; border-radius: 6px; background: rgb(255 255 255 / 80%); font-size: 11px; line-height: 1.6; }
#view-dashboard .ops-ai-visual { min-height: 90px; height: 90px; }
#view-dashboard .ops-orb { width: 66px; height: 66px; }
#view-dashboard .ops-orb i { font-size: 24px; }
#view-dashboard .ops-ring { width: 100px; height: 100px; }
#view-dashboard .ops-ring.r2 { width: 130px; height: 130px; }
#view-dashboard .ops-flow { gap: 8px; }
#view-dashboard .ops-flow-item { min-height: 45px; padding: 9px 12px; border-radius: 8px; }
#view-dashboard .ops-flow-icon { width: 28px; height: 28px; font-size: 17px; border-radius: 7px; }
#view-dashboard .ops-flow-copy strong { font-size: 13px; }
@media (max-width: 1180px) {
  #view-dashboard .ops-hero { padding: 24px; grid-template-columns: minmax(0,1fr) minmax(265px,.85fr); gap: 20px; }
  #view-dashboard .ops-eyebrow { flex-wrap: wrap; }
  #view-dashboard .ops-date { margin-left: 0; }
  #view-dashboard .ops-eyebrow-text { display: none; }
  #view-dashboard .ops-ai { grid-template-columns: minmax(0,1.4fr) minmax(230px,1fr); padding: 22px; }
}
@media (max-width: 820px) {
  #view-dashboard .ops-hero { grid-template-columns: minmax(0,1fr); padding: 22px; }
  #view-dashboard .ops-hero-side { display: grid; grid-template-columns: minmax(0,1fr); }
  #view-dashboard .ops-period { justify-content: flex-start; }
  #view-dashboard .ops-copilot { padding: 16px; }
  #view-dashboard .ops-copilot-title { margin-top: 6px; }
  #view-dashboard .ops-copilot-flow { margin-top: 8px; }
  #view-dashboard .ops-ai { grid-template-columns: minmax(0,1fr); gap: 14px; }
  #view-dashboard .ops-ai-side { display: grid; grid-template-columns: minmax(0,1fr); }
  #view-dashboard .ops-ai-visual { display: none; }
  #view-dashboard .ops-kpi { padding: 16px; }
}
@media (max-width: 520px) {
  #view-dashboard .ops-hero, #view-dashboard .ops-ai { padding: 20px; border-radius: 12px; }
  #view-dashboard .ops-greeting { font-size: 27px; }
  #view-dashboard .ops-revenue-value b { font-size: 44px; }
  #view-dashboard .ops-revenue-foot { gap: 7px; font-size: 10px; }
  #view-dashboard .ops-copilot-title strong { font-size: 17px; }
}

/* 周期切换沿用用户指定的深色圆胶囊选中态。 */
#view-dashboard .ops-period .range-tabs { padding: 4px; border-radius: 12px; background: rgb(255 255 255 / 90%); border-color: #cedaf0; box-shadow: 0 4px 12px rgb(31 51 89 / 6%); }
#view-dashboard .ops-period .range-tabs button { min-width: 54px; padding: 7px 13px; border-radius: 999px; color: #64748b; font-size: 13px; font-weight: 650; }
#view-dashboard .ops-period .range-tabs button.active { background: #0e1a31; color: #fff; border-radius: 999px; box-shadow: none; }
#view-dashboard .ops-empty-icon { display: grid; place-items: center; width: 32px; height: 32px; }
#view-dashboard .ops-empty-icon svg { width: 26px; height: 26px; }
