/* 典当业务中心：4:3 重点图文 + 走马灯（cdddh） */

.bx-svc-showcase {
  margin-bottom: 8px;
}

.bx-svc-showcase--page {
  padding-top: 8px;
}

.bx-svc-showcase--home {
  margin-top: 0;
}

.bx-svc-showcase__foot {
  margin: 22px 0 0;
  text-align: center;
}

/* ── 4:3 重点业务大卡 ── */
.bx-svc-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bx-svc-featured-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bx-border);
  box-shadow: var(--bx-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bx-svc-featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.22);
  box-shadow: var(--bx-shadow-md);
}

.bx-svc-featured-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.bx-svc-featured-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #faf8f5, #f0ebe3);
  overflow: hidden;
}

.bx-svc-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bx-svc-featured-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--bx-font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: rgba(200, 16, 46, 0.35);
}

.bx-svc-featured-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 12px 14px 14px;
  border-radius: 0 0 11px 11px;
  transition: background 0.22s ease;
}

.bx-svc-featured-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.bx-svc-featured-card__tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: calc(11px * var(--bx-text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bx-red);
  background: rgba(200, 16, 46, 0.06);
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-radius: 999px;
  line-height: 1.4;
}

.bx-svc-featured-card__title {
  margin: 0 0 0 auto;
  flex: 0 1 auto;
  max-width: calc(100% - 4.5em);
  min-width: 0;
  font-family: var(--bx-font-serif);
  font-size: calc(1.06rem * var(--bx-text-scale, 1));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: right;
  color: #5c1a24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: color 0.22s ease, letter-spacing 0.22s ease;
}

.bx-svc-featured-card__title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--bx-gold), var(--bx-red));
  transition: width 0.25s ease;
}

.bx-svc-featured-card__meta {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.bx-svc-featured-card__desc {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: calc(12.5px * var(--bx-text-scale, 1));
  line-height: 1.55;
  color: var(--bx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.22s ease;
}

.bx-svc-featured-card__more {
  flex-shrink: 0;
  max-width: 7.5em;
  font-size: calc(12px * var(--bx-text-scale, 1));
  font-weight: 600;
  line-height: 1.4;
  color: var(--bx-red);
  white-space: nowrap;
  transition: color 0.22s ease, transform 0.22s ease;
}

.bx-svc-featured-card:hover .bx-svc-featured-card__body {
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.bx-svc-featured-card:hover .bx-svc-featured-card__title {
  color: var(--bx-red);
  letter-spacing: 0.12em;
}

.bx-svc-featured-card:hover .bx-svc-featured-card__title::after {
  width: 100%;
}

.bx-svc-featured-card:hover .bx-svc-featured-card__desc {
  color: #4b5563;
}

.bx-svc-featured-card:hover .bx-svc-featured-card__more {
  color: var(--bx-red-dark);
  transform: translateX(2px);
}

/* ── 走马灯（与信任条同样：左右热区倒退 / 加速） ── */
.bx-svc-marquee {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--bx-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--bx-shadow-sm);
}

.bx-svc-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.bx-svc-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.bx-svc-marquee__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 12%;
  max-width: 88px;
  min-width: 44px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bx-svc-marquee__edge--prev {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), transparent);
}

.bx-svc-marquee__edge--next {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.94), transparent);
}

.bx-svc-marquee:hover .bx-svc-marquee__edge,
.bx-svc-marquee__edge:focus-visible {
  opacity: 1;
}

.bx-svc-marquee__edge:focus-visible {
  outline: none;
}

.bx-svc-marquee__edge--prev::after,
.bx-svc-marquee__edge--next::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(200, 16, 46, 0.7);
  border-right: 2px solid rgba(200, 16, 46, 0.7);
}

.bx-svc-marquee__edge--prev::after {
  left: 16px;
  transform: translateY(-50%) rotate(-135deg);
}

.bx-svc-marquee__edge--next::after {
  right: 16px;
  transform: translateY(-50%) rotate(45deg);
}

.bx-svc-mini-card {
  flex: 0 0 auto;
  width: 210px;
}

.bx-svc-mini-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bx-svc-mini-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #faf8f5, #ece7df);
  border: 1px solid var(--bx-border);
}

.bx-svc-mini-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bx-svc-mini-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--bx-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(200, 16, 46, 0.32);
}

.bx-svc-mini-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 10px;
  text-align: center;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 16, 14, 0.78) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bx-svc-mini-card:hover .bx-svc-mini-card__overlay {
    opacity: 1;
    visibility: visible;
  }
}

@media (hover: none) {
  .bx-svc-mini-card__overlay {
    opacity: 1;
    visibility: visible;
  }
}

.bx-svc-mini-card__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f5e6b8;
}

.bx-svc-mini-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.bx-svc-mini-card__more {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}

/* ── 业务中心内页 ── */
.bx-services-page__hero {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}

.bx-services-page__hero h1 {
  margin: 0 0 10px;
  font-family: var(--bx-font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--bx-title);
}

.bx-services-page__hero-lead {
  margin: 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bx-muted);
}

.bx-services-page__panel {
  padding: 8px 0 48px;
}

@media (max-width: 1080px) {
  .bx-svc-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bx-svc-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bx-svc-featured-card__body {
    padding: 10px 10px 12px;
    gap: 8px;
  }

  .bx-svc-featured-card__title {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .bx-svc-featured-card:hover .bx-svc-featured-card__title {
    letter-spacing: 0.06em;
  }

  .bx-svc-featured-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .bx-svc-featured-card__desc {
    -webkit-line-clamp: 2;
    font-size: 12px;
    width: 100%;
  }

  .bx-svc-featured-card__more {
    max-width: none;
  }

  .bx-svc-mini-card {
    width: 168px;
  }

  .bx-svc-marquee {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bx-svc-marquee {
    overflow-x: auto;
  }

  .bx-svc-marquee__track {
    transform: none !important;
  }

  .bx-svc-marquee__edge {
    display: none;
  }
}
