/* 七澄 / 77 SELECT 首页 stage 18：悬停分类菜单、统一入口卡片、透明正方形 Logo。 */
:root {
  --qqsc-stage18-deep: #123c43;
  --qqsc-stage18-teal: #8dd1c2;
  --qqsc-stage18-orange: #e88945;
  --qqsc-stage18-line: rgba(255, 255, 255, .18);
}

.navCon .textPic,
.navCon .textPic .icon {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  background: transparent !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-v2.svg?v=202611181520') !important;
}

/* 四个入口采用同一套卡片语言，仅用序号和边框表达层级。 */
.index.qqsc-brand-stage3-mounted .qqsc-role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) {
  align-self: stretch !important;
  min-height: 148px !important;
  box-sizing: border-box !important;
  justify-content: flex-end !important;
  padding: 22px 20px !important;
  background: rgba(255, 255, 255, .075) !important;
  border: 1px solid var(--qqsc-stage18-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #fff !important;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:hover,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:focus-visible {
  background: rgba(255, 255, 255, .14) !important;
  border-color: var(--qqsc-stage18-teal) !important;
  color: #fff !important;
  outline: none;
  transform: translateY(-3px);
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card::before,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child::before,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2)::before {
  color: var(--qqsc-stage18-orange) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  left: 20px !important;
  letter-spacing: .12em !important;
  position: absolute !important;
  top: 18px !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(1)::before { content: '01  BUY' !important; }
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2)::before { content: '02  OPEN' !important; }
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(3)::before { content: '03  GROW' !important; }
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(4)::before { content: '04  SUPPLY' !important; }

.index.qqsc-brand-stage3-mounted .qqsc-role-card__label,
.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 {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card__description,
.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: rgba(255, 255, 255, .68) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-top: 8px !important;
}

.index.qqsc-brand-stage3-mounted .qqsc-role-card__arrow,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child .qqsc-role-card__arrow,
.index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) .qqsc-role-card__arrow {
  color: var(--qqsc-stage18-orange) !important;
}

/* Real category data is injected into this panel by stage18 JS. */
.qqsc-home-category-menu {
  position: fixed;
  z-index: 10000;
  display: none;
  width: min(430px, calc(100vw - 24px));
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe7e4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 60, 67, .18);
}

.qqsc-home-category-menu[data-open='true'] {
  display: grid;
}

.qqsc-home-category-menu__title {
  grid-column: 1 / -1;
  padding: 4px 8px 8px;
  border-bottom: 1px solid #edf3f1;
  color: var(--qqsc-stage18-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.qqsc-home-category-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: #334448;
  font-size: 13px;
  text-decoration: none;
}

.qqsc-home-category-menu a::after {
  color: var(--qqsc-stage18-orange);
  content: '\2192';
  font-size: 15px;
}

.qqsc-home-category-menu a:hover,
.qqsc-home-category-menu a:focus-visible {
  background: #f1f7f5;
  color: var(--qqsc-stage18-deep);
  outline: none;
}

.qqsc-home-category-menu__loading,
.qqsc-home-category-menu__error {
  grid-column: 1 / -1;
  padding: 12px 8px;
  color: #667579;
  font-size: 12px;
}

@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: repeat(2, minmax(0, 1fr)) !important;
  }

  .index.qqsc-brand-stage3-mounted .qqsc-role-card,
  .index.qqsc-brand-stage3-mounted .qqsc-role-card:first-child,
  .index.qqsc-brand-stage3-mounted .qqsc-role-card:nth-child(2) {
    min-height: 106px !important;
    padding: 18px 16px !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;
  }

  .qqsc-home-category-menu {
    grid-template-columns: 1fr;
  }
}
