.dashboard-page { max-width: 1920px; margin: 0 auto; }
.dashboard-page .dashboard-heading { align-items: center; gap: 16px; margin-bottom: 16px; }
.dashboard-heading h2 { font-size: 24px; font-weight: 700; color: #10284b; letter-spacing: -.5px; }
.dashboard-heading p { margin: 6px 0 0; font-size: 13px; color: #4f688b; }
.dashboard-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.dashboard-date, .dashboard-page .dashboard-refresh { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 10px; background: rgb(255 255 255 / 68%); color: #294772; font-size: 12px; box-shadow: 0 2px 9px rgb(75 105 158 / 4%); }
.dashboard-date { padding: 0 12px; }
.dashboard-date .el-icon { font-size: 16px; }
.dashboard-date > span { color: #647da1; border-left: 1px solid var(--admin-line); padding-left: 8px; }
.dashboard-page .dashboard-refresh { padding: 0 14px; }
.dashboard-refresh > span { gap: 6px; }
.dashboard-page .dashboard-refresh:hover { background: #fff; border-color: #a9cbff; }
.dashboard-page .dashboard-status { gap: 8px 16px; margin: 0; font-size: 12px; }
.dashboard-status > span { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.dashboard-status .el-alert { margin-bottom: 12px; border-radius: 10px; }
.loading-dot { width: 6px; height: 6px; border-radius: 50%; background: #438af1; }
.dashboard-page .stat-card, .dashboard-page .panel { background: rgb(255 255 255 / 70%); border: 1px solid rgb(255 255 255 / 78%); border-radius: 16px; box-shadow: var(--admin-shadow); min-width: 0; }
.dashboard-page .business-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.dashboard-page .kpi-card { position: relative; display: flex; align-items: flex-start; gap: 16px; min-height: 126px; padding: 20px 18px; overflow: hidden; transition: transform 180ms, box-shadow 180ms, border-color 180ms; }
.dashboard-page .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgb(43 82 143 / 12%); border-color: #fff; }
.tone-blue { --metric-color: #2878ff; --metric-soft: #c8e2ff; }
.tone-green { --metric-color: #0bb47d; --metric-soft: #b8f2de; }
.tone-purple { --metric-color: #8657f5; --metric-soft: #ddd0ff; }
.tone-orange { --metric-color: #f68029; --metric-soft: #ffe0be; }
.tone-cyan { --metric-color: #278cff; --metric-soft: #c0e5ff; }
.tone-pink { --metric-color: #f34b85; --metric-soft: #ffd1e1; }
.metric-icon, .resource-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: radial-gradient(circle at 35% 30%, #f8fcff, var(--metric-soft)); color: var(--metric-color); border: 1px solid rgb(255 255 255 / 85%); box-shadow: 0 3px 14px color-mix(in srgb, var(--metric-color) 13%, transparent); }
.metric-icon { width: 54px; height: 54px; border-radius: 50%; font-size: 29px; }
.metric-content { min-width: 0; flex: 1; position: relative; z-index: 1; }
.dashboard-page .stat-card .label { font-size: 13px; font-weight: 500; color: #52688f; }
.dashboard-page .stat-card .value { margin-top: 4px; color: #142b55; font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-page .stat-card .extra { margin-top: 6px; font-size: 12px; line-height: 1.45; color: #617697; overflow-wrap: anywhere; }
.trend-placeholder { position: absolute; right: 18px; bottom: 20px; width: 108px; text-align: right; color: #687e9d; opacity: .72; }
.trend-placeholder > span { display: block; width: 64px; margin: 0 0 8px auto; border-top: 1px dashed #8fa6c8; }
.trend-placeholder small { font-size: 10px; }
.dashboard-page .revenue-caption { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: 11px; color: #647b9c; line-height: 1.5; margin: 10px 2px; }
.dashboard-page .resource-cards { grid-template-columns: 1.15fr 1.3fr .85fr .85fr .85fr; gap: 12px; margin: 12px 0 16px; }
.dashboard-page .resource-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px; min-height: 124px; border-radius: 14px; }
.resource-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 24px; }
.resource-content { min-width: 0; flex: 1; }
.dashboard-page .resource-card .value { font-size: 25px; }
.dashboard-page .resource-card .extra { font-size: 11px; margin-top: 4px; }
.dashboard-page .resource-card .resource-meta { font-size: 10px; line-height: 1.4; }
.package-title { position: relative; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; padding: 0 12px 0 0; text-align: left; border: 0; background: transparent; color: #1c355b; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; }
button.package-title { cursor: pointer; }
button.package-title:hover { color: var(--admin-accent); }
.package-title .el-icon { position: absolute; right: -2px; top: 5px; color: #6382b4; }
.operations-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 14px; align-items: stretch; }
.dashboard-page .panel { padding: 16px; margin: 0; min-height: 328px; }
.dashboard-page .panel-title { font-size: 15px; color: #172e55; margin-bottom: 12px; }
.panel-title > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.panel-title .el-icon { color: #397ffa; font-size: 18px; }
.period-label { padding: 4px 9px; font-size: 11px; font-weight: 400; border: 1px solid #dce7f8; border-radius: 8px; color: #5c7397; background: rgb(255 255 255 / 64%); }
.behavior-empty { position: relative; min-height: 104px; text-align: center; }
.behavior-empty .el-empty { padding: 0; }
.behavior-empty .el-empty__description { margin-top: 0; }
.behavior-empty .el-empty__description p { font-size: 12px; color: #7086a8; }
.behavior-empty > p { margin: 4px 0 0; font-size: 11px; color: #768bac; }
.behavior-empty .el-empty { --el-empty-fill-color-1: #e5f0ff; --el-empty-fill-color-2: #d9eaff; --el-empty-fill-color-3: #f0f7ff; --el-empty-fill-color-4: #d3e5ff; --el-empty-fill-color-5: #ecf4ff; --el-empty-fill-color-6: #c9dfff; --el-empty-fill-color-7: #dbeaff; --el-empty-fill-color-8: #c4dcff; --el-empty-fill-color-9: #b8d3fa; }
.behavior-counts { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 12px 4px 20px; min-height: 104px; }
.behavior-counts span { display: block; font-size: 12px; color: #657e9f; }
.behavior-counts strong { display: block; margin-top: 4px; font-size: 24px; font-variant-numeric: tabular-nums; }
.dashboard-page .ranking-title { margin-top: 16px; margin-bottom: 6px; }
.dashboard-table-wrap { min-width: 0; overflow-x: auto; }
.dashboard-page .el-table { --el-table-border-color: var(--admin-line); --el-table-header-bg-color: transparent; --el-table-bg-color: transparent; --el-table-tr-bg-color: transparent; --el-table-row-hover-bg-color: rgb(217 234 255 / 42%); --el-table-text-color: #304b76; --el-table-header-text-color: #6a80a3; --el-fill-color-blank: transparent; font-size: 12px; }
.dashboard-page .el-table th.el-table__cell { font-weight: 400; height: 32px; }
.dashboard-page .el-table td.el-table__cell { height: 44px; padding: 5px 0; }
.dashboard-page .el-table .cell { padding-left: 8px; padding-right: 8px; line-height: 1.5; }
.dashboard-page .sync-table th.el-table__cell { background: rgb(223 233 253 / 32%); }
.dashboard-page .sync-table .el-table__header-wrapper { border-radius: 8px; }
.dashboard-page .sync-table .el-table__empty-block { min-height: 228px; }
.dashboard-page .el-table__empty-text { color: #8295b2; font-size: 12px; }
.rank-badge { display: inline-flex; width: 22px; height: 25px; align-items: center; justify-content: center; border-radius: 50% 50% 40% 40%; color: #697c98; font-size: 12px; font-weight: 600; }
.rank-1 { background: linear-gradient(135deg, #fff4ba, #f9d568); color: #9d6511; }
.rank-2 { background: linear-gradient(135deg, #f2f6fd, #c6d3e8); color: #5c6f91; }
.rank-3 { background: linear-gradient(135deg, #ffe2c8, #efb38e); color: #945426; }
.ranking-poster { display: block; width: 24px; height: 36px; border-radius: 4px; }
.poster-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #e0ebfa; color: #7c9dc8; }
.play-cell { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.play-cell > span { min-width: 20px; margin-left: auto; text-align: right; }
.play-track { height: 6px; flex: 1; min-width: 28px; border-radius: 5px; background: #dce3ef; overflow: hidden; }
.play-track > span { display: block; height: 100%; border-radius: inherit; }
.play-color-0 { background: linear-gradient(90deg, #3485ff, #8bbfff); }
.play-color-1 { background: linear-gradient(90deg, #8c68fa, #bda3ff); }
.play-color-2 { background: linear-gradient(90deg, #f04e91, #ff9bc5); }
.dashboard-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #347cff; font: inherit; font-weight: 400; font-size: 12px; cursor: pointer; }
.dashboard-link:hover { color: #1755bf; }
.dashboard-link:focus-visible, .package-title:focus-visible { outline: 2px solid #347cff; outline-offset: 3px; border-radius: 4px; }
.supplier-cell { display: inline-flex; align-items: center; gap: 6px; }
.supplier-symbol { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; color: #2786f7; background: #dcecff; font-size: 17px; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 6px; font-size: 11px; white-space: nowrap; color: #677d9e; background: #e8edf6; }
.sync-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sync-status.is-success { background: #e0f7ee; color: #14946b; }
.sync-status.is-running { background: #e1efff; color: #2779e4; }
.sync-status.is-failed { background: #ffeaef; color: #d94d70; }
.sync-time { font-variant-numeric: tabular-nums; font-size: 11px; color: #7186a7; white-space: nowrap; }
@media (max-width: 1600px) {
  .dashboard-page .kpi-card { gap: 12px; padding: 18px 16px; min-height: 126px; }
  .metric-icon { width: 48px; height: 48px; font-size: 26px; }
  .trend-placeholder { width: 74px; right: 14px; bottom: 14px; }
  .trend-placeholder > span { width: 40px; }
  .dashboard-page .resource-card { gap: 8px; padding: 14px 12px; }
  .resource-icon { width: 30px; height: 32px; font-size: 21px; border-radius: 10px; }
  .dashboard-page .resource-card .label { font-size: 12px; }
  .dashboard-page .resource-card .value { font-size: 24px; }
}
@media (max-width: 1250px) {
  .dashboard-page .resource-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
  .trend-placeholder { display: none; }
  .dashboard-page .kpi-card .extra { max-width: none; min-width: 0; }
}
@media (max-width: 900px) {
  .dashboard-page .business-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .dashboard-page .business-stats, .dashboard-page .resource-cards { grid-template-columns: minmax(0, 1fr); }
  .dashboard-page .kpi-card { min-height: 114px; }
  .dashboard-page .resource-card { min-height: 100px; }
  .dashboard-page .dashboard-date { padding: 0 8px; font-size: 11px; }
  .dashboard-tools { gap: 8px; }
  .dashboard-page .panel { padding: 12px; }
  .dashboard-page .ranking-table, .dashboard-page .sync-table { min-width: 460px; }
  .dashboard-heading h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .kpi-card:hover { transform: none; }
}
