/* Platform intro page — 惠省巴平台介绍 */
.page-platform {
  background: #f8fafc;
}

/* —— Banner —— */
.hs-pt-banner {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  color: #fff;
}

.hs-pt-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #16804a 0%, var(--hs-brand) 45%, #34d399 100%);
  z-index: 0;
}

.hs-pt-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
}

.hs-pt-banner .container {
  position: relative;
  z-index: 1;
}

.hs-pt-banner__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hs-pt-banner__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hs-pt-banner__desc {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  max-width: 520px;
}

.hs-pt-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hs-pt-banner__actions .hs-btn--on-dark.hs-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.hs-pt-banner__actions .hs-btn--on-dark.hs-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hs-pt-banner__actions .hs-btn--on-dark.hs-btn--primary {
  background: #fff;
  color: var(--hs-brand-dark);
  border-color: #fff;
  box-shadow: none;
}

.hs-pt-banner__actions .hs-btn--on-dark.hs-btn--primary:hover {
  background: var(--hs-brand-light);
  color: var(--hs-brand-dark);
}

.hs-pt-banner__visual img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.2));
  border-radius: var(--hs-radius-lg);
}

/* —— Sections —— */
.hs-pt-section {
  padding: 80px 0;
}

.hs-pt-section--alt {
  background: #fff;
}

.hs-pt-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.hs-pt-section__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--hs-ink);
  letter-spacing: -0.02em;
}

.hs-pt-section__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hs-muted);
  margin: 0;
}

/* —— Cards —— */
.hs-pt-cards {
  display: grid;
  gap: 24px;
}

.hs-pt-cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.hs-pt-card {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hs-pt-section--alt .hs-pt-card {
  background: #f8fafc;
}

.hs-pt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow);
  border-color: rgba(34, 181, 101, 0.35);
}

.hs-pt-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-brand-light);
  border-radius: 14px;
  color: var(--hs-brand);
  font-size: 26px;
}

.hs-pt-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hs-pt-card--merchant .hs-pt-card__icon {
  background: #fff7ed;
  color: #ea580c;
}

.hs-pt-card--merchant:hover {
  border-color: rgba(234, 88, 12, 0.3);
}

.hs-pt-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--hs-ink);
}

.hs-pt-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hs-muted);
  margin: 0;
}

/* —— Pillars (core advantages) —— */
.hs-pt-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hs-pt-pillar {
  background: linear-gradient(180deg, #fff 0%, var(--hs-brand-light) 100%);
  border: 1px solid rgba(34, 181, 101, 0.2);
  border-radius: var(--hs-radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hs-pt-pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(34, 181, 101, 0.18);
}

.hs-pt-pillar__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-brand);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
}

.hs-pt-pillar__icon img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.hs-pt-pillar__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--hs-brand-dark);
}

.hs-pt-pillar__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hs-muted);
  margin: 0;
}

/* —— Scenes —— */
.hs-pt-scenes {
  position: relative;
  padding-bottom: 8px;
}

.hs-pt-scene {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 24px 16px;
  text-align: center;
  height: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-pt-scene:hover {
  border-color: var(--hs-brand);
  box-shadow: var(--hs-shadow-sm);
}

.hs-pt-scene__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-brand-light);
  border-radius: 12px;
  color: var(--hs-brand);
  font-size: 22px;
}

.hs-pt-scene__icon img {
  width: 28px;
  height: 28px;
}

.hs-pt-scene__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-ink);
}

.hs-pt-scenes__nav {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.hs-pt-scenes__prev,
.hs-pt-scenes__next {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hs-border);
  border-radius: 50%;
  background: #fff;
  color: var(--hs-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hs-pt-scenes__prev:hover,
.hs-pt-scenes__next:hover {
  background: var(--hs-brand-light);
  border-color: var(--hs-brand);
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hs-pt-scenes .swiper-wrapper {
    display: flex;
  }

  .hs-pt-scenes__nav {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .hs-pt-scenes .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transform: none !important;
  }

  .hs-pt-scenes .swiper-slide {
    width: auto !important;
    margin: 0 !important;
  }
}

/* —— Ecosystem —— */
.hs-pt-section--eco {
  background: linear-gradient(180deg, #fff 0%, var(--hs-brand-light) 100%);
}

.hs-pt-eco__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.hs-pt-eco__diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px;
}

.hs-pt-eco__node {
  background: #fff;
  border: 2px solid var(--hs-brand);
  border-radius: var(--hs-radius);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  color: var(--hs-ink);
  text-align: center;
  min-width: 120px;
  box-shadow: var(--hs-shadow-sm);
}

.hs-pt-eco__node--center {
  background: var(--hs-brand);
  color: #fff;
  border-color: var(--hs-brand);
  font-size: 17px;
  padding: 16px 36px;
}

.hs-pt-eco__connector {
  width: 2px;
  height: 28px;
  background: var(--hs-brand);
  opacity: 0.5;
}

.hs-pt-eco__connector--fork {
  width: 160px;
  height: 28px;
  background: transparent;
  border-left: 2px solid rgba(34, 181, 101, 0.5);
  border-right: 2px solid rgba(34, 181, 101, 0.5);
  border-bottom: 2px solid rgba(34, 181, 101, 0.5);
  position: relative;
}

.hs-pt-eco__row {
  display: flex;
  gap: 48px;
  margin-top: -2px;
}

.hs-pt-eco__text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--hs-muted);
}

.hs-pt-eco__text p {
  margin: 0 0 1em;
}

.hs-pt-eco__text p:last-child {
  margin-bottom: 0;
}

/* —— CTA —— */
.hs-pt-cta {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hs-pt-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hs-brand-dark) 0%, var(--hs-brand) 50%, #2dd4bf 100%);
  z-index: 0;
}

.hs-pt-cta__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  animation: hs-pt-shimmer 8s ease-in-out infinite alternate;
}

@keyframes hs-pt-shimmer {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hs-pt-cta .container {
  position: relative;
  z-index: 1;
}

.hs-pt-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.hs-pt-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}

.hs-pt-cta__desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 32px;
}

.hs-pt-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hs-pt-cta__actions .hs-btn--on-dark.hs-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.hs-pt-cta__actions .hs-btn--on-dark.hs-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hs-pt-cta__actions .hs-btn--on-dark.hs-btn--primary {
  background: #fff;
  color: var(--hs-brand-dark);
  border-color: #fff;
  box-shadow: none;
}

.hs-pt-cta__actions .hs-btn--on-dark.hs-btn--primary:hover {
  background: var(--hs-brand-light);
  color: var(--hs-brand-dark);
  transform: translateY(-1px);
}

/* —— QR popup —— */
.hs-pt-qr-popup.mfp-bg {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.hs-pt-qr-popup .mfp-content {
  max-width: 400px;
  width: calc(100% - 32px);
}

.hs-pt-qr-popup .mfp-close {
  color: var(--hs-muted);
  opacity: 1;
  font-size: 28px;
  right: 8px;
  top: 8px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  transition: color 0.2s ease;
}

.hs-pt-qr-popup .mfp-close:hover {
  color: var(--hs-brand);
}

.hs-pt-qr-modal__card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.hs-pt-qr-modal__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hs-brand-dark), var(--hs-brand), #34d399);
}

.hs-pt-qr-modal__head {
  margin-bottom: 24px;
}

.hs-pt-qr-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-brand-light);
  border-radius: 50%;
  color: var(--hs-brand);
  font-size: 26px;
}

.hs-pt-qr-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hs-ink);
  letter-spacing: -0.02em;
}

.hs-pt-qr-modal__sub {
  margin: 0;
  font-size: 14px;
  color: var(--hs-muted);
}

.hs-pt-qr-modal__qr {
  background: #f8fafc;
  border: 1px solid var(--hs-border);
  border-radius: 16px;
  padding: 16px;
  margin: 0 auto 20px;
  max-width: 240px;
}

.hs-pt-qr-modal__qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hs-pt-qr-modal__hint {
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--hs-brand-light) 0%, #ecfdf5 100%);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hs-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hs-pt-qr-modal__hint i {
  font-size: 18px;
  color: var(--hs-brand);
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 1;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* —— Responsive —— */
@media (max-width: 991px) {
  .hs-pt-banner__grid,
  .hs-pt-eco__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hs-pt-banner {
    padding: 56px 0 64px;
  }

  .hs-pt-cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hs-pt-pillars {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hs-pt-section {
    padding: 56px 0;
  }
}

@media (max-width: 767px) {
  .page-platform .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* —— Banner mobile —— */
  .hs-pt-banner {
    padding: calc(var(--hs-header-h, 64px) + 24px) 0 44px;
  }

  .hs-pt-banner__grid {
    gap: 0;
  }

  .hs-pt-banner__content {
    text-align: left;
  }

  .hs-pt-banner__title {
    font-size: 1.75rem;
    margin-bottom: 14px;
    color: #fff;
  }

  .hs-pt-banner__desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: none;
    text-align: left;
  }

  .hs-pt-banner__actions {
    justify-content: flex-start;
    gap: 10px;
  }

  .hs-pt-banner__actions .hs-btn {
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  /* —— Sections mobile —— */
  .hs-pt-section {
    padding: 48px 0;
  }

  .hs-pt-section__head {
    text-align: left;
    margin-bottom: 28px;
    max-width: none;
  }

  .hs-pt-section__title {
    font-size: 1.375rem;
    margin-bottom: 10px;
  }

  .hs-pt-section__title::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hs-brand), transparent);
  }

  .hs-pt-section__lead {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  /* —— Cards mobile —— */
  .hs-pt-cards--4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hs-pt-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    align-items: start;
    padding: 18px 16px;
    border-radius: 14px;
    text-align: left;
  }

  .hs-pt-card:hover {
    transform: none;
    box-shadow: var(--hs-shadow-sm);
  }

  .hs-pt-card__icon {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 12px;
    font-size: 22px;
  }

  .hs-pt-card__title {
    font-size: 1rem;
    margin: 0;
    align-self: end;
  }

  .hs-pt-card__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  /* —— Pillars mobile —— */
  .hs-pt-pillars {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
    margin: 0;
  }

  .hs-pt-pillar {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    align-items: start;
    padding: 20px 16px;
    border-radius: 14px;
    text-align: left;
    background: #fff;
  }

  .hs-pt-pillar:hover {
    transform: none;
    box-shadow: var(--hs-shadow-sm);
  }

  .hs-pt-pillar__icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 14px;
    font-size: 24px;
  }

  .hs-pt-pillar__title {
    font-size: 1.0625rem;
    margin: 0;
    align-self: end;
  }

  .hs-pt-pillar__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  /* —— Scenes mobile —— */
  .hs-pt-scenes {
    margin: 0;
    padding-bottom: 0;
  }

  .hs-pt-scenes .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    transform: none !important;
  }

  .hs-pt-scenes .swiper-slide {
    width: auto !important;
    margin: 0 !important;
    height: auto;
  }

  .hs-pt-scene {
    padding: 14px 8px;
    border-radius: 12px;
    height: 100%;
  }

  .hs-pt-scene:hover {
    box-shadow: none;
  }

  .hs-pt-scene__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    font-size: 18px;
    border-radius: 10px;
  }

  .hs-pt-scene__label {
    font-size: 12px;
    line-height: 1.35;
  }

  .hs-pt-scenes__nav {
    display: none !important;
  }

  /* —— Ecosystem mobile —— */
  .hs-pt-section--eco {
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  }

  .hs-pt-eco__grid {
    gap: 28px;
  }

  .hs-pt-eco__diagram {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(34, 181, 101, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hs-pt-eco__node {
    font-size: 13px;
    padding: 10px 16px;
    min-width: 88px;
    border-radius: 12px;
  }

  .hs-pt-eco__node--center {
    font-size: 15px;
    padding: 12px 22px;
  }

  .hs-pt-eco__connector {
    height: 22px;
  }

  .hs-pt-eco__row {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: -2px;
  }

  .hs-pt-eco__row .hs-pt-eco__node {
    flex: 1 1 0;
    min-width: 0;
    max-width: 120px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .hs-pt-eco__connector--fork {
    width: min(168px, 78%);
    height: 22px;
    background: transparent;
    border-left: 2px solid rgba(34, 181, 101, 0.5);
    border-right: 2px solid rgba(34, 181, 101, 0.5);
    border-bottom: 2px solid rgba(34, 181, 101, 0.5);
  }

  .hs-pt-eco__text {
    font-size: 0.875rem;
    line-height: 1.75;
    text-align: left;
  }

  /* —— CTA mobile —— */
  .hs-pt-cta {
    padding: 48px 0 56px;
    text-align: left;
  }

  .hs-pt-cta__inner {
    max-width: none;
  }

  .hs-pt-cta__title {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: #fff;
  }

  .hs-pt-cta__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: left;
  }

  .hs-pt-cta__actions {
    justify-content: flex-start;
    gap: 10px;
  }

  .hs-pt-cta__actions .hs-btn {
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  /* —— QR modal mobile —— */
  .hs-pt-qr-modal__card {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .hs-pt-qr-modal__title {
    font-size: 18px;
  }

  .hs-pt-qr-modal__hint {
    font-size: 13px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hs-pt-banner__title {
    font-size: 1.5625rem;
  }

  .hs-pt-section__title {
    font-size: 1.25rem;
  }

  .hs-pt-banner__actions .hs-btn,
  .hs-pt-cta__actions .hs-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
