/* 首页紧凑报表与报表页共用；数字等宽排列，手机提供逐日金额选择。 */
.report-section {
  position: relative;
  padding: 66px 0;
  background: linear-gradient(135deg, #f8faff 10%, #eef4ff);
}
.report-preview { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: 48px; }
.report-copy { min-width: 0; }
.report-title { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.4; font-weight: 700; }
.report-title-accent { display: block; color: var(--saas-accent); }
.reports-page .report-lede { max-width: 430px; margin: 20px 0 0; color: var(--saas-muted); font-size: 16px; line-height: 1.95; }
.report-features { display: grid; gap: 23px; margin-top: 34px; }
.report-feature { display: flex; min-width: 0; align-items: center; gap: 14px; }
.report-feature-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid #d9eaee; border-radius: 13px; background: rgba(255, 255, 255, .8); color: var(--saas-accent); }
.report-feature-icon svg { width: 27px; height: 27px; fill: currentColor; stroke: currentColor; }
.report-feature-copy { min-width: 0; }
.report-feature h3 { margin: 0; font-size: 16px; font-weight: 650; }
.report-feature p { margin: 4px 0 0; color: var(--saas-muted); font-size: 13px; line-height: 1.7; }
.report-panel { min-width: 0; padding: 28px; border: 1px solid #dce8ed; border-radius: 22px; background: #fff; box-shadow: 0 18px 55px -12px rgba(32, 89, 108, .15); }
.report-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 23px; border-bottom: 1px solid #e8eff2; }
.report-panel-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.5; }
.report-demo-note { display: block; margin-top: 6px; color: var(--saas-muted); font-size: 12px; }
.report-controls { display: inline-flex; flex-shrink: 0; gap: 3px; padding: 4px; border: 1px solid #e1ebee; border-radius: 10px; background: #f4f8f9; }
.report-period { min-width: 66px; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--saas-muted); cursor: pointer; font-size: 13px; font-weight: 500; transition: background-color 160ms ease, box-shadow 160ms ease; }
.report-period[aria-pressed="true"] { color: var(--saas-accent); background: #fff; box-shadow: 0 2px 7px rgba(27, 61, 78, .1); font-weight: 650; }
.report-period:hover { color: var(--saas-accent); background: #e8f3f5; }
.report-period[aria-pressed="true"]:hover { background: #fff; }
.report-period:focus-visible { outline-offset: 1px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 27px; }
.report-metric { min-width: 0; padding: 0 15px; border-right: 1px solid #e3ecef; }
.report-metric:first-child { padding-left: 0; }
.report-metric:last-child { padding-right: 0; border-right: 0; }
.report-metric-label, .report-summary-label { display: block; color: var(--saas-muted); font-size: 12px; }
.report-metric-value { display: block; margin-top: 8px; color: var(--saas-ink); font-family: "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: clamp(23px, 2vw, 29px); font-weight: 650; letter-spacing: -.055em; line-height: 1.3; white-space: nowrap; }
.report-metric:first-child .report-metric-value { color: var(--saas-accent); }
.report-trend { margin-top: 30px; }
.report-trend-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--saas-ink); font-size: 14px; font-weight: 600; }
.report-trend-title::before { width: 5px; height: 13px; border-radius: 3px; background: var(--saas-accent); content: ""; }
.report-chart-wrap { position: relative; min-width: 0; }
.report-chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.report-chart-grid { stroke: #e5edef; stroke-dasharray: 3 5; }
.report-chart-guide { stroke: #edf2f4; stroke-dasharray: 2 6; }
.report-chart-axis { fill: #617985; font-size: 11px; font-variant-numeric: tabular-nums; }
.report-chart-area { pointer-events: none; }
.report-chart-line { fill: none; stroke: var(--saas-accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.report-chart-point { fill: var(--saas-accent); stroke: #fff; stroke-width: 2; cursor: pointer; }
.report-chart-point:focus-visible { stroke: var(--saas-ink); stroke-width: 3; outline: none; }
.report-chart-tooltip { position: absolute; z-index: 2; width: max-content; max-width: calc(100% - 8px); padding: 8px 11px; border-radius: 8px; color: #fff; background: var(--saas-ink); box-shadow: 0 5px 15px rgba(18, 47, 61, .1); font-size: 12px; line-height: 1.6; pointer-events: none; transform: translate(-50%, -120%); }
.report-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; padding: 18px; border: 1px solid #e6eef1; border-radius: 12px; background: #f7fafb; }
.report-summary-item { min-width: 0; padding: 0 16px; border-right: 1px solid #dfe9ed; }
.report-summary-item:first-child { padding-left: 0; }
.report-summary-item:last-child { padding-right: 0; border-right: 0; }
.report-summary-value { display: block; margin-top: 5px; color: var(--saas-ink); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.report-summary-item:last-child .report-summary-value { color: var(--saas-accent); }
@media (max-width: 1080px) {
  .report-preview { grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: 28px; }
  .report-title { font-size: 32px; }
  .report-panel { padding: 24px; }
  .report-panel-title { font-size: 20px; }
  .report-metric { padding-inline: 10px; }
  .report-metric-value { font-size: 24px; }
  .report-feature-icon { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (max-width: 1000px) {
  .report-section { padding-block: 46px; }
  .report-preview { grid-template-columns: 1fr; gap: 26px; }
  .report-copy { display: contents; }
  .report-title { order: 0; font-size: 38px; }
  .reports-page .report-lede { order: 1; margin: -8px 0 0; max-width: 650px; }
  .report-panel { order: 2; }
  .report-features { order: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; gap: 24px; }
  .report-feature { align-items: flex-start; flex-direction: column; gap: 12px; }
  .report-metric-value { font-size: 28px; }
}
@media (max-width: 600px) {
  .report-section { padding-block: 36px; }
  .report-preview { gap: 24px; }
  .report-title { font-size: clamp(29px, 8.4vw, 35px); }
  .reports-page .report-lede { font-size: 15px; line-height: 1.85; }
  .report-panel { padding: 21px 18px; border-radius: 18px; }
  .report-panel-head { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 20px; }
  .report-panel-title { font-size: 21px; }
  .report-demo-note { font-size: 11px; }
  .report-period { min-width: 70px; min-height: 40px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; margin-top: 24px; }
  .report-metric, .report-metric:first-child, .report-metric:last-child { padding: 0 14px; border: 0; }
  .report-metric:nth-child(odd) { padding-left: 0; border-right: 1px solid #e3ecef; }
  .report-metric:nth-child(even) { padding-right: 0; padding-left: 22px; }
  .report-metric-value { margin-top: 6px; font-size: 26px; }
  .report-trend { margin-top: 27px; }
  .report-summary { padding: 13px 10px; }
  .report-summary-item { padding-inline: 9px; }
  .report-summary-label { font-size: 11px; }
  .report-summary-value { font-size: clamp(15px, 4.3vw, 20px); }
  .report-features { grid-template-columns: 1fr; gap: 20px; padding-top: 8px; }
  .report-feature { flex-direction: row; align-items: center; gap: 14px; }
  .report-feature-icon { width: 44px; height: 44px; flex-basis: 44px; }
}
@media (max-width: 360px) {
  .report-panel { padding-inline: 15px; }
  .report-metric-value { font-size: 24px; }
  .report-summary { padding-inline: 8px; }
  .report-summary-item { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { .report-period { transition: none; } }

/* 统一蓝白报表主题；首页只显示经营面板，完整说明保留在报表页。 */
.report-panel { border-color: var(--saas-line); box-shadow: 0 18px 45px -26px rgba(31, 65, 122, .22); }
.report-feature-icon, .report-panel-head, .report-metric, .report-summary-item { border-color: var(--saas-line); }
.report-controls { border-color: var(--saas-line); background: #f3f6fb; }
.report-period { min-height: 44px; }
.report-period:hover { background: #e7efff; }
.report-chart-grid { stroke: #e3eaf4; }
.report-chart-guide { stroke: #edf1f7; }
.report-chart-axis { fill: var(--saas-muted); }
.report-summary { border-color: var(--saas-line); background: #f6f8fc; }
.report-demo-note, .report-summary-label { font-size: 12px; }
.reports-page .report-lede { text-wrap: balance; }
.report-trend-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.report-trend-head .report-trend-title { margin: 0; flex-shrink: 0; }
.report-daily-details { width: 163px; max-width: 65%; min-height: 44px; padding: 8px; border: 1px solid var(--saas-line); border-radius: 8px; color: var(--saas-muted); background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.report-preview-compact { display: block; }
.report-preview-compact .report-panel { padding: 24px; border-radius: 17px; box-shadow: none; }
.report-preview-compact .report-panel-title { font-size: 21px; }
.report-preview-compact .report-panel-head { padding-bottom: 19px; }
.report-preview-compact .report-metrics { margin-top: 22px; }
.report-preview-compact .report-metric { padding-inline: 10px; }
.report-preview-compact .report-metric:first-child { padding-left: 0; }
.report-preview-compact .report-metric:last-child { padding-right: 0; }
.report-preview-compact .report-metric-value { font-size: clamp(21px, 1.75vw, 25px); }
.report-preview-compact .report-trend { margin-top: 22px; }
.report-preview-compact .report-summary { padding: 15px 14px; }
.report-preview-compact .report-summary-value { font-size: 21px; }
.report-fallback { min-height: 460px; padding: 28px; border-radius: 17px; background: #fff; }
@media (max-width: 600px) {
  .report-preview-compact .report-panel { padding: 20px 16px; border-radius: 14px; }
  .report-preview-compact .report-panel-head { gap: 12px; padding-bottom: 18px; }
  .report-preview-compact .report-metric { padding-inline: 0; }
  .report-preview-compact .report-metric:nth-child(even) { padding-left: 22px; }
  .report-preview-compact .report-metric-value { font-size: 25px; }
  .report-preview-compact .report-summary { padding: 13px 10px; }
  .report-preview-compact .report-summary-value { font-size: clamp(15px, 4.2vw, 20px); }
}
