/* 七澄 77 select homepage layer, stage 2. Inserts no business data. */
.qqsc-brand-intro {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 164px;
  margin: 20px 0 18px;
  padding: 28px 32px;
  border: 1px solid #dbe7e4;
  border-radius: 16px;
  background: linear-gradient(135deg, #123c43 0%, #1c5960 62%, #6fafa2 140%);
  box-shadow: 0 12px 30px rgba(18, 60, 67, 0.12);
  box-sizing: border-box;
}

.qqsc-brand-intro__copy {
  min-width: 310px;
  color: #fff;
}

.qqsc-brand-intro__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.qqsc-brand-intro h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
}

.qqsc-brand-intro__subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.qqsc-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  flex: 1;
}

.qqsc-role-card {
  position: relative;
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 34px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.qqsc-role-card:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
  transform: translateY(-2px);
}

.qqsc-role-card__label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.qqsc-role-card__description {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.qqsc-role-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #f3c38f;
  font-size: 18px;
}

.index .publicTitle .more,
.index .moreBtn {
  color: #123c43 !important;
}

.index .font-bg-red {
  background-color: #e88945 !important;
}

.index .color-red {
  color: #e88945 !important;
}

.index .slider-banner,
.index .seckill,
.index .boutique,
.index .newGoodsList,
.index .newGoods,
.index .Recommended,
.index .classify {
  border-radius: 12px;
}

/* The role panel replaces the legacy homepage hero after it mounts. */
.index.qqsc-brand-stage2-mounted > .wrapper > .slider-banner,
.index.qqsc-brand-stage2-mounted > .wrapper > .category {
  display: none !important;
}

/* The legacy hero wrapper keeps a fixed 420px height after the banner is hidden. */
.index.qqsc-brand-stage2-mounted > .wrapper {
  height: auto !important;
  min-height: 0 !important;
}

@media screen and (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wrapper_1200,
  .min_wrapper_1200,
  .index,
  .index > .wrapper,
  .index > .categoryMain,
  .index > .categoryMain > .wrapper_1200 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .index > .categoryMain {
    position: static !important;
  }

  .qqsc-brand-intro {
    display: block;
    margin: 12px;
    padding: 22px 20px;
  }

  .qqsc-brand-intro__copy {
    min-width: 0;
  }

  .qqsc-brand-intro h1 {
    font-size: 25px;
  }

  .qqsc-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .qqsc-role-card__label {
    white-space: normal;
  }
}
