/* ============================================================
   新用户操作引导样式 v4.0 | 2026-04-20
   科技风配色：深海蓝 + 青蓝电光
   ============================================================ */

/* ==================== CSS 变量 ==================== */
:root {
  --ob-blue-dark:   #0a1628;
  --ob-blue-mid:    #0d1f3c;
  --ob-blue-card:   #112240;
  --ob-accent:      #00c8ff;
  --ob-accent2:     #0082e6;
  --ob-accent-glow: rgba(0, 200, 255, 0.25);
  --ob-text-main:   #e8f4ff;
  --ob-text-sub:    #8ab4d4;
  --ob-text-muted:  #4a7fa8;
  --ob-border:      rgba(0, 200, 255, 0.18);
  --ob-border-glow: rgba(0, 200, 255, 0.45);
}

/* ==================== 动画 ==================== */
@keyframes ob-fade-bg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ob-pop-in {
  0%   { opacity: 0; transform: scale(0.88) translateY(16px); }
  65%  { transform: scale(1.025) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ob-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ob-pulse-ring {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--ob-accent),
      0 0 0 6px rgba(0,200,255,0.22),
      0 0 24px rgba(0,200,255,0.18);
  }
  50% {
    box-shadow:
      0 0 0 2px #40d9ff,
      0 0 0 10px rgba(0,200,255,0.1),
      0 0 40px rgba(0,200,255,0.25);
  }
}
@keyframes ob-scan-line {
  0%   { transform: translateY(-100%); opacity: 0.6; }
  100% { transform: translateY(400%);  opacity: 0; }
}
@keyframes ob-icon-float {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 6px var(--ob-accent)); }
  50%       { transform: translateY(-4px); filter: drop-shadow(0 0 12px var(--ob-accent)); }
}
@keyframes ob-border-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes ob-dot-active {
  0%   { box-shadow: 0 0 4px var(--ob-accent); }
  100% { box-shadow: 0 0 10px var(--ob-accent), 0 0 20px rgba(0,200,255,0.3); }
}

/* ==================== 遮罩层根容器 ==================== */
#ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
}

.ob-overlay-center {
  background: rgba(4, 12, 28, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ob-fade-bg 0.3s ease;
}

.ob-overlay-spotlight {
  background: transparent;
}

/* ==================== 四块遮罩（Spotlight） ==================== */
.ob-mask {
  position: fixed;
  background: rgba(4, 12, 28, 0.72);
  pointer-events: auto;
  left: 0; right: 0; top: 0; bottom: 0;
}
.ob-mask-top    { bottom: auto; }
.ob-mask-bottom { top: auto; }
.ob-mask-left   { right: auto; bottom: auto; }
.ob-mask-right  { left: auto;  bottom: auto; }

/* ==================== 高亮描边 ==================== */
.ob-highlight {
  position: fixed;
  border-radius: 10px;
  pointer-events: none;
  z-index: 99999;
  animation: ob-pulse-ring 2.4s ease-in-out infinite;
}

/* ==================== 居中欢迎弹窗 ==================== */
.ob-modal {
  background: var(--ob-blue-dark);
  border-radius: 18px;
  width: 520px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  overflow: hidden;
  /* 发光边框 */
  border: 1px solid var(--ob-border);
  box-shadow:
    0 0 0 1px var(--ob-border-glow),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 200, 255, 0.08),
    inset 0 1px 0 rgba(0,200,255,0.12);
  position: relative;
  pointer-events: auto;
  animation: ob-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 顶部青蓝光条 */
.ob-modal::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--ob-accent2) 20%,
    var(--ob-accent) 50%,
    var(--ob-accent2) 80%,
    transparent 100%);
  background-size: 200% auto;
  animation: ob-border-flow 2.5s linear infinite;
}

/* 扫描线装饰 */
.ob-modal::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0,200,255,0.04),
    transparent);
  animation: ob-scan-line 4s linear infinite;
  pointer-events: none;
}

.ob-modal-inner {
  padding: 28px 36px 26px;
  position: relative;
  z-index: 1;
}

/* 图标容器 */
.ob-modal-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,200,255,0.12), rgba(0,130,230,0.08));
  border: 1px solid rgba(0,200,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 20px rgba(0,200,255,0.15), inset 0 1px 0 rgba(0,200,255,0.2);
}

.ob-modal-icon {
  font-size: 32px;
  line-height: 1;
  animation: ob-icon-float 3s ease-in-out infinite;
}

.ob-modal-step-label {
  text-align: center;
  font-size: 10px;
  color: var(--ob-accent);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}

.ob-modal-title {
  font-size: 21px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.35;
  color: var(--ob-text-main);
  text-shadow: 0 0 20px rgba(0,200,255,0.25);
}

.ob-modal-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ob-text-sub);
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(0, 200, 255, 0.04);
  border-radius: 10px;
  border: 1px solid var(--ob-border);
  border-left: 2px solid var(--ob-accent);
}

.ob-modal-body strong {
  color: var(--ob-accent);
  font-weight: 600;
}
.ob-modal-body small {
  font-size: 12px;
  color: var(--ob-text-muted);
}

.ob-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==================== 气泡提示框（Spotlight） ==================== */
.ob-bubble {
  position: fixed;
  width: 316px;
  max-width: calc(100vw - 32px);
  background: var(--ob-blue-dark);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ob-border);
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.12),
    0 16px 50px rgba(0,0,0,0.55),
    0 0 40px rgba(0,200,255,0.07),
    inset 0 1px 0 rgba(0,200,255,0.1);
  z-index: 100000;
  pointer-events: auto;
  animation: ob-slide-up 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* 气泡扫描线 */
.ob-bubble::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0,200,255,0.03),
    transparent);
  animation: ob-scan-line 3.5s linear infinite;
  pointer-events: none;
}

/* 气泡头部 */
.ob-bubble-head {
  background: linear-gradient(135deg,
    rgba(0,130,230,0.35) 0%,
    rgba(0,200,255,0.2) 100%);
  border-bottom: 1px solid var(--ob-border);
  padding: 13px 15px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  /* 顶部光条 */
  box-shadow: inset 0 1px 0 rgba(0,200,255,0.25);
}

.ob-bubble-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(0,200,255,0.12);
  border: 1px solid rgba(0,200,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0,200,255,0.2);
}

.ob-bubble-title-wrap { flex: 1; min-width: 0; }

.ob-bubble-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ob-text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 10px rgba(0,200,255,0.3);
}

.ob-bubble-step-tag {
  font-size: 10px;
  color: var(--ob-accent);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* 气泡内容 */
.ob-bubble-body {
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ob-text-sub);
  position: relative;
  z-index: 1;
}

.ob-bubble-body strong {
  color: var(--ob-accent);
  font-weight: 600;
}
.ob-bubble-body small {
  font-size: 11.5px;
  color: var(--ob-text-muted);
  display: block;
  margin-top: 4px;
}

/* 气泡底部 */
.ob-bubble-footer {
  padding: 9px 15px 13px;
  border-top: 1px solid var(--ob-border);
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* ==================== 进度点 ==================== */
.ob-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ob-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,200,255,0.2);
  border: 1px solid rgba(0,200,255,0.3);
  display: inline-block;
  transition: all 0.3s;
}

.ob-dot-active {
  width: 14px;
  border-radius: 3px;
  background: var(--ob-accent);
  border-color: var(--ob-accent);
  animation: ob-dot-active 1.5s ease-in-out infinite alternate;
}

/* ==================== 按钮 ==================== */
.ob-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* 主按钮 */
.ob-btn-primary {
  background: linear-gradient(135deg, var(--ob-accent2) 0%, var(--ob-accent) 100%);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 7px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(0,200,255,0.35), 0 2px 8px rgba(0,0,0,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ob-btn-primary:hover {
  box-shadow: 0 0 20px rgba(0,200,255,0.55), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.ob-btn-primary:active { transform: translateY(0); box-shadow: none; }

/* 上一步按钮 */
.ob-btn-secondary {
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.25);
  color: var(--ob-text-sub);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 7px;
  transition: all 0.2s;
  white-space: nowrap;
}
.ob-btn-secondary:hover {
  background: rgba(0,200,255,0.12);
  border-color: rgba(0,200,255,0.5);
  color: var(--ob-accent);
}

/* 跳过按钮 */
.ob-btn-skip {
  background: transparent;
  border: none;
  color: var(--ob-text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 5px;
  transition: color 0.2s;
  white-space: nowrap;
}
.ob-btn-skip:hover { color: var(--ob-text-sub); }

/* ==================== 系统设置重新查看按钮 ==================== */
.ob-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--ob-accent2), var(--ob-accent));
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 9px;
  transition: all 0.2s;
  box-shadow: 0 0 14px rgba(0,200,255,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
.ob-restart-btn:hover {
  box-shadow: 0 0 24px rgba(0,200,255,0.5), 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.ob-restart-btn:active { transform: translateY(0); }

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
  .ob-modal-inner { padding: 22px 20px 20px; }
  .ob-modal-title { font-size: 18px; }
  .ob-bubble      { width: 270px; }
  .ob-modal-footer { flex-direction: column; align-items: flex-start; }
}
