/* ===== 互动模块 engage（收藏 / 对比 / 微反馈 / 浮动坞） =====
   命名空间 .eg-*，不污染站点其他样式。配色沿用站点体系：
   主蓝 #185fa5 / 深蓝 #1b2e4e / 暖金 #c3993a / 描边 #e8e4df
   设计原则：克制、不抢内容、用户主动触发。 */

.eg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}
.eg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid #e0dcd6;
  background: #fff;
  color: #1b2e4e;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  font-family: inherit;
}
.eg-btn:hover { border-color: #185fa5; color: #185fa5; }
.eg-btn .eg-ico { font-size: 15px; line-height: 1; }
.eg-btn.eg-active {
  border-color: #185fa5;
  background: #eef4fb;
  color: #185fa5;
  font-weight: 600;
}
.eg-btn.eg-cmp.eg-active {
  border-color: #c3993a;
  background: #fbf6ec;
  color: #9a6a00;
}
.eg-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 微反馈（资讯页） */
.eg-helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  padding: 12px 16px;
  background: #faf7f4;
  border: 1px solid #f0ece6;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
}
.eg-helpful .eg-hf-btns { display: flex; gap: 8px; }
.eg-helpful .eg-hf {
  border: 1px solid #e0dcd6; background: #fff; border-radius: 6px;
  padding: 6px 12px; cursor: pointer; font-size: 14px; transition: all .15s;
}
.eg-helpful .eg-hf:hover { border-color: #185fa5; }
.eg-helpful .eg-hf.eg-active { background: #eef4fb; border-color: #185fa5; }

/* 浮动坞 */
.eg-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.eg-dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1b2e4e;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(27,46,78,.28);
  font-size: 13px;
  transition: transform .12s ease;
}
.eg-dock-pill:hover { transform: translateY(-1px); }
.eg-dock-pill .eg-chip { display: inline-flex; align-items: center; gap: 4px; }
.eg-dock-pill .eg-badge {
  display: inline-block; min-width: 18px; text-align: center;
  background: #c3993a; color: #fff; border-radius: 999px;
  font-size: 11px; padding: 1px 5px; font-weight: 600;
}
.eg-dock-pill .eg-badge.eg-zero { background: rgba(255,255,255,.22); }

/* 展开面板 */
.eg-panel {
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(27,46,78,.18);
  display: none;
}
.eg-panel.eg-open { display: block; }
.eg-panel-head {
  display: flex; border-bottom: 1px solid #f0ece6;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.eg-tab {
  flex: 1; text-align: center; padding: 12px 0; font-size: 13px;
  color: #888; cursor: pointer; border-bottom: 2px solid transparent;
}
.eg-tab.eg-active { color: #185fa5; border-bottom-color: #185fa5; font-weight: 600; }
.eg-panel-body { padding: 8px 10px 12px; }
.eg-empty { color: #aaa; font-size: 12px; text-align: center; padding: 22px 10px; line-height: 1.6; }
.eg-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 6px; border-bottom: 1px solid #f5f2ee;
}
.eg-item:last-child { border-bottom: none; }
.eg-item a.eg-item-title {
  flex: 1; color: #1b2e4e; font-size: 13px; line-height: 1.45;
  text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.eg-item a.eg-item-title:hover { color: #185fa5; }
.eg-item .eg-rm {
  flex: none; border: none; background: none; color: #bbb; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 4px;
}
.eg-item .eg-rm:hover { color: #c0392b; }
.eg-panel-foot { padding: 10px; border-top: 1px solid #f0ece6; }
.eg-panel-foot a.eg-go {
  display: block; text-align: center; font-size: 13px; color: #185fa5;
  text-decoration: none; padding: 8px; border-radius: 6px; background: #f5f8fc;
}
.eg-panel-foot a.eg-go:hover { background: #eef4fb; }

/* 轻提示 */
.eg-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  background: rgba(27,46,78,.92); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; z-index: 10000;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.eg-toast.eg-show { opacity: 1; }

@media (max-width: 600px) {
  .eg-panel { width: calc(100vw - 36px); }
  .eg-dock { right: 12px; bottom: 12px; }
}
