/* 可视化分析专用样式 */
.ana-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ana-month-select {
  border: 1px solid var(--line, #dfe5e9);
  background: #fff;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #17212b);
  cursor: pointer;
}
.ana-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.ana-kpi-card {
  background: #fff;
  border: 1px solid var(--line, #dfe5e9);
  border-radius: 8px;
  padding: 15px 16px;
}
.ana-kpi-card span {
  display: block;
  font-size: 12px;
  color: var(--muted, #65717e);
}
.ana-kpi-card strong {
  display: block;
  font-size: 21px;
  margin-top: 6px;
  letter-spacing: -0.5px;
}
.ana-kpi-card small {
  display: block;
  font-size: 11px;
  color: var(--muted, #65717e);
  margin-top: 4px;
}
.ana-grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 15px;
  margin-bottom: 16px;
}
.ana-donut-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 0;
}
.ana-donut-svg {
  width: 176px;
  height: 176px;
  flex-shrink: 0;
  overflow: visible;
}
.ana-donut-seg {
  transition: opacity 0.2s, stroke-width 0.2s;
  cursor: pointer;
}
.ana-donut-seg:hover {
  opacity: 0.88;
  stroke-width: 27;
}
.ana-legend-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
}
.ana-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 5px;
}
.ana-legend-item:hover {
  background: #f4f6f8;
}
.ana-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}
.ana-pct {
  color: var(--muted, #65717e);
  font-size: 12px;
  margin-left: 6px;
}
/* 资产与负债条 */
.ana-wealth-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #edf0f5;
  margin: 12px 0 14px;
}
.ana-wealth-seg {
  height: 100%;
  transition: width 0.3s;
}
/* 日历热力图 */
.ana-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.ana-cal-head {
  text-align: center;
  font-size: 11px;
  color: var(--muted, #65717e);
  padding-bottom: 4px;
}
.ana-cal-cell {
  border: 1px solid #eef1f4;
  border-radius: 6px;
  min-height: 54px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  background: #fafbfc;
  transition: transform 0.12s, border-color 0.12s;
}
.ana-cal-cell.has-data:hover {
  transform: translateY(-1px);
  border-color: #1b3b4b;
}
.ana-cal-cell .d-num {
  color: #65717e;
  font-weight: 600;
}
.ana-cal-cell .d-amt {
  font-weight: 700;
  font-size: 11px;
  text-align: right;
  word-break: break-all;
}
/* SVG 趋势折线图 */
.ana-trend-svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}
@media (max-width: 820px) {
  .ana-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .ana-grid-2 {
    grid-template-columns: 1fr;
  }
  .ana-donut-wrap {
    flex-direction: column;
  }
}

/* 进阶数据分析组件样式 */
.ana-insights-box {
  background: linear-gradient(135deg, #f1f6f5 0%, #f6f8fa 100%);
  border: 1px solid #cddbd7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.ana-insights-title {
  font-weight: 700;
  font-size: 14px;
  color: #143c35;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ana-insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: #2c3a47;
}
.ana-insights-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}
.ana-delta {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}
.ana-delta.up {
  background: #fee2e2;
  color: #991b1b;
}
.ana-delta.down {
  background: #d1fae5;
  color: #065f46;
}
.ana-delta.flat {
  background: #edf0f5;
  color: #65717e;
}
.ana-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 16px;
}
.ana-dow-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 148px;
  padding: 14px 6px 0;
  gap: 8px;
}
.ana-dow-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ana-dow-bar-wrap {
  width: 100%;
  height: 105px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ana-dow-bar {
  width: 22px;
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  transition: height 0.25s;
}
.ana-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 12.5px;
}
.ana-tier-row:last-child {
  border-bottom: 0;
}
@media (max-width: 960px) {
  .ana-grid-3 {
    grid-template-columns: 1fr;
  }
}
