.comparison-table[data-compare-deck] {
  container: article-comparison / inline-size;
  overflow: visible;
}
.compare-nav { display: none; }
@media screen {
  @container article-comparison (max-width: 620px) {
    .prose .comparison-table[data-compare-deck] table {
      display: block;
      min-inline-size: 0;
      inline-size: 100%;
      border: 0;
      background: transparent;
    }
    .comparison-table[data-compare-deck] caption {
      display: block;
      margin-bottom: 10px;
      text-align: left;
      color: #40574f;
      font-size: .875rem;
      font-weight: 650;
    }
    .comparison-table[data-compare-deck] thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    .comparison-table[data-compare-deck] tbody {
      display: flex;
      gap: 10px;
      width: 100%;
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      scroll-snap-type: x mandatory;
      scrollbar-width: thin;
      scrollbar-color: #82a69a #ecf1ef;
      padding: 2px 0 7px;
    }
    .comparison-table[data-compare-deck] tbody tr {
      flex: 0 0 calc(100% - 26px);
      display: flex;
      flex-direction: column;
      align-items: stretch;
      scroll-snap-align: start;
      min-width: 0;
      padding: 16px;
      border: 1px solid #b4c9c0;
      border-top: 4px solid #225f51;
      border-radius: 8px;
      background: #fff;
    }
    .prose .comparison-table[data-compare-deck] tbody td {
      display: block;
      padding: 0;
      border: 0;
      color: #162b27;
      background: #fff;
      font-size: .9375rem;
      line-height: 1.65;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    .comparison-table[data-compare-deck] td::before {
      content: attr(data-label);
      display: block;
      margin-bottom: 2px;
      color: #3f6559;
      font-size: .8125rem;
      font-weight: 650;
    }
    .prose .comparison-table[data-compare-deck] tbody td:first-child {
      padding-bottom: 9px;
      margin-bottom: 10px;
      border-bottom: 1px solid #d6e1dc;
      color: #154c3f;
      font-size: 1.45rem;
      font-weight: 750;
      line-height: 1.35;
      font-variant-numeric: tabular-nums;
    }
    .prose .comparison-table[data-compare-deck] tbody td + td + td { margin-top: 8px; }
    .prose .comparison-table[data-compare-deck] td[data-label="提供者"] { font-weight: 700; }
    .compare-nav { display: flex; align-items: center; gap: 9px; min-height: 46px; color: #254a3e; }
    .compare-position { font-size: .875rem; font-weight: 750; font-variant-numeric: tabular-nums; }
    .compare-swipe { font-size: .8125rem; color: #466257; }
    .compare-buttons { display: inline-flex; gap: 5px; margin-inline-start: auto; }
    .compare-buttons[hidden] { display: none; }
    .compare-buttons button {
      min-width: 46px;
      min-height: 44px;
      padding: 4px 8px;
      border: 1px solid #648577;
      border-radius: 8px;
      background: #f2f7f4;
      color: #174a3d;
      font-family: inherit;
      font-size: .875rem;
      font-weight: 650;
      line-height: 1.3;
    }
    .compare-buttons button:disabled { color: #65746c; border-color: #c8d2cd; background: #f4f5f4; cursor: default; }
    [data-compare-deck]:not([data-compare-ready]) .compare-position { display: none; }
  }
}
