/* guide-overlay.css — 首次启动引导页样式 */

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  animation: guide-fade-in 0.2s ease-out;
}

@keyframes guide-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.guide-overlay.hidden {
  display: none;
}

.guide-card {
  width: 560px;
  max-height: 560px;
  background: var(--bg-primary, #191a1c);
  border: 1px solid var(--border-color, #4c4c4c);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: guide-slide-up 0.25s ease-out;
}

@keyframes guide-slide-up {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 顶部进度指示 */
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
}

.guide-dots {
  display: flex;
  gap: 6px;
}

.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-tertiary, #4a4a4a);
  transition: background 0.2s, width 0.2s;
}

.guide-dot.active {
  background: var(--text-primary, #d4d4d4);
  width: 20px;
  border-radius: 4px;
}

.guide-dot.done {
  background: var(--text-secondary, #969696);
}

.guide-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.guide-skip {
  font-size: 12px;
  color: var(--text-secondary, #969696);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.guide-skip:hover {
  color: var(--text-primary, #d4d4d4);
  background: var(--bg-hover, #454545);
}

.guide-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-secondary, #969696);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.guide-close:hover {
  color: var(--text-primary, #d4d4d4);
  background: var(--bg-hover, #454545);
}

/* 插图区 */
.guide-illustration {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary, #3c3c3c);
  border-bottom: 1px solid var(--border-color, #4c4c4c);
  overflow: hidden;
}

.guide-illustration svg {
  width: 100%;
  height: 100%;
}

/* 内容区 */
.guide-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
}

.guide-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #d4d4d4);
  margin-bottom: 8px;
}

.guide-subtitle {
  font-size: 13px;
  color: var(--text-secondary, #969696);
  margin-bottom: 16px;
  line-height: 1.5;
}

.guide-content {
  font-size: 13px;
  color: var(--text-primary, #d4d4d4);
  line-height: 1.65;
}

.guide-content p {
  margin-bottom: 6px;
}

.guide-shortcut-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.guide-shortcut-row kbd {
  display: inline-block;
  min-width: 92px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: 'CIDE JetBrains Mono Thin', monospace;
  color: var(--text-primary, #d4d4d4);
  background: var(--bg-tertiary, #4a4a4a);
  border: 1px solid var(--border-color, #4c4c4c);
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}

.guide-shortcut-row span {
  color: var(--text-secondary, #969696);
  font-size: 12px;
}

.guide-tip {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary, #969696);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--bg-active, #505050);
}

/* 底部按钮 */
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-color, #4c4c4c);
}

.guide-btn {
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid var(--border-color, #4c4c4c);
  background: var(--bg-secondary, #3c3c3c);
  color: var(--text-primary, #d4d4d4);
}

.guide-btn:hover {
  background: var(--bg-hover, #454545);
}

.guide-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.guide-btn-primary {
  background: var(--bg-active, #505050);
  border-color: var(--bg-active, #505050);
}

.guide-btn-primary:hover {
  background: var(--bg-hover, #454545);
}

.guide-btn-text {
  background: none;
  border: none;
  color: var(--text-secondary, #969696);
  font-size: 12px;
  padding: 6px 12px;
}

.guide-btn-text:hover {
  color: var(--text-primary, #d4d4d4);
  background: var(--bg-hover, #454545);
  border-radius: 6px;
}