/* 双圈盘演示：补充样式（基础样式复用 /demo/assets/index-CslpPGHe.css） */

.back-btn {
  position: fixed; right: 16px; top: 14px; z-index: 999;
  display: inline-block; padding: 8px 18px; border-radius: 20px;
  background: #6c5ce7; color: #fff; text-decoration: none; font-size: 13px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, .35);
  cursor: pointer; border: none; transition: background .2s;
}
.back-btn:hover { background: #5b4bd6; }

/* ---- 表单 ---- */
.bi-form { max-width: 460px; }
.bi-form .fs {
  border: 1px solid #e4e4ef; border-radius: 10px;
  padding: 14px 16px 16px; margin: 4px 0 2px;
  display: flex; flex-direction: column; gap: 12px;
}
.bi-form legend {
  font-size: 13px; font-weight: 700; color: #6c5ce7; padding: 0 6px;
}
.bi-form .row { display: flex; gap: 12px; }
.bi-form .row label { flex: 1; }
.bi-form .inline { display: flex; gap: 8px; align-items: center; }
.bi-form .inline input { flex: 1; }
button.tiny, .btn.tiny {
  padding: 7px 12px; font-size: 12px; white-space: nowrap;
}
#typeHint {
  background: #f7f6fd; border-left: 3px solid #6c5ce7;
  padding: 10px 12px; border-radius: 0 8px 8px 0;
  margin: 2px 0 6px; line-height: 1.7;
}

/* ---- 内外圈图例 ---- */
.legend-ring {
  display: flex; gap: 24px; justify-content: center;
  font-size: 13px; color: #666; margin-top: 4px; flex-wrap: wrap;
}
.legend-ring .dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.legend-ring .dot.inner { background: #6c5ce7; }
.legend-ring .dot.outer {
  background: #fff; border: 2px solid #e67e22; box-sizing: border-box;
}

/* ---- 通用表格补充 ---- */
.bi-sum {
  font-size: 13px; color: #6c5ce7; font-weight: 600;
  background: #f7f6fd; display: inline-block;
  padding: 6px 14px; border-radius: 14px; margin-bottom: 10px;
}

/* 返回内容较长，限高滚动，避免把页面撑得太长 */
#respBox { max-height: 420px; }
#reqBox { max-height: 360px; }
.bi-foot {
  font-size: 12px; color: #999; margin-top: 10px; line-height: 1.7;
}
.bi-foot code {
  background: #f2f2f7; padding: 1px 5px; border-radius: 4px;
  font-size: 11.5px; color: #666;
}

.bi-pl { white-space: nowrap; font-size: 15px; }
.bi-pl .bi-nm {
  font-size: 12px; color: #666; margin-left: 5px; vertical-align: 1px;
}
.bi-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bi-sc { white-space: nowrap; font-size: 12.5px; color: #555; }
.bi-house { white-space: nowrap; font-weight: 600; color: #6c5ce7; }
.bi-rx { text-align: center; }
.bi-rx .rx { color: #c0392b; font-weight: 700; }

/* ---- 相位表 ---- */
.bi-asp-table td { vertical-align: middle; }
.bi-asp .aspect {
  white-space: nowrap;
  /* 占星符号优先走覆盖较全的字体，避免出现方块 */
  font-family: "DejaVu Sans", "Segoe UI Symbol", "Noto Sans Symbols2",
               PingFang SC, "Microsoft YaHei", sans-serif;
}
.bi-pl, .cp-pl, .cp-sign, .cp-on, .cp-off {
  font-family: "DejaVu Sans", "Segoe UI Symbol", "Noto Sans Symbols2",
               PingFang SC, "Microsoft YaHei", sans-serif;
}
.bi-pl .bi-nm, .bi-nm {
  font-family: PingFang SC, "Microsoft YaHei", sans-serif;
}
.bi-bar {
  display: block; height: 3px; background: #eee;
  border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.bi-bar b { display: block; height: 100%; background: #6c5ce7; border-radius: 2px; }

.bi-mv { white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.bi-mv .mv-app { color: #27ae60; }
.bi-mv .mv-sep { color: #e67e22; }
.bi-mv .mv-exa { color: #6c5ce7; }
.bi-mv .mv-na  { color: #bbb; font-weight: 400; }

/* ---- 力量对比 ---- */
.bi-cmp th { text-align: center; }
.bi-cbar {
  display: block; height: 4px; background: #f0f0f5;
  border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.bi-cbar b { display: block; height: 100%; border-radius: 2px; }
.bi-cbar.pos b { background: #27ae60; }
.bi-cbar.neg b { background: #c0392b; }
.bi-cbar.zero b { background: #ccc; }
.bi-diff { text-align: right; white-space: nowrap; font-weight: 700; }
.bi-diff.up { color: #27ae60; }
.bi-diff.down { color: #c0392b; }
.bi-diff.flat { color: #999; }

/* ---- 卡片标题里的序号徽标 ----
 * 基础样式里 .num 同时写了 background:currentColor 与 color:#fff，
 * 在 h2 内会解析成白底白字而不可见，这里显式指定配色。 */
.card h2 .num {
  background: #6c5ce7;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  font-family: "DejaVu Sans", "Segoe UI Symbol", sans-serif;
}

@media (max-width: 640px) {
  .bi-form .row { flex-direction: column; gap: 12px; }
  .bi-pl .bi-nm { display: none; }
  .legend-ring { gap: 14px; }
}
