.analysis-page {
  min-height: calc(100vh - 80px);
  padding: 12px 16px 16px;
  background: #f5f5f5;
  color: #080808;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
.analysis-page *, .analysis-detail-modal * { box-sizing: border-box; letter-spacing: 0; }
.dashboard-analysis-active .vben-menu, .dashboard-analysis-active .vben-menu.is-light {
  --menu-item-height: 44px;
  --menu-item-padding-y: 0px;
  --menu-item-margin-y: 0px;
  --menu-item-margin-x: 0px;
  --menu-item-radius: 0px;
  --menu-item-active-background-color: #e6eff8;
  --menu-item-active-color: #0068df;
  --menu-font-size: 14px;
}
.dashboard-analysis-active .vben-menu-item.is-active { border-right: 2px solid #0969d7; }
.analysis-page button { cursor: pointer; font: inherit; }
.analysis-page button:focus-visible { outline: 2px solid #1677ff; outline-offset: 3px; }
.analysis-refresh-bar { height: 20px; display: flex; justify-content: flex-end; align-items: flex-start; gap: 12px; }
.analysis-refresh { color: #9da8b8; border: 0; background: none; font-size: 12px !important; line-height: 16px; padding: 0; }
.analysis-refresh:disabled { cursor: wait; }
.analysis-error { color: #e5484d; font-size: 12px; }
.analysis-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 12px; }
.analysis-stat { position: relative; isolation: isolate; height: 127px; min-width: 0; border: 1px solid #ececec; border-radius: 8px; background: transparent; overflow: hidden; }
.analysis-stat::before, .analysis-stat::after { content: ""; position: absolute; pointer-events: none; }
.analysis-stat::before { inset: 2px; z-index: 1; border-radius: 6px; background: #fff; }
.analysis-stat::after { inset: 0; z-index: 0; border-radius: inherit; background: conic-gradient(transparent 0deg 45deg, rgb(22 119 255 / 8%) 105deg, rgb(22 119 255 / 32%) 195deg, #1677ff 285deg, #62b5ff 330deg, #1677ff 360deg); opacity: 0; transition: opacity .2s ease; }
.analysis-stat-head, .analysis-stat-body { position: relative; z-index: 2; }
.analysis-stat:hover::after { opacity: 1; will-change: transform; animation: analysis-border-run 2.8s linear infinite; }
@keyframes analysis-border-run { to { transform: rotate(1turn); } }
.analysis-stat-head { display: flex; height: 36px; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px; border-bottom: 1px solid #eeeeee; }
.analysis-stat-head h3 { font-size: 14px; font-weight: 600; line-height: 20px; margin: 0; min-width: 0; }
.analysis-badge { flex-shrink: 0; border: 1px solid; border-radius: 3px; height: 22px; padding: 0 7px; font-size: 12px !important; line-height: 20px; }
.badge-green { color: #52c41a; border-color: #b7eb8f; background: #f6ffed; }
.badge-blue { color: #1677ff; border-color: #91caff; background: #e6f4ff; }
.badge-orange { color: #fa8c16; border-color: #ffd591; background: #fff7e6; }
.badge-purple { color: #722ed1; border-color: #d3adf7; background: #f9f0ff; }
.badge-red { color: #f5222d; border-color: #ffa39e; background: #fff1f0; }
.analysis-badge:hover { filter: brightness(.96); }
.analysis-stat-body { position: relative; height: 90px; padding: 9px 12px 0; }
.analysis-stat-total { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-right: 31px; min-height: 26px; }
.analysis-stat-value { font-size: 20px; font-weight: 400; line-height: 26px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.analysis-stat-share { color: #929db0; font-size: 12px; line-height: 16px; }
.analysis-stat-icon { position: absolute; right: 12px; top: 15px; width: 30px; height: 30px; }
.analysis-stat-art { position: absolute; right: 9px; top: 12px; width: 36px; height: 36px; object-fit: contain; }
.analysis-stat-icon.tone-gold { color: #5d899a; background: #ffe55b; border: 1px solid #707070; border-radius: 50%; padding: 2px; }
.analysis-stat-icon.tone-salmon { color: #597883; fill: #f4afa5; stroke-width: 1; }
.analysis-stat-icon.tone-sky { color: #409eff; fill: #8ed4ff; stroke-width: 1.5; }
.analysis-stat-icon.tone-cyan { color: #2486a4; fill: #42c4ee; stroke-width: 1; }
.analysis-stat-icon.tone-mint, .analysis-stat-icon.tone-violet, .analysis-stat-icon.tone-coral { width: 28px; height: 28px; color: #fff; border-radius: 50%; padding: 6px; }
.analysis-stat-icon.tone-mint { background: #66ebbb; }
.analysis-stat-icon.tone-violet { background: #8970f7; }
.analysis-stat-icon.tone-coral { background: #f59d91; }
.analysis-stat-icon.tone-emerald { color: #fff; fill: #20cf91; stroke: #20cf91; }
.analysis-stat-icon.tone-lavender { color: #8f86ff; fill: #d1ccff; }
.analysis-stat-compare { color: #929db0; font-size: 12px; line-height: 18px; white-space: nowrap; }
.analysis-up { color: #00c67e; }
.analysis-down { color: #ff4d4f; }
.analysis-stat-footer { position: absolute; bottom: 3px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; color: #70869e; font-size: 12px; line-height: 18px; }
.analysis-trends { margin-top: 24px; border: 1px solid #ececec; border-radius: 8px; background: #fff; overflow: hidden; }
.analysis-section-head { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid #eee; }
.analysis-section-head h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 24px; }
.analysis-more { background: none; border: 0; padding: 0; color: #0068df; font-size: 14px; line-height: 24px; }
.analysis-more:hover, .analysis-product-link:hover { color: #409eff; }
.analysis-trends-heading { height: 49px; border-bottom: 0; padding-top: 9px; }
.analysis-periods { display: flex; gap: 32px; height: 49px; padding: 0 24px; border-bottom: 1px solid #dedede; }
.analysis-periods button { position: relative; flex: none; height: 49px; padding: 0; font-size: 16px; line-height: 49px; color: #111; background: transparent; border: 0; }
.analysis-periods button.selected { color: #0068e8; }
.analysis-periods button.selected::after { position: absolute; content: ""; height: 2px; left: 0; right: 0; bottom: 0; background: #1677ff; }
.analysis-chart { height: 341px; padding: 0 24px 17px; }
.analysis-bottom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(360px, 3fr); gap: 16px; margin-top: 16px; }
.analysis-orders, .analysis-shortcuts { border: 1px solid #ececec; border-radius: 8px; background: #fff; overflow: hidden; min-width: 0; }
.analysis-order-list { list-style: none; padding: 22px 24px 24px; margin: 0; }
.analysis-order-list li { display: flex; gap: 16px; align-items: center; min-height: 73px; padding: 12px 24px; border-bottom: 1px solid #eee; }
.analysis-order-list li:last-child { border-bottom: 0; }
.analysis-order-list img { border-radius: 50%; object-fit: cover; flex: 0 0 38px; width: 38px; height: 38px; }
.analysis-order-info { min-width: 0; line-height: 22px; }
.analysis-order-info>div { overflow-wrap: anywhere; }
.analysis-order-user { font-weight: 500; }
.analysis-product-link { display: inline; color: #0068df; font-weight: 500 !important; background: none; border: 0; padding: 0; text-align: left; }
.analysis-order-info time { color: #929db0; font-size: 14px; display: block; margin-top: 5px; }
.analysis-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.analysis-shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.analysis-shortcut-grid button { display: flex; min-width: 0; min-height: 98px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 0; border-right: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 14px; line-height: 20px; padding: 12px 4px; }
.analysis-shortcut-grid button:nth-child(3n) { border-right: 0; }
.analysis-shortcut-grid button:nth-child(n+4) { border-bottom: 0; }
.analysis-shortcut-grid button:hover { background: #f7faff; }
.analysis-shortcut-grid svg { width: 18px; height: 18px; stroke-width: 1.5; }
.analysis-illustration { height: 250px; border: 1px solid #ececec; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.analysis-illustration img { height: 230px; width: 100%; object-fit: contain; }
.analysis-empty { min-height: 200px; display: flex; justify-content: center; align-items: center; color: #929db0; }
.analysis-back-top { position: fixed; right: 24px; bottom: 48px; width: 40px; height: 40px; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 4px 20px #0002; display: grid; place-items: center; z-index: 20; }
.analysis-back-top svg { width: 18px; height: 18px; }
.analysis-detail-modal .ant-modal-content { padding: 20px 24px; border-radius: 8px; }
.analysis-detail-modal .ant-modal-confirm-title { color: #222; font-size: 16px; line-height: 24px; font-weight: 600; }
.analysis-detail-modal .analysis-info-icon { width: 22px; height: 22px; color: #fff; fill: none; stroke: #fff; padding: 2px; border-radius: 50%; background: #0866cc; margin-right: 12px; flex-shrink: 0; }
.dashboard-analysis-active .vben-tabs-content .tab-item.is-active { background: #0866cc !important; color: #fff !important; border-color: #0866cc; border-radius: 6px 6px 0 0; height: 30px; align-self: flex-end; }
.dashboard-analysis-active .vben-tabs-content .tab-item.is-active * { color: #fff !important; }
.analysis-detail-modal .ant-modal-confirm-content { color: #222; font-size: 14px; line-height: 22px; }
.analysis-detail-divider { line-height: 22px; }
.analysis-detail-modal .ant-modal-confirm-btns { margin-top: 12px; }
.analysis-detail-modal .ant-btn { min-width: 64px; height: 32px; border-radius: 6px; }
.analysis-detail-modal .ant-btn-primary { background: #086ddd; }
@media (max-width: 1599px) {
  .analysis-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .analysis-bottom { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
}
@media (max-width: 1199px) {
  .analysis-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analysis-bottom { grid-template-columns: minmax(0, 1fr); }
  .analysis-right { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .analysis-illustration { height: 254px; }
}
@media (max-width: 767px) {
  .analysis-page { padding: 10px; }
  .analysis-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .analysis-stat { height: 151px; }
  .analysis-stat-head { height: 44px; padding: 0 8px; }
  .analysis-stat-head h3 { font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
  .analysis-stat-body { height: 106px; padding: 8px 8px 0; }
  .analysis-stat-share { font-size: 10px; }
  .analysis-stat-total { flex-direction: column; align-items: flex-start; min-height: 42px; gap: 0; padding-right: 32px; }
  .analysis-stat-value { font-size: 18px; }
  .analysis-stat-compare { font-size: 10px; line-height: 16px; white-space: normal; overflow-wrap: anywhere; }
  .analysis-stat-icon { width: 24px; height: 24px; right: 7px; }
  .analysis-stat-art { width: 28px; height: 28px; right: 5px; top: 14px; }
  .analysis-stat-footer { left: 8px; right: 8px; font-size: 10px; }
  .analysis-badge { padding: 0 4px; font-size: 10px !important; }
  .analysis-trends { margin-top: 16px; }
  .analysis-section-head { padding-left: 16px; padding-right: 16px; }
  .analysis-periods { padding-left: 16px; }
  .analysis-chart { padding-left: 0; padding-right: 4px; }
  .analysis-right { display: flex; }
  .analysis-order-list { padding: 6px 16px 12px; }
  .analysis-order-list li { padding-left: 0; padding-right: 0; gap: 12px; }
  .analysis-order-info { font-size: 13px; }
  .analysis-order-info time { font-size: 12px; }
  .analysis-back-top { right: 16px; bottom: 24px; }
  .analysis-detail-modal .ant-modal { max-width: calc(100vw - 24px); }
  .analysis-detail-modal .ant-modal-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .analysis-page * { scroll-behavior: auto !important; } }
