/* Reading routes are excluded when this stylesheet is attached. */
.shell .main-col > :is(.products-page, .pp-page) > :is(main.pp-wrap, .pp-anav),
.shell .main-col > :is(.products-page, .pp-page) > .pp-anav > .pp-wrap {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Light headers retain their existing 1080px reading-sized banner. */
.shell .main-col > .pp-page:has(> .pp-head) > :is(main.pp-wrap, .pp-anav) {
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Product related cards use dark titles and gray descriptions in both markup variants. */
.shell .main-col .products-page .pp-rel a,
.shell .main-col .products-page .pp-rel .pp-rd,
.shell .main-col .products-page .pp-rel .pp-relc > span {
  color: #64748b !important;
}

.shell .main-col .products-page .pp-rel .pp-rt,
.shell .main-col .products-page .pp-rel .pp-relc > b {
  color: #0b1224 !important;
}

/* Let the Visa action description use the available width without forced wrapping. */
.shell .main-col .products-page .pp-cta:has(.b2[href$="/products/mastercard/"]) p {
  max-width: none !important;
}

/* Five usage rules fill two rows without an isolated final card. */
.shell .main-col .products-page .usage-policy-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.shell .main-col .products-page .usage-policy-grid > li {
  grid-column: span 2;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #fbfcff;
}

.shell .main-col .products-page .usage-policy-grid > li:nth-child(n + 4) {
  grid-column: span 3;
}

.shell .main-col .products-page .usage-policy-grid > li::before {
  content: none !important;
}

.shell .main-col .products-page .usage-policy-grid > li > b {
  display: block;
  margin-bottom: 12px;
  color: #17294d;
  font-size: 15.5px;
  line-height: 1.6;
}

.shell .main-col .products-page .usage-policy-grid > li > p {
  margin: 0;
  color: #526079;
  font-size: 13.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

/* The scene hub separates its guide from four equal product choices. */
.shell .main-col .pp-page .scene-entry-section > .pp-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard {
  min-width: 0;
  padding: 22px;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  background: #f3f7ff;
  border-color: #cfdbf4;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child > :not(.pp-cf) {
  grid-column: 1;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child > span {
  margin-bottom: 0;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child > .pp-cf {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  margin-top: 0;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child > .pp-cf a {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid #2448b4;
  border-radius: 9px;
  background: #2448b4;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child > .pp-cf a:hover {
  background: #1c3890;
  border-color: #1c3890;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard > span {
  line-height: 1.8;
}

.shell .main-col .pp-page .scene-entry-section .pp-pcard:not(:first-child) > .pp-cf {
  padding-top: 8px;
}

/* PayPal instructions retain their original ordered-list content and anchors. */
.shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol {
  counter-reset: paypal-step;
  list-style: none;
  margin: 20px 0;
  padding: 4px 22px;
  border: 1px solid #dce5f5;
  border-radius: 12px;
  background: #f5f8ff;
}

.shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li {
  counter-increment: paypal-step;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 20px 0 20px 52px;
  border-bottom: 1px solid #dce5f5;
  color: #475569;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li:last-child {
  border-bottom: 0;
}

.shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li::before {
  content: counter(paypal-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  position: absolute;
  top: 20px;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e6edff;
  color: #2446c8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li > strong {
  color: #17294d;
  font-size: 14px;
  line-height: 1.85;
}

.shell .main-col .pp-page .pp-card:has(> h2#paypal) > p:last-child {
  margin: 0;
  padding: 16px 20px;
  border-left: 3px solid #3158d5;
  border-radius: 0 10px 10px 0;
  background: #f0f4ff;
  color: #475569;
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 540px) {
  .shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol {
    margin: 18px 0;
    padding: 0 14px;
  }

  .shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li {
    padding-left: 44px;
  }

  .shell .main-col .pp-page .pp-card:has(> h2#paypal) > ol > li::before {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .shell .main-col .pp-page .pp-card:has(> h2#paypal) > p:last-child {
    padding: 14px 16px;
  }
}

@media (max-width: 1000px) {
  .shell .main-col .products-page .usage-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell .main-col .products-page .usage-policy-grid > li:nth-child(n) {
    grid-column: auto;
  }

  .shell .main-col .products-page .usage-policy-grid > li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shell .main-col .products-page .usage-policy-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0;
  }

  .shell .main-col .products-page .usage-policy-grid > li {
    padding: 18px;
  }

  .shell .main-col .pp-page .scene-entry-section > .pp-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0;
  }

  .shell .main-col .pp-page .scene-entry-section .pp-pcard {
    padding: 18px;
  }

  .shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .shell .main-col .pp-page .scene-entry-section .pp-pcard:first-child > .pp-cf {
    grid-column: 1;
    grid-row: auto;
    margin-top: 16px;
  }
}

.pp-audit-disclosure{display:block;position:relative;max-width:var(--wrap,1400px);margin:16px auto;padding:14px 18px;border:1px solid #c5d6ed;border-radius:8px;background:#f0f6ff;color:#173c68;font-size:14px;line-height:1.8;overflow-wrap:anywhere}

/* ── 产品线页 banner 收紧（2026-11-01）─────────────────────────────
   仅作用于 /products/ 及其子页面（.products-page 作用域）。
   原值：桌面 44/40、≤1080 34/30、≤640 28/22，上下留白过宽。 */
.products-page .hero{padding-top:26px;padding-bottom:24px}
.products-page .hero>.pp-hstats{margin-top:18px}
@media (width<=1080px){
  .products-page .hero{padding-top:22px;padding-bottom:20px}
}
@media (width<=640px){
  .products-page .hero{padding-top:16px;padding-bottom:16px}
  .products-page .hero>.pp-hstats{margin-top:14px}
}
