/* 右下角「官方客服」浮动入口 —— 点击弹出官方微信二维码。
   独立样式，不依赖查询页 / 推荐官页两套主题变量，两边共用同一份。 */

/* 低存在感悬浮球：磨砂白小圆 + 细边 + 极淡阴影 + 品牌红图标。
   不抢页面主色、不压内容，滚动阅读时不扎眼。 */
.support-float {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 880;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  color: #c50a12;
  line-height: 1;
  cursor: pointer;
  opacity: 0.92;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-float:active { opacity: 1; transform: scale(0.94); }

.support-float svg { display: block; width: 21px; height: 21px; }

/* 榜单页底部有吸底的返回条，浮动入口往上让一截，别叠在一起 */
body[data-ranking-page="true"] .support-float {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

.support-dialog {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.support-dialog.is-open { display: flex; }

.support-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
}

.support-panel {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0 22px;
}

.support-head h2 {
  margin: 0;
  color: #161616;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.support-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.support-close:hover { color: rgba(0, 0, 0, 0.75); }

.support-body { padding: 10px 22px 26px; text-align: center; }

.support-body p {
  margin: 0 0 16px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.support-body img {
  display: block;
  width: min(300px, 70vw);
  max-height: 44vh;
  margin: 0 auto;
  object-fit: contain;
}
