.home-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: stretch;
  gap: 18px;
  min-width: 0;
}

.home-dash .home-insights-grid > .dashboard-panel {
  position: relative;
  min-width: 0;
  padding: 25px 26px 26px;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px -28px rgba(25, 47, 70, .72);
}

.home-dash .home-insights-grid .dashboard-panel-head {
  align-items: center;
  min-height: 48px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eef4;
}

.home-dash .home-insights-grid .dashboard-panel-head h2 {
  display: block;
  width: fit-content;
}

.home-dash .home-insights-grid .dashboard-panel-head p {
  margin: 6px 0 0;
  color: #526579;
  font-size: 12px;
  line-height: 1.5;
}

.home-insights-grid .text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  color: #8a5203;
  background: #fff4e3;
  text-decoration: none;
}
.home-insights-grid .text-action:hover { color: #6f4000; background: #ffe9c7; }

.home-insights-grid .text-action:focus-visible {
  outline: 2px solid #9f5e00;
  outline-offset: 2px;
}

.home-appeal-knowledge-viewport {
  box-sizing: border-box;
  height: 247px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #f6f9fc;
  box-shadow: inset 0 0 0 1px #e1e9f1;
}

.home-appeal-knowledge-track {
  animation: home-appeal-knowledge-scroll 32s linear infinite;
}

.home-appeal-knowledge-track ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-appeal-knowledge-track li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  height: 49px;
  padding: 0 15px;
  border-bottom: 1px solid #e5ecf3;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .55);
}
.home-appeal-knowledge-track li:nth-child(even) { background: rgba(244, 248, 252, .82); }

.home-appeal-knowledge-track li > span {
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  height: 25px;
  border-radius: 6px;
  color: #8f570d;
  background: #fff1dc;
  font-family: 'DM Sans', var(--poa-font-sans);
  font-size: 11px;
  font-weight: 800;
}

.home-appeal-knowledge-track strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #273c52;
  font-size: var(--poa-module-copy-size);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-appeal-knowledge-track li::after {
  content: "";
  flex: 1 1 42px;
  min-width: 24px;
  max-width: 150px;
  height: 1px;
  margin-left: auto;
  border-radius: 99px;
  background: linear-gradient(90deg, #dce5ee, rgba(240, 149, 24, .72));
}

@keyframes home-appeal-knowledge-scroll {
  to { transform: translateY(-50%); }
}

.home-insights-grid .recent-case-table {
  margin-top: 0;
}

.home-insights-grid .recent-case-head,
.home-insights-grid .recent-case-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, .65fr) minmax(0, 1.85fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 5px;
  font-size: 11px;
}

.home-insights-grid .recent-case-head {
  min-height: 38px;
  padding-block: 9px;
  border-radius: 9px;
  color: #f4f8fc;
  background: #20374f;
  letter-spacing: .02em;
}

.home-insights-grid .recent-case-item {
  min-height: 58px;
  margin-bottom: 7px;
  border: 1px solid #e3eaf1;
  background: #f9fbfd;
  box-shadow: none;
}
.home-insights-grid .recent-case-item:hover { border-color: #d4e0eb; background: #fff; }
.home-insights-grid .recent-case-item > span:first-child {
  color: #607287;
  font-variant-numeric: tabular-nums;
}
.home-insights-grid .recent-case-item > span:nth-child(2) { color: #273c52; font-weight: 700; }
.home-insights-grid .recent-case-item > span:nth-child(3) {
  justify-self: center;
  width: max-content;
  padding: 3px 7px;
  border-radius: 5px;
  color: #47647f;
  background: #eaf1f7;
}
.home-insights-grid .recent-case-item > span.case-money {
  justify-self: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 5px;
  color: #8a5203;
  background: #fff1da;
}
.home-insights-grid .recent-case-item::before {
  top: 11px;
  bottom: 11px;
  width: 2px;
}

.home-insights-grid .recent-case-viewport {
  height: 205px;
  margin-top: 9px;
}

/* Keep the recent-cases table on one deliberate type scale. The values still
   use weight and color for hierarchy, but no longer switch font families or
   sizes from column to column. */
.home-insights-grid .recent-cases-panel,
.home-insights-grid .recent-cases-panel .dashboard-panel-head,
.home-insights-grid .recent-cases-panel .recent-case-table {
  font-family: var(--poa-font-sans, "Noto Sans SC", "Microsoft YaHei", sans-serif);
}

.home-insights-grid .recent-cases-panel .dashboard-panel-head h2 {
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.home-insights-grid .recent-cases-panel .dashboard-panel-head p {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.home-insights-grid .recent-cases-panel .text-action {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.home-insights-grid .recent-cases-panel .recent-case-head,
.home-insights-grid .recent-cases-panel .recent-case-item {
  font-family: inherit;
  font-size: 11px;
  line-height: 1.45;
}

.home-insights-grid .recent-cases-panel .recent-case-head {
  font-weight: 700;
}

.home-insights-grid .recent-cases-panel .recent-case-item > span {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}

.home-insights-grid .recent-cases-panel .recent-case-item > span:nth-child(2) {
  font-weight: 600;
}

.home-insights-grid .recent-cases-panel .recent-case-item > span.case-money {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .home-insights-grid { grid-template-columns: 1fr; }
  .home-dash .home-insights-grid > .dashboard-panel { padding: 21px 17px 22px; border-radius: 13px; }
}

/* 小屏下压缩案例表格文字，避免六列文案互相挤压。 */
@media (max-width: 620px) {
  .home-insights-grid .recent-cases-panel .recent-case-head,
  .home-insights-grid .recent-cases-panel .recent-case-item {
    font-size: 9px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-appeal-knowledge-viewport { overflow-y: auto; }
  .home-appeal-knowledge-track { animation: none; }
  .home-appeal-knowledge-track ul[aria-hidden] { display: none; }
  .home-insights-grid .recent-case-item[aria-hidden] { display: none; }
}
