@font-face {
  font-family: "QnRoboto";
  src: url("assets/fonts/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "QnNavIcons";
  src: url("assets/fonts/qn-nav-icons.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "QnActionIcons";
  src: url("assets/fonts/qn-action-icons.ttf") format("truetype");
  font-display: block;
}

:root {
  --blue: #5584ff;
  --blue-strong: #3d7fff;
  --blue-soft: #eef3ff;
  --ink: #111111;
  --text: #333333;
  --muted: #8c8c8c;
  --line: #e7e9ed;
  --fill: #f7f8fa;
  --fill-2: #f2f4f7;
  --green: #45bd82;
  --red: #f04452;
  --trend-up: #087f5b;
  --trend-down: #d94a55;
  --orange: #ff8a3d;
  --topbar-h: 64px;
  --primary-w: 104px;
  --secondary-w: 108px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 10px 28px rgba(31, 39, 58, .12);
  --page-bg: #f7fbff;
  --card-shadow: 0 4px 14px rgba(71, 84, 108, .07);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", QnRoboto, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; background: #fff; }

.qn-icon { display: inline-block; width: 1em; height: 1em; line-height: 1; font-style: normal; font-weight: 400; speak: never; -webkit-font-smoothing: antialiased; }
.qn-icon-nav { font-family: "QnNavIcons" !important; }
.qn-icon-action { font-family: "QnActionIcons" !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #eceef2;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 34px;
  color: var(--blue);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 20px;
  height: 21px;
  border: 6px solid currentColor;
  border-top-width: 5px;
  border-radius: 8px 8px 10px 10px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px 3px auto;
  height: 12px;
  background:
    linear-gradient(65deg, transparent 42%, currentColor 43% 58%, transparent 59%) left/12px 12px no-repeat,
    linear-gradient(-65deg, transparent 42%, currentColor 43% 58%, transparent 59%) right/12px 12px no-repeat;
}

.brand-name { font-size: 25px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; }

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #fff;
}

.topbar-assistant-entry {
  position: relative;
  flex: 0 1 286px;
  min-width: 250px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 2px 10px 2px 7px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: linear-gradient(#fff,#fff) padding-box, linear-gradient(105deg,#2dd4df,#638cff 52%,#8e70ff,#2dd4df) border-box;
  background-size: auto, 260% 100%;
  box-shadow: 0 4px 16px rgba(64,150,226,.11);
  cursor: text;
  animation: assistantEntryFlow 5s linear infinite;
}
.topbar-assistant-entry::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.8),rgba(255,255,255,0)); transform: translateX(-110%); animation: assistantEntrySheen 3.4s ease-in-out infinite; }
.topbar-assistant-entry:focus-within { box-shadow: 0 0 0 3px rgba(85,132,255,.12), 0 7px 20px rgba(64,150,226,.16); }
.topbar-assistant-entry img { position: relative; z-index: 1; width: 28px; height: 28px; object-fit: contain; }
.topbar-assistant-entry input { position: relative; z-index: 1; min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #31547c; font-size: 12px; }
.topbar-assistant-entry input::placeholder { color: #8aa0b8; }
.topbar-assistant-search { position: relative; z-index: 2; flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #547da5; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.topbar-assistant-search:hover { color: var(--blue); background: #eef5fb; }
.topbar-assistant-spark { position: absolute; z-index: 0; top: 3px; left: 38px; width: 4px; height: 4px; border-radius: 50%; background: #35cfe0; box-shadow: 38px 16px 0 #8e70ff, 160px -4px 0 #35cfe0; animation: assistantSpark 2.8s ease-in-out infinite alternate; }
@keyframes assistantEntryFlow { to { background-position: 0 0, 260% 0; } }
@keyframes assistantEntrySheen { 0%,35% { transform: translateX(-110%); } 65%,100% { transform: translateX(110%); } }
@keyframes assistantSpark { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }

.search-wrap { position: relative; flex: 0 1 240px; min-width: 180px; }
.global-search {
  width: 100%; height: 36px;
  padding: 0 14px 0 36px;
  color: #555;
  background: #f5f6f8;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.global-search:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85,132,255,.12); }
.search-icon { position: absolute; left: 12px; top: 10px; color: #8e95a3; }

.search-suggestions {
  position: absolute;
  display: none;
  top: 42px;
  left: 0;
  width: 360px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.search-wrap.open .search-suggestions { display: block; animation: pop .16s var(--ease); }
.suggestion { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.suggestion:hover { background: #f5f7fb; }
.suggestion small { color: #a0a4ad; }

.announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}
.announcement span:last-child { overflow: hidden; text-overflow: ellipsis; }

.header-tools { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.tool-item {
  position: relative;
  width: 40px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.tool-item:hover { background: #f2f4f7; color: var(--blue); transform: translateY(-1px); }
.tool-item svg { width: 19px; height: 19px; }
.tool-item em { font-style: normal; font-size: 10px; line-height: 14px; }
.tool-dot { position: absolute; top: 5px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px #fff; }

.user-menu { position: relative; display: flex; align-items: center; gap: 9px; margin-left: 5px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.user-menu:hover { background: #f4f5f7; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 2px solid #e6b84c; border-radius: 50%; background: #fff7de; font-size: 17px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.user-copy { min-width: 84px; }
.user-copy b { display: block; font-size: 13px; font-weight: 500; }
.user-copy small { color: #999; font-size: 10px; }
.caret { color: #9ba0a8; font-size: 10px; }

.popover {
  position: fixed;
  z-index: 130;
  display: none;
  min-width: 184px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.popover.open { display: block; animation: pop .14s var(--ease); }
.popover-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 5px; cursor: pointer; }
.popover-item:hover { color: var(--blue); background: #f3f6ff; }

.workspace { padding-top: var(--topbar-h); min-height: 100vh; }

.primary-nav {
  position: fixed;
  z-index: 70;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  width: var(--primary-w);
  padding: 18px 14px 90px;
  background: #fff;
  border-right: 1px solid #eceef2;
  overflow-y: auto;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 2px;
  color: #151515;
  border: 0;
  border-radius: 4px;
  background: transparent;
  width: 100%;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-item:hover { background: #f3f4f6; color: var(--blue); }
.nav-item.active { background: #f0f2f6; color: var(--blue); }
.nav-item.active span { color: var(--blue); font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-item span { color: #111; font-size: 14px; }
.nav-divider { height: 1px; margin: 12px 2px; background: #e7e9ed; }
.nav-footer { position: absolute; left: 24px; bottom: 18px; color: #8b92a0; font-size: 11px; line-height: 1.7; }
.nav-footer span { display: block; margin-bottom: 14px; color: #747c89; }

.secondary-nav {
  position: fixed;
  z-index: 60;
  left: var(--primary-w);
  top: var(--topbar-h);
  bottom: 0;
  width: var(--secondary-w);
  padding: 25px 14px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #e7e9ed;
}
.secondary-title { padding: 0 0 14px 2px; font-size: 18px; font-weight: 500; }
.secondary-group { margin-bottom: 15px; }
.secondary-group-title { display: flex; align-items: center; justify-content: space-between; height: 30px; font-weight: 500; cursor: pointer; }
.secondary-group-title::after { content: "\2303"; color: #747b86; font-size: 12px; transition: transform .18s var(--ease); }
.secondary-group.collapsed .secondary-group-title::after { transform: rotate(180deg); }
.secondary-links { overflow: hidden; }
.secondary-group.collapsed .secondary-links { display: none; }
.secondary-link {
  display: block;
  min-height: 36px;
  padding: 9px 0 9px 2px;
  color: #363636;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}
.secondary-link:hover { color: var(--blue); padding-left: 6px; }
.secondary-link.active { color: var(--blue); font-weight: 500; }

.main {
  min-height: calc(100vh - var(--topbar-h));
  margin-left: calc(var(--primary-w) + var(--secondary-w));
  padding: 24px 50px 60px;
  background: var(--page-bg);
  min-width: 0;
  overflow-x: hidden;
}
.main.home-main { margin-left: var(--primary-w); padding: 26px 46px 60px; background: var(--page-bg); }

.page { min-width: 0; max-width: 1320px; margin: 0 auto; animation: fade .22s var(--ease); }
.page-title { margin: 0 0 18px; font-size: 20px; font-weight: 600; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px; font-size: 18px; font-weight: 500; }
.section-title small { font-size: 12px; color: #999; font-weight: 400; }

.card { background: #fff; border: 0; border-radius: 8px; box-shadow: var(--card-shadow); }
.soft-card { background: #f7f8fa; border-radius: 8px; }
.muted { color: #9298a2; }
.blue { color: var(--blue); }
.red { color: var(--red); }
.green { color: var(--green); }

.trend-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--trend-up);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.trend-change.down { color: var(--trend-down); }
.trend-change svg { flex: 0 0 auto; width: 15px; height: 15px; stroke-width: 2.4; }
.trend-change .trend-value { color: inherit; font-size: inherit; font-weight: 700; }
.trend-change em { margin-left: 3px; color: #718096; font-size: inherit; font-style: normal; font-weight: 500; }

.btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  color: #222;
  border: 1px solid #dfe2e7;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.btn:hover { color: var(--blue); border-color: var(--blue); box-shadow: 0 3px 10px rgba(85,132,255,.13); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { color: #b8bdc6; border-color: #e6e8ec; background: #f7f8fa; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.btn.primary:hover { color: #fff; background: #4677f3; box-shadow: 0 5px 14px rgba(85,132,255,.3); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--blue); }
.btn.small { height: 28px; padding: 0 12px; font-size: 12px; }

.promo-banner {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 36px 0 145px;
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(105deg, #f34332, #f43a20 65%, #f04426);
}
.promo-banner img { position: absolute; left: 10px; top: -4px; width: 166px; height: 66px; object-fit: contain; }
.promo-banner strong { position: relative; z-index: 1; font-size: 29px; font-weight: 500; font-style: italic; letter-spacing: 1px; }
.promo-banner .btn { margin-left: auto; color: #f24a4a; border: 0; border-radius: 999px; font-weight: 600; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 338px; gap: 12px; margin-top: 22px; }
.home-left { min-width: 0; }
.blue-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 92px;
  overflow: hidden;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(105deg, #3975e9, #4b7bf1 45%, #356fdf);
}
.home-left { min-width: 0; }
.blue-metric { position: relative; display: grid; place-content: center; text-align: center; transition: background .18s var(--ease); }
.blue-metric:hover { background: rgba(255,255,255,.09); }
.blue-metric b { font-size: 28px; line-height: 1; font-weight: 400; }
.blue-metric span { margin-top: 10px; color: rgba(255,255,255,.72); font-size: 13px; }
.blue-metric:last-child { background: radial-gradient(circle at 50% 45%, rgba(135,180,255,.35), transparent 67%); }
.pending-line { display: flex; justify-content: space-between; align-items: center; height: 58px; font-size: 18px; }
.pending-line a { color: #999; font-size: 13px; cursor: pointer; }

.stats-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 18px; }
.stats-heading small { color: #9b9fa7; font-size: 12px; }
.stats-heading .indicator { margin-left: auto; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; }
.stat-card { padding: 14px 18px; min-height: 84px; background: #f7f8fa; border-radius: 9px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,49,79,.08); }
.stat-card label { display: block; color: #696f79; font-size: 12px; }
.stat-card strong { display: block; margin: 4px 0 2px; font-size: 25px; font-weight: 500; }
.stat-card small { color: #646a74; }

.shop-card { padding: 22px 25px; min-height: 344px; }
.shop-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.shop-card-head strong { font-size: 18px; font-weight: 500; }
.shop-card-head .chips { display: flex; gap: 8px; }
.icon-chip { width: 34px; height: 30px; display: grid; place-items: center; border: 1px solid #e7e9ed; border-radius: 4px; background: #fff; }
.experience { margin: 18px 0; font-weight: 600; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; color: #656a73; font-size: 12px; }
.experience-grid b { display: block; margin-top: 10px; color: #111; font-size: 14px; }
.warning-line { margin: 18px 0; padding: 12px 0; border-bottom: 1px solid #eee; color: #474b53; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warning-line b { color: var(--red); }
.shop-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.shop-levels small { display: block; color: #666; }
.shop-levels b { display: block; margin-top: 12px; font-weight: 500; }
.service-line { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee; }
.service-line .dot-icon { width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; }

.quality-panel { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 56px; padding: 24px 26px; }
.quality-panel h3 { margin: 0 0 26px; font-size: 18px; font-weight: 500; }
.quality-summary { display: grid; grid-template-columns: 1fr auto; row-gap: 12px; }
.product-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.product-mini { display: flex; gap: 10px; min-width: 0; }
.product-mini img { width: 74px; height: 74px; object-fit: cover; border-radius: 3px; }
.product-mini b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.product-mini p { margin: 5px 0; color: #656b75; font-size: 12px; }

.headline-card { margin-top: 24px; padding: 0; border: 0; }
.headline-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.headline-banner { position: relative; height: 108px; overflow: hidden; border-radius: 10px; background: linear-gradient(105deg,#ee3657,#f1517d); color:#fff; padding: 20px; }
.headline-banner img { position: absolute; right: -8px; bottom: -18px; width: 105px; opacity: .88; }
.headline-list { display: grid; gap: 12px; padding-top: 16px; }
.headline-list a:hover { color: var(--blue); }

.strip {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 0 20px;
  color: #e84d67;
  border-radius: 10px;
  background: #fff0f3;
  font-weight: 600;
}
.strip .btn { height: 28px; border-radius: 999px; color: #fff; background: #ed4264; border: 0; }
.notice-line { padding: 11px 16px; margin-bottom: 12px; border: 1px solid #eff0f3; border-radius: 4px; font-size: 12px; }
.notice-line svg { vertical-align: -2px; margin-right: 5px; }

.trade-operation { position: relative; padding: 18px 20px; margin-bottom: 12px; }
.trade-operation h3 { margin: 0 0 8px; font-size: 18px; }
.trade-operation h3 { display: flex; align-items: center; gap: 7px; }
.trade-operation p { margin: 0; color: #7c828c; font-size: 12px; }
.trade-operation .estimate { margin-top: 20px; color: #333; }
.trade-operation .btn { position: absolute; right: 24px; top: 40px; }

.tabs { display: flex; align-items: stretch; min-height: 42px; overflow-x: auto; border-bottom: 1px solid #e8eaee; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: 0 0 auto; min-width: 78px; padding: 0 14px; border: 0; background: #f7f8fa; cursor: pointer; transition: color .16s var(--ease), background .16s var(--ease); }
.tab:hover { color: var(--blue); background: #f0f4ff; }
.tab.active { color: #fff; background: #111; }
.product-tabs .tab { min-width: auto; padding: 0 18px; background: #fff; }
.product-tabs .tab.active { color: #111; font-weight: 600; }
.product-tabs .tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: #111; }

.query-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.query-bar strong { white-space: nowrap; }
.query-input { position: relative; display: flex; flex: 1; max-width: 590px; height: 34px; }
.query-input input { flex: 1; min-width: 0; padding: 0 12px; border: 1px solid #e3e6eb; border-right: 0; outline: none; }
.query-input input:focus { border-color: var(--blue); }
.query-input button { width: 58px; border: 1px solid #e3e6eb; background: #f8f9fa; cursor: pointer; }
.link-action { color: var(--blue); cursor: pointer; }

.filter-panel { padding: 4px 0 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 14px; }
.field { position: relative; display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid #e1e4e9; border-radius: 3px; background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.field:hover { border-color: #b9c0cb; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.field label { min-width: 78px; color: #777d87; font-size: 12px; }
.field input { width: 100%; border: 0; outline: 0; background: transparent; }
.select-trigger { justify-content: space-between; cursor: pointer; }
.select-trigger b { font-weight: 400; }
.select-trigger::after { content: "\2304"; color: #989da5; }
.select-menu { position: absolute; z-index: 120; display: none; top: 39px; left: 0; right: 0; padding: 6px; background: #fff; border: 1px solid #e1e4e9; border-radius: 5px; box-shadow: var(--shadow); }
.field.open .select-menu { display: block; animation: pop .12s var(--ease); }
.select-option { padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.select-option:hover, .select-option.selected { color: var(--blue); background: #f0f4ff; }
.date-range { grid-column: span 2; }
.date-range .date-sep { color: #aaa; margin: 0 12px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.text-btn { border: 0; background: transparent; color: #6f7580; cursor: pointer; }
.text-btn:hover { color: var(--blue); }
.filter-panel.collapsed .filter-grid { display: none; }

.quick-filter { display: flex; align-items: center; gap: 24px; min-height: 52px; padding: 0 15px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid #bcc2cc; border-radius: 2px; background: #fff; cursor: pointer; }
.check input:checked { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 58px; }
.toolbar .count { margin-right: auto; }
.table-head, .product-table-head {
  display: grid;
  align-items: center;
  min-height: 56px;
  color: #30343a;
  background: #f7f8fa;
  font-size: 12px;
}
.table-head { grid-template-columns: minmax(360px, 1fr) 100px 70px 140px 130px 120px 110px; }
.product-table-head { grid-template-columns: 48px minmax(280px,1.4fr) 90px 95px 100px 110px 110px 110px 105px; padding: 0 14px; }
.table-head > *, .product-table-head > * { padding: 0 14px; }

.order-list { display: grid; gap: 13px; margin-top: 12px; }
.order-card { overflow: hidden; border: 1px solid #e6e9ee; border-radius: 5px; }
.order-meta { display: flex; align-items: center; gap: 22px; padding: 10px 14px; background: #f7f8fa; color: #666c75; font-size: 12px; }
.order-body { display: grid; grid-template-columns: minmax(360px,1fr) 100px 70px 140px 130px 120px 110px; min-height: 118px; }
.order-body > * { display: flex; align-items: center; padding: 15px 14px; border-right: 1px solid #f0f1f3; }
.order-product { gap: 12px; }
.order-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.order-product b { display: block; max-width: 260px; font-size: 12px; font-weight: 500; }
.order-product small { display: block; margin-top: 6px; color: #858b94; }
.order-actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.order-actions a { color: var(--blue); font-size: 12px; cursor: pointer; }

.product-filters { display: grid; grid-template-columns: 1.15fr 1.15fr 1.15fr 1.15fr; gap: 10px; margin: 18px 0; }
.quality-chips { display: flex; gap: 12px; margin: 12px 0 18px; }
.quality-chip { padding: 8px 12px; border-radius: 4px; background: #f6f7f9; color: #4e535b; cursor: pointer; }
.quality-chip.active { background: #eef3ff; color: var(--blue); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.product-actions .total { margin-left: auto; font-weight: 600; }
.product-row { display: grid; grid-template-columns: 48px minmax(280px,1.4fr) 90px 95px 100px 110px 110px 110px 105px; align-items: center; min-height: 138px; padding: 0 14px; border-bottom: 1px solid #eceef1; font-size: 12px; transition: background .15s var(--ease); }
.product-row:hover { background: #fafbfc; }
.product-cell { padding: 12px 10px; }
.product-name { display: flex; gap: 14px; }
.product-name img { width: 68px; height: 68px; object-fit: cover; border-radius: 3px; }
.product-name b { display: block; line-height: 1.4; font-weight: 500; }
.product-name small { display: block; margin-top: 7px; color: #989da5; }
.quality-score span { display: block; margin: 5px 0; }
.product-link { color: var(--blue); display: block; margin: 5px 0; cursor: pointer; }
.product-link:hover { text-decoration: underline; }

.service-tabs { max-width: 720px; }
.info-strip { padding: 13px 16px; margin: 42px 0 20px; color: #5f6670; border-radius: 6px; background: #f2f6ff; }
.service-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }
.task-overview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 96px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(110deg,#f4f7ff,#edf3ff 62%,#f7f9ff);
}
.task-item { display: grid; place-content: center; text-align: center; transition: background .15s var(--ease); }
.task-item:hover { background: rgba(85,132,255,.06); }
.task-item b { font-size: 30px; font-weight: 400; }
.task-item span { margin-top: 8px; color: #545b65; }
.service-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { position: relative; min-height: 102px; padding: 14px; background: #f7f8fa; border-radius: 8px; }
.metric-card label { color: #808691; font-size: 12px; }
.metric-card strong { display: block; margin-top: 12px; font-size: 27px; font-weight: 500; }
.metric-card a { position: absolute; right: 12px; bottom: 10px; color: var(--blue); font-size: 12px; }
.right-panel h3 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.assessment { padding: 20px 22px; min-height: 98px; margin-bottom: 14px; background: linear-gradient(120deg,#f5f8ff,#eef3ff); }
.assessment b { color: #5871a4; font-size: 16px; }
.assessment p { margin: 12px 0 0; color: #7180a0; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; text-align: center; }
.service-tool .round { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 8px; color: #fff; border-radius: 14px; background: var(--blue); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.service-tool:nth-child(4n+2) .round { background: #52c59a; }
.service-tool:nth-child(4n+3) .round { background: #48bd91; }
.service-tool:nth-child(4n+4) .round { background: #ef6b2f; }
.service-tool:hover .round { transform: translateY(-3px) scale(1.03); box-shadow: 0 7px 18px rgba(51,74,112,.16); }
.service-tool span { color: #747b86; font-size: 12px; white-space: nowrap; }

.finance-top { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; }
.todo-strip { min-height: 104px; display: grid; grid-template-columns: repeat(4,1fr); padding: 12px 0; background: #f4f7ff; border-radius: 8px; }
.todo-item { padding: 10px 18px; border-right: 1px dashed #d5ddef; }
.todo-item:last-child { border: 0; }
.todo-item b { display: block; margin-bottom: 8px; }
.todo-item span { font-size: 20px; }
.todo-item > span { display: block; margin-top: 8px; }
.assistant-banner { position: relative; height: 104px; overflow: hidden; padding: 18px 20px; border-radius: 8px; background: #eef4ff; }
.assistant-banner h3 { position: relative; z-index: 1; margin: 0 0 10px; font-size: 21px; }
.assistant-banner img { position: absolute; right: 0; top: 0; height: 100%; width: 100%; object-fit: cover; }
.assistant-banner .btn { position: relative; z-index: 1; }
.account-grid { display: grid; grid-template-columns: 2fr 1.05fr .58fr; gap: 14px; }
.account-block { padding: 16px; min-height: 152px; background: #f4f7ff; border-radius: 8px; }
.account-block h3 { margin: 0 0 12px; font-size: 15px; }
.account-card { min-height: 96px; padding: 16px; border-radius: 8px; background: #fff; }
.account-card strong { font-size: 24px; font-weight: 500; }
.balance-line { display: flex; align-items: flex-end; gap: 15px; }
.balance-line small { color: #8c929c; }
.account-card .subrow { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-top: 14px; color: #707681; }
.income-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; }
.income-card { padding: 16px 20px; background: #f8f9fb; border-radius: 9px; }
.income-card h3 { margin: 0 0 14px; font-size: 15px; }
.income-head { display: flex; justify-content: space-between; gap: 18px; padding: 12px; border-radius: 7px; background: #fff; }
.income-head b { display: block; margin-top: 7px; font-size: 16px; }
.income-boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.income-box { padding: 13px; min-height: 70px; background: #fff; border-radius: 6px; }
.income-box small { color: #7c828c; }
.income-box b { display: block; margin-top: 8px; }

.system-message {
  position: fixed;
  z-index: 140;
  right: 44px;
  bottom: 26px;
  width: 370px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid #e6e9f2;
  border-top: 4px solid var(--blue);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(57,73,112,.18);
  transform-origin: bottom right;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.system-message.hidden { opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; visibility: hidden; }
.system-message-head { display: flex; align-items: center; gap: 9px; }
.system-message-head strong { font-size: 17px; }
.system-message-head .badge { min-width: 28px; padding: 3px 8px; color: #e85a67; background: #fff0f1; border-radius: 999px; text-align: center; }
.close { margin-left: auto; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: #444; }
.message-body { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; margin-top: 17px; }
.alert-icon { width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: #f04452; border-radius: 50%; }
.message-body h4 { margin: 0 0 9px; font-size: 15px; }
.message-body p { margin: 0; color: #666c75; line-height: 1.5; }
.message-body time { color: #999; font-size: 12px; }
.message-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-left: 34px; color: #a0a5ad; }

.assistant-fab {
  position: fixed;
  z-index: 141;
  right: 28px;
  bottom: 26px;
  min-width: 174px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  color: #17355f;
  border: 1px solid #cfe7fb;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(43,91,162,.2);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .16s var(--ease);
}
.assistant-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(43,91,162,.25); }
.assistant-fab:focus-visible { outline: 3px solid rgba(72,203,226,.34); outline-offset: 3px; }
.assistant-fab.is-open { opacity: 0; pointer-events: none; transform: translateY(8px) scale(.96); }
.assistant-fab-icon,
.assistant-brand-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #dff4ff 19% 58%, #bde6fb 59% 100%);
  box-shadow: inset 0 0 0 1px #9dd7f4, 0 3px 10px rgba(60,137,186,.18);
}
.assistant-fab-icon { width: 38px; height: 38px; }
.assistant-brand-avatar { width: 48px; height: 48px; }
.assistant-fab-icon::before,
.assistant-brand-avatar::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(75,172,222,.45); border-radius: inherit; }
.assistant-fab-icon i,
.assistant-brand-avatar i,
.assistant-mini-avatar i {
  position: relative;
  width: 22px;
  height: 18px;
  display: block;
  border: 4px solid #254d71;
  border-radius: 10px;
  background: #8ae4f3;
  box-shadow: inset 0 -5px 0 rgba(48,154,192,.25);
}
.assistant-fab-icon i::before,
.assistant-brand-avatar i::before,
.assistant-mini-avatar i::before { content: ""; position: absolute; left: 4px; top: 3px; width: 3px; height: 5px; border-radius: 3px; background: #18527a; box-shadow: 7px 0 0 #18527a; }
.assistant-fab-label { font-size: 13px; font-weight: 600; letter-spacing: .1px; white-space: nowrap; }
body:has(.home-page) .assistant-fab { right: 10px; min-width: 54px; width: 54px; justify-content: center; gap: 0; padding: 7px; }
body:has(.home-page) .assistant-fab-label { display: none; }

.assistant-panel {
  position: fixed;
  z-index: 142;
  right: 28px;
  bottom: 24px;
  width: 410px;
  height: min(660px, calc(100dvh - 88px));
  min-height: 520px;
  display: none;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  overflow: hidden;
  border: 1px solid #d9eaf7;
  border-radius: 22px;
  background: #f7fbff;
  box-shadow: 0 24px 64px rgba(29,67,119,.22), 0 2px 8px rgba(51,102,158,.08);
  transform-origin: bottom right;
}
.assistant-panel.open { display: grid; animation: assistantIn .22s var(--ease); }
.assistant-panel > * { min-width: 0; }
@keyframes assistantIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.assistant-title {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border-bottom: 1px solid #dbe9f5;
  background: rgba(255,255,255,.96);
}
.assistant-heading { min-width: 0; flex: 1; }
.assistant-heading > div { display: flex; align-items: center; gap: 8px; }
.assistant-heading h3 { margin: 0; color: #183459; font-size: 18px; line-height: 1.2; font-weight: 650; }
.assistant-heading span { padding: 4px 8px; color: #1769d4; border-radius: 999px; background: #eaf2ff; font-size: 11px; font-weight: 700; }
.assistant-heading small { display: block; margin-top: 5px; overflow: hidden; color: #69819f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-close { flex: 0 0 auto; width: 44px; height: 44px; color: #6c809a; border: 0; border-radius: 50%; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; transition: color .16s var(--ease), background .16s var(--ease); }
.assistant-close:hover { color: #1d3c63; background: #eef5fb; }
.assistant-close:focus-visible { outline: 2px solid #64cde3; outline-offset: 1px; }

.assistant-conversation {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 12px;
  background:
    radial-gradient(circle at 12% 8%, rgba(96,212,230,.09), transparent 28%),
    radial-gradient(circle at 88% 35%, rgba(104,118,255,.07), transparent 32%),
    linear-gradient(180deg,#f5faff 0%,#fbfdff 72%,#f7fbff 100%);
  scrollbar-width: thin;
  scrollbar-color: #c7d9ea transparent;
}
.assistant-messages { display: grid; gap: 16px; }
.assistant-message-row { display: flex; align-items: flex-start; gap: 9px; }
.assistant-message-row.user { justify-content: flex-end; }
.assistant-message-wrap { min-width: 0; max-width: calc(100% - 46px); }
.assistant-message-row.user .assistant-message-wrap { max-width: 88%; }
.assistant-mini-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #aee4f5; border-radius: 50%; background: #eaf9ff; }
.assistant-mini-avatar i { width: 18px; height: 14px; border-width: 3px; }
.assistant-mini-avatar i::before { left: 3px; top: 2px; width: 2px; height: 4px; box-shadow: 6px 0 0 #18527a; }
.assistant-message { padding: 12px 14px; color: #3e5e80; border: 1px solid #deebf6; border-radius: 6px 16px 16px 16px; background: rgba(255,255,255,.93); font-size: 13px; line-height: 1.72; white-space: pre-wrap; box-shadow: 0 5px 16px rgba(47,91,140,.05); }
.assistant-message-row.user .assistant-message { color: #fff; border-color: #1674dc; border-radius: 16px 6px 16px 16px; background: linear-gradient(135deg,#1483e7,#0b62cf); box-shadow: 0 8px 18px rgba(24,103,202,.18); }
.assistant-message-tools { display: flex; gap: 4px; margin-top: 6px; }
.assistant-message-tools button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #3977b8; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.assistant-message-tools button:hover { color: #0e64c8; background: #eaf3fb; }

.assistant-suggestions { display: grid; gap: 7px; margin: 16px 0 2px 43px; padding: 9px; border: 1px solid #dae9f5; border-radius: 14px; background: rgba(255,255,255,.82); }
.assistant-suggestions button { min-height: 44px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 9px; padding: 6px 10px; color: #436384; text-align: left; border: 0; border-radius: 10px; background: #f2f7fc; cursor: pointer; transition: color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease); }
.assistant-suggestions button:hover { color: #0b67ca; background: #e9f3fc; transform: translateX(2px); }
.assistant-suggestions span { width: 26px; height: 26px; display: grid; place-items: center; color: #176fc9; border-radius: 8px; background: #e3f0fb; font-weight: 600; }

.assistant-history { margin-bottom: 16px; padding: 12px; border: 1px solid #d9e8f4; border-radius: 13px; background: rgba(255,255,255,.88); }
.assistant-history > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.assistant-history b { color: #234667; font-size: 13px; }
.assistant-history small { color: #8aa0b6; font-size: 10px; }
.assistant-history p { margin: 8px 0 2px; color: #7d92a8; font-size: 12px; }
.assistant-history button { width: 100%; display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; gap: 8px; padding: 8px; overflow: hidden; color: #536e89; text-align: left; text-overflow: ellipsis; white-space: nowrap; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.assistant-history button:hover { background: #eef5fb; }
.assistant-history button span { width: 24px; height: 24px; display: grid; place-items: center; color: #1670cc; border-radius: 7px; background: #e6f1fb; font-size: 11px; }

.assistant-session-actions { display: flex; justify-content: center; gap: 8px; padding: 8px 14px 5px; border-top: 1px solid rgba(219,234,245,.72); background: #f8fbfe; }
.assistant-session-actions button { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 13px; color: #316da9; border: 1px solid #d8e6f2; border-radius: 999px; background: #fff; cursor: pointer; transition: border-color .16s var(--ease), background .16s var(--ease); }
.assistant-session-actions button:hover,
.assistant-session-actions button.active { border-color: #a8cce9; background: #eef6fc; }

.assistant-composer-shell { padding: 8px 12px 12px; background: #f8fbfe; }
.assistant-composer { min-height: 118px; padding: 12px 12px 10px; border: 2px solid transparent; border-radius: 18px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(120deg,#36cfdb,#6fa8ff 58%,#7f67ff) border-box; box-shadow: 0 5px 18px rgba(57,107,167,.11); }
.assistant-composer textarea { width: 100%; height: 56px; display: block; padding: 0 2px; color: #2d4c6d; border: 0; outline: 0; background: transparent; resize: none; font: inherit; line-height: 1.55; }
.assistant-composer textarea::placeholder { color: #9caec1; }
.assistant-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.assistant-model { height: 32px; padding: 0 10px; color: #2770ba; border: 1px solid #e4edf5; border-radius: 6px; background: #fff; box-shadow: 0 2px 7px rgba(52,100,150,.06); cursor: default; font-size: 11px; }
.assistant-model span { margin-left: 5px; font-size: 18px; vertical-align: -1px; }
.assistant-send { min-width: 80px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; border: 0; border-radius: 12px; background: #c7def1; cursor: pointer; transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease); }
.assistant-send.ready,
.assistant-send:not(:disabled):hover { background: linear-gradient(135deg,#318ee4,#5f7fe9); box-shadow: 0 6px 14px rgba(54,114,209,.22); }
.assistant-send:not(:disabled):active { transform: scale(.97); }
.assistant-send:disabled { color: rgba(255,255,255,.88); background: #c7def1; box-shadow: none; cursor: not-allowed; }
.assistant-send:focus-visible { outline: 3px solid rgba(65,201,220,.28); outline-offset: 2px; }

.toast { position: fixed; z-index: 200; left: 50%; top: 80px; padding: 11px 18px; color: #fff; border-radius: 6px; background: rgba(17,17,17,.88); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: .22s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 22px 0; }
.pagination button { min-width: 34px; height: 34px; border: 1px solid #e0e3e8; background: #fff; border-radius: 4px; cursor: pointer; }
.pagination button:hover, .pagination button.active { color: #fff; border-color: var(--blue); background: var(--blue); }

.empty-state { display: grid; place-items: center; min-height: 360px; color: #9197a0; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }

/* 先知命局 · 运营总览 */
.operation-overview { max-width: 1380px; }
.overview-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.overview-head > div:first-child { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.overview-head h1 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 600; }
.overview-head p { margin: 0; color: #8d939d; font-size: 12px; }
.overview-actions { display: flex; align-items: center; gap: 10px; }
.overview-actions .btn svg { flex: 0 0 auto; }
.overview-actions .btn em { min-width: 18px; padding: 1px 5px; color: #fff; border-radius: 99px; background: #f04452; font-size: 10px; font-style: normal; }
.demo-badge { padding: 5px 9px; color: #7a8190; border: 1px solid #e2e5ea; border-radius: 99px; background: #fafbfc; font-size: 11px; }

.operation-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.operation-kpi { min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 18px 19px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--card-shadow); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.home-page .operation-kpi { position: relative; }
.operation-kpi:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.home-page .operation-kpi:first-child { color: var(--ink); background: #fff; }
.home-page .operation-kpi:first-child span { color: #707783; }
.home-page .operation-kpi:first-child small { color: #87909c; }
.home-page .operation-kpi:first-child .trend-change { color: var(--trend-up); }
.home-page .operation-kpi:first-child .trend-change em { color: #718096; }
.home-page .operation-kpi:first-child .kpi-icon { color: var(--blue); background: #edf3ff; }
.kpi-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); border-radius: 9px; background: #edf3ff; }
.kpi-icon.green { color: #20a66a; background: #eaf8f2; }
.kpi-icon.violet { color: #8068e8; background: #f0edff; }
.kpi-icon.orange { color: #e67c2f; background: #fff2e8; }
.operation-kpi > div:last-of-type { position: relative; z-index: 1; min-width: 0; }
.operation-kpi span { display: block; color: #707783; font-size: 12px; }
.operation-kpi strong { display: block; margin: 8px 0 7px; overflow: hidden; text-overflow: ellipsis; font-size: 25px; line-height: 1; font-weight: 500; white-space: nowrap; }
.operation-kpi small { color: #87909c; font-size: 11px; }
.operation-kpi .trend-change { display: inline-flex; color: var(--trend-up); }
.operation-kpi .trend-change.down { color: var(--trend-down); }
.operation-kpi .trend-change .trend-value,
.operation-kpi .trend-change em { display: inline; }
.kpi-bottom { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.kpi-bottom small { flex: 0 0 auto; }
.kpi-bottom .trend-change { flex: 0 0 auto; }
.kpi-mini-chart { position: absolute; z-index: 0; right: 14px; bottom: 18px; width: 58px; height: 43px; display: flex !important; align-items: flex-end; gap: 5px; opacity: .9; pointer-events: none; }
.kpi-mini-chart i { flex: 1; min-width: 3px; border-radius: 999px; background: linear-gradient(180deg, #4b8cff, #b8d7ff); box-shadow: 0 4px 10px rgba(72,135,246,.12); }

.operation-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(330px, .78fr); gap: 14px; margin-top: 14px; }
.overview-card { border: 0; border-radius: 12px; background: #fff; box-shadow: var(--card-shadow); }
.overview-card-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px 13px; }
.overview-card-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.overview-card-head p { margin: 5px 0 0; color: #9298a2; font-size: 11px; }
.home-page .trend-card > .overview-card-head,
.home-page .diagnosis-card > .overview-card-head { min-height: 56px; padding: 12px 18px 10px; }
.home-link-action,
.diagnosis-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; line-height: 1; }
.action-chevron { width: 13px; height: 20px; display: inline-flex !important; align-items: center; justify-content: center; font-size: 19px; line-height: 1; transform: translateY(-.5px); }
.action-chevron .qn-icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; }

.range-switch { display: flex; padding: 3px; border-radius: 5px; background: #f3f5f8; }
.range-switch button { height: 28px; padding: 0 11px; color: #666e79; border: 0; border-radius: 4px; background: transparent; cursor: pointer; white-space: nowrap; transition: color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease); }
.range-switch button:hover { color: var(--blue); }
.range-switch button.active { color: #111; background: #fff; box-shadow: 0 1px 4px rgba(20,34,58,.09); }
.trend-card-actions, .diagnosis-head-actions { display: flex; align-items: center; gap: 16px; }
.trend-card-actions .link-action, .diagnosis-head-actions .link-action { white-space: nowrap; }
.trend-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px 8px; }
.trend-metrics { display: flex; align-items: center; gap: 0; min-width: 0; overflow: hidden; border-radius: 8px; background: #f2f6fc; }
.trend-metrics button { height: 34px; padding: 0 20px; color: #718096; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.trend-metrics button.active { color: #fff; border-radius: 8px; background: linear-gradient(135deg, #4c86f7, #2f75eb); box-shadow: 0 6px 14px rgba(64,123,237,.2); }
.trend-legend { display: flex; align-items: center; gap: 20px; color: #8290a6; font-size: 12px; white-space: nowrap; }
.trend-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: #347ff3; }
.legend-dot.orders { background: #40ccd2; }
.trend-summary { display: flex; gap: 38px; padding: 0 22px 4px; }
.trend-summary span { display: grid; gap: 4px; }
.trend-summary small { color: #9298a2; font-size: 11px; }
.trend-summary b { font-size: 15px; font-weight: 500; }
.trend-chart-wrap { position: relative; }
.trend-svg { display: block; width: 100%; height: 236px; padding: 2px 4px 8px; overflow: visible; }
.trend-svg text { fill: #9aa0aa; font-size: 10px; }
.chart-grid line { stroke: #edf0f4; stroke-width: 1; stroke-dasharray: 4 5; }
.trend-axis text { fill: #8d9aaf; font-size: 9px; }
.trend-line { fill: none; stroke: url(#trendLinePrimary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-line.order-line { stroke: url(#trendLineSecondary); stroke-width: 2.6; }
.trend-dot { fill: #fff; stroke: var(--blue); stroke-width: 2; transition: r .16s var(--ease); }
.trend-dot.order-dot { stroke: #40ccd2; }
.trend-dot:hover { r: 6; }
.trend-hover-zone { fill: transparent; cursor: crosshair; outline: none; }
.trend-hover-guide { stroke: #9cc4ff; stroke-width: 1.2; opacity: 0; transition: opacity .15s var(--ease); }
.trend-hover-ring { fill: #fff; stroke: #3d7fff; stroke-width: 2.5; opacity: 0; transition: opacity .15s var(--ease); }
.trend-hover-ring.secondary { stroke: #36c7ce; }
.trend-hover-group:hover .trend-hover-guide,
.trend-hover-group:hover .trend-hover-ring,
.trend-hover-group:focus-within .trend-hover-guide,
.trend-hover-group:focus-within .trend-hover-ring { opacity: 1; }
.trend-tooltip { position: absolute; z-index: 4; top: 18px; min-width: 146px; padding: 11px 13px; color: #61718a; border-radius: 9px; background: rgba(255,255,255,.98); box-shadow: 0 9px 24px rgba(56,74,105,.16); opacity: 0; transform: translate(-50%, -5px); pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.trend-tooltip.show { opacity: 1; transform: translate(-50%, 0); }
.trend-tooltip.align-left { transform: translate(0, -5px); }
.trend-tooltip.align-left.show { transform: translate(0, 0); }
.trend-tooltip.align-right { transform: translate(-100%, -5px); }
.trend-tooltip.align-right.show { transform: translate(-100%, 0); }
.trend-tooltip b { display: block; margin-bottom: 8px; color: #7c8ca3; font-size: 11px; font-weight: 500; }
.trend-tooltip span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin-top: 6px; font-size: 11px; }
.trend-tooltip span i { width: 8px; height: 8px; border-radius: 50%; background: #4382f5; }
.trend-tooltip span i.orders { background: #35c7cf; }
.trend-tooltip strong { color: #111; font-size: 12px; font-weight: 600; }

.diagnosis-count { padding: 4px 8px; color: var(--red); border-radius: 99px; background: #fff0f2; font-size: 11px; white-space: nowrap; }
.diagnosis-card { display: flex; flex-direction: column; }
.diagnosis-list { flex: 1; display: grid; grid-template-rows: repeat(4, minmax(0,1fr)); padding: 0 16px 10px; }
.diagnosis-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 0; padding: 8px 2px; border-top: 1px solid #eff1f4; }
.diagnosis-item:first-child { border-top: 0; }
.diagnosis-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; }
.diagnosis-icon.danger { color: #e54458; background: #fff0f2; }
.diagnosis-icon.warning { color: #ee9c21; background: #fff4e8; }
.diagnosis-icon.info { color: #4d80ed; background: #edf3ff; }
.diagnosis-icon.diagnosis-blue { overflow: hidden; color: var(--blue); background: #eaf4ff; }
.diagnosis-icon.diagnosis-blue img { width: 27px; height: 27px; object-fit: contain; }
.diagnosis-copy > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.diagnosis-item b { display: block; font-size: 13px; font-weight: 500; }
.diagnosis-item p { margin: 5px 0 0; color: #8b919b; font-size: 11px; line-height: 1.45; }
.diagnosis-item button { align-self: center; height: 34px; padding: 0 11px 0 13px; color: var(--blue); border: 0; border-radius: 10px; background: #f0f6ff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.diagnosis-item button:hover { color: #2d68ec; }
.severity { min-width: 32px; padding: 4px 6px; border-radius: 5px; text-align: center; font-size: 10px; }
.severity.danger { color: #d9414f; background: #fff0f2; }
.severity.warning { color: #c87521; background: #fff4e8; }
.severity.info { color: #3973e7; background: #edf3ff; }

.health-todo-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); align-items: stretch; gap: 14px; margin-top: 14px; }
.health-card, .todo-section { height: 174px; margin-top: 0; overflow: hidden; }
.health-todo-layout .overview-card-head { min-height: 54px; padding: 11px 18px 9px; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 0 18px 12px; }
.health-item { min-width: 0; padding-right: 4px; }
.health-item:not(:first-child) { padding-left: 20px; border-left: 1px solid #edf0f5; }
.health-label { display: flex; align-items: center; gap: 10px; }
.health-label b { font-size: 13px; font-weight: 500; }
.health-value-row { min-height: 22px; display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.health-value-row > strong { font-size: 15px; font-weight: 600; }
.health-value-row .trend-change { margin: 0; }
.health-track { height: 7px; margin: 8px 0; overflow: hidden; border-radius: 99px; background: #eef0f4; }
.health-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7da3ff, #5584ff); }
.health-item:nth-child(3) .health-track i { background: linear-gradient(90deg, #ffc070, #ec8c3e); }
.health-item small { color: #959ba5; font-size: 11px; }
.health-item .trend-change { margin-top: 1px; }

.todo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 2px 18px 18px; }
.todo-section .todo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
.todo-entry { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 11px; min-height: 72px; padding: 13px 14px; text-align: left; border: 0; border-radius: 10px; background: #fbfdff; box-shadow: 0 4px 12px rgba(72,91,124,.07); cursor: pointer; transition: background .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease); }
.todo-entry:hover { transform: translateY(-1px); background: #f5f9ff; box-shadow: 0 7px 18px rgba(72,91,124,.11); }
.todo-section .todo-entry,
.todo-section .todo-entry:hover { box-shadow: none; }
.quick-entry { min-height: 46px; grid-template-columns: 18px minmax(0,1fr); justify-items: stretch; gap: 3px; padding: 5px 2px; text-align: left; }
.quick-entry .todo-icon { width: 18px; height: 18px; color: var(--blue); border-radius: 0; background: transparent; }
.quick-entry .todo-icon .qn-icon { color: #2f86f6; }
.quick-entry .todo-copy b { overflow: visible; font-size: 12px; text-overflow: clip; }
.todo-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); border-radius: 8px; background: #eef3ff; }
.todo-copy { min-width: 0; }
.todo-copy b, .todo-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-copy b { font-size: 12px; font-weight: 500; }
.todo-copy small { margin-top: 5px; color: #969ca6; font-size: 10px; }
.todo-entry > strong { color: #222; font-size: 20px; font-weight: 500; }
.todo-entry > i { color: #a5abb4; font-style: normal; }

.reminder-center { width: 410px; padding: 0; overflow: hidden; border-top: 0; border-radius: 10px; }
.reminder-center .system-message-head { padding: 17px 18px 12px; border-bottom: 1px solid #eef0f3; }
.reminder-center .system-message-head > div { min-width: 0; }
.reminder-center .system-message-head strong { display: block; }
.reminder-center .system-message-head p { margin: 4px 0 0; color: #9298a2; font-size: 11px; }
.reminder-tabs { display: grid; grid-template-columns: repeat(3,1fr); padding: 0 14px; border-bottom: 1px solid #eef0f3; }
.reminder-tabs button { position: relative; height: 42px; color: #6f7681; border: 0; background: transparent; cursor: pointer; }
.reminder-tabs button::after { content: ""; position: absolute; left: 26%; right: 26%; bottom: -1px; height: 2px; background: transparent; }
.reminder-tabs button.active { color: #111; font-weight: 600; }
.reminder-tabs button.active::after { background: var(--blue); }
.reminder-tabs em { padding: 1px 5px; color: #f04452; border-radius: 99px; background: #fff0f2; font-size: 9px; font-style: normal; }
.reminder-list { max-height: 330px; overflow-y: auto; padding: 4px 14px; }
.reminder-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 2px; text-align: left; border: 0; border-bottom: 1px solid #f0f1f4; background: #fff; }
button.reminder-row { cursor: pointer; }
button.reminder-row:hover { background: #fafbfe; }
.reminder-row b { display: block; font-size: 12px; font-weight: 500; }
.reminder-row p { margin: 5px 0 0; color: #9096a0; font-size: 11px; }
.reminder-row > strong { color: var(--blue); font-size: 11px; font-weight: 400; }
.reminder-type { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 600; }
.reminder-type.danger { color: #e24351; background: #fff0f2; }
.reminder-type.warning { color: #d37d2e; background: #fff3e6; }
.reminder-type.info { color: #4779e7; background: #edf3ff; }
.reminder-type.success { color: #249b68; background: #eaf8f2; }
.system-row.read { opacity: .68; }
.mark-read { padding: 5px 8px; color: var(--blue); border: 1px solid #d8e2fa; border-radius: 4px; background: #fff; cursor: pointer; font-size: 10px; }
.read-label { color: #a2a8b0; font-size: 10px; }
.unread-dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #f04452; vertical-align: 1px; }
.log-time { color: #8c94a0; font-size: 11px; }
.reminder-foot { padding: 10px 18px; color: #a0a6af; background: #fafbfc; text-align: center; font-size: 10px; }

.mentor-kpis { margin-bottom: 14px; }
.mentor-list-card { overflow: hidden; }
.mentor-table-head, .mentor-row { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr 1.2fr .45fr .8fr; align-items: center; gap: 14px; padding: 0 18px; }
.mentor-table-head { min-height: 48px; color: #6f7680; background: #f7f8fa; font-size: 11px; }
.mentor-row { min-height: 78px; border-top: 1px solid #eef0f3; font-size: 12px; }
.mentor-name { display: flex; align-items: center; gap: 10px; }
.mentor-name > span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #6d8bf1; }
.mentor-name b { font-weight: 500; }
.mentor-status { display: inline-block; padding: 5px 7px; border-radius: 5px; font-size: 10px; font-style: normal; }
.mentor-status.waiting { color: #d9414f; background: #fff0f2; }
.mentor-status.warning { color: #c87521; background: #fff4e8; }
.mentor-status.info { color: #3973e7; background: #edf3ff; }

/* 交易财务 */
.trade-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
.trade-order-section { margin-top: 14px; overflow: hidden; }
.trade-order-section > .overview-card-head > span { color: #858c97; font-size: 11px; }
.trade-status-tabs { display: flex; gap: 2px; padding: 0 18px; border-top: 1px solid #f0f1f4; border-bottom: 1px solid #e9ebef; overflow-x: auto; }
.trade-status-tabs { scrollbar-width: none; -ms-overflow-style: none; }
.trade-status-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.trade-status-tabs button { position: relative; min-width: 78px; height: 44px; padding: 0 10px; color: #68707b; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.trade-status-tabs button::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: -1px; height: 2px; background: transparent; }
.trade-status-tabs button:hover { color: var(--blue); }
.trade-status-tabs button.active { color: #111; font-weight: 600; }
.trade-status-tabs button.active::after { background: var(--blue); }
.trade-search-panel { display: grid; grid-template-columns: minmax(260px,1.4fr) repeat(3,minmax(120px,.55fr)) auto auto; gap: 9px; padding: 14px 18px; background: #fafbfc; }
.trade-search-panel .member-query { width: auto; }
.trade-search-panel select { min-width: 0; height: 36px; padding: 0 9px; color: #555d68; border: 1px solid #e1e4e9; border-radius: 4px; background: #fff; outline: 0; }
.trade-search-panel select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.trade-orders-scroll { width: 100%; overflow-x: auto; }
.trade-orders-head, .trade-order-row { display: grid; grid-template-columns: 160px 110px 94px minmax(190px,1.35fr) 90px 96px 88px 100px 138px; align-items: center; gap: 12px; min-width: 1180px; padding: 0 18px; }
.trade-orders-head { min-height: 46px; color: #747b86; background: #f4f6f8; font-size: 10px; }
.trade-order-row { min-height: 84px; border-top: 1px solid #eceef2; font-size: 11px; transition: background .15s var(--ease); }
.trade-order-row:hover { background: #fafbfc; }
.trade-order-id b, .trade-order-id small, .trade-order-user b, .trade-order-user small, .trade-product b, .trade-product small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-order-id b, .trade-order-user b, .trade-product b { font-weight: 500; }
.trade-order-id small, .trade-order-user small, .trade-product small { margin-top: 6px; color: #949ba5; font-size: 9px; }
.order-type-chip { display: inline-block; padding: 4px 6px; color: #5f6f8f; border-radius: 4px; background: #eef1f6; font-size: 9px; }
.trade-amount { font-weight: 600; }
.trade-state { display: inline-block; padding: 4px 6px; border-radius: 4px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.trade-state.success { color: #279a68; background: #eaf8f2; }
.trade-state.warning { color: #c87521; background: #fff4e8; }
.trade-state.neutral { color: #7d858f; background: #f0f2f5; }
.trade-state.info { color: #3973e7; background: #edf3ff; }
.trade-row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.trade-row-actions button { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.trade-row-actions button:hover { text-decoration: underline; }
.trade-row-actions .danger-link { color: #e14855; }
.trade-finance-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 14px; margin-top: 14px; }
.today-finance-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin: 0 18px 18px; overflow: hidden; border-radius: 7px; background: #e9edf4; }
.today-finance-grid > div { min-height: 92px; padding: 16px; background: #f7f9fc; }
.today-finance-grid span, .today-finance-grid b, .today-finance-grid small { display: block; }
.today-finance-grid span { color: #737b87; font-size: 10px; }
.today-finance-grid b { margin: 10px 0 7px; font-size: 18px; font-weight: 500; }
.today-finance-grid small { color: #9097a2; font-size: 9px; }
.today-finance-grid .trend-change { display: inline-flex; color: var(--trend-up); font-size: 9px; }
.today-finance-grid .trend-change.down { color: var(--trend-down); }
.today-finance-grid .trend-change .trend-value { display: inline; }
.finance-todo-list { padding: 0 16px 14px; }
.finance-todo-list button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 12px 2px; text-align: left; border: 0; border-top: 1px solid #eef0f3; background: #fff; cursor: pointer; }
.finance-todo-list button:first-child { border-top: 0; }
.finance-todo-list button:hover, .finance-todo-list button.active { background: #f8faff; }
.finance-todo-list span { font-weight: 500; }
.finance-todo-list b { min-width: 28px; color: #e14a57; font-size: 18px; font-weight: 500; text-align: right; }
.finance-todo-list small { grid-column: 1 / 3; color: #9299a3; font-size: 10px; }
.finance-todo-list i { grid-column: 3; grid-row: 1 / 3; color: #a2a8b0; font-style: normal; }
.trade-detail-drawer .member-drawer-head > div h2 { margin: 0; font-size: 18px; }
.trade-detail-drawer .member-drawer-head > div p { margin: 5px 0 0; color: #8d949e; font-size: 10px; }
.trade-detail-body { padding: 18px 20px 32px; }
.trade-detail-summary { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; }
.trade-detail-summary > div { min-height: 78px; padding: 13px; border-radius: 6px; background: #f7f8fa; }
.trade-detail-summary span, .trade-detail-summary b { display: block; }
.trade-detail-summary span { color: #8b929c; font-size: 10px; }
.trade-detail-summary b { margin-top: 10px; font-size: 14px; font-weight: 500; }
.trade-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.trade-detail-grid div { padding-bottom: 10px; border-bottom: 1px solid #edf0f3; }
.trade-detail-grid .full { grid-column: 1 / -1; }
.trade-detail-grid dt { color: #8e959f; font-size: 10px; }
.trade-detail-grid dd { margin: 7px 0 0; font-size: 12px; }
.trade-note-editor { display: grid; gap: 9px; }
.trade-note-editor h3, .trade-detail-body .member-logs h3 { margin: 0; font-size: 13px; font-weight: 500; }
.trade-note-editor textarea { width: 100%; min-height: 74px; padding: 10px; resize: vertical; border: 1px solid #e0e3e8; border-radius: 4px; outline: 0; }
.trade-note-editor textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.trade-note-editor .btn { justify-self: end; }
.trade-detail-body > .member-logs { padding: 22px 0 0; }
.confirm-backdrop { position: fixed; z-index: 160; inset: 0; background: rgba(22,28,40,.28); }
.confirm-dialog { position: fixed; z-index: 161; top: 50%; left: 50%; width: 390px; padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 18px 55px rgba(29,39,61,.24); transform: translate(-50%,-50%); }
.confirm-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #ee5662; font-weight: 600; }
.confirm-dialog h3 { margin: 15px 0 8px; font-size: 17px; }
.confirm-dialog p { margin: 0; color: #6f7681; line-height: 1.65; font-size: 12px; }
.confirm-dialog > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.danger-btn { border-color: #e34b58 !important; background: #e34b58 !important; }

/* 用户会员 */
.member-filter-card { padding: 7px 18px 16px; }
.member-filter-row { display: grid; grid-template-columns: 78px minmax(0,1fr); align-items: center; min-height: 48px; border-bottom: 1px solid #eff1f4; }
.filter-name { color: #737a85; font-size: 12px; }
.member-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.member-filter-tabs button { height: 30px; padding: 0 12px; color: #59616c; border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease); }
.member-filter-tabs button:hover { color: var(--blue); background: #f4f7ff; }
.member-filter-tabs button.active { color: var(--blue); border-color: #cfdbf8; background: #eef3ff; }
.status-tabs button.active { color: #111; border-color: #dfe2e7; background: #f4f5f7; }
.member-query-row { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.member-query { flex: 0 1 420px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e1e4e9; border-radius: 4px; background: #fff; }
.member-query:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.member-query span { color: #969ca6; }
.member-query input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.hide-silent { margin-left: auto; white-space: nowrap; }
.member-result-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 2px; }
.member-result-head b { font-size: 18px; font-weight: 500; }
.member-result-head small { margin-left: 12px; color: #9097a2; }
.member-result-head > span { color: #9aa0aa; font-size: 11px; }

.member-batch-bar { min-height: 52px; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #e6e9ee; border-bottom: 0; border-radius: 8px 8px 0 0; background: #fafbfc; transition: background .16s var(--ease), border-color .16s var(--ease); }
.member-batch-bar.active { border-color: #d9e2f8; background: #f4f7ff; }
.member-batch-bar > b { min-width: 72px; font-size: 12px; font-weight: 500; }
.member-clear-selection { margin-left: auto; }
.member-clear-selection:disabled { color: #b6bbc3; cursor: not-allowed; }
.member-bulk-option { width: 100%; border: 0; text-align: left; }

.members-table { overflow: hidden; border-radius: 0 0 8px 8px; }
.members-table-scroll { width: 100%; overflow-x: auto; }
.members-table-head, .member-row { display: grid; grid-template-columns: minmax(210px,1.35fr) minmax(160px,1.05fr) 110px 84px 98px 100px 110px 80px; align-items: center; gap: 12px; min-width: 1080px; padding: 0 16px; }
.members-table-head { min-height: 48px; color: #6f7680; background: #f7f8fa; font-size: 11px; }
.member-row { min-height: 82px; border-top: 1px solid #eef0f3; font-size: 12px; transition: background .15s var(--ease); }
.member-row:hover { background: #fafbfc; }
.member-row.selected { background: #f5f8ff; }
.member-person { min-width: 0; display: flex; align-items: center; gap: 10px; }
.member-person > div { min-width: 0; }
.member-person b { display: block; font-weight: 500; }
.member-person p { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 0; }
.member-person em { padding: 2px 5px; color: #748097; border-radius: 3px; background: #f0f2f6; font-size: 9px; font-style: normal; }
.member-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--avatar); font-size: 12px; }
.member-avatar.large { width: 46px; height: 46px; font-size: 15px; }
.member-contact { min-width: 0; }
.member-contact b, .member-contact small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-contact b { font-weight: 400; }
.member-contact small { margin-top: 6px; color: #9299a3; font-size: 10px; }
.member-level { display: inline-block; padding: 5px 7px; color: #51627e; border-radius: 5px; background: #eef1f6; font-size: 10px; white-space: nowrap; }
.user-status { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.user-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.user-status.active { color: #289e6b; }
.user-status.active::before { background: #38b97c; }
.user-status.silent { color: #8a919b; }
.user-status.silent::before { background: #aeb3bb; }
.user-status.pending { color: #ce7a28; }
.user-status.pending::before { background: #e89745; }
.member-spend { font-weight: 500; }
.member-detail-link { padding: 6px 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; }
.member-detail-link:hover { text-decoration: underline; }
.member-empty { min-height: 340px; display: grid; place-items: center; align-content: center; gap: 8px; color: #969ca6; }
.member-empty > span { color: #879dec; }
.member-empty b { color: #555d68; font-weight: 500; }
.member-empty p { margin: 0 0 8px; font-size: 12px; }

.member-drawer-backdrop { position: fixed; z-index: 144; inset: var(--topbar-h) 0 0 0; background: rgba(27,34,47,.18); animation: fade .16s var(--ease); }
.member-drawer { position: fixed; z-index: 145; top: var(--topbar-h); right: 0; bottom: 0; width: 480px; overflow-y: auto; background: #fff; box-shadow: -10px 0 32px rgba(34,44,64,.14); animation: drawerIn .2s var(--ease); }
.member-drawer-head { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eceef2; }
.member-profile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.member-profile h2 { margin: 0; font-size: 18px; font-weight: 600; }
.member-profile p { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; color: #8c939e; font-size: 11px; }
.copy-id { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; color: var(--blue); border: 0; border-radius: 3px; background: #f0f4ff; cursor: pointer; font-size: 9px; }
.member-drawer-head > .close { margin-left: auto; }
.member-drawer-tabs { display: grid; grid-template-columns: repeat(2,1fr); padding: 0 20px; border-bottom: 1px solid #eceef2; }
.member-drawer-tabs button { position: relative; height: 44px; border: 0; background: transparent; cursor: pointer; }
.member-drawer-tabs button::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: -1px; height: 2px; background: transparent; }
.member-drawer-tabs button.active { color: var(--blue); font-weight: 500; }
.member-drawer-tabs button.active::after { background: var(--blue); }
.member-drawer-body { padding: 18px 20px 32px; }
.member-status-line { display: flex; align-items: center; gap: 8px; }
.member-status-line .btn { margin-left: auto; }
.source-chip { color: #858c96; font-size: 10px; }
.member-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 0; padding: 16px; border-radius: 7px; background: #f7f8fa; }
.member-info-grid div { min-width: 0; }
.member-info-grid dt { color: #9298a2; font-size: 10px; }
.member-info-grid dd { margin: 7px 0 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.member-tag-section { margin-top: 22px; }
.member-tag-section h3, .contact-section h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.member-tag-section > div { display: flex; flex-wrap: wrap; gap: 7px; }
.member-tag-section span { padding: 5px 8px; color: #5c6e91; border-radius: 4px; background: #eef2f9; font-size: 10px; }
.contact-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eceef2; }
.contact-section > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.contact-section p { margin: 0; color: #979da6; font-size: 10px; }
.contact-channels { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.contact-channels button { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #6d7580; border: 1px solid #e0e3e8; border-radius: 4px; background: #fff; cursor: pointer; }
.contact-channels button:hover { color: var(--blue); border-color: #bdcdf5; }
.contact-channels button.active { color: var(--blue); border-color: #aac0f7; background: #eef3ff; }
.contact-section textarea { width: 100%; min-height: 78px; padding: 10px; resize: vertical; border: 1px solid #e0e3e8; border-radius: 4px; outline: 0; line-height: 1.55; }
.contact-section textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.contact-submit { width: 100%; margin-top: 10px; }
.member-edit-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.member-edit-form label { display: grid; gap: 6px; }
.member-edit-form label > span { color: #737a85; font-size: 10px; }
.member-edit-form input, .member-edit-form select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #e0e3e8; border-radius: 4px; background: #fff; outline: 0; }
.member-edit-form input:focus, .member-edit-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.member-edit-form .full { grid-column: 1 / -1; }
.member-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.member-logs { padding: 22px 24px; }
.member-log { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 10px; min-height: 76px; }
.member-log::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -4px; width: 1px; background: #e3e6ec; }
.member-log:last-child::before { display: none; }
.member-log > i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #b9c9ef; }
.member-log b { font-size: 11px; font-weight: 400; }
.member-log p { margin: 6px 0 0; color: #666e79; font-size: 12px; }
.member-log > span { color: #979da6; font-size: 9px; }

/* 商品库存 */
.inventory-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.inventory-list-card { margin-top: 14px; overflow: hidden; }
.inventory-list-card > .overview-card-head > span { color: #8d949e; font-size: 11px; }
.inventory-tabs { display: flex; gap: 2px; padding: 0 18px; border-top: 1px solid #f0f1f4; border-bottom: 1px solid #e9ebef; }
.inventory-tabs button { position: relative; height: 42px; padding: 0 16px; color: #6e7580; border: 0; background: transparent; cursor: pointer; }
.inventory-tabs button::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -1px; height: 2px; background: transparent; }
.inventory-tabs button.active { color: #111; font-weight: 600; }
.inventory-tabs button.active::after { background: var(--blue); }
.inventory-search { display: grid; grid-template-columns: minmax(280px,1fr) 150px 150px auto auto; gap: 9px; padding: 14px 18px; background: #fafbfc; }
.inventory-search .member-query { width: auto; }
.inventory-search select { height: 36px; padding: 0 10px; border: 1px solid #e1e4e9; border-radius: 4px; background: #fff; outline: 0; }
.inventory-search select:focus { border-color: var(--blue); }
.inventory-batch-bar { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px 18px; border-top: 1px solid #eef0f3; background: #fff; }
.inventory-batch-bar.active { background: #f5f8ff; }
.inventory-batch-bar > b { min-width: 64px; font-size: 11px; }
.inventory-batch-bar .text-btn { margin-left: auto; }
.inventory-table-scroll { width: 100%; overflow-x: auto; }
.inventory-table-head, .inventory-row { display: grid; grid-template-columns: 30px minmax(220px,1.35fr) 90px 80px 70px 90px 80px 86px 120px 130px; align-items: center; gap: 12px; min-width: 1120px; padding: 0 18px; }
.inventory-table-head { min-height: 46px; color: #737b86; background: #f4f6f8; font-size: 10px; }
.inventory-row { min-height: 86px; border-top: 1px solid #eceef2; font-size: 11px; transition: background .15s var(--ease); }
.inventory-row:hover { background: #fafbfc; }
.inventory-row.selected { background: #f5f8ff; }
.inventory-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.inventory-thumb { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); border-radius: 8px; background: #edf3ff; }
.inventory-name img.inventory-thumb { object-fit: cover; }
.inventory-name > div { min-width: 0; }
.inventory-name b, .inventory-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-name b { font-weight: 500; }
.inventory-name small { margin-top: 5px; color: #9198a2; font-size: 9px; }
.inventory-name small button { padding: 0 3px; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 9px; }
.inventory-price { font-weight: 600; }
.inventory-stock b, .inventory-stock small { display: block; }
.inventory-stock b { font-size: 14px; }
.inventory-stock.low b { color: #e14d59; }
.inventory-stock small { margin-top: 4px; color: #e14d59; font-size: 8px; }
.inventory-date { display: block; margin-top: 6px; color: #949aa4; font-size: 9px; }
.inventory-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.inventory-actions button { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.inventory-actions .danger-link { color: #e14b58; }
.inventory-export { margin-left: auto; }
.inventory-pagination { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 18px; border-top: 1px solid #edf0f4; color: var(--ds-color-text-secondary); font-size: 10px; }
.inventory-pagination > div { display: flex; gap: 6px; }
.inventory-pagination button { min-width: 30px; height: 30px; padding: 0 8px; color: #5f6978; border: 1px solid #dfe4eb; border-radius: 6px; background: #fff; cursor: pointer; }
.inventory-pagination button.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.inventory-pagination button:disabled { opacity: .5; cursor: default; }
.inventory-bottom-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.7fr) minmax(250px,.65fr); gap: 14px; margin-top: 14px; }
.stock-warning-card > .overview-card-head > span { color: #e14b58; font-size: 11px; }
.stock-warning-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 15px; min-height: 66px; padding: 10px 18px; border-top: 1px solid #eef0f3; }
.stock-warning-row b, .stock-warning-row small { display: block; }
.stock-warning-row > div > b { font-size: 11px; font-weight: 500; }
.stock-warning-row small { margin-top: 5px; color: #989ea7; font-size: 9px; }
.stock-warning-row > span { color: #747c87; font-size: 10px; }
.stock-warning-row > span b { display: inline; color: #e14b58; font-size: 15px; }
.logistics-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 0 18px 18px; }
.logistics-grid > div, .after-sales-grid > div { min-height: 66px; display: grid; align-content: center; gap: 6px; padding: 11px; border-radius: 6px; background: #f7f8fa; }
.logistics-grid span, .after-sales-grid span { color: #858c96; font-size: 10px; }
.logistics-grid b, .after-sales-grid b { font-size: 17px; font-weight: 500; }
.after-sales-grid { display: grid; gap: 8px; padding: 0 18px 18px; }
.product-edit-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 20px; }
.product-edit-form label { display: grid; gap: 6px; }
.product-edit-form label > span { color: #737a85; font-size: 10px; }
.product-edit-form input, .product-edit-form select, .product-edit-form textarea { width: 100%; padding: 0 10px; border: 1px solid #e0e3e8; border-radius: 4px; background: #fff; outline: 0; }
.product-edit-form input, .product-edit-form select { height: 36px; }
.product-edit-form textarea { min-height: 90px; padding-top: 9px; resize: vertical; }
.product-edit-form input:focus, .product-edit-form select:focus, .product-edit-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.product-edit-form .full { grid-column: 1 / -1; }
.restock-input { width: 100%; height: 38px; margin-top: 15px; padding: 0 10px; border: 1px solid #e0e3e8; border-radius: 4px; outline: 0; }
.restock-input:focus { border-color: var(--blue); }
.stock-icon { background: #ef8a3d; }

/* 营销触达 */
.marketing-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.campaign-card { margin-top: 14px; overflow: hidden; }
.campaign-card > .overview-card-head > span { color: #8d949e; font-size: 11px; }
.campaign-table-scroll { width: 100%; overflow-x: auto; }
.campaign-table-head, .campaign-row { display: grid; grid-template-columns: minmax(230px,1.4fr) 155px 80px 75px minmax(140px,.8fr) 80px 110px; align-items: center; gap: 13px; min-width: 1020px; padding: 0 18px; }
.campaign-table-head { min-height: 46px; color: #737b86; background: #f4f6f8; font-size: 10px; }
.campaign-row { min-height: 84px; border-top: 1px solid #eceef2; font-size: 11px; }
.campaign-row > div:first-child { min-width: 0; }
.campaign-row b, .campaign-row small { display: block; }
.campaign-row b { overflow: hidden; text-overflow: ellipsis; font-weight: 500; white-space: nowrap; }
.campaign-row small { margin-top: 5px; overflow: hidden; color: #9097a1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-channels { display: flex; flex-wrap: wrap; gap: 4px; }
.campaign-channels span { padding: 3px 5px; color: #5f7093; border-radius: 3px; background: #eef2f9; font-size: 8px; }
.campaign-row > div:last-child { display: flex; gap: 8px; }
.campaign-row > div:last-child button { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.marketing-two-col { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: 14px; margin-top: 14px; }
.touch-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 0 18px 12px; background: #eaedf2; }
.touch-metrics > div { min-height: 74px; padding: 13px; background: #f7f8fa; }
.touch-metrics span, .touch-metrics b { display: block; }
.touch-metrics span { color: #858c96; font-size: 9px; }
.touch-metrics b { margin-top: 9px; font-size: 17px; font-weight: 500; }
.today-plan-list { padding: 0 18px 16px; }
.today-plan-list > div { display: grid; grid-template-columns: 44px minmax(0,1fr) 72px 46px; align-items: center; gap: 9px; min-height: 44px; border-top: 1px solid #eef0f3; font-size: 10px; }
.today-plan-list span { color: #8e959f; }
.today-plan-list b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.today-plan-list em { color: #607093; font-style: normal; }
.today-plan-list i { color: #359b6d; font-style: normal; }
.audience-list { padding: 0 16px 14px; }
.audience-list button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; min-height: 52px; padding: 8px 2px; text-align: left; border: 0; border-top: 1px solid #eef0f3; background: #fff; cursor: pointer; }
.audience-list button:first-child { border-top: 0; }
.audience-list button:hover { background: #f9fbff; }
.audience-list span { font-weight: 500; }
.audience-list b { font-size: 16px; font-weight: 500; }
.audience-list small { grid-column: 1 / 3; color: #9198a2; font-size: 9px; }
.audience-list small .trend-change { font-size: 9px; }
.audience-list small .trend-change .trend-value { font-size: inherit; }
.audience-list i { grid-column: 3; grid-row: 1 / 3; color: var(--blue); font-size: 9px; font-style: normal; }
.marketing-tools-card, .marketing-log-card { margin-top: 14px; }
.marketing-tools { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; padding: 0 18px 18px; }
.marketing-tools button { min-height: 88px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid #e7e9ee; border-radius: 7px; background: #fff; cursor: pointer; transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease); }
.marketing-tools button:hover { transform: translateY(-2px); border-color: #cbd7f2; background: #f8faff; }
.marketing-tools button > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); border-radius: 9px; background: #eef3ff; }
.marketing-tools b { font-size: 11px; font-weight: 500; }
.marketing-tools small { color: #999fa8; font-size: 8px; }
.marketing-logs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; padding: 0 18px 18px; }
.marketing-logs > div { display: flex; align-items: center; gap: 8px; min-height: 36px; color: #747b86; border-bottom: 1px solid #eef0f3; font-size: 10px; }
.marketing-logs svg { color: #8099dc; }
.campaign-drawer-body { padding: 20px; }
.campaign-detail-hero { position: relative; padding: 18px; border-radius: 8px; background: #f6f8fd; }
.campaign-detail-hero h2 { margin: 14px 0 6px; font-size: 18px; }
.campaign-detail-hero p { margin: 0; color: #7d848e; font-size: 11px; }
.campaign-detail-hero .btn { position: absolute; right: 14px; top: 14px; }
.campaign-edit-form, .touch-plan-dialog form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.campaign-edit-form label, .touch-plan-dialog label { display: grid; gap: 6px; }
.campaign-edit-form label > span, .touch-plan-dialog label > span { color: #737a85; font-size: 10px; }
.campaign-edit-form input, .campaign-edit-form select, .touch-plan-dialog input, .touch-plan-dialog select, .touch-plan-dialog textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #e0e3e8; border-radius: 4px; background: #fff; outline: 0; }
.campaign-edit-form .full, .touch-plan-dialog .full { grid-column: 1 / -1; }
.touch-plan-dialog textarea { min-height: 88px; padding-top: 10px; resize: vertical; }
.campaign-edit-form input:focus, .campaign-edit-form select:focus, .touch-plan-dialog input:focus, .touch-plan-dialog select:focus, .touch-plan-dialog textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(85,132,255,.08); }
.touch-plan-dialog { position: fixed; z-index: 161; top: 50%; left: 50%; width: 520px; padding: 20px; border-radius: 10px; background: #fff; box-shadow: 0 18px 55px rgba(29,39,61,.24); transform: translate(-50%,-50%); }
.touch-plan-dialog header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.touch-plan-dialog h3 { margin: 0; font-size: 17px; }
.touch-plan-dialog header p { margin: 5px 0 0; color: #9298a2; font-size: 10px; }

@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .header-tools .tool-item:nth-child(-n+3) { display: none; }
  .announcement { min-width: 130px; }
  .main { padding-left: 28px; padding-right: 28px; }
  .home-main { padding-left: 32px; padding-right: 32px; }
  .home-grid { grid-template-columns: minmax(0,1fr) 300px; }
  .stats-grid { gap: 14px; }
  .service-metrics { grid-template-columns: repeat(3,1fr); }
  .operation-grid { grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); }
  .operation-kpi { gap: 10px; padding: 15px 14px; }
  .operation-kpi .kpi-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .operation-kpi strong { font-size: 20px; }
  .kpi-mini-chart { right: 8px; bottom: 16px; width: 32px; height: 35px; gap: 2px; opacity: .78; }
  .todo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .todo-section .quick-entry { grid-template-columns: 1fr; justify-items: center; gap: 1px; padding: 3px; text-align: center; }
  .member-query-row { flex-wrap: wrap; }
  .hide-silent { margin-left: 0; }
  .member-batch-bar { overflow-x: auto; }
  .member-batch-bar .btn { flex: 0 0 auto; }
  .trade-search-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .trade-search-panel .member-query { grid-column: 1 / -1; }
  .inventory-bottom-grid { grid-template-columns: 1fr 1fr; }
  .stock-warning-card { grid-column: 1 / -1; }
  .marketing-tools { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  :root { --primary-w: 80px; --secondary-w: 112px; }
  .brand { min-width: auto; }
  .brand-name { display: none; }
  .user-copy { display: none; }
  .announcement { display: none; }
  .primary-nav { padding-left: 8px; padding-right: 8px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item span { display: none; }
  .nav-footer { display: none; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .filter-grid, .product-filters { grid-template-columns: repeat(2,1fr); }
  .service-layout, .finance-top, .income-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .right-panel { margin-top: 12px; }
  .operation-kpis, .health-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .health-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .health-item:nth-child(even) { padding-left: 20px; border-left: 1px solid #edf0f5; }
  .operation-grid { grid-template-columns: 1fr; }
  .health-todo-layout { grid-template-columns: 1fr; }
  .health-card, .todo-section { height: auto; min-height: 174px; }
  .mentor-list-card { overflow-x: auto; }
  .mentor-table-head, .mentor-row { min-width: 860px; }
  .member-drawer { width: 440px; }
  .trade-kpis, .inventory-kpis, .marketing-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trade-finance-layout, .marketing-two-col { grid-template-columns: 1fr; }
  .inventory-bottom-grid { grid-template-columns: 1fr; }
  .stock-warning-card { grid-column: auto; }
  .today-finance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .marketing-tools { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  :root { --primary-w: 64px; --secondary-w: 0px; }
  .secondary-nav { display: none; }
  .search-wrap { display: none; }
  .topbar { gap: 8px; padding: 0 10px; }
  .header-tools .tool-item { display: none; }
  .header-tools .tool-item:nth-last-child(-n+2) { display: flex; }
  .main, .main.home-main { margin-left: var(--primary-w); padding: 18px 16px 80px; }
  .promo-banner { padding-left: 22px; }
  .promo-banner img { display: none; }
  .promo-banner strong { font-size: 20px; }
  .promo-banner .btn { display: none; }
  .blue-metrics { grid-template-columns: repeat(3,1fr); height: auto; }
  .blue-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .blue-metric span { padding: 0 3px; white-space: normal; }
  .blue-metric { min-height: 82px; }
  .home-right { grid-template-columns: 1fr; }
  .quality-panel { grid-template-columns: 1fr; }
  .product-mini-grid { grid-template-columns: 1fr; }
  .filter-grid, .product-filters, .service-metrics { grid-template-columns: 1fr; }
  .date-range { grid-column: span 1; }
  .system-message { left: 78px; right: 12px; width: auto; }
.assistant-fab { right: 14px; bottom: 18px; }
  .assistant-fab { min-width: 54px; width: 54px; padding: 7px; }
  .assistant-fab-label { display: none; }
  .assistant-panel { left: 74px; right: 10px; bottom: 10px; width: auto; height: calc(100dvh - 20px); min-height: 0; border-radius: 18px; }
  .assistant-title { min-height: 76px; padding: 11px 12px; }
  .assistant-brand-avatar { width: 42px; height: 42px; }
  .assistant-heading h3 { font-size: 16px; }
  .assistant-heading small { max-width: 190px; }
  .assistant-conversation { padding: 14px 11px 10px; }
  .assistant-suggestions { margin-left: 0; }
  .assistant-session-actions button { padding: 0 10px; }
  .assistant-composer-shell { padding: 7px 9px 9px; }
  .assistant-model { max-width: 142px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .assistant-message-tools button { width: 44px; height: 44px; }
  .assistant-session-actions button,
  .assistant-model,
  .assistant-send { min-height: 44px; }
  .table-head, .order-list, .product-table-head { min-width: 920px; }
  .product-row { min-width: 920px; }
  .product-actions .total { margin-left: 0; width: 100%; }
  .query-bar { flex-wrap: wrap; }
  .query-input { flex-basis: 100%; }
  .overview-head { align-items: flex-start; flex-direction: column; }
  .overview-actions { width: 100%; flex-wrap: wrap; }
  .operation-kpis, .health-grid, .todo-grid { grid-template-columns: 1fr; }
  .health-item, .health-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .todo-section .todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-toolbar { align-items: flex-start; flex-direction: column; }
  .trend-metrics { width: 100%; overflow-x: auto; }
  .trend-metrics button { flex: 1 0 auto; padding: 0 14px; }
  .trend-legend { width: 100%; justify-content: flex-start; }
  .trend-card-actions, .diagnosis-head-actions { width: 100%; justify-content: space-between; }
  .trend-card-actions { flex-wrap: wrap; }
  .operation-kpi { padding: 15px; }
  .overview-card-head { align-items: flex-start; flex-direction: column; }
  .range-switch { width: 100%; }
  .trend-card .range-switch { flex: 1 1 190px; width: auto; }
  .range-switch button { flex: 1; }
  .trend-summary { gap: 20px; }
  .trend-svg { height: 210px; padding-left: 0; padding-right: 0; }
  .reminder-center { left: 76px; right: 10px; width: auto; }
  .todo-entry { grid-template-columns: auto minmax(0,1fr) auto auto; }
  .todo-section .quick-entry { grid-template-columns: 18px minmax(0,1fr); justify-items: stretch; gap: 3px; padding: 5px 2px; text-align: left; }
  .member-filter-row { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .member-query-row { align-items: stretch; }
  .member-query { flex-basis: 100%; }
  .member-query-row .btn { flex: 1; }
  .hide-silent { width: 100%; }
  .member-result-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .member-batch-bar > b { flex: 0 0 auto; }
  .member-clear-selection { flex: 0 0 auto; margin-left: 0; }
  .member-drawer-backdrop { left: 0; }
  .member-drawer { left: 0; width: auto; }
  body:has(.member-drawer) .assistant-fab { display: none; }
  .member-edit-form { grid-template-columns: 1fr; }
  .member-edit-form .full { grid-column: 1; }
  .contact-section > div:first-child { align-items: flex-start; flex-direction: column; }
  .trade-kpis, .inventory-kpis, .marketing-kpis { grid-template-columns: 1fr; }
  .trade-search-panel, .inventory-search { grid-template-columns: 1fr; }
  .trade-search-panel .member-query { grid-column: auto; }
  .today-finance-grid, .touch-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trade-detail-summary { grid-template-columns: 1fr; }
  .trade-detail-grid { grid-template-columns: 1fr; }
  .trade-detail-grid .full { grid-column: 1; }
  .confirm-dialog { width: calc(100vw - 28px); }
  .inventory-batch-bar { overflow-x: auto; }
  .inventory-batch-bar .btn { flex: 0 0 auto; }
  .product-edit-form, .campaign-edit-form, .touch-plan-dialog form { grid-template-columns: 1fr; }
  .product-edit-form .full, .campaign-edit-form .full, .touch-plan-dialog .full { grid-column: 1; }
  .marketing-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .marketing-logs { grid-template-columns: 1fr; }
  .touch-plan-dialog { width: calc(100vw - 28px); max-height: calc(100vh - 28px); overflow-y: auto; }
}

/* 首页及后台业务卡片统一采用无描边、柔和大范围投影。内部数据分隔线仍保留。 */
.main .card,
.main .overview-card,
.main .operation-kpi,
.main .order-card {
  border: 0;
  box-shadow: var(--card-shadow);
}

@media (prefers-reduced-motion: reduce) {
  .assistant-panel.open { animation: none; }
  .assistant-fab,
  .assistant-suggestions button,
  .assistant-send { transition: none; }
}

/* 页面专属动效：每个业务页面使用与任务相匹配的运动方向。 */
.main.is-page-entering .page { animation: pageAtmosphereIn 360ms var(--motion-ease-out) both; }

/* 首页：先建立全局视角，再把重点业务逐层交给运营人员。 */
.main.is-page-entering[data-page="home"] .overview-head { animation: homeHeaderIn 600ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .operation-kpis .dashboard-metric { animation: homeMetricRise 520ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .operation-kpis .dashboard-metric:nth-child(2) { animation-delay: 70ms; }
.main.is-page-entering[data-page="home"] .operation-kpis .dashboard-metric:nth-child(3) { animation-delay: 140ms; }
.main.is-page-entering[data-page="home"] .operation-kpis .dashboard-metric:nth-child(4) { animation-delay: 210ms; }
.main.is-page-entering[data-page="home"] .trend-card { animation: homeFocusIn 620ms 170ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .diagnosis-card { animation: homeFocusIn 620ms 250ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .diagnosis-item { animation: homeRowIn 420ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .diagnosis-item:nth-child(2) { animation-delay: 70ms; }
.main.is-page-entering[data-page="home"] .diagnosis-item:nth-child(3) { animation-delay: 140ms; }
.main.is-page-entering[data-page="home"] .diagnosis-item:nth-child(4) { animation-delay: 210ms; }
.main.is-page-entering[data-page="home"] .health-track i { transform-origin: 0 50%; animation: homeHealthFill 760ms 320ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .todo-entry { animation: homeShortcutIn 420ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(2) { animation-delay: 40ms; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(3) { animation-delay: 80ms; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(4) { animation-delay: 120ms; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(5) { animation-delay: 160ms; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(6) { animation-delay: 200ms; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(7) { animation-delay: 240ms; }
.main.is-page-entering[data-page="home"] .todo-entry:nth-child(8) { animation-delay: 280ms; }

/* 交易页：订单像履约流水一样从队列进入，待办用轻微脉冲提示优先级。 */
.main.is-page-entering[data-page="trade"] .trade-order-row { animation: queueRowIn 440ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(2) { animation-delay: 55ms; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(3) { animation-delay: 110ms; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(4) { animation-delay: 165ms; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(5) { animation-delay: 220ms; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(6) { animation-delay: 275ms; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(7) { animation-delay: 330ms; }
.main.is-page-entering[data-page="trade"] .trade-order-row:nth-child(8) { animation-delay: 385ms; }
.main.is-page-entering[data-page="trade"] .today-finance-grid > div { animation: ledgerCellIn 460ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="trade"] .today-finance-grid > div:nth-child(2) { animation-delay: 70ms; }
.main.is-page-entering[data-page="trade"] .today-finance-grid > div:nth-child(3) { animation-delay: 140ms; }
.main.is-page-entering[data-page="trade"] .today-finance-grid > div:nth-child(4) { animation-delay: 210ms; }
.main.is-page-entering[data-page="trade"] .finance-todo-list button.active { animation: priorityPulse 1.4s 420ms ease-out both; }

/* 商品页：库存像货架一样横向展开，商品缩略图承担“可见对象”的反馈。 */
.main.is-page-entering[data-page="product"] .inventory-row { animation: shelfRowIn 480ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="product"] .inventory-row:nth-child(2) { animation-delay: 60ms; }
.main.is-page-entering[data-page="product"] .inventory-row:nth-child(3) { animation-delay: 120ms; }
.main.is-page-entering[data-page="product"] .inventory-row:nth-child(4) { animation-delay: 180ms; }
.main.is-page-entering[data-page="product"] .inventory-row:nth-child(5) { animation-delay: 240ms; }
.main.is-page-entering[data-page="product"] .inventory-row:nth-child(6) { animation-delay: 300ms; }
.main.is-page-entering[data-page="product"] .inventory-row:nth-child(7) { animation-delay: 360ms; }
.main.is-page-entering[data-page="product"] .inventory-thumb { animation: productThumbSettle 560ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="product"] .inventory-stock.low b { animation: lowStockBlink 1.7s 500ms ease-out both; }

/* 导师页：审核队列强调“逐项确认”，状态点和评分在行进入后出现。 */
.main.is-page-entering[data-page="mentor"] .mentor-row { animation: auditRowIn 460ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="mentor"] .mentor-row:nth-child(2) { animation-delay: 70ms; }
.main.is-page-entering[data-page="mentor"] .mentor-row:nth-child(3) { animation-delay: 140ms; }
.main.is-page-entering[data-page="mentor"] .mentor-row:nth-child(4) { animation-delay: 210ms; }
.main.is-page-entering[data-page="mentor"] .mentor-row:nth-child(5) { animation-delay: 280ms; }
.main.is-page-entering[data-page="mentor"] .mentor-row:nth-child(6) { animation-delay: 350ms; }
.main.is-page-entering[data-page="mentor"] .mentor-status { animation: statusBadgeIn 300ms 360ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="mentor"] .mentor-quick-grid button { animation: quickToolIn 360ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="mentor"] .mentor-quick-grid button:nth-child(2) { animation-delay: 55ms; }
.main.is-page-entering[data-page="mentor"] .mentor-quick-grid button:nth-child(3) { animation-delay: 110ms; }
.main.is-page-entering[data-page="mentor"] .mentor-quick-grid button:nth-child(4) { animation-delay: 165ms; }
.main.is-page-entering[data-page="mentor"] .mentor-quick-grid button:nth-child(5) { animation-delay: 220ms; }
.main.is-page-entering[data-page="mentor"] .mentor-quick-grid button:nth-child(6) { animation-delay: 275ms; }

/* 会员页：头像先出现，信息行随后落位，帮助运营者快速扫描身份与状态。 */
.main.is-page-entering[data-page="members"] .member-row { animation: directoryRowIn 440ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(2) { animation-delay: 55ms; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(3) { animation-delay: 110ms; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(4) { animation-delay: 165ms; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(5) { animation-delay: 220ms; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(6) { animation-delay: 275ms; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(7) { animation-delay: 330ms; }
.main.is-page-entering[data-page="members"] .member-row:nth-child(8) { animation-delay: 385ms; }
.main.is-page-entering[data-page="members"] .member-avatar { animation: avatarPop 360ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="members"] .member-kpi-main { animation: memberKpiSweep 560ms var(--motion-ease-out) both; }

/* 营销页：活动像一波消息发出，触达指标和工具在波峰后到达。 */
.main.is-page-entering[data-page="marketing"] .campaign-row { animation: campaignWaveIn 460ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="marketing"] .campaign-row:nth-child(2) { animation-delay: 80ms; }
.main.is-page-entering[data-page="marketing"] .campaign-row:nth-child(3) { animation-delay: 160ms; }
.main.is-page-entering[data-page="marketing"] .campaign-row:nth-child(4) { animation-delay: 240ms; }
.main.is-page-entering[data-page="marketing"] .campaign-row:nth-child(5) { animation-delay: 320ms; }
.main.is-page-entering[data-page="marketing"] .campaign-glyph { animation: broadcastGlyphIn 420ms 230ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="marketing"] .reference-touch-metrics > div { animation: metricSignalIn 420ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="marketing"] .reference-touch-metrics > div:nth-child(2) { animation-delay: 80ms; }
.main.is-page-entering[data-page="marketing"] .reference-touch-metrics > div:nth-child(3) { animation-delay: 160ms; }
.main.is-page-entering[data-page="marketing"] .reference-touch-metrics > div:nth-child(4) { animation-delay: 240ms; }
.main.is-page-entering[data-page="marketing"] .marketing-tools button { animation: toolTileIn 360ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="marketing"] .marketing-tools button:nth-child(2n) { animation-delay: 70ms; }

/* 客服页：响应能力是节拍，指标从静默状态进入，工具用轻弹而不是大幅移动。 */
.main.is-page-entering[data-page="service"] .service-kpis .dashboard-metric { animation: responseMetricIn 520ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="service"] .service-kpis .dashboard-metric:nth-child(2) { animation-delay: 80ms; }
.main.is-page-entering[data-page="service"] .service-kpis .dashboard-metric:nth-child(3) { animation-delay: 160ms; }
.main.is-page-entering[data-page="service"] .service-kpis .dashboard-metric:nth-child(4) { animation-delay: 240ms; }
.main.is-page-entering[data-page="service"] .task-item { animation: taskReadyIn 360ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="service"] .task-item:nth-child(2) { animation-delay: 60ms; }
.main.is-page-entering[data-page="service"] .task-item:nth-child(3) { animation-delay: 120ms; }
.main.is-page-entering[data-page="service"] .task-item:nth-child(4) { animation-delay: 180ms; }
.main.is-page-entering[data-page="service"] .task-item:nth-child(5) { animation-delay: 240ms; }
.main.is-page-entering[data-page="service"] .service-tool { animation: serviceToolIn 380ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="service"] .service-tool:nth-child(2n) { animation-delay: 65ms; }

/* 财务页：账户先落位，收支趋势随后扫过，排名条从零开始增长。 */
.main.is-page-entering[data-page="finance"] .finance-account-card { animation: accountCardIn 520ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="finance"] .finance-account-card:nth-child(2) { animation-delay: 90ms; }
.main.is-page-entering[data-page="finance"] .finance-account-card:nth-child(3) { animation-delay: 180ms; }
.main.is-page-entering[data-page="finance"] .finance-income-kpis > div { animation: incomeCellIn 400ms var(--motion-ease-out) both; }
.main.is-page-entering[data-page="finance"] .finance-income-kpis > div:nth-child(2n) { animation-delay: 70ms; }
.main.is-page-entering[data-page="finance"] .finance-income-kpis > div:nth-child(3n) { animation-delay: 140ms; }
.main.is-page-entering[data-page="finance"] .finance-ranking > div > i em { transform-origin: 0 50%; animation: ledgerBarGrow 680ms 320ms var(--motion-ease-out) both; }

/* AI 助手：对话面板本身保持柔和，思考状态只动点，不让内容跳动。 */
.assistant-panel.open { animation: assistantPanelIn 280ms var(--motion-ease-out) both; }
.assistant-thinking i { animation: assistantThinkingDot 900ms ease-in-out infinite; }
.assistant-thinking i:nth-child(2) { animation-delay: 120ms; }
.assistant-thinking i:nth-child(3) { animation-delay: 240ms; }
.assistant-message-row { animation: assistantMessageIn 260ms var(--motion-ease-out) both; }

@keyframes pageAtmosphereIn { from { opacity: .94; } to { opacity: 1; } }
@keyframes homeHeaderIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes homeMetricRise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes homeFocusIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes homeRowIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes homeHealthFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes homeShortcutIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes queueRowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes ledgerCellIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes priorityPulse { 0%,100% { box-shadow: none; } 35% { box-shadow: 0 0 0 4px rgba(85,132,255,.12); } }
@keyframes shelfRowIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes productThumbSettle { from { opacity: 0; transform: rotate(-4deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes lowStockBlink { 0%,100% { color: inherit; } 35% { color: #e14b57; } }
@keyframes auditRowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes statusBadgeIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes quickToolIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes directoryRowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes avatarPop { from { opacity: 0; transform: scale(.74); } to { opacity: 1; transform: none; } }
@keyframes memberKpiSweep { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes campaignWaveIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes broadcastGlyphIn { from { opacity: 0; transform: scale(.72) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes metricSignalIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes toolTileIn { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes responseMetricIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes taskReadyIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes serviceToolIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes accountCardIn { from { opacity: 0; transform: translateY(14px) rotateX(2deg); } to { opacity: 1; transform: none; } }
@keyframes incomeCellIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ledgerBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes assistantPanelIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes assistantMessageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes assistantThinkingDot { 0%,100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .main.is-page-entering .page,
  .main.is-page-entering [class],
  .assistant-panel.open,
  .assistant-message-row,
  .assistant-thinking i { animation: none !important; transform: none !important; clip-path: none !important; }
}

/* 会员运营看板：复用首页运营总览的 token、卡片和指标组件。 */
.members-page { padding-bottom: 70px; }
.member-kpis { display: grid; grid-template-columns: 1.28fr repeat(4, 1fr); gap: 14px; }
.member-kpi-card { min-height: 132px; padding: 19px 18px; align-items: flex-start; }
.member-kpi-card .ds-metric-card__icon { flex-basis: 40px; width: 40px; height: 40px; }
.member-kpi-card .ds-metric-card__label { font-size: 12px; }
.member-kpi-card .ds-metric-card__value { margin: 9px 0 8px; font-size: 25px; letter-spacing: .2px; }
.member-kpi-card .ds-metric-card__note { font-size: 11px; }
.member-kpi-card.ds-metric-card { box-shadow: var(--card-shadow); }
.member-kpi-card .ds-metric-card__sparkline { right: 15px; bottom: 18px; width: 76px; height: 56px; gap: 5px; }
.member-kpi-card .ds-metric-card__sparkline i { background: linear-gradient(180deg,#4d8bff,#c6dcff); }
.member-kpi-main { color: #fff; background: linear-gradient(118deg,#2f6df6 0%,#3b8cf8 55%,#50b8f2 100%); }
.member-kpi-main .ds-metric-card__label,
.member-kpi-main .ds-metric-card__note { color: rgba(255,255,255,.86); }
.member-kpi-main .ds-metric-card__value { color: #fff; }
.member-kpi-main .ds-metric-card__icon { color: #fff; background: rgba(255,255,255,.18); }
.member-kpi-main .ds-metric-card__sparkline i { background: linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.3)); }
.member-kpi-card .ds-metric-card__icon--slate { color: #3f4c61; background: #e7ebf1; }
.member-analytics-grid { display: grid; grid-template-columns: minmax(280px, .98fr) minmax(380px, 1.22fr) minmax(320px, 1.02fr); gap: 14px; margin-top: 14px; }
.member-analytics-card { min-height: 244px; overflow: hidden; }
.member-analytics-card .ds-card__body { height: 100%; padding: 0; }
.member-chart-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px 8px; }
.member-chart-head h2 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.chart-info { width: 15px; height: 15px; display: inline-grid; place-items: center; margin-left: 4px; color: #8d98aa; border: 1px solid #b8c0cd; border-radius: 50%; font-size: 10px; font-weight: 500; vertical-align: 2px; }
.chart-action { display: inline-flex; align-items: center; gap: 3px; padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 11px; white-space: nowrap; }
.chart-action:hover { color: var(--blue-strong); }
.member-level-chart { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 10px; min-height: 180px; padding: 0 17px 14px; }
.member-donut { width: 124px; height: 124px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#3d7fff 0 48.2%, #8b72ef 48.2% 74.7%, #ffad4f 74.7% 90.9%, #48556b 90.9% 100%); }
.member-donut::before { content: ""; position: absolute; width: 88px; height: 88px; border-radius: 50%; background: #fff; }
.member-donut > div { position: relative; z-index: 1; display: grid; place-items: center; }
.member-donut strong { font-size: 20px; line-height: 1.1; font-weight: 600; }
.member-donut span { margin-top: 6px; color: #8993a3; font-size: 11px; }
.member-level-legend { display: grid; gap: 12px; min-width: 0; }
.member-level-legend > div { display: grid; grid-template-columns: minmax(60px,1fr) 52px 46px; align-items: center; gap: 4px; font-size: 11px; }
.member-level-legend > div > span { color: #5c6470; overflow: visible; white-space: nowrap; }
.member-level-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--dot); vertical-align: -1px; }
.member-level-legend b { color: #252a33; font-size: 12px; font-weight: 500; text-align: right; }
.member-level-legend em { color: #8993a3; font-style: normal; text-align: right; }
.member-chart-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: #8c96a8; font-size: 10px; white-space: nowrap; }
.member-chart-tools > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.legend-dot.active { background: #22ae74; }
.legend-dot.silent { background: #abb5c5; }
.legend-dot.pending { background: #ff963e; }
.legend-line { width: 18px; height: 2px; display: inline-block; border-radius: 99px; }
.legend-line.new { background: #4384fa; }
.legend-line.paid { background: #ff8532; }
.member-bar-chart { display: grid; grid-template-columns: 34px minmax(0,1fr); min-height: 181px; padding: 0 16px 11px 9px; }
.member-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 3px 20px 0; color: #8993a3; font-size: 10px; text-align: right; }
.member-bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(30px,1fr)); align-items: end; gap: 13px; min-width: 0; padding: 5px 5px 0; background: repeating-linear-gradient(to bottom, transparent 0 36px, #edf1f5 36px 37px); }
.member-bar-col { position: relative; z-index: 1; display: flex; height: 171px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.member-bar-stack { width: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; overflow: hidden; }
.member-bar-stack i { display: block; width: 100%; min-height: 3px; }
.member-bar-stack .bar-active { order: 3; background: linear-gradient(180deg,#4c91fa,#83b6ff); }
.member-bar-stack .bar-pending { order: 2; background: #ff9d3c; }
.member-bar-stack .bar-silent { order: 1; background: #bcc5d3; }
.member-bar-col > span { color: #8993a3; font-size: 10px; white-space: nowrap; }
.member-bar-baseline { position: absolute; right: 0; bottom: 20px; left: 0; height: 1px; background: #d8dee8; }
.member-retention-wrap { position: relative; height: 184px; padding: 0 8px 8px; }
.member-retention-svg { width: 100%; height: 100%; overflow: visible; }
.member-chart-grid line { stroke: #edf1f5; stroke-width: 1; stroke-dasharray: 3 4; }
.member-chart-axis text, .member-chart-labels text { fill: #8b95a5; font-size: 10px; }
.member-chart-labels text { font-size: 9px; }
.retention-line { fill: none; stroke-width: 2.3; stroke-linecap: round; }
.retention-line.paid { stroke: #ff8734; }
.retention-line.new { stroke: #4686f8; }
.retention-dots circle { stroke: #fff; stroke-width: 2; }
.retention-dots.paid circle { fill: #ff8734; }
.retention-dots.new circle { fill: #4686f8; }
.retention-label { position: absolute; right: 8px; padding: 4px 6px; border: 1px solid currentColor; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(62,87,125,.1); font-size: 11px; font-weight: 600; }
.paid-label { top: 57px; color: #ff8734; }
.new-label { top: 120px; color: #4686f8; }
.members-page .member-filter-card { margin-top: 14px; }
.members-page .member-result-head { min-height: 48px; }
.members-page .member-result-head b { font-size: 16px; }

@media (max-width: 1180px) {
  .member-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .member-kpi-main { grid-column: span 2; }
  .member-analytics-grid { grid-template-columns: 1fr 1fr; }
  .member-retention-card { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .member-kpis, .member-analytics-grid { grid-template-columns: 1fr; }
  .member-kpi-main, .member-retention-card { grid-column: auto; }
  .member-chart-tools { flex-wrap: wrap; justify-content: flex-start; }
  .member-level-chart { grid-template-columns: 128px minmax(0,1fr); }
  .member-donut { width: 124px; height: 124px; }
  .member-donut::before { width: 88px; height: 88px; }
}

/* 侧边栏：默认收起二级菜单，移入一级导航后以浮层展开。 */
.workspace > .secondary-nav {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
  transition: transform .18s var(--ease), opacity .18s var(--ease), visibility .18s var(--ease), box-shadow .18s var(--ease);
}
.workspace > .primary-nav:hover + .secondary-nav,
.workspace > .secondary-nav:hover,
.workspace > .secondary-nav:focus-within {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: 8px 0 22px rgba(43,57,84,.08);
}
.main { margin-left: var(--primary-w); }
.main.home-main { margin-left: var(--primary-w); }
.nav-item.active span { color: var(--blue); font-weight: 600; }

/* 会员指标卡：与首页运营总览保持相同的紧凑密度和小型柱状趋势。 */
.member-kpis { grid-template-columns: 1.34fr repeat(4, 1fr); }
.member-kpi-card { min-height: 122px; padding: 16px 17px; }
.member-kpi-card .ds-metric-card__icon { flex-basis: 38px; width: 38px; height: 38px; }
.member-kpi-card .ds-metric-card__value { margin: 8px 0 7px; font-size: 24px; }
.member-kpi-card .ds-metric-card__sparkline { right: 14px; bottom: 15px; width: 58px; height: 43px; gap: 5px; }
.member-kpi-card .ds-metric-card__sparkline i { background: linear-gradient(180deg,#4b8cff,#b8d7ff); box-shadow: 0 4px 10px rgba(72,135,246,.12); }
.member-kpi-main .ds-metric-card__sparkline i { background: linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.3)); box-shadow: none; }
.member-kpi-main .trend-change { color: #fff; }
.member-kpi-main .trend-change em { color: rgba(255,255,255,.78); }

/* 分析卡片标题沿用首页 overview-card-head 与 action-chevron。 */
.member-chart-head { min-height: 56px; padding: 12px 18px 10px; }
.member-chart-head h2 { font-size: 17px; font-weight: 600; }
.member-chart-head .chart-action { color: var(--blue); border: 0; background: transparent; font-size: 12px; }
.member-chart-head .chart-action:hover { color: var(--blue-strong); }
.member-chart-head .member-chart-tools { gap: 12px; }
.member-chart-head .member-chart-tools > span { font-size: 10px; }
.retention-line { stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* 查询结果与表格按后台商品列表的横向操作栏密度排版。 */
.members-page .member-result-head { min-height: 46px; }
.members-page .member-result-head > span { display: none; }
.members-page .member-filter-card { padding-bottom: 0; overflow: hidden; }
.members-page .member-query-row { margin: 0 -18px; padding: 14px 18px; background: #fafbfc; }
.members-page .member-query { flex: 1 1 480px; }
.members-page .member-batch-bar { min-height: 56px; padding: 9px 16px; border: 1px solid #e6e9ee; border-bottom: 0; border-radius: 8px 8px 0 0; background: #fff; }
.members-page .member-batch-bar.active { border-color: #d9e2f8; background: #f7faff; }
.members-page .members-table { border-radius: 0 0 8px 8px; }
.members-page .members-table-head { min-height: 48px; background: #f4f6f8; }
.members-page .member-row { min-height: 78px; }

@media (max-width: 1180px) {
  .member-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .member-kpi-main { grid-column: span 2; }
}
@media (max-width: 820px) {
  .member-kpis { grid-template-columns: 1fr; }
  .member-kpi-main { grid-column: auto; }
}

/* 参考图重排：营销 / 商品 / 导师 / 财务统一复用运营总览设计系统。 */
.reference-dashboard-page { padding-bottom: 72px; }
.reference-dashboard-page .overview-head { margin-bottom: 16px; }
.reference-dashboard-page .ds-page-subtitle { max-width: 720px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.dashboard-metric { min-height: 118px; padding: 18px 19px; }
.dashboard-metric.tone-blue { background: linear-gradient(118deg,#fff 45%,#f0f6ff 100%); }
.dashboard-metric.tone-green { background: linear-gradient(118deg,#fff 45%,#effbf7 100%); }
.dashboard-metric.tone-orange { background: linear-gradient(118deg,#fff 45%,#fff7ef 100%); }
.dashboard-metric.tone-violet { background: linear-gradient(118deg,#fff 45%,#f7f3ff 100%); }
.dashboard-metric .ds-metric-card__sparkline { width: 78px; height: 48px; }
.product-page .dashboard-metric-image { width: 30px; height: 30px; object-fit: contain; }
.product-rank-more { padding: 0; border: 0; background: transparent; font-size: 12px; white-space: nowrap; }
.product-rank-more:hover { color: var(--blue-strong); }
.product-rank-more:focus-visible { border-radius: 4px; outline: 2px solid rgba(85,132,255,.35); outline-offset: 3px; }
.dashboard-panel, .dashboard-table-card { overflow: hidden; }
.dashboard-panel > .ds-card__body, .dashboard-table-card > .ds-card__body { padding: 18px; }
.dashboard-table-card { margin-top: 14px; }
.dashboard-table-card > .ds-card__body { padding: 18px 0 0; }
.dashboard-table-card .ds-section-title { padding: 0 18px; }
.dashboard-select { height: 34px; min-width: 118px; padding: 0 30px 0 11px; color: var(--ds-color-text-secondary); border: 1px solid var(--ds-color-border); border-radius: var(--ds-button-radius); background: #fff; }
.campaign-search { width: 168px; height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--ds-color-text-muted); border: 1px solid var(--ds-color-border); border-radius: 9px; background: #fff; }
.campaign-search:focus-within { border-color: var(--ds-color-primary); box-shadow: var(--ds-focus-ring); }
.campaign-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.dashboard-chart { position: relative; min-width: 0; }
.dashboard-chart-legend { position: absolute; top: -41px; right: 0; display: flex; gap: 16px; color: var(--ds-color-text-secondary); font-size: 11px; }
.dashboard-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend); }
.dashboard-chart svg { width: 100%; height: 180px; overflow: visible; }
.dashboard-chart-grid line { stroke: #edf1f5; stroke-width: 1; stroke-dasharray: 3 4; }
.dashboard-chart-labels text { fill: #8b95a5; font-size: 10px; }
.dashboard-donut { position: relative; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.dashboard-donut::before { content: ""; position: absolute; width: 66%; height: 66%; border-radius: 50%; background: #fff; }
.dashboard-donut > div { position: relative; z-index: 1; display: grid; justify-items: center; }
.dashboard-donut strong { font-size: 22px; line-height: 1; font-weight: 600; }
.dashboard-donut span { margin-top: 7px; color: var(--ds-color-text-muted); font-size: 10px; }
.dashboard-legend { display: grid; gap: 12px; min-width: 0; }
.dashboard-legend > div { display: grid; grid-template-columns: minmax(88px,1fr) 38px 45px; align-items: center; gap: 7px; font-size: 11px; }
.dashboard-legend span { color: var(--ds-color-text-secondary); white-space: nowrap; }
.dashboard-legend i, .audience-summary i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; vertical-align: 0; }
.dashboard-legend i.blue, .audience-summary i.blue { background: #3d7fff; }
.dashboard-legend i.orange, .audience-summary i.orange { background: #ff971f; }
.dashboard-legend i.red, .audience-summary i.red { background: #f04452; }
.dashboard-legend i.gray { background: #abb5c5; }
.dashboard-legend i.green, .audience-summary i.green { background: #20b88a; }
.dashboard-legend i.purple, .audience-summary i.purple { background: #8b72ef; }
.dashboard-legend b { font-weight: 600; text-align: right; }
.dashboard-legend em { color: var(--ds-color-text-muted); font-style: normal; text-align: right; }
.compact-segment { display: inline-flex; padding: 3px; border-radius: 7px; background: #f1f4f9; }
.compact-segment button { min-height: 28px; padding: 0 12px; color: #687386; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.compact-segment button.active { color: #fff; background: var(--blue); box-shadow: 0 2px 7px rgba(61,127,255,.24); }

/* 商品库存 */
.product-insights-grid { display: grid; grid-template-columns: .92fr 1.12fr .94fr; gap: 14px; margin-top: 14px; }
.product-insights-grid .dashboard-panel { min-height: 245px; }
.inventory-health { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 14px; min-height: 172px; }
.inventory-donut { width: 126px; height: 126px; background: conic-gradient(#3d7fff 0 82%,#ff971f 82% 87%,#f04452 87% 95%,#abb5c5 95% 100%); }
.product-trend-panel .dashboard-chart { padding-top: 12px; }
.ranking-list { display: grid; gap: 12px; padding-top: 3px; }
.ranking-list > div { display: grid; grid-template-columns: 23px minmax(78px,1fr) minmax(70px,1.7fr) 30px 44px; align-items: center; gap: 8px; font-size: 11px; }
.rank-number { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #5e6877; background: #edf1f6; font-weight: 600; }
.rank-number.rank-1 { color: #fff; background: #ffb31a; }
.rank-number.rank-2 { color: #fff; background: #aeb7c5; }
.rank-number.rank-3 { color: #fff; background: #ff883d; }
.ranking-list b { font-weight: 500; }
.ranking-list > div > i { height: 7px; overflow: hidden; border-radius: 99px; background: #e9eef6; }
.ranking-list > div > i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#3d7fff,#78aaff); }
.ranking-list strong { font-weight: 600; text-align: right; }
.ranking-list small { color: var(--ds-color-text-muted); text-align: right; }
.inventory-list-card .inventory-tabs { margin-top: 4px; }
.inventory-list-card .inventory-search { margin-top: 0; background: #fafbfc; }

/* 营销触达 */
.marketing-page .campaign-card { margin-top: 14px; }
.marketing-page .dashboard-metric .ds-metric-card__icon { flex-basis: 40px; width: 40px; height: 40px; overflow: hidden; color: var(--blue); border: 1px solid #d7e8ff; background: #eaf3ff !important; border-radius: 9px; }
.marketing-page .dashboard-metric-image { width: 27px; height: 27px; object-fit: contain; }
.marketing-page .dashboard-metric .ds-metric-card__sparkline { right: 14px; bottom: 18px; width: 58px; height: 43px; gap: 5px; }
.marketing-page .dashboard-metric .ds-metric-card__sparkline i { border-radius: 999px; background: linear-gradient(180deg,#4b8cff,#b8d7ff); box-shadow: 0 4px 10px rgba(72,135,246,.12); }
.marketing-page .campaign-table-head, .marketing-page .campaign-row { grid-template-columns: 1.5fr .8fr .48fr .48fr .82fr .55fr .72fr; }
.marketing-page .campaign-row { position: relative; min-height: 68px; border-top: 0; }
.marketing-page .campaign-row::before { content: ""; position: absolute; top: 0; right: 18px; left: 18px; height: 1px; background: #eceef2; }
.marketing-page .campaign-row:first-of-type::before { display: none; }
.campaign-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.campaign-glyph { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; }
.campaign-glyph.tone-red { color: #f04452; background: #fff0f2; }
.campaign-glyph.tone-orange { color: #ff8a2d; background: #fff3e8; }
.campaign-glyph.tone-blue { color: #3d7fff; background: #edf3ff; }
.campaign-glyph.tone-violet { color: #8068e8; background: #f0edff; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 5px 11px; }
.campaign-actions button { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.marketing-analytics-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(360px,.92fr); gap: 14px; margin-top: 14px; }
.marketing-analytics-grid .dashboard-panel { min-height: 224px; }
.reference-touch-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 0; }
.reference-touch-metrics > div { min-height: 112px; display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto auto auto; align-content: center; column-gap: 10px; padding: 12px; border: 1px solid #edf0f4; border-radius: 10px; background: linear-gradient(145deg,#fff,#f9fbff); }
.reference-touch-metrics .touch-icon { grid-column: 1; grid-row: 1 / 4; align-self: center; justify-self: center; float: none; margin: 0; }
.reference-touch-metrics > div > span:not(.touch-icon) { grid-column: 2; display: block; color: var(--ds-color-text-secondary); font-size: 10px; }
.reference-touch-metrics b { grid-column: 2; display: block; margin: 5px 0 4px; font-size: 21px; }
.reference-touch-metrics small { grid-column: 2; display: block; color: var(--ds-color-text-muted); font-size: 9px; }
.touch-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.touch-icon.tone-blue { color: #3d7fff; background: #edf3ff; }
.touch-icon.tone-green { color: #20a66a; background: #eaf8f2; }
.touch-icon.tone-orange { color: #e67c2f; background: #fff2e8; }
.touch-icon.tone-violet { color: #8068e8; background: #f0edff; }
.touch-icon.tone-red { color: #f04452; background: #fff0f2; }
.audience-overview { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 14px; }
.audience-donut { width: 126px; height: 126px; background: conic-gradient(#3d7fff 0 25.4%,#4d8df7 25.4% 45%,#20b88a 45% 65%,#ff971f 65% 79.4%,#8b72ef 79.4% 91.6%,#f04452 91.6% 100%); }
.audience-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
.audience-summary > div { display: grid; grid-template-columns: minmax(80px,1fr) auto auto; gap: 6px; align-items: center; font-size: 10px; }
.audience-summary b { font-size: 11px; }
.audience-summary em { color: var(--ds-color-text-muted); font-style: normal; }
.marketing-page .marketing-tools-card { margin-top: 14px; }

/* 导师管理 */
.mentor-workflow-tabs { display: flex; gap: 34px; min-height: 50px; margin-top: 14px; border-bottom: 1px solid #e5eaf1; }
.mentor-workflow-tabs button { position: relative; padding: 0 4px; color: #465165; border: 0; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; }
.mentor-workflow-tabs button.active { color: var(--blue); }
.mentor-workflow-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 99px; background: var(--blue); }
.mentor-workflow-tabs em, .mentor-status-filters em { min-width: 18px; height: 18px; display: inline-grid; place-items: center; margin-left: 4px; color: #fff; border-radius: 50%; background: #f04452; font-size: 9px; font-style: normal; }
.mentor-page .mentor-list-card { margin-top: 14px; }
.mentor-status-filters,
.mentor-page .compact-segment { display: inline-flex; align-items: center; gap: 0; min-width: 0; padding: 0; border-radius: 8px; background: #f2f6fc; overflow: hidden; }
.mentor-status-filters button,
.mentor-page .compact-segment button { height: 34px; min-height: 34px; padding: 0 16px; color: #718096; border: 0; border-radius: 0; background: transparent; cursor: pointer; white-space: nowrap; transition: color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease); }
.mentor-status-filters button:hover,
.mentor-page .compact-segment button:hover { color: var(--blue); }
.mentor-status-filters button.active,
.mentor-page .compact-segment button.active { color: #fff; border-radius: 8px; background: linear-gradient(135deg,#4c86f7,#2f75eb); box-shadow: 0 6px 14px rgba(64,123,237,.2); }
.mentor-status-filters em { min-width: auto; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; padding: 0 4px; color: #9aa5b6; border-radius: 999px; background: transparent; font-size: 9px; font-style: normal; }
.mentor-status-filters button.active em { color: #fff; background: rgba(255,255,255,.22); }
.mentor-page .mentor-table-head, .mentor-page .mentor-row { grid-template-columns: 30px 1.08fr 1.3fr .88fr 1.18fr .58fr 1.12fr; }
.mentor-page .mentor-row { min-height: 72px; }
.mentor-name small { display: block; margin-top: 4px; color: var(--ds-color-text-muted); font-size: 9px; }
.mentor-name > span { background: linear-gradient(135deg,#7e9af2,#5576df); }
.mentor-time span, .mentor-time small { display: block; }
.mentor-time small { margin-top: 5px; color: var(--ds-color-text-muted); font-size: 9px; }
.mentor-rating { display: flex; align-items: center; gap: 7px; }
.mentor-rating b { font-weight: 600; }
.mentor-rating span { color: #ffad32; font-size: 10px; letter-spacing: 0; }
.mentor-row-actions { display: flex; gap: 7px; }
.mentor-row-actions .btn { min-width: 72px; padding: 0 9px; }
.mentor-more { width: 28px; height: 28px; color: var(--blue); border: 0; background: transparent; cursor: pointer; letter-spacing: 1px; }
.mentor-bottom-grid { display: grid; grid-template-columns: .92fr 1.1fr .74fr; gap: 14px; margin-top: 14px; }
.mentor-bottom-grid .dashboard-panel { min-height: 236px; }
.mentor-audit-summary { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 14px; }
.mentor-donut { width: 128px; height: 128px; background: conic-gradient(#3d7fff 0 33.3%,#ff971f 33.3% 58.3%,#58a7ef 58.3% 75%,#20b88a 75% 91.7%,#e03a68 91.7% 100%); }
.stacked-bars { height: 158px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; padding: 10px 8px 0; background: repeating-linear-gradient(to bottom,transparent 0 32px,#edf1f5 32px 33px); }
.stacked-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.stacked-bar-track { width: 30px; height: 82%; display: flex; flex-direction: column-reverse; justify-content: flex-start; overflow: hidden; border-radius: 4px 4px 0 0; }
.stacked-bar-track i { display: block; width: 100%; }
.stacked-bar-track .bar-primary { background: #4b8cff; }
.stacked-bar-track .bar-warning { background: #ff9d3c; }
.stacked-bar-track .bar-soft { background: #9bc8fb; }
.stacked-bar > span { color: var(--ds-color-text-muted); font-size: 9px; }
.mentor-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.mentor-quick-grid button { min-height: 76px; display: grid; place-items: center; align-content: center; gap: 8px; color: #596477; border: 0; border-radius: 9px; background: #f7f9fd; cursor: pointer; }
.mentor-quick-grid button:hover { color: var(--blue); background: #edf3ff; }
.mentor-quick-grid span { color: var(--blue); }
.mentor-quick-grid .mentor-nav-svg { width: 24px; height: 24px; }
.mentor-quick-grid b { font-size: 10px; font-weight: 500; }

/* 财务 */
.finance-local-nav { min-height: 50px; display: flex; align-items: center; gap: 30px; margin-bottom: 14px; border-bottom: 1px solid #e7ebf1; }
.finance-local-nav h1 { margin: 0 8px 0 0; font-size: 24px; }
.finance-local-nav button { position: relative; align-self: stretch; padding: 0; color: #657083; border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.finance-local-nav button.active { color: var(--blue); font-weight: 600; }
.finance-local-nav button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 99px; background: var(--blue); }
.finance-local-nav > span { margin-left: auto; color: var(--ds-color-text-muted); font-size: 10px; }
.finance-local-nav > span svg { vertical-align: -3px; }
.finance-top-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(360px,.95fr); gap: 14px; }
.finance-top-grid .dashboard-panel { min-height: 188px; }
.finance-todo-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.finance-todo-metrics button { display: flex; align-items: flex-start; gap: 13px; padding: 10px 18px; text-align: left; border: 0; border-right: 1px solid #e8edf3; background: transparent; cursor: pointer; }
.finance-todo-metrics button:last-child { border-right: 0; }
.finance-todo-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.finance-todo-icon.tone-blue { color: #3d7fff; background: #edf3ff; }
.finance-todo-icon.tone-green { color: #20a66a; background: #eaf8f2; }
.finance-todo-icon.tone-orange { color: #e67c2f; background: #fff2e8; }
.finance-todo-metrics b, .finance-todo-metrics small, .finance-todo-metrics strong { display: block; }
.finance-todo-metrics b { font-size: 12px; }
.finance-todo-metrics small { margin-top: 6px; color: var(--ds-color-text-muted); font-size: 9px; }
.finance-todo-metrics strong { margin-top: 12px; font-size: 21px; font-weight: 500; }
.finance-todo-metrics strong em { color: #5d6878; font-style: normal; }
.finance-assistant-card { position: relative; background: linear-gradient(118deg,#f4f8ff,#eaf3ff); }
.finance-assistant-card > .ds-card__body { height: 100%; }
.finance-assistant-card img { position: absolute; right: 0; bottom: 0; width: 52%; height: 100%; object-fit: cover; object-position: right center; mix-blend-mode: multiply; }
.finance-assistant-copy { position: relative; z-index: 1; max-width: 58%; }
.finance-assistant-copy > b { font-size: 14px; }
.finance-assistant-copy h2 { margin: 8px 0 6px; font-size: 18px; }
.finance-assistant-copy p { margin: 0 0 13px; color: var(--ds-color-text-muted); font-size: 9px; line-height: 1.55; }
.finance-section-heading { margin: 18px 0 10px; font-size: 17px; }
.finance-account-grid { display: grid; grid-template-columns: 1.22fr .96fr .96fr; gap: 14px; }
.finance-account-card { min-height: 170px; padding: 18px; overflow: hidden; border-radius: var(--ds-card-radius); background: #fff; box-shadow: var(--ds-card-shadow); }
.finance-account-card.tone-primary { color: #fff; background: linear-gradient(125deg,#2f6df6,#3f8df8 58%,#58b7ef); }
.finance-account-card.tone-blue { background: linear-gradient(125deg,#fff,#f1f6ff); }
.finance-account-card.tone-orange { background: linear-gradient(125deg,#fff,#fff7ef); }
.finance-account-head { display: flex; align-items: center; gap: 12px; }
.finance-account-head > span { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); border-radius: 10px; background: #eaf2ff; }
.finance-account-card.tone-primary .finance-account-head > span { color: #fff; background: rgba(255,255,255,.17); }
.finance-account-card.tone-orange .finance-account-head > span { color: #ff7a22; background: #fff0e2; }
.finance-account-head b, .finance-account-head small { display: block; }
.finance-account-head small { margin-top: 5px; color: var(--ds-color-text-muted); font-size: 9px; }
.finance-account-card.tone-primary .finance-account-head small { color: rgba(255,255,255,.78); }
.finance-account-head button { margin-left: auto; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.finance-account-card.tone-primary .finance-account-head button { color: #fff; }
.finance-account-card > strong { display: block; margin: 8px 0 12px 53px; font-size: 24px; font-weight: 500; }
.finance-account-subrow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border-radius: 8px; background: rgba(220,228,240,.65); }
.finance-account-subrow span { min-height: 50px; padding: 9px 12px; background: rgba(255,255,255,.9); }
.finance-account-card.tone-primary .finance-account-subrow { background: rgba(255,255,255,.2); }
.finance-account-card.tone-primary .finance-account-subrow span { background: rgba(255,255,255,.94); color: #263346; }
.finance-account-subrow small, .finance-account-subrow b { display: block; }
.finance-account-subrow small { color: var(--ds-color-text-muted); font-size: 8px; }
.finance-account-subrow b { margin-top: 7px; font-size: 12px; }
.finance-analysis-card { margin-top: 14px; }
.finance-income-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.finance-income-kpis > div { min-height: 92px; padding: 12px; border: 1px solid #e9edf3; border-radius: 9px; }
.finance-income-kpis .touch-icon { float: left; margin-right: 9px; }
.finance-income-kpis > div > span:not(.touch-icon), .finance-income-kpis b, .finance-income-kpis small { display: block; }
.finance-income-kpis > div > span:not(.touch-icon) { color: var(--ds-color-text-secondary); font-size: 9px; }
.finance-income-kpis b { margin: 8px 0 6px; font-size: 18px; }
.finance-income-kpis small { color: var(--ds-color-text-muted); font-size: 8px; }
.finance-date-range { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; color: #687386; border: 1px solid #dfe4eb; border-radius: 6px; background: #fff; font-size: 10px; }
.finance-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.finance-chart-panel { min-width: 0; padding: 14px; border: 1px solid #edf0f4; border-radius: 10px; }
.finance-chart-panel h3 { margin: 0 0 12px; font-size: 13px; }
.finance-combo-chart { position: relative; height: 180px; display: flex; align-items: flex-end; gap: 18px; padding: 14px 14px 22px; background: repeating-linear-gradient(to bottom,transparent 0 35px,#edf1f5 35px 36px); }
.finance-combo-chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.finance-combo-chart > div i { width: 30px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#4a8cf8,#a9c8ff); }
.finance-combo-chart > div span { color: var(--ds-color-text-muted); font-size: 9px; }
.finance-combo-chart svg { position: absolute; inset: 10px 11px 24px; width: calc(100% - 22px); height: calc(100% - 34px); overflow: visible; pointer-events: none; }
.finance-combo-chart path { fill: none; stroke: #ff8b32; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.finance-combo-chart circle { fill: #fff; stroke: #ff8b32; stroke-width: 2; }
.finance-bottom-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.finance-bottom-grid .dashboard-panel > .ds-card__body { overflow-x: auto; }
.finance-detail-head, .finance-detail-row { display: grid; grid-template-columns: 1.1fr .6fr 1.4fr .7fr .7fr .65fr; align-items: center; gap: 8px; min-width: 700px; padding: 10px 12px; font-size: 10px; }
.finance-detail-head { color: var(--ds-color-text-muted); background: #f5f7fa; }
.finance-detail-row { border-top: 1px solid #edf0f4; }
.finance-detail-row > b { color: #f04452; }
.finance-ranking > div { grid-template-columns: 23px minmax(72px,1fr) 74px 44px minmax(70px,1.3fr); }

@media (max-width: 1180px) {
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-insights-grid, .mentor-bottom-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-insights-grid .dashboard-panel:last-child, .mentor-bottom-grid .dashboard-panel:last-child { grid-column: 1 / -1; }
  .marketing-analytics-grid, .finance-top-grid, .finance-chart-grid, .finance-bottom-grid { grid-template-columns: 1fr; }
  .finance-account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-account-card.tone-primary { grid-column: 1 / -1; }
  .finance-income-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .dashboard-kpis, .product-insights-grid, .mentor-bottom-grid, .finance-account-grid { grid-template-columns: 1fr; }
  .product-insights-grid .dashboard-panel:last-child, .mentor-bottom-grid .dashboard-panel:last-child, .finance-account-card.tone-primary { grid-column: auto; }
  .reference-touch-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-local-nav { overflow-x: auto; gap: 20px; }
  .finance-local-nav > * { flex: 0 0 auto; }
  .finance-local-nav > span { margin-left: 0; }
  .finance-todo-metrics { grid-template-columns: 1fr; }
  .finance-todo-metrics button { border-right: 0; border-bottom: 1px solid #e8edf3; }
  .finance-income-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mentor-workflow-tabs { gap: 20px; overflow-x: auto; }
  .mentor-status-filters { width: 100%; overflow-x: auto; }
  .mentor-page .ds-section-title__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .dashboard-kpis, .reference-touch-metrics, .finance-income-kpis { grid-template-columns: 1fr; }
  .inventory-health, .audience-overview, .mentor-audit-summary { grid-template-columns: 1fr; justify-items: center; }
  .dashboard-legend, .audience-summary { width: 100%; }
  .audience-summary { grid-template-columns: 1fr; }
  .finance-account-subrow { grid-template-columns: 1fr; }
  .finance-assistant-copy { max-width: 74%; }
  .finance-assistant-card img { width: 58%; opacity: .48; }
  .dashboard-chart-legend { position: static; margin-bottom: 8px; }
  .ds-section-title { align-items: flex-start; flex-direction: column; }
  .ds-section-title__actions { width: 100%; justify-content: flex-start; }
}

/* 小知新视觉：机器人素材、欢迎态、思考反馈和顶部渐变入口。 */
.topbar-assistant-entry + .header-tools { margin-left: 0; }
.home-page .ds-metric-card__icon { flex-basis: 40px; width: 40px; height: 40px; overflow: hidden; color: var(--blue); background: #eaf3ff !important; border-radius: 9px; }
.home-page .ds-metric-card__icon--green,
.home-page .ds-metric-card__icon--violet,
.home-page .ds-metric-card__icon--orange { color: var(--blue); background: #eaf3ff !important; }
.home-kpi-image { width: 27px; height: 27px; object-fit: contain; }
.home-page .ds-metric-card__icon { flex-basis: 36px; width: 36px; height: 36px; }
.home-page .home-kpi-image { width: 22px; height: 22px; margin: 0 auto; object-fit: contain; }
.assistant-fab {
  right: 24px;
  bottom: 24px;
  width: 222px;
  min-width: 222px;
  height: 68px;
  padding: 8px 11px 8px 8px;
  gap: 7px;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg,#fff 0%,#f7fcff 68%,#eef7ff 100%);
  box-shadow: 0 12px 32px rgba(46,119,184,.2), 0 0 0 1px rgba(176,224,247,.7);
}
.assistant-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(46,119,184,.25), 0 0 0 1px rgba(123,205,241,.9); }
.assistant-fab-robot { position: relative; z-index: 2; flex: 0 0 78px; width: 78px; height: 78px; align-self: flex-start; margin-top: -27px; overflow: visible; }
.assistant-fab-robot img { position: absolute; top: -1px; left: -11px; width: 101px; height: 101px; object-fit: contain; }
.assistant-fab-copy { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 0; text-align: left; }
.assistant-fab-copy b { color: #1769d4; font-size: 13px; white-space: nowrap; }
.assistant-fab-copy small { color: #71849b; font-size: 10px; white-space: nowrap; }
.assistant-fab-chevron { position: relative; z-index: 1; margin-left: auto; color: #4b82b7; font-size: 17px; }
.assistant-fab-chevron-icon { width: 16px; height: 16px; display: block; fill: currentColor; }
.assistant-fab-icon, .assistant-fab-label { display: none !important; }
body:has(.home-page) .assistant-fab { right: 24px; width: 222px; min-width: 222px; justify-content: flex-start; gap: 7px; padding: 8px 11px 8px 8px; }
.assistant-panel { width: 410px; height: min(660px, calc(100dvh - 88px)); border: 0; border-radius: 24px; background: linear-gradient(180deg,#f3fbff 0%,#fbfdff 70%,#f4fbff 100%); box-shadow: 0 24px 64px rgba(29,67,119,.22), 0 0 0 1px rgba(170,221,244,.65); }
.assistant-title { min-height: 48px; display: flex; justify-content: flex-end; padding: 2px 8px; border-bottom: 0; background: transparent; }
.assistant-title .assistant-close { margin-left: auto; }
.assistant-brand-avatar { width: 48px; height: 48px; overflow: hidden; border: 0; }
.assistant-brand-avatar::before { display: none; }
.assistant-brand-avatar img { width: 78px; height: 78px; object-fit: contain; transform: translateY(5px); }
.assistant-heading h3 { color: #153d68; font-size: 17px; }
.assistant-heading small { color: #6e87a3; }
.assistant-conversation { padding: 18px 16px 12px; background: radial-gradient(circle at 16% 8%,rgba(77,211,230,.16),transparent 28%),radial-gradient(circle at 88% 35%,rgba(104,118,255,.1),transparent 32%),linear-gradient(180deg,#f5fbff 0%,#fbfdff 72%,#f7fbff 100%); }
.assistant-welcome { display: grid; justify-items: center; text-align: center; padding: 10px 2px 6px; }
.assistant-welcome-avatar { width: 94px; height: 94px; display: grid; place-items: center; overflow: hidden; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#fff 0 18%,#dff4ff 19% 58%,#bde6fb 59% 100%); box-shadow: inset 0 0 0 1px #9dd7f4,0 9px 22px rgba(60,137,186,.14); }
.assistant-welcome-avatar img { width: 118px; height: 118px; object-fit: contain; transform: translateY(8px); }
.assistant-welcome h4 { margin: 0; color: #194c7d; font-size: 15px; font-weight: 700; }
.assistant-welcome p { max-width: 270px; margin: 7px 0 18px; color: #7c93aa; font-size: 11px; line-height: 1.6; }
.assistant-welcome-prompts { width: 100%; display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.68); box-shadow: 0 7px 20px rgba(49,124,171,.06); }
.assistant-welcome-prompts button { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; color: #486783; text-align: left; border: 0; border-radius: 10px; background: #f1f8fc; cursor: pointer; transition: background .16s var(--ease),color .16s var(--ease),transform .16s var(--ease); }
.assistant-welcome-prompts button:hover { color: #0a6ccd; background: #e8f4fc; transform: translateX(2px); }
.assistant-welcome-prompts button span { color: #45afd7; font-size: 18px; }
.assistant-mini-avatar { overflow: hidden; border: 1px solid #aee4f5; background: #eaf9ff; }
.assistant-mini-avatar img { width: 34px; height: 34px; object-fit: contain; object-position: center; transform: none; }
.assistant-session-actions { padding: 8px 14px 5px; border-top: 0; background: rgba(248,251,254,.74); }
.assistant-session-actions button { min-height: 38px; padding: 0 13px; border: 0; background: transparent; box-shadow: none; }
.assistant-session-actions button:hover, .assistant-session-actions button.active { border: 0; background: #eaf5fc; }
.assistant-composer-shell { background: rgba(248,251,254,.74); }
.assistant-send { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #e2f1fb; }
.assistant-send-label { display: none; }
.assistant-send-icon { width: 19px; height: 17px; display: block; }
.assistant-send.ready, .assistant-send:not(:disabled):hover { background: #e0f5fc; box-shadow: 0 6px 16px rgba(54,183,209,.22); }
.assistant-send.sending { animation: assistantSendPulse .72s ease-in-out infinite alternate; }
.assistant-send.sending .assistant-send-icon { animation: assistantSendFly .8s ease-in-out infinite; }
@keyframes assistantSendPulse { from { transform: scale(.94); } to { transform: scale(1.06); } }
@keyframes assistantSendFly { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(4px,-3px) rotate(-8deg); } }
.assistant-thinking-row { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.assistant-thinking { min-height: 37px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; color: #5d7892; border-radius: 13px 15px 15px 5px; background: rgba(255,255,255,.9); box-shadow: 0 5px 16px rgba(47,91,140,.05); font-size: 11px; }
.assistant-thinking i { width: 5px; height: 5px; border-radius: 50%; background: #46b9dc; animation: assistantThinkingDots 1s ease-in-out infinite; }
.assistant-thinking i:nth-child(3) { animation-delay: .15s; }.assistant-thinking i:nth-child(4) { animation-delay: .3s; }
@keyframes assistantThinkingDots { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 680px) {
  .topbar-assistant-entry { flex: 1 1 auto; min-width: 0; height: 36px; margin-left: 0; }
  .topbar-assistant-entry input { font-size: 11px; }
  .topbar-assistant-hint { display: none; }
  .assistant-fab, body:has(.home-page) .assistant-fab { right: 14px; bottom: 18px; width: 202px; min-width: 202px; height: 62px; }
  .assistant-fab-robot { flex-basis: 68px; width: 68px; height: 72px; margin-top: -20px; }
  .assistant-fab-robot img { width: 88px; height: 88px; left: -10px; }
  .assistant-panel { left: 10px; right: 10px; bottom: 10px; width: auto; height: calc(100dvh - 20px); min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-assistant-entry, .topbar-assistant-entry::after, .topbar-assistant-spark, .assistant-send.sending, .assistant-send.sending .assistant-send-icon, .assistant-thinking i { animation: none; }
}

/* 全局表格表头与本轮局部修正。 */
.table-head,
.product-table-head,
.mentor-table-head,
.trade-orders-head,
.members-table-head,
.inventory-table-head,
.campaign-table-head,
.finance-detail-head {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
}
.table-head::after,
.product-table-head::after,
.mentor-table-head::after,
.trade-orders-head::after,
.members-table-head::after,
.inventory-table-head::after,
.campaign-table-head::after,
.finance-detail-head::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: #e9edf3;
  pointer-events: none;
}
.nav-item[data-module="mentor"] .qn-icon { font-size: 24px !important; transform: scale(1.2); transform-origin: center; }
.nav-item[data-module="mentor"] .mentor-nav-svg { flex: 0 0 26px; width: 26px !important; height: 26px !important; transform: scale(1.1); transform-origin: center; }
.nav-item[data-module="mentor"] .mentor-nav-svg,
.nav-item[data-module="members"] .member-nav-svg { flex: 0 0 18px; width: 18px !important; height: 18px !important; transform: none; }
.assistant-panel .assistant-title,
.assistant-panel .assistant-session-actions { background: transparent !important; background-image: none !important; box-shadow: none !important; }
.assistant-panel .assistant-send { width: 36px; min-width: 36px; height: 36px; background: #fff; border: 1px solid #e2eef8; box-shadow: 0 3px 9px rgba(54,114,209,.09); }
.assistant-panel .assistant-send.ready,
.assistant-panel .assistant-send:not(:disabled):hover { background: #fff; box-shadow: 0 4px 12px rgba(54,114,209,.14); }
.assistant-panel .assistant-model { border-color: transparent; background: transparent; box-shadow: none; }
.assistant-panel .assistant-send,
.assistant-panel .assistant-send.ready,
.assistant-panel .assistant-send:not(:disabled):hover { box-shadow: none; }
.home-page .unified-kpis .ds-metric-card__icon { flex-basis: 36px; width: 36px; height: 36px; }
.home-page .dashboard-metric-image { width: 22px; height: 22px; margin: 0 auto; object-fit: contain; }
.trade-page .unified-kpis .ds-metric-card__icon { flex-basis: 36px; width: 36px; height: 36px; }
.trade-page .dashboard-metric-image { width: 22px; height: 22px; margin: 0 auto; object-fit: contain; }
.members-page .dashboard-metric-image { width: 22px; height: 22px; margin: 0 auto; object-fit: contain; }
.members-page .unified-kpis .member-kpi-paid { background: #fff !important; }
.members-page .unified-kpis .member-kpi-paid .ds-metric-card__icon { color: #e89522; border-color: #f5d49e; background: #fff0d4 !important; }
.members-page .unified-kpis .member-kpi-silent { background: #fff !important; }
.members-page .unified-kpis .member-kpi-silent .ds-metric-card__icon { color: #303947; border-color: #d8dde5; background: #e9ecf1 !important; }
.reference-touch-metrics,
.reference-touch-metrics > div { background: transparent !important; background-image: none !important; box-shadow: none !important; }
.marketing-tools button > span svg { display: block; color: var(--blue); }

/* 表格行也不铺满分割线：分隔线跟随内容区收口，行本身保持白底。 */
.product-row,
.mentor-row,
.trade-order-row,
.member-row,
.inventory-row,
.campaign-row,
.finance-detail-row {
  position: relative;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent;
}
.product-row::after,
.mentor-row::after,
.trade-order-row::after,
.member-row::after,
.inventory-row::after,
.campaign-row::after,
.finance-detail-row::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: #edf0f4;
  pointer-events: none;
}
.product-row:hover,
.mentor-row:hover,
.trade-order-row:hover,
.member-row:hover,
.inventory-row:hover,
.campaign-row:hover { background: rgba(245,249,255,.42); }

.assistant-panel { background: #fff !important; background-image: none !important; }
.assistant-panel .assistant-conversation,
.assistant-panel .assistant-composer-shell,
.assistant-panel .assistant-title,
.assistant-panel .assistant-session-actions { background: #fff !important; background-image: none !important; }
.assistant-panel::before,
.assistant-panel::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(58px); opacity: .16; }
.assistant-panel::before { width: 300px; height: 240px; top: 48px; right: -90px; background: #b9eaff; }
.assistant-panel::after { width: 270px; height: 220px; bottom: -62px; left: -74px; background: #d7d0ff; opacity: .11; }
.assistant-panel > * { position: relative; z-index: 1; }

/* 全局表格设计系统：商品列表作为基准，统一表头、行高、留白和内收分隔线。 */
:root { --table-header-height: 46px; --table-row-height: 86px; --table-inset: 16px; }
.members-table-head,
.mentor-table-head,
.trade-orders-head,
.inventory-table-head,
.campaign-table-head,
.finance-detail-head { min-height: var(--table-header-height) !important; padding-right: var(--table-inset); padding-left: var(--table-inset); color: #737b86; background: transparent !important; font-size: 11px; }
.member-row,
.mentor-row,
.trade-order-row,
.inventory-row,
.campaign-row,
.finance-detail-row { min-height: var(--table-row-height) !important; font-size: 11px; }
.members-table,
.mentor-list-card,
.trade-order-section,
.inventory-list-card,
.campaign-card { border: 1px solid #e5edf7; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(71,84,108,.06); }
.members-table-head::after,
.mentor-table-head::after,
.trade-orders-head::after,
.inventory-table-head::after,
.campaign-table-head::after,
.finance-detail-head::after,
.member-row::after,
.mentor-row::after,
.trade-order-row::after,
.inventory-row::after,
.campaign-row::after,
.finance-detail-row::after { right: var(--table-inset); left: var(--table-inset); background: #e9edf3; }

/* 后台统一指标卡与最终批注收敛。 */
.backend-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; min-width: 178px; cursor: pointer; }
.backend-brand img { width: 34px; height: 34px; object-fit: contain; }
.backend-brand strong { color: #1e3150; font-size: 16px; font-weight: 650; white-space: nowrap; }

.unified-kpis { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 14px; }
.unified-kpis .dashboard-metric { min-height: 112px; padding: 18px 19px; align-items: flex-start; border: 0; border-radius: 12px; background: #fff !important; box-shadow: var(--card-shadow); }
.unified-kpis .ds-metric-card__icon { flex-basis: 40px; width: 40px; height: 40px; overflow: hidden; color: var(--blue); border: 1px solid #d7e8ff; border-radius: 9px; background: #eaf3ff !important; }
.unified-kpis .ds-metric-card__icon--green,
.unified-kpis .ds-metric-card__icon--violet,
.unified-kpis .ds-metric-card__icon--orange,
.unified-kpis .ds-metric-card__icon--slate { color: var(--blue); background: #eaf3ff !important; }
.unified-kpis .ds-metric-card__label { color: #707783; font-size: 12px; }
.unified-kpis .ds-metric-card__value { margin: 8px 0 7px; color: var(--ink); font-size: 25px; line-height: 1; font-weight: 500; }
.unified-kpis .ds-metric-card__note { color: #87909c; font-size: 11px; }
.unified-kpis .ds-metric-card__sparkline { right: 14px; bottom: 18px; width: 58px; height: 43px; gap: 5px; }
.unified-kpis .ds-metric-card__sparkline i { border-radius: 999px; background: linear-gradient(180deg,#4b8cff,#b8d7ff); box-shadow: 0 4px 10px rgba(72,135,246,.12); }
.ds-metric-card:has(.ds-metric-card__sparkline) { overflow: visible; }
.ds-metric-card__sparkline i { position: relative; cursor: default; outline: none; }
.ds-metric-card__sparkline { pointer-events: auto; }
.ds-metric-card__sparkline i::after { content: attr(data-value); position: absolute; z-index: 8; left: 50%; bottom: calc(100% + 7px); min-width: 30px; padding: 4px 6px; color: #2a4e73; border: 1px solid #dcebf7; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(47,91,140,.14); font-size: 10px; line-height: 1; text-align: center; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .14s var(--ease), transform .14s var(--ease); }
.ds-metric-card__sparkline i:hover::after,
.ds-metric-card__sparkline i:focus::after,
.ds-metric-card__sparkline i:focus-visible::after { opacity: 1 !important; transform: translate(-50%,0) !important; }
.sparkline-tooltip { position: absolute; z-index: 9; left: 50%; bottom: calc(100% + 7px); min-width: 30px; padding: 4px 6px; color: #2a4e73 !important; border: 1px solid #dcebf7; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(47,91,140,.14); font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", sans-serif; font-size: 10px !important; font-style: normal; line-height: 1; text-align: center; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%,4px); transition: opacity .14s var(--ease),transform .14s var(--ease); }
.ds-metric-card__sparkline i::after { content: none !important; }
.ds-metric-card__sparkline i:hover > .sparkline-tooltip,
.ds-metric-card__sparkline i:focus > .sparkline-tooltip,
.ds-metric-card__sparkline i:focus-visible > .sparkline-tooltip,
.ds-metric-card__sparkline i.show-value > .sparkline-tooltip { opacity: 1 !important; transform: translate(-50%,0) !important; }
.member-kpis.unified-kpis,
.trade-kpis.unified-kpis,
.inventory-kpis.unified-kpis,
.marketing-kpis.unified-kpis,
.mentor-kpis.unified-kpis,
.service-kpis.unified-kpis,
.finance-kpis.unified-kpis { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.service-kpis { margin: 0 0 14px; }
.finance-kpis { margin: 14px 0; }

.overview-card-head > div:first-child { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.overview-card-head > div:first-child p { margin: 0; }

.campaign-card { border: 1px solid #e5edf7; border-radius: 12px; box-shadow: 0 4px 14px rgba(71,84,108,.07); }
.marketing-page .campaign-table-head,
.marketing-page .campaign-row { grid-template-columns: minmax(200px,1.25fr) 140px 72px 68px minmax(120px,.72fr) 76px 108px; min-width: 930px; }
.marketing-page .campaign-table-head { min-height: 44px; padding: 0 16px; }
.marketing-page .campaign-row { padding: 0 16px; }
.dashboard-select { appearance: none; padding-right: 38px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23708093' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }

.reference-touch-metrics > div { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.reference-touch-metrics > div:not(:first-child) { border-left: 1px solid #edf0f5; }
.reference-touch-metrics .touch-icon { width: 38px; height: 38px; color: var(--blue); background: #eaf3ff; }

.assistant-title { background: transparent !important; }
.assistant-session-actions { background: transparent !important; }
.assistant-welcome-avatar { width: 118px; height: 92px; overflow: visible; margin-bottom: 9px; border-radius: 0; background: transparent; box-shadow: none; }
.assistant-welcome-avatar img { width: 118px; height: 92px; object-fit: contain; transform: none; }
.assistant-fab { width: 208px; min-width: 208px; height: 68px; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.assistant-fab::before { content: ""; position: absolute; z-index: 0; top: 8px; right: 0; bottom: 0; left: 58px; border: 1px solid #b9def5; border-radius: 18px; background: linear-gradient(135deg,#fff,#f2faff); box-shadow: 0 10px 28px rgba(46,119,184,.16); }
.assistant-fab:hover { transform: translateY(-2px); box-shadow: none; }
.assistant-fab-robot { position: absolute; z-index: 2; left: -2px; top: -18px; width: 82px; height: 82px; margin: 0; }
.assistant-fab-robot img { left: -8px; top: -2px; width: 96px; height: 96px; }
.assistant-fab-copy { position: absolute; z-index: 2; left: 78px; top: 24px; gap: 2px; }
.assistant-fab-chevron { position: absolute; z-index: 2; right: 11px; top: 27px; margin: 0; }
body:has(.home-page) .assistant-fab { right: 24px; width: 208px; min-width: 208px; padding: 0; }

@media (max-width: 1180px) {
  .unified-kpis,
  .member-kpis.unified-kpis,
  .trade-kpis.unified-kpis,
  .inventory-kpis.unified-kpis,
  .marketing-kpis.unified-kpis,
  .mentor-kpis.unified-kpis,
  .service-kpis.unified-kpis,
  .finance-kpis.unified-kpis { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 680px) {
  .backend-brand { min-width: 36px; }
  .backend-brand strong { display: none; }
  .backend-brand img { width: 32px; height: 32px; }
  .unified-kpis,
  .member-kpis.unified-kpis,
  .trade-kpis.unified-kpis,
  .inventory-kpis.unified-kpis,
  .marketing-kpis.unified-kpis,
  .mentor-kpis.unified-kpis,
  .service-kpis.unified-kpis,
  .finance-kpis.unified-kpis { grid-template-columns: 1fr !important; }
  .assistant-fab, body:has(.home-page) .assistant-fab { width: 194px; min-width: 194px; }
  .assistant-fab::before { left: 54px; }
  .assistant-fab-copy { left: 72px; }
}

/* 交互动效：保留原有视觉基础，只增加页面连续性、图表进入和操作反馈。 */
:root {
  --motion-ease-out: cubic-bezier(.16,1,.3,1);
  --motion-ease-in-out: cubic-bezier(.77,0,.175,1);
}

:is(.is-page-entering,.is-chart-refreshing) .ds-metric-card__sparkline i,
:is(.is-page-entering,.is-chart-refreshing) .kpi-mini-chart i,
:is(.is-page-entering,.is-chart-refreshing) .member-bar-stack i,
:is(.is-page-entering,.is-chart-refreshing) .stacked-bar-track i,
:is(.is-page-entering,.is-chart-refreshing) .finance-combo-chart > div i {
  transform-origin: 50% 100%;
  animation: chartBarGrow 520ms var(--motion-ease-out) both;
}

:is(.is-page-entering,.is-chart-refreshing) .ds-metric-card__sparkline i:nth-child(2),
:is(.is-page-entering,.is-chart-refreshing) .kpi-mini-chart i:nth-child(2) { animation-delay: 24ms; }
:is(.is-page-entering,.is-chart-refreshing) .ds-metric-card__sparkline i:nth-child(3),
:is(.is-page-entering,.is-chart-refreshing) .kpi-mini-chart i:nth-child(3) { animation-delay: 48ms; }
:is(.is-page-entering,.is-chart-refreshing) .ds-metric-card__sparkline i:nth-child(4),
:is(.is-page-entering,.is-chart-refreshing) .kpi-mini-chart i:nth-child(4) { animation-delay: 72ms; }
:is(.is-page-entering,.is-chart-refreshing) .ds-metric-card__sparkline i:nth-child(5),
:is(.is-page-entering,.is-chart-refreshing) .kpi-mini-chart i:nth-child(5) { animation-delay: 96ms; }

:is(.is-page-entering,.is-chart-refreshing) .ranking-list > div > i em,
:is(.is-page-entering,.is-chart-refreshing) .health-track i {
  transform-origin: 0 50%;
  animation: chartBarSpread 500ms var(--motion-ease-out) both;
}

:is(.is-page-entering,.is-chart-refreshing) .trend-line,
:is(.is-page-entering,.is-chart-refreshing) .dashboard-chart svg > path,
:is(.is-page-entering,.is-chart-refreshing) .retention-line,
:is(.is-page-entering,.is-chart-refreshing) .finance-combo-chart svg > path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: chartLineDraw 540ms var(--motion-ease-out) forwards;
}

:is(.is-page-entering,.is-chart-refreshing) .trend-svg > path:not(.trend-line) {
  animation: chartAreaReveal 460ms var(--motion-ease-out) both;
}

:is(.is-page-entering,.is-chart-refreshing) .trend-dot,
:is(.is-page-entering,.is-chart-refreshing) .dashboard-chart svg > circle,
:is(.is-page-entering,.is-chart-refreshing) .retention-dots circle,
:is(.is-page-entering,.is-chart-refreshing) .finance-combo-chart circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: chartPointPop 180ms var(--motion-ease-out) 350ms both;
}

:is(.is-page-entering,.is-chart-refreshing) .dashboard-donut,
:is(.is-page-entering,.is-chart-refreshing) .member-donut {
  transform-origin: center;
  animation: chartRingTurn 520ms var(--motion-ease-out) both;
}

:is(.is-page-entering,.is-chart-refreshing) .service-metrics .metric-card strong,
:is(.is-page-entering,.is-chart-refreshing) .task-overview .task-item b,
:is(.is-page-entering,.is-chart-refreshing) .reference-touch-metrics > div b {
  transform-origin: 0 50%;
  animation: metricValueSettle 260ms var(--motion-ease-out) both;
}

button:not(:disabled),
[role="button"],
.secondary-link,
.link-action {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--motion-ease-out), scale 120ms var(--motion-ease-out);
}

button:not(:disabled):active,
[role="button"]:active,
.secondary-link:active,
.link-action:active { scale: .98; }

.action-chevron,
.nav-item .qn-icon,
.nav-item svg,
.ds-metric-card__icon,
.campaign-glyph,
.touch-icon,
.todo-icon,
.finance-todo-icon,
.inventory-thumb,
.member-avatar,
.mentor-name > span,
.marketing-tools button > span,
.kpi-icon,
.stat-card strong {
  transition: transform 180ms var(--motion-ease-out), filter 180ms ease;
}

/* 卡片容器始终保持静止，只让卡片内容响应悬浮。 */
.stat-card:hover,
.operation-kpi:hover,
.todo-entry:hover,
.marketing-tools button:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.stat-card:hover,
.todo-entry:hover,
.marketing-tools button:hover { box-shadow: none; }

@media (hover: hover) and (pointer: fine) {
  .dashboard-metric:hover .ds-metric-card__icon,
  .campaign-row:hover .campaign-glyph,
  .reference-touch-metrics > div:hover .touch-icon,
  .todo-entry:hover .todo-icon,
  .finance-todo-metrics button:hover .finance-todo-icon {
    transform: translateY(-1px) scale(1.06);
    filter: saturate(1.08);
  }

  .nav-item:hover .qn-icon,
  .nav-item:hover svg { transform: translateY(-1px) scale(1.06); }
  .home-link-action:hover .action-chevron,
  .diagnosis-action:hover .action-chevron { transform: translate(3px,-.5px); }

  .inventory-row:hover .inventory-thumb { transform: scale(1.06); }
  .member-row:hover .member-avatar,
  .mentor-row:hover .mentor-name > span { transform: scale(1.05); }
  .marketing-tools button:hover > span,
  .operation-kpi:hover .kpi-icon { transform: translateY(-1px) scale(1.05); }
  .stat-card:hover strong { transform: translateY(-1px); }
  .ds-metric-card__sparkline i:hover { filter: saturate(1.16) brightness(1.03); }
}

@keyframes chartBarGrow {
  from { opacity: .32; transform: scaleY(.06); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes chartBarSpread {
  from { opacity: .45; transform: scaleX(.04); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes chartLineDraw {
  from { stroke-dashoffset: 1400; }
  to { stroke-dashoffset: 0; }
}

@keyframes chartAreaReveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes chartPointPop {
  from { opacity: 0; transform: scale(.78); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes chartRingTurn {
  from { opacity: .45; transform: rotate(-42deg) scale(.94); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes metricValueSettle {
  from { opacity: .65; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motionSoftFade {
  from { opacity: .76; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.is-page-entering,.is-chart-refreshing) .ds-metric-card__sparkline i,
  :is(.is-page-entering,.is-chart-refreshing) .kpi-mini-chart i,
  :is(.is-page-entering,.is-chart-refreshing) .member-bar-stack i,
  :is(.is-page-entering,.is-chart-refreshing) .stacked-bar-track i,
  :is(.is-page-entering,.is-chart-refreshing) .finance-combo-chart > div i,
  :is(.is-page-entering,.is-chart-refreshing) .ranking-list > div > i em,
  :is(.is-page-entering,.is-chart-refreshing) .health-track i,
  :is(.is-page-entering,.is-chart-refreshing) .trend-line,
  :is(.is-page-entering,.is-chart-refreshing) .dashboard-chart svg > path,
  :is(.is-page-entering,.is-chart-refreshing) .retention-line,
  :is(.is-page-entering,.is-chart-refreshing) .finance-combo-chart svg > path,
  :is(.is-page-entering,.is-chart-refreshing) .trend-svg > path:not(.trend-line),
  :is(.is-page-entering,.is-chart-refreshing) .trend-dot,
  :is(.is-page-entering,.is-chart-refreshing) .dashboard-chart svg > circle,
  :is(.is-page-entering,.is-chart-refreshing) .retention-dots circle,
  :is(.is-page-entering,.is-chart-refreshing) .finance-combo-chart circle,
  :is(.is-page-entering,.is-chart-refreshing) .dashboard-donut,
  :is(.is-page-entering,.is-chart-refreshing) .member-donut,
  :is(.is-page-entering,.is-chart-refreshing) .service-metrics .metric-card strong,
  :is(.is-page-entering,.is-chart-refreshing) .task-overview .task-item b,
  :is(.is-page-entering,.is-chart-refreshing) .reference-touch-metrics > div b {
    animation: motionSoftFade 160ms ease-out both !important;
    transform: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    clip-path: none !important;
  }

  button:not(:disabled),
  [role="button"],
  .secondary-link,
  .link-action { transition-duration: 1ms !important; }
}
