/* V119-r160: 使用手册章节聚光引导(样式参照检察时空AI研判平台的演示说明) */
.tsp-manual-guide {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: rgba(2, 8, 20, 0.18);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-manual-guide[hidden] {
  display: none;
}

.tsp-manual-guide-highlight {
  position: fixed;
  border: 3px solid #22d3ee;
  border-radius: 10px;
  box-shadow: 0 0 0 4000px rgba(2, 8, 20, 0.18);
  pointer-events: none;
  transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s; box-shadow: 0 0 0 3px rgba(34,211,238,.35), 0 0 24px rgba(34,211,238,.3);
}

.tsp-manual-guide-highlight[hidden] {
  display: none;
}

.tsp-manual-guide-card {
  position: fixed;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 20px 16px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 14px;
  background: #0b1626;
  color: #e6f7ff;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.6);
}

html[data-tsp-theme="light"] .tsp-manual-guide-card {
  background: #ffffff;
  color: #243342;
  border-color: #b7d4de;
}

.tsp-manual-guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.tsp-manual-guide-close:hover {
  background: rgba(148, 163, 184, 0.32);
}

.tsp-manual-guide-chapter {
  margin: 0 0 4px;
  font-size: 12px;
  color: #67e8f9;
}

html[data-tsp-theme="light"] .tsp-manual-guide-chapter {
  color: #0369a1;
}

.tsp-manual-guide-step {
  margin: 0 0 8px;
  font-size: 11.5px;
  opacity: 0.72;
}

.tsp-manual-guide-card h2 {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.4;
}

.tsp-manual-guide-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.9;
}

.tsp-manual-guide-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}

.tsp-manual-guide-progress span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
}

.tsp-manual-guide-progress span.is-current {
  background: #22d3ee;
}

.tsp-manual-guide-progress span.is-done {
  background: rgba(34, 211, 238, 0.45);
}

.tsp-manual-guide-actions {
  display: flex;
  gap: 8px;
}

.tsp-manual-guide-actions button {
  flex: 1;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  font-size: 12.5px;
  cursor: pointer;
}

.tsp-manual-guide-actions .tsp-manual-guide-next {
  border-color: #0e7490;
  background: #0e7490;
  color: #ffffff;
  font-weight: 600;
}

.tsp-manual-guide-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

html[data-tsp-theme="light"] .tsp-manual-guide-actions button {
  background: #f0f5f9;
  color: #243342;
  border-color: #b7ccd4;
}

html[data-tsp-theme="light"] .tsp-manual-guide-actions .tsp-manual-guide-next {
  background: #0e7490;
  color: #ffffff;
}

/* 手册弹窗内的目录下划线按钮 */
.tsp-manual-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(103, 232, 249, 0.25);
}

.tsp-manual-toc-title {
  margin: 0;
  font-size: 12px;
  color: inherit;
  opacity: 0.72;
}

.tsp-manual-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 1px 0;
  color: #67e8f9;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tsp-manual-toc-link svg {
  opacity: 0.75;
}

.tsp-manual-toc-link:hover {
  color: #a5f3fc;
}

html[data-tsp-theme="light"] .tsp-manual-toc-link {
  color: #0369a1;
}

html[data-tsp-theme="light"] .tsp-manual-toc-link:hover {
  color: #075985;
}
