/* 各功能页顶栏：免费教学加客服微信 */

.site-cs-wechat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  max-width: none;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  cursor: pointer;
  box-sizing: border-box;
}

.site-cs-wechat[hidden],
.site-cs-wechat.hidden {
  display: none !important;
}

.site-cs-wechat-label {
  color: inherit;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.site-cs-wechat-id {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}

.mobile-drawer-cs {
  display: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  background: transparent;
  color: var(--ink-2, #444);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.workflows-page .nav-right .site-cs-wechat {
  margin-right: 4px;
}

.site-cs-wechat-modal[hidden] {
  display: none !important;
}

.site-cs-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.site-cs-wechat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.site-cs-wechat-modal-panel {
  position: relative;
  width: min(100%, 320px);
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: #fff;
  color: #222;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.site-cs-wechat-modal-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 650;
}

.site-cs-wechat-modal-id {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: break-all;
  user-select: all;
}

.site-cs-wechat-modal-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.site-cs-wechat-modal-actions button {
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.site-cs-wechat-modal-actions button[data-cs-wechat-copy] {
  background: #111;
  color: #fff;
  border-color: #111;
}

@media (max-width: 900px) {
  .nav-right .site-cs-wechat,
  .agent-bifang-nav-right .site-cs-wechat {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
    margin-right: auto;
    padding: 0;
    align-items: flex-start;
    text-align: left;
    font-size: 11px;
    line-height: 1.25;
    overflow: visible;
  }

  .nav-right .site-cs-wechat-label,
  .agent-bifang-nav-right .site-cs-wechat-label {
    width: 0;
    min-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-right .site-cs-wechat-id,
  .agent-bifang-nav-right .site-cs-wechat-id {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    letter-spacing: 0;
  }

  .mobile-drawer-cs {
    display: block;
    width: 100%;
  }
}
