:host {
  display: block;
}

.hb-tour {
  position: fixed;
  inset: 0;
  z-index: var(--hb-z-index-popover);
  pointer-events: auto;
}

/* 镂空遮罩（box-shadow 多段方案；jsdom 下退化为纯色遮罩） */
.hb-tour__mask {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
}

.hb-tour__card {
  position: absolute;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: var(--hb-spacing-lg);
  background-color: var(--hb-color-bg-elevated);
  border-radius: var(--hb-border-radius-base);
  box-shadow: var(--hb-box-shadow-lg);
  color: var(--hb-color-text);
  font-size: var(--hb-font-size-sm);
  z-index: 1;
}

.hb-tour__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--hb-spacing-sm);
}

.hb-tour__title {
  font-size: var(--hb-font-size-lg);
  font-weight: 600;
  color: var(--hb-color-text-primary);
}

.hb-tour__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--hb-color-text-tertiary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  transition: background-color var(--hb-transition-duration), color var(--hb-transition-duration);
}
.hb-tour__close:hover {
  background-color: var(--hb-color-fill-tertiary);
  color: var(--hb-color-text-secondary);
}

.hb-tour__body {
  color: var(--hb-color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--hb-spacing-lg);
}

.hb-tour__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hb-tour__indicator {
  color: var(--hb-color-text-tertiary);
  font-size: var(--hb-font-size-xs);
}

.hb-tour__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--hb-spacing-xs);
}

.hb-tour__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--hb-spacing-lg);
  font-size: var(--hb-font-size-sm);
  border-radius: var(--hb-border-radius-base);
  border: 1px solid var(--hb-color-border);
  background-color: var(--hb-color-bg-elevated);
  color: var(--hb-color-text);
  cursor: pointer;
  transition: all var(--hb-transition-duration);
}
.hb-tour__btn:hover {
  color: var(--hb-color-primary);
  border-color: var(--hb-color-primary-border);
}

.hb-tour__btn--next {
  background-color: var(--hb-color-primary);
  border-color: var(--hb-color-primary);
  color: var(--hb-color-text-inverse);
}
.hb-tour__btn--next:hover {
  background-color: var(--hb-color-primary-hover);
  border-color: var(--hb-color-primary-hover);
  color: var(--hb-color-text-inverse);
}
