.tools-plain__body {
  max-width: 1200px;
  margin: 0 auto;
}

.interest-calc {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.interest-calc__title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.interest-calc__title--result {
  display: none;
}

.interest-calc__title--rates {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: #222;
  transition: color 0.2s ease;
}

.interest-calc__rates-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.interest-calc__rates-toggle:hover {
  color: #6b7280;
}

.interest-calc__rates-title-text {
  display: inline;
}

.interest-calc.rates-collapsed .interest-calc__title--rates {
  display: flex;
  color: #9ca3af;
}

.interest-calc.rates-collapsed .interest-calc__rates-toggle {
  color: #9ca3af;
}

.interest-calc__title--rates-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  text-align: center;
  color: #222;
}

.interest-calc.rates-collapsed .interest-calc__title--rates-inner {
  display: none;
}

.interest-calc__title--result-inner {
  display: block;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  text-align: center;
}

.interest-calc__rates-expand {
  display: none;
  margin: 0.315rem 0 0; /* 0.35rem 少 10% */
  padding: 0;
  border: 0;
  background: transparent;
  color: #0066cc;
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
  text-align: inherit;
  text-decoration: none;
}

.interest-calc__rates-expand:hover {
  color: #004999;
  text-decoration: underline;
}

.interest-calc__panel.interest-calc__panel--rates-empty {
  display: none;
}

.interest-calc__note-wrap {
  margin-top: 0.75rem;
}

.interest-calc__note {
  margin: 0;
  color: #888;
  font-size: 0.8rem;
  line-height: 1.6;
}

.interest-calc__row {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.65rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.interest-calc__label {
  flex: 0 0 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.4rem;
  background: #f3f3f3;
  color: #333;
  font-size: 0.9rem;
  border-right: 1px solid #ddd;
  white-space: nowrap;
}

.interest-calc__fields {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.interest-calc__fields input,
.interest-calc__fields select {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  color: #222;
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.interest-calc__fields input[data-field="amount"] {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.35rem;
}

.interest-calc__amount-wan {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 0.35rem;
  color: #999;
  font-size: 0.85rem;
  white-space: nowrap;
}

.interest-calc__amount-wan.is-visible {
  display: flex;
}

.interest-calc__fields select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 1.75rem;
  cursor: pointer;
}

.interest-calc__unit {
  flex: 0 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  border-left: 1px solid #ddd;
  color: #222;
  font-size: 0.9rem;
  font-weight: 700;
}

.interest-calc__period-num {
  flex: 1 1 auto;
  border-right: 1px solid #eee;
}

.interest-calc__period-unit {
  flex: 0 0 5.5rem;
  font-weight: 700;
  color: #222;
}

.interest-calc__actions {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.interest-calc__actions button {
  flex: 1;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid #c9c9c9;
  background: #fff;
  color: #333;
}

.interest-calc__actions .is-primary {
  flex: 1.7;
  background: #325D52;
  border-color: #325D52;
  color: #fff;
}

.interest-calc__actions button:not(.is-primary) {
  flex: 0.8;
}

.interest-calc__error {
  display: none;
  color: #bc0808;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  text-align: center;
}

.interest-calc__error.is-visible {
  display: block;
}

.interest-calc__tips {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  color: #888;
  font-size: 0.8rem;
  line-height: 1.55;
}

.interest-calc__tips-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px dashed #cfcfcf;
  border-radius: 6px;
  background: transparent;
  box-sizing: border-box;
}

.interest-calc__tips-text {
  color: #888;
  font-size: 0.76rem;
  line-height: 1.45;
}

.interest-calc__tips-text--wide {
  display: none;
}

.interest-calc__tips-text a {
  color: #0066cc;
  font-weight: 400;
  text-decoration: none;
}

.interest-calc__tips-text a:hover {
  color: #004999;
  text-decoration: underline;
}

.interest-calc__tag {
  display: inline-block;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  color: #325D52;
  background: #e8f0ee;
  border: 1px solid #c5d6d1;
  vertical-align: middle;
}

.interest-calc__panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.interest-calc__panel--result {
  display: none;
}

.interest-calc.has-result .interest-calc__panel--result {
  display: flex;
  margin-top: 1.25rem;
}

.interest-calc__brand {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 27px;
  height: 27px;
  object-fit: cover;
  opacity: 0.88;
  pointer-events: none;
}

.interest-calc.has-result .interest-calc__brand {
  display: block;
}

.interest-calc__rates {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem 0.85rem 0.85rem;
  background: #fafafa;
  margin-top: 1.25rem;
}

.interest-calc.has-result .interest-calc__rates {
  margin-top: 1rem;
}

.interest-calc__rates-sub {
  margin: 0 0 0.75rem;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.interest-calc__segment-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  z-index: 2;
}

.interest-calc__segment-row--head {
  display: none;
  margin: 0;
}

.interest-calc__th-bank {
  display: inline;
}

.interest-calc__segment {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 9.75rem;
  max-width: 100%;
  margin: 0;
  padding: 2px;
  border-radius: 999px;
  background: #e5e5ea;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.interest-calc__segment-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: #3a3a3c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.interest-calc__segment[data-active="cny"] .interest-calc__segment-thumb {
  transform: translateX(100%);
}

.interest-calc__segment-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.36rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3a3a3c;
  cursor: pointer;
  transition: color 0.2s ease;
}

.interest-calc__segment-btn.is-active {
  color: #fff;
}

.interest-calc__info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.interest-calc__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 13.6px;
  height: 13.6px;
  padding: 0;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 9.35px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.interest-calc__info:hover {
  color: #6b7280;
  border-color: #6b7280;
}

.interest-calc__info.is-flash {
  color: #111827;
  border-color: #111827;
}

.interest-calc__info-icon {
  display: block;
  transform: translateY(0.5px);
}

.interest-calc__info-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 6px 10px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.interest-calc__info-tip-line {
  display: block;
  text-align: left;
}

.interest-calc__info-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: #111827;
  transform: translateX(-50%);
}

.interest-calc__info-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.interest-calc__rates-scroll {
  container-type: inline-size;
  container-name: interest-rates;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border-radius: 6px 6px 0 0;
}

/* 表偏窄、全称易出省略号时切简称（阈值取中间值，避免过早/过晚） */
@container interest-rates (max-width: 380px) {
  .interest-calc__bank-name--narrow {
    display: none;
  }

  .interest-calc__bank-name--wide {
    display: inline;
  }
}

.interest-calc__rates-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.88rem;
  table-layout: fixed;
}

.interest-calc__rates-table th,
.interest-calc__rates-table td {
  padding: 0.42rem 0.2rem;
  text-align: center;
  border-bottom: 0;
  vertical-align: middle;
}

.interest-calc__rates-table th {
  background: #3a3a3c;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.interest-calc__rates-table th:first-child {
  border-radius: 6px 0 0 0;
  width: 26%;
  text-align: center;
}

.interest-calc__th-ctl {
  text-align: center;
}

.interest-calc__rates-table th:last-child {
  border-radius: 0 6px 0 0;
}

.interest-calc__rates-table th:not(:first-child),
.interest-calc__rates-table td:not(:first-child) {
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.interest-calc__rates-table td:last-child,
.interest-calc__rates-table th:last-child {
  padding-right: 0.4rem;
}

.interest-calc__rates-table tbody tr:nth-child(even) td {
  background: #f3f6f8;
}

.interest-calc__rates-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.interest-calc__rates-table tbody tr:not(:last-child) {
  box-shadow: inset 0 -1px 0 #ececec;
}

.interest-calc__bank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  text-align: center;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
  font-size: 0.8rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.interest-calc__bank-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  margin-right: 0;
}

.interest-calc__bank-link {
  color: #0066cc;
  text-decoration: none;
}

.interest-calc__bank-link:hover {
  color: #004999;
  text-decoration: underline;
}

.interest-calc__bank-name {
  display: inline;
  vertical-align: middle;
}

.interest-calc__bank-name--narrow {
  display: inline;
}

.interest-calc__bank-name--wide {
  display: none;
}

.interest-calc__bank-logo {
  display: block;
  width: var(--logo-size, 22px);
  height: var(--logo-size, 22px);
  object-fit: contain;
}

.interest-calc__rate {
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0.15rem 0.1rem;
  border-radius: 4px;
  white-space: nowrap;
}

.interest-calc__rate.is-best {
  color: #0066cc;
  font-weight: 700;
}

.interest-calc__rate:hover,
.interest-calc__rate:focus-visible {
  color: #325D52;
  background: rgba(50, 93, 82, 0.08);
  outline: none;
}

.interest-calc__rate.is-best:hover,
.interest-calc__rate.is-best:focus-visible {
  color: #004999;
  background: rgba(0, 102, 204, 0.08);
}

.interest-calc__rate-na {
  color: #bbb;
}

.interest-calc__result {
  display: none;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.3rem 0.95rem;
  background: #fafafa;
  margin-top: 0;
}

.interest-calc__result.is-visible {
  display: block;
}

.interest-calc__form.is-flash {
  animation: interest-calc-flash 0.7s ease;
}

@keyframes interest-calc-flash {
  0%,
  100% {
    box-shadow: none;
  }
  35% {
    box-shadow: 0 0 0 3px rgba(50, 93, 82, 0.28);
  }
}

.interest-calc__cards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.interest-calc__metrics {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.7rem;
}

.interest-calc__metrics .interest-calc__card {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
  padding: 0.9rem 0.85rem;
  min-height: 0;
  box-sizing: border-box;
}

.interest-calc__metrics .interest-calc__result-label {
  flex: 0 0 auto;
  margin-right: auto;
}

.interest-calc__result-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  gap: 0.1rem;
  min-width: 0;
}

.interest-calc__result-main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  justify-content: flex-end;
}

.interest-calc__metrics .interest-calc__result-value {
  flex: 0 0 auto;
  text-align: right;
}

.interest-calc__metrics .interest-calc__unit-text {
  flex: 0 0 auto;
  font-size: 0.95rem;
}

.interest-calc__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.9rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.interest-calc__card.is-principal {
  background: #f1f5f9;
  border-color: #d7e0ea;
}

.interest-calc__card.is-interest {
  background: #e8f4f8;
  border-color: #b7d9e6;
}

.interest-calc__card.is-total {
  background: #eef9f1;
  border-color: #bfe5c9;
}

.interest-calc__card.is-details {
  background: transparent;
  border-color: transparent;
  padding: 0.15rem 2.4rem 0.15rem 0.15rem;
  gap: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.interest-calc__result-label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.interest-calc__result-value {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.interest-calc__unit-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.interest-calc__result-wan {
  display: none;
  color: #888;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: right;
}

.interest-calc__result-wan:not([hidden]) {
  display: block;
}

.interest-calc__card.is-principal .interest-calc__result-value,
.interest-calc__card.is-principal .interest-calc__unit-text {
  color: #0f172a;
}

.interest-calc__card.is-interest .interest-calc__result-label,
.interest-calc__card.is-interest .interest-calc__result-value,
.interest-calc__card.is-interest .interest-calc__unit-text {
  color: #325D52;
}

.interest-calc__card.is-interest .interest-calc__result-value,
.interest-calc__card.is-interest .interest-calc__unit-text {
  font-weight: 700;
}

.interest-calc__card.is-total .interest-calc__result-label,
.interest-calc__card.is-total .interest-calc__result-value,
.interest-calc__card.is-total .interest-calc__unit-text {
  color: #16a34a;
}

.interest-calc__card .interest-calc__result-wan {
  color: #888;
}

.interest-calc__details {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #888;
  width: 100%;
}

.interest-calc__details-title {
  color: #666;
  font-weight: 400;
  font-size: 0.76rem;
  margin-right: 0.35rem;
  white-space: nowrap;
}

.interest-calc__details-line {
  color: #888;
  font-size: 0.76rem;
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 480px) {
  .interest-calc__label {
    flex-basis: 4.6rem;
    font-size: 0.82rem;
    padding: 0.5rem 0.25rem;
  }

  .interest-calc__period-unit {
    flex-basis: 4.5rem;
  }
}

@media (max-width: 879px) {
  /* 不要给 th 设 display:flex，否则单元格会收缩贴左 */
  .interest-calc__th-ctl {
    text-align: center;
  }

  .interest-calc__th-bank {
    display: inline-block;
    /* 相对正中略右，贴近下方 logo+名称的视觉中心 */
    transform: translateX(0.45rem);
  }

  .interest-calc__panel--rates {
    margin-top: 1.25rem;
    overflow: hidden;
    transition: opacity 0.28s ease, max-height 0.32s ease, margin 0.28s ease;
    max-height: 1200px;
    opacity: 1;
  }

  .interest-calc.rates-collapsed .interest-calc__panel--rates {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
  }

  .interest-calc.rates-collapsed .interest-calc__tips {
    display: none;
  }

  .interest-calc.rates-collapsed .interest-calc__rates-expand {
    display: none;
  }

  .interest-calc.rates-collapsed .interest-calc__title--rates {
    cursor: pointer;
  }
}

@media (min-width: 880px) {
  .interest-calc {
    max-width: 1180px;
  }

  .interest-calc__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title-form title-rates"
      "form panel-rates"
      "tips panel-rates"
      ". note";
    column-gap: 1.5rem;
    row-gap: 0;
    align-items: stretch;
  }

  .interest-calc.has-result .interest-calc__layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "title-form title-result title-rates"
      "form panel-result panel-rates"
      "tips panel-result panel-rates"
      ". . note";
    column-gap: 0.75rem;
  }

  /* 宽屏收起利率：未计算 = 计算器 | 空白框；已计算 = 计算器 | 结果；右侧始终带「计算结果」标题 */
  .interest-calc.rates-collapsed .interest-calc__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title-form title-result"
      "form panel-empty"
      ". note";
  }

  .interest-calc.rates-collapsed.has-result .interest-calc__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title-form title-result"
      "form panel-result"
      ". note";
  }

  .interest-calc__title--form {
    grid-area: title-form;
  }

  .interest-calc__title--result {
    grid-area: title-result;
    display: none;
    margin-top: 0;
    font-size: 1.35rem;
  }

  .interest-calc.has-result .interest-calc__title--result,
  .interest-calc.rates-collapsed .interest-calc__title--result {
    display: block;
  }

  .interest-calc__title--rates {
    grid-area: title-rates;
    display: flex;
    margin-top: 0;
    font-size: 1.35rem;
  }

  .interest-calc.rates-collapsed .interest-calc__title--rates {
    display: none;
  }

  .interest-calc__title--rates-inner,
  .interest-calc__title--result-inner {
    display: none;
  }

  .interest-calc__form {
    grid-area: form;
    min-width: 0;
  }

  .interest-calc__tips {
    grid-area: tips;
    margin-top: 1rem;
    align-self: start;
    align-items: start;
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.65rem;
    transition: opacity 0.28s ease;
  }

  .interest-calc.rates-collapsed .interest-calc__tips {
    display: none;
  }

  .interest-calc__tips-col {
    width: 100%;
    height: auto;
    padding: 0.55rem 0.65rem;
  }

  .interest-calc__tips-text--narrow {
    display: none;
  }

  .interest-calc__tips-text--wide {
    display: block;
  }

  .interest-calc__tips-text {
    padding-left: 0.2rem;
    font-size: 0.76rem;
  }

  .interest-calc__segment {
    width: 9.5rem;
  }

  .interest-calc__panel--rates {
    grid-area: panel-rates;
    display: flex;
    flex-direction: column;
    height: 0;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    margin-top: 0;
    transition: opacity 0.28s ease;
  }

  .interest-calc.rates-collapsed .interest-calc__panel--rates {
    display: none;
  }

  .interest-calc__panel.interest-calc__panel--rates-empty {
    display: none;
    grid-area: panel-empty;
    flex-direction: column;
    height: 0;
    min-height: 100%;
    min-width: 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
  }

  .interest-calc.rates-collapsed:not(.has-result) .interest-calc__panel.interest-calc__panel--rates-empty {
    display: flex;
  }

  .interest-calc__panel--rates-empty .interest-calc__result-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.82rem;
    line-height: 1.65;
    text-align: center;
    padding: 0.75rem 0.55rem;
  }

  .interest-calc.has-result .interest-calc__panel--result {
    display: flex;
    flex-direction: column;
    height: 0;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    background: #fafafa;
    box-sizing: border-box;
    margin-top: 0;
    grid-area: panel-result;
    position: relative;
  }

  .interest-calc__panel--result {
    display: none;
  }

  .interest-calc__rates {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 6px;
  }

  .interest-calc.has-result .interest-calc__rates {
    margin-top: 0;
  }

  .interest-calc__rates-sub {
    display: none;
  }

  .interest-calc__segment-row--stack {
    display: none;
  }

  .interest-calc__segment-row--head {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .interest-calc__th-bank {
    display: none;
  }

  .interest-calc__th-ctl {
    width: 30%;
    padding: 0.28rem 0.35rem !important;
    text-align: center;
    vertical-align: middle;
  }

  .interest-calc__segment-row--head .interest-calc__segment {
    width: 4.9rem;
    flex: 0 0 4.9rem;
    background: rgba(255, 255, 255, 0.18);
  }

  .interest-calc__segment-row--head .interest-calc__info-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    /* 胶囊半宽 2.45rem + 间距；i 不参与居中 */
    transform: translate(calc(2.45rem + 0.35rem), -50%);
  }

  .interest-calc__segment-row--head .interest-calc__segment-thumb {
    background: #fff;
    box-shadow: none;
  }

  .interest-calc__segment-row--head .interest-calc__segment-btn {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    padding: 0.28rem 0.2rem;
    white-space: nowrap;
  }

  .interest-calc__segment-row--head .interest-calc__segment-btn.is-active {
    color: #3a3a3c;
  }

  .interest-calc__segment-row--head .interest-calc__info {
    width: 11.97px; /* 13.6 * 0.88 */
    height: 11.97px;
    font-size: 8.23px; /* 9.35 * 0.88 */
    border-color: rgba(255, 255, 255, 0.55);
    color: rgba(255, 255, 255, 0.85);
  }

  .interest-calc__segment-row--head .interest-calc__info:hover,
  .interest-calc__segment-row--head .interest-calc__info.is-flash {
    border-color: #fff;
    color: #fff;
  }

  .interest-calc__rates-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
  }

  .interest-calc__rates-table {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    font-size: 0.74rem;
    border-collapse: collapse;
    border-spacing: 0;
  }

  .interest-calc__rates-table[hidden] {
    display: none;
  }

  .interest-calc__rates-table thead {
    flex: 0 0 auto;
    display: block;
    width: 100%;
  }

  .interest-calc__rates-table thead tr {
    display: grid;
    grid-template-columns: 30% repeat(4, minmax(0, 1fr));
    width: 100%;
    align-items: stretch;
  }

  .interest-calc__rates-table tbody {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    min-height: 0;
    width: 100%;
  }

  .interest-calc__rates-table tbody tr {
    display: grid;
    grid-template-columns: 30% repeat(4, minmax(0, 1fr));
    min-height: 0;
    align-items: stretch;
  }

  .interest-calc__pct {
    font-size: 0.85em;
  }

  .interest-calc__rates-table th,
  .interest-calc__rates-table td {
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    border-bottom: 0;
    vertical-align: middle;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .interest-calc__rates-table thead th {
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
  }

  .interest-calc__rates-table tbody tr:not(:last-child) {
    box-shadow: inset 0 -1px 0 #ececec;
  }

  .interest-calc__rates-table tbody tr:not(:last-child) td {
    border-bottom: 0;
    box-shadow: none;
  }

  .interest-calc__rates-table td.interest-calc__bank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    text-align: center;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    overflow: hidden;
  }

  .interest-calc__rates-table td:last-child,
  .interest-calc__rates-table th:last-child {
    padding-right: 0.4rem;
  }

  .interest-calc__rates-table th:not(:first-child),
  .interest-calc__rates-table td:not(:first-child) {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .interest-calc__rates-table th {
    z-index: 2;
  }

  .interest-calc__rates-table th:first-child,
  .interest-calc__rates-table td:first-child {
    width: auto;
  }

  .interest-calc__note-wrap {
    grid-area: note;
    margin-top: 0.65rem;
    text-align: right;
  }

  .interest-calc__note {
    margin: 0;
    text-align: right;
  }

  .interest-calc.rates-collapsed .interest-calc__rates-expand {
    display: inline-block;
  }

  .interest-calc__result {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
  }

  .interest-calc__result.is-visible {
    display: flex;
  }

  .interest-calc__cards {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 0;
    overflow: hidden;
    padding-top: 0.45rem;
  }

  .interest-calc__metrics {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0;
    min-height: 0;
  }

  .interest-calc__metrics .interest-calc__card {
    flex: 1 1 0;
    min-height: 0;
    padding: 0.5rem 0.7rem;
  }

  .interest-calc__result-wan {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .interest-calc__card.is-details {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 0.15rem 2.4rem 0.15rem 0.15rem;
    background: transparent;
    border-color: transparent;
  }

  .interest-calc__details {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .interest-calc__details-title {
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .interest-calc__details-line {
    font-size: 0.72rem;
  }

  .interest-calc__brand {
    display: none;
    right: 12px;
    bottom: 12px;
  }

  .interest-calc.has-result .interest-calc__brand {
    display: block;
  }
}
