/* 七澄 / 77 SELECT 首页 stage 17：正方形导航标识、入口卡片层级。 */
:root {
  --qqsc-stage17-deep: #123c43;
  --qqsc-stage17-teal: #8dd1c2;
  --qqsc-stage17-orange: #e88945;
  --qqsc-stage17-ink: #172126;
}

.qqsc-home-category-trigger {
  cursor: pointer !important;
  user-select: none;
}

.qqsc-home-category-trigger:hover,
.qqsc-home-category-trigger:focus-visible {
  background: var(--qqsc-stage17-deep) !important;
  color: #fff !important;
  outline: none;
}

/* 导航使用高分辨率正方形 Logo，避免横向锁定图在小尺寸下发虚。 */
.navCon .textPic,
.navCon .textPic .icon {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  display: flex !important;
  align-items: center !important;
}

.navCon .textPic .icon img {
  width: 78px !important;
  height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
  object-fit: contain !important;
  object-position: center !important;
  content: url('/static/77select-nav-square.svg?v=202611181500') !important;
}

/* 买货与开店都是首要业务入口，统一为同规格主卡片。 */
.index.qqsc-brand-stage3-mounted .qqsc-role-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .9fr) !important;
  gap: 12px !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) {
  min-height: 164px !important;
  box-sizing: border-box !important;
  justify-content: center !important;
  padding: 24px !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child {
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, .96) !important;
  color: var(--qqsc-stage17-deep) !important;
  box-shadow: 0 14px 30px rgba(7, 32, 36, .18) !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) {
  background: var(--qqsc-stage17-teal) !important;
  border: 1px solid var(--qqsc-stage17-teal) !important;
  color: var(--qqsc-stage17-deep) !important;
  box-shadow: 0 10px 22px rgba(141, 209, 194, .2) !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child .qqsc-role-card__label,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) .qqsc-role-card__label,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child .qqsc-role-card__description,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) .qqsc-role-card__description {
  color: var(--qqsc-stage17-deep) !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2)::before {
  content: '平台合作' !important;
  color: var(--qqsc-stage17-orange) !important;
  font-size: 10px;
  font-weight: 700;
  left: 24px;
  letter-spacing: .08em;
  position: absolute;
  top: 18px;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) .qqsc-role-card__arrow {
  color: var(--qqsc-stage17-deep) !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child .qqsc-role-card__label,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) .qqsc-role-card__label {
  font-size: 19px !important;
  line-height: 1.35 !important;
}

@media screen and (max-width: 900px) {
  .nav .navCon {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }

  .navCon .textPic,
  .navCon .textPic .icon,
  .navCon .textPic .icon img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
  }

  .index.qqsc-brand-stage3-mounted .qqsc-role-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
  }

  .index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child,
  .index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) {
    min-height: 118px !important;
    padding: 18px !important;
  }
}

@media screen and (max-width: 430px) {
  .nav .navCon {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .navCon .textPic,
  .navCon .textPic .icon,
  .navCon .textPic .icon img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
  }
}
