/* ============================================================
   WF 智能推荐媒体（发稿页，根据文章内容推荐媒体）
   位置：「选择媒体」按钮旁注入「智能推荐」
   流程：取标题+正文 → /api/media-resources/recommend → 浮层列表
        → 点「去选择」自动填入媒体搜索框
   ============================================================ */

.wfrec-btn {
  height: 32px;
  padding: 0 12px;
  margin-left: 8px;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
}
.wfrec-btn:hover { background: #fde68a; border-color: #f59e0b; }
.wfrec-btn:disabled { opacity: .55; cursor: default; }
.wfrec-btn .wfrec-ico { font-size: 13px; line-height: 1; }

/* 面板 */
.wfrec-panel {
  position: fixed;
  z-index: 10050;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  max-height: 72vh;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
  display: none;
  flex-direction: column;
  font-family: inherit;
}
.wfrec-panel.show { display: flex; }

.wfrec-head {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fafbfc;
}
.wfrec-head b { font-size: 13px; color: #1f2937; }
.wfrec-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eef4ff;
  color: #2f6bff;
  font-weight: 500;
}
.wfrec-tag.region { background: #fff7ed; color: #c2410c; }
.wfrec-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.wfrec-close:hover { color: #4b5563; }

.wfrec-list {
  overflow-y: auto;
  padding: 6px;
}
.wfrec-list::-webkit-scrollbar { width: 7px; }
.wfrec-list::-webkit-scrollbar-thumb { background: #dbe1ea; border-radius: 4px; }

.wfrec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  transition: background .12s;
}
.wfrec-item:hover { background: #f8fafc; }

.wfrec-main { flex: 1; min-width: 0; }
.wfrec-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wfrec-meta {
  margin-top: 3px;
  font-size: 11px;
  color: #6b7280;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wfrec-reason { color: #059669; }

.wfrec-price {
  font-size: 13px;
  font-weight: 700;
  color: #e8590c;
  white-space: nowrap;
}
.wfrec-price small { font-size: 10px; font-weight: 400; color: #9ca3af; }

.wfrec-pick {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d6e4ff;
  border-radius: 6px;
  background: #f5f9ff;
  color: #2f6bff;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.wfrec-pick:hover { background: #2f6bff; color: #fff; border-color: #2f6bff; }

.wfrec-empty {
  padding: 30px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.8;
}

.wfrec-foot {
  padding: 7px 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #9ca3af;
  background: #fafbfc;
}

.wfrec-loading {
  padding: 26px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}
