/* TASK 9C · 积分中心 / 流水 / 演示积分补充。仅作用于账户积分辅助页。 */

:is(#view-points, #view-points-ledger, #view-points-checkout) {
  background: #fff;
  color: #171a24;
}

:is(#view-points, #view-points-ledger, #view-points-checkout).active {
  min-height: calc(100vh - 72px);
}

:is(#view-points, #view-points-ledger, #view-points-checkout) :is(button, input) {
  font: inherit;
}

.plaza-points-shell,
.plaza-ledger-shell,
.plaza-checkout-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.plaza-checkout-shell {
  width: min(900px, calc(100% - 64px));
}

.plaza-points-header,
.plaza-ledger-header,
.plaza-checkout-header {
  padding-bottom: 26px;
  border-bottom: 1px solid #d5d9e2;
}

.plaza-points-header h1,
.plaza-ledger-header h1,
.plaza-checkout-header h1 {
  margin: 16px 0 0;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.plaza-ledger-header p {
  margin: 8px 0 0;
  color: #72798a;
  font-size: 14px;
}

.plaza-points-back {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #687083;
  font-size: 14px;
  cursor: pointer;
}

.plaza-points-back:hover,
.plaza-points-text-link:hover {
  color: #565fe1;
}

.plaza-points-balance-section {
  padding: 44px 0 42px;
  border-bottom: 1px solid #d5d9e2;
}

.plaza-points-kicker {
  margin: 0 0 8px;
  color: #697184;
  font-size: 14px;
  font-weight: 650;
}

.plaza-points-balance {
  display: block;
  margin: 0;
  color: #292f65;
  font-size: clamp(42px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.plaza-points-balance-note {
  max-width: 620px;
  margin: 14px 0 14px;
  color: #555e70;
  font-size: 15px;
  line-height: 1.7;
}

.plaza-points-text-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4f59c7;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.plaza-points-section {
  padding: 38px 0;
  border-bottom: 1px solid #d5d9e2;
}

.plaza-points-section-head,
.plaza-points-supplement {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.plaza-points-section-head {
  margin-bottom: 20px;
}

.plaza-points-section h2,
.plaza-checkout-section h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.plaza-points-section-head p,
.plaza-points-supplement p,
.plaza-checkout-section > p {
  margin: 6px 0 0;
  color: #747c8d;
  font-size: 13px;
  line-height: 1.65;
}

.plaza-points-record-list {
  border-top: 1px solid #e0e3e9;
}

.plaza-points-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid #e0e3e9;
}

.plaza-points-record-main {
  min-width: 0;
}

.plaza-points-record-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.plaza-points-record-title strong {
  color: #202431;
  font-size: 15px;
  font-weight: 680;
}

.plaza-points-record-type {
  color: #7a8190;
  font-size: 12px;
}

.plaza-points-record-reason {
  margin: 7px 0 0;
  color: #5e6677;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.plaza-points-record-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
  color: #8a91a0;
  font-size: 12px;
}

.plaza-points-record-ref {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #5a63c8;
  cursor: pointer;
}

.plaza-points-record-ref:hover {
  text-decoration: underline;
}

.plaza-points-record-amount {
  align-self: center;
  min-width: 104px;
  text-align: right;
  color: #3f4657;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.plaza-points-record-amount.is-income {
  color: #34715a;
}

.plaza-points-empty {
  margin: 0;
  padding: 22px 0 4px;
  color: #7c8391;
  font-size: 14px;
}

.plaza-points-info-list {
  border-top: 1px solid #e0e3e9;
}

.plaza-points-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #e0e3e9;
}

.plaza-points-info-row strong {
  font-size: 15px;
  font-weight: 670;
}

.plaza-points-info-row p {
  margin: 5px 0 0;
  color: #687183;
  font-size: 13px;
  line-height: 1.55;
}

.plaza-points-info-row > span {
  color: #7a8190;
  font-size: 12px;
  white-space: nowrap;
}

.plaza-points-supplement {
  align-items: center;
}

.plaza-points-rules ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: #687183;
  font-size: 13px;
  line-height: 1.8;
}

/* 完整流水 */
.plaza-ledger-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 14px;
  border-bottom: 1px solid #d5d9e2;
}

.plaza-ledger-tabs {
  display: flex;
  gap: 28px;
}

.plaza-ledger-tab {
  appearance: none;
  position: relative;
  border: 0;
  padding: 0 0 11px;
  background: transparent;
  color: #6e7688;
  font-size: 14px;
  font-weight: 630;
  cursor: pointer;
}

.plaza-ledger-tab.is-on {
  color: #5059d0;
}

.plaza-ledger-tab.is-on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #5962d8;
}

#view-points-ledger #points-ledger-meta {
  padding-bottom: 10px;
  color: #8a91a0;
  font-size: 12px;
}

.plaza-ledger-list {
  border-top: 0;
}

.plaza-ledger-more {
  padding-top: 24px;
  text-align: center;
}

#view-points-ledger #btn-points-ledger-more {
  appearance: none;
  border: 1px solid #d8dce4;
  border-radius: 8px;
  padding: 9px 18px;
  background: #fff;
  color: #555e70;
  font-size: 13px;
  cursor: pointer;
}

#view-points-ledger #btn-points-ledger-more:hover {
  border-color: #bcc2d0;
  color: #4f59c7;
}

/* 演示积分补充 */
.plaza-checkout-balance {
  padding: 34px 0;
  border-bottom: 1px solid #d5d9e2;
}

.plaza-checkout-balance > span {
  display: block;
  color: #737b8d;
  font-size: 13px;
}

.plaza-checkout-balance strong {
  display: block;
  margin-top: 6px;
  color: #2f356f;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.plaza-checkout-balance p {
  max-width: 600px;
  margin: 10px 0 0;
  color: #687183;
  font-size: 13px;
  line-height: 1.6;
}

.plaza-checkout-section {
  padding: 32px 0;
  border-bottom: 1px solid #d5d9e2;
}

.plaza-checkout-options {
  margin-top: 16px;
  border-top: 1px solid #e0e3e9;
}

.plaza-checkout-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid #e0e3e9;
  padding: 17px 2px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.plaza-checkout-option > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plaza-checkout-option strong {
  color: #242936;
  font-size: 15px;
}

.plaza-checkout-option small {
  color: #858c9b;
  font-size: 12px;
}

.plaza-checkout-option i {
  width: 17px;
  height: 17px;
  border: 1.5px solid #b8beca;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.plaza-checkout-option.is-selected {
  color: #535cd0;
}

.plaza-checkout-option.is-selected i {
  border-color: #5962d8;
  background: #5962d8;
}

.plaza-checkout-confirm dl {
  margin: 16px 0 0;
  border-top: 1px solid #e0e3e9;
}

.plaza-checkout-confirm dl > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #e0e3e9;
}

.plaza-checkout-confirm dt {
  color: #70788a;
  font-size: 13px;
}

.plaza-checkout-confirm dd {
  margin: 0;
  color: #282e3e;
  font-size: 14px;
  font-weight: 650;
}

.plaza-checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 1500px) {
  .plaza-points-shell,
  .plaza-ledger-shell {
    width: min(1120px, calc(100% - 48px));
  }

  .plaza-checkout-shell {
    width: min(860px, calc(100% - 48px));
  }
}

@media (max-width: 900px) {
  .plaza-points-shell,
  .plaza-ledger-shell,
  .plaza-checkout-shell {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .plaza-points-section-head,
  .plaza-points-supplement,
  .plaza-ledger-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .plaza-points-record {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .plaza-points-record-amount {
    justify-self: start;
    text-align: left;
  }

  .plaza-points-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .plaza-points-info-row > span {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .plaza-ledger-tabs {
    gap: 20px;
  }

  .plaza-checkout-actions {
    flex-direction: column-reverse;
  }

  .plaza-checkout-actions .btn {
    width: 100%;
  }
}
