/* ============================================================
   咨询悬浮入口（2026-11-28 v4）
   风格目标：艺术化，融入星空/紫蓝/衬线字的网站语言
   做法：细线描边 + 大量留白 + 衬线字竖排 + 极轻的呼吸
   不做：渐变块、光晕、粗边框 —— 那是通用 UI，不是这个站的样子
   ============================================================ */

.consult-dock {
  position: fixed;
  right: 44px;
  top: 44%;
  transform: translateY(-50%);
  z-index: calc(var(--z-nav, 200) + 5);
  font-family: inherit;
}

/* 主入口：横排胶囊，跟站内 .recruit-btn 一致 */
.consult-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #6c5ce7, #00b4f0);
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.34);
  transition: transform 0.3s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow 0.3s ease, filter 0.3s ease;
}

/* 悬停：只是线变亮一点，不位移、不放大 */
.consult-pill:hover {
  transform: translateX(-4px);
  filter: brightness(1.1);
  box-shadow: 0 12px 38px rgba(108, 92, 231, 0.68);
}

/* 极轻的呼吸：只在投影上，不改变形状 */
.consult-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.6);
  animation: consult-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes consult-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(108, 92, 231, 0); }
}

/* 顶部一个小星点，跟网站星空呼应 */
.consult-pill .ico {
  font-size: 9px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

/* 展开面板：往左弹出 */
.consult-panel {
  display: none;
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  min-width: 208px;
  padding: 26px 28px;
  border-radius: 2px;
  background: rgba(8, 8, 20, 0.94);
  border: 1px solid rgba(162, 155, 254, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.consult-dock.open .consult-panel {
  display: block;
}

.consult-label {
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}

.consult-id {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.06em;
  user-select: all;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(162, 155, 254, 0.2);
}

.consult-copy {
  display: block;
  width: 100%;
  padding: 9px 0;
  border: 1px solid rgba(162, 155, 254, 0.42);
  border-radius: 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}

.consult-copy:hover {
  border-color: rgba(162, 155, 254, 0.85);
  color: #ffffff;
  background: rgba(162, 155, 254, 0.08);
}

.consult-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 14px;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

/* ---------- 手机端：右侧偏下，尺寸收小 ---------- */
@media screen and (max-width: 768px) {
  .consult-dock {
    right: 16px;
    top: 46%;
  }

  .consult-pill {
    padding: 11px 20px;
    font-size: 13px;
  }

  .consult-panel {
    right: calc(100% + 12px);
    top: 50%;
    min-width: 184px;
    padding: 20px 22px;
  }

  .consult-id {
    font-size: 18px;
  }
}
