/* ==========================================================================
 * 需求「补充附件」样式 (2026-09-12)
 * 配套 attachments.js：上传状态行、可点击的附件链接、轻提示
 * ========================================================================== */

/* 上传状态行（替换打包产物里那句「演示环境仅保存文件名」） */
.hb-attach-status {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #74685d;
  overflow-wrap: break-word;
}
.hb-attach-status[data-kind='busy'] { color: #8a6d3b; }
.hb-attach-status[data-kind='ok']   { color: #2f6b3a; font-weight: 600; }
.hb-attach-status[data-kind='bad']  { color: #8d2b20; font-weight: 600; }

/* 需求详情页里「附件：xxx」变成的链接 —— 做成可点的小胶囊，明确「能点」 */
.hb-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 2px 0;
  padding: 3px 10px;
  border: 1px solid #e2c9b8;
  border-radius: 999px;
  background: #fdf6f0;
  color: #c93628;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 0.15s, border-color 0.15s;
}
.hb-attach-link::before { content: "\1F4CE"; font-size: 12px; }   /* 📎 */
.hb-attach-link:hover { background: #f8e7dc; border-color: #c93628; }
.hb-attach-link:active { background: #f2d9c9; }

/* 上传失败时的逃生口：明确跳过附件、直接发布（避免因为一个传不上去的文件卡死发布） */
.hb-attach-skip {
  color: #8d2b20;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.hb-attach-skip:hover { color: #b23c31; }

/* 轻提示 */
.hb-attach-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 9999;
  max-width: 86vw;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2f6b3a;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.hb-attach-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
