/* AladdinToken API 售后服务台 — 风格 A 系统内聚光灯新手引导（非侵入挂载版） */
.ald-tour-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}
.ald-tour-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(245, 118, 19, 0.55);
  background: linear-gradient(135deg, rgba(10, 23, 43, 0.94), rgba(15, 34, 62, 0.94));
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(5, 13, 26, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ald-tour-fab:hover {
  transform: translateY(-2px);
  border-color: #FF9A3C;
  box-shadow: 0 14px 32px rgba(245, 118, 19, 0.28);
}
.ald-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F57613;
  box-shadow: 0 0 10px #F57613;
}
.ald-tour-menu {
  position: fixed;
  right: 22px;
  bottom: 70px;
  z-index: 9991;
  width: 236px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(9, 20, 38, 0.95);
  border: 1px solid rgba(148, 184, 224, 0.24);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}
.ald-tour-menu[hidden] { display: none; }
.ald-tour-menu-title {
  font-size: 11.5px;
  color: #9FB3C8;
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(148, 184, 224, 0.14);
  margin-bottom: 6px;
}
.ald-tour-menu button, .ald-tour-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #E2E8F0;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.ald-tour-menu button:hover, .ald-tour-menu a:hover {
  background: rgba(245, 118, 19, 0.16);
  color: #FDE68A;
}

/* Spotlight Overlay */
.ald-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: auto;
}
.ald-tour-svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}
.ald-tour-ring {
  position: fixed;
  z-index: 9996;
  border: 2.5px solid #FF9A3C;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(.22,.88,.32,1);
  box-shadow: 0 0 0 4px rgba(245, 118, 19, 0.25), 0 0 28px rgba(245, 118, 19, 0.48);
  animation: aldPulse 2s ease-in-out infinite;
}
@keyframes aldPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 118, 19, 0.28), 0 0 20px rgba(245, 118, 19, 0.42); }
  50%      { box-shadow: 0 0 0 8px rgba(245, 118, 19, 0.08), 0 0 32px rgba(245, 118, 19, 0.65); }
}

/* Popover Card */
.ald-tour-popover {
  position: fixed;
  z-index: 9998;
  width: min(350px, calc(100vw - 28px));
  border-radius: 14px;
  padding: 18px 20px 16px;
  background: linear-gradient(155deg, rgba(11, 24, 44, 0.97), rgba(16, 35, 62, 0.96));
  border: 1px solid rgba(245, 118, 19, 0.52);
  color: #F8FAFC;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  transition: left 0.3s ease, top 0.3s ease;
}
.ald-tour-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #FCD34D;
  margin-bottom: 8px;
}
.ald-tour-progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 12px;
}
.ald-tour-progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #F57613, #FCD34D);
  transition: width 0.3s ease;
}
.ald-tour-pop-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}
.ald-tour-pop-body {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.62;
  color: #D7E2F0;
}
.ald-tour-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ald-btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 184, 224, 0.24);
  color: #CBD5E1;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.ald-btn-ghost:hover { border-color: rgba(255,255,255,0.45); color: #FFFFFF; }
.ald-btn-primary {
  background: linear-gradient(135deg, #F57613, #FF9A3C);
  border: none;
  color: #1A0E03;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.ald-btn-primary:hover { filter: brightness(1.07); }

/* Welcome Modal (First Visit) */
.ald-tour-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(5, 12, 24, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ald-tour-modal {
  width: min(440px, 100%);
  border-radius: 16px;
  padding: 24px 26px;
  background: linear-gradient(145deg, #091629, #102440);
  border: 1px solid rgba(245, 118, 19, 0.48);
  color: #F8FAFC;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}
.ald-tour-modal h3 { margin: 8px 0 8px; font-size: 20px; }
.ald-tour-modal p { margin: 0 0 18px; font-size: 13.5px; color: #CBD5E1; line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  .ald-tour-ring { animation: none !important; transition: none !important; }
}
