/* ============================================================
   匹配陪玩卡片 · 深色玻璃
   最后加载，覆盖历史白底样式；桌面端与移动端共用。
   ============================================================ */
html body[data-app-view] .companion-grid {
  gap: 16px;
}

html body[data-app-view] .companion-grid .companion-card {
  --card-line: rgba(111, 220, 255, 0.18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--card-line) !important;
  border-radius: 22px !important;
  padding: 17px !important;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(50, 150, 255, 0.2), transparent 52%),
    radial-gradient(90% 100% at 0% 100%, rgba(123, 86, 255, 0.14), transparent 60%),
    linear-gradient(155deg, rgba(13, 28, 45, 0.98), rgba(5, 11, 19, 0.99)) !important;
  color: #eaf9ff !important;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

html body[data-app-view] .companion-grid .companion-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 229, 255, 0.75), transparent);
  opacity: 0.8;
  pointer-events: none;
}

html body[data-app-view] .companion-grid .companion-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 212, 255, 0.16), transparent 68%);
  pointer-events: none;
}

html body[data-app-view] .companion-grid .companion-card:hover,
html body[data-app-view] .companion-grid .companion-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(104, 229, 255, 0.5) !important;
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(104, 229, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  outline: none;
}

html body[data-app-view] .companion-grid .companion-card-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

html body[data-app-view] .companion-grid .companion-avatar {
  width: 54px !important;
  height: 54px !important;
  border: 1px solid rgba(105, 231, 255, 0.5) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(33, 126, 222, 0.92), rgba(6, 24, 49, 0.96)) !important;
  color: #fff !important;
  font-size: 22.5px !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.38),
    0 0 0 3px rgba(104, 229, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body[data-app-view] .companion-grid .companion-avatar img {
  border-radius: 16px !important;
}

html body[data-app-view] .companion-grid .companion-identity strong,
html body[data-app-view] .companion-grid .companion-identity > strong {
  color: #f4fdff !important;
  font-size: 17.5px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

html body[data-app-view] .companion-grid .companion-identity > span {
  color: #7d9db3 !important;
  font-size: 12.5px !important;
}

html body[data-app-view] .companion-grid .companion-rating {
  color: #ffd27a !important;
  font-size: 12.5px !important;
  letter-spacing: 0.07em;
  text-shadow: 0 0 12px rgba(255, 190, 86, 0.2);
}

html body[data-app-view] .companion-grid .companion-credit {
  align-items: flex-end;
  padding-left: 8px;
}

html body[data-app-view] .companion-grid .companion-credit strong {
  color: #74f5bc !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1;
  text-shadow: 0 0 20px rgba(73, 235, 170, 0.36);
}

html body[data-app-view] .companion-grid .companion-credit span {
  color: #6e8fa2 !important;
  font-size: 12.5px !important;
}

html body[data-app-view] .companion-grid .companion-bio {
  margin: 10px 0 0;
  color: #8fadbf !important;
  font-size: 12.5px !important;
  line-height: 1.65;
}

html body[data-app-view] .companion-grid .companion-card-games {
  gap: 8px;
  margin-top: 12px;
}

html body[data-app-view] .companion-grid .companion-game-line {
  border: 1px solid rgba(99, 202, 255, 0.16) !important;
  border-radius: 12px !important;
  padding: 9px 11px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #b8d9e8 !important;
  font-size: 12.5px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html body[data-app-view] .companion-grid .companion-game-line .game-name {
  color: #ecfdff !important;
  font-weight: 850;
}

html body[data-app-view] .companion-grid .companion-game-line .rank-tag {
  border: 1px solid rgba(99, 230, 255, 0.24) !important;
  background: rgba(43, 165, 213, 0.14) !important;
  color: #9beaff !important;
}

html body[data-app-view] .companion-grid .service-tags b,
html body[data-app-view] .companion-grid .card-tag-row > span {
  border: 1px solid rgba(126, 219, 255, 0.18) !important;
  border-radius: 999px !important;
  padding: 2px 8px;
  background: rgba(42, 160, 212, 0.11) !important;
  color: #a7e5f7 !important;
  font-size: 12.5px !important;
  font-weight: 750;
}

html body[data-app-view] .companion-grid .companion-card-footer {
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid rgba(126, 219, 255, 0.13) !important;
  padding-top: 12px !important;
}

html body[data-app-view] .companion-grid .card-escort-quote > span { color: #7897aa !important; }
html body[data-app-view] .companion-grid .card-escort-quote > b { color: #d7effc !important; }
html body[data-app-view] .companion-grid .card-escort-quote > strong { color: #ffca70 !important; }

html body[data-app-view] .companion-grid .companion-card-actions {
  gap: 7px;
}

html body[data-app-view] .companion-grid .companion-card-actions .button {
  min-height: 32px;
  border: 1px solid rgba(96, 202, 255, 0.28) !important;
  border-radius: 10px !important;
  color: #f2fdff !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

html body[data-app-view] .companion-grid .companion-card-actions .button-primary {
  background: linear-gradient(125deg, #247df3, #22c6e6) !important;
  box-shadow: 0 9px 20px rgba(31, 133, 239, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html body[data-app-view] .companion-grid .companion-card-actions .button-secondary {
  border-color: rgba(126, 219, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: #bfe6f6 !important;
}

html body[data-app-view] .companion-hover-card {
  border: 1px solid rgba(99, 230, 255, 0.28) !important;
  background: rgba(7, 16, 27, 0.97) !important;
  color: #dff6ff !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html body[data-app-view] .companion-hover-card strong { color: #f4fdff !important; }
html body[data-app-view] .companion-hover-card span { color: #8fb0c3 !important; }
html body[data-app-view] .companion-hover-card button {
  border: 1px solid rgba(99, 230, 255, 0.22) !important;
  background: rgba(99, 230, 255, 0.09) !important;
  color: #c9effd !important;
}

@media (max-width: 700px) {
  html body[data-app-view] .companion-grid { gap: 12px; }
  html body[data-app-view] .companion-grid .companion-card { padding: 14px !important; border-radius: 18px !important; }
  html body[data-app-view] .companion-grid .companion-avatar { width: 48px !important; height: 48px !important; border-radius: 15px !important; }
  html body[data-app-view] .companion-grid .companion-credit strong { font-size: 22.5px !important; }
  html body[data-app-view] .companion-grid .companion-card-actions .button { flex: 1 1 0; }
}

/* 桌面端推荐陪玩：放大头像、文字与操作按钮 */
@media (min-width: 821px) {
  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-card {
    border-radius: 24px !important;
    padding: 20px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-card-head {
    gap: 15px;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 20px !important;
    font-size: 26px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-identity strong,
  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-identity > strong {
    font-size: 22.5px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-identity > span,
  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-rating {
    font-size: 16px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-credit strong {
    font-size: 34px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-credit span {
    font-size: 16px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-bio {
    margin-top: 12px;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-card-games {
    gap: 9px;
    margin-top: 14px;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-game-line {
    padding: 11px 13px !important;
    font-size: 16px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .service-tags b,
  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .card-tag-row > span {
    padding: 3px 9px;
    font-size: 16px !important;
  }

  html body[data-app-view="lobby"] .lobby-featured-section .companion-grid .companion-card-actions .button {
    min-height: 46px;
    padding-inline: 15px;
    font-size: 16px !important;
  }
}
