/* ============================================================
   商务合作常驻标注（index.html / entry.html 共用）
   桌面端：页脚内一行；窄屏：右下角可关闭胶囊
   约束：备案链接、状态栏与任何既有组件都不改动。
   ============================================================ */

.biz-line { margin: 2px 0 0; line-height: 1.8; }

/* style.css 有全局 button 规则（边框/背景/hover 位移），此处逐项还原为纯文字按钮 */
.biz-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  transition: none;
  text-decoration: none;
}
.biz-copy b { font-weight: 600; letter-spacing: .3px; }
.biz-copy:hover, .biz-copy:active {
  transform: none;
  box-shadow: none;
  border: 0;
  background: none;
  color: var(--accent, #185fa5);
  text-decoration: underline;
}
.biz-copy:focus-visible {
  outline: 2px solid var(--accent-soft, #378add);
  outline-offset: 2px;
}

.biz-copied {
  margin-left: 8px;
  font-size: 11px;
  color: var(--accent, #185fa5);
}
.biz-copied[hidden] { display: none !important; }

/* index.html 的备案页脚在窄屏被压成 26px 单行且 overflow:hidden，
   桌面端这一行必须让位给悬浮胶囊，否则会被裁掉。 */
@media (max-width: 768px) {
  #beian-footer .biz-line { display: none !important; }
}

.biz-fab { display: none; }

@media (max-width: 768px) {
  .biz-fab {
    display: flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    right: 10px;
    bottom: 58px;
    z-index: 60;
    max-width: calc(100vw - 20px);
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--accent-line, rgba(24, 95, 165, .22));
    border-radius: 999px;
    background: var(--surface, #fff);
    color: var(--text-1, #1f2329);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
  }
  .biz-fab.is-dismissed { display: none; }
  .biz-fab .biz-copy { font-size: 11px; min-height: 24px; }
  .biz-fab .biz-copied {
    position: absolute;
    right: 8px;
    bottom: calc(100% + 6px);
    margin: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--text-1, #1f2329);
    color: #fff;
  }
  .biz-fab-close {
    flex: 0 0 auto;
    min-height: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface-3, #f0f1f3);
    color: var(--text-2, #5f5e5a);
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: none;
  }
  .biz-fab-close:hover, .biz-fab-close:active {
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--surface-3, #f0f1f3);
  }
  .biz-fab-close:focus-visible {
    outline: 2px solid var(--accent-soft, #378add);
    outline-offset: 2px;
  }
}
