/* 主题色脉冲描边 + 环境阴影（设置页、求职杂谈等共用） */

.settings-pulse-surface {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 24px 64px -48px color-mix(in srgb, var(--primary) 28%, transparent),
    0 8px 24px -16px rgba(15, 23, 42, 0.08),
    0 2px 10px -4px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.settings-pulse-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.settings-pulse-surface--live,
.profile-studio--ready {
  animation: profileStudioAmbientPulse 3.4s ease-in-out infinite;
}

.settings-pulse-surface--live::after,
.profile-studio--ready::after {
  animation: profileStudioBorderPulse 3.4s ease-in-out infinite;
}

@keyframes profileStudioBorderPulse {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--primary) 16%, transparent);
    box-shadow:
      inset 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent),
      0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent);
    opacity: 0.72;
  }

  50% {
    border-color: color-mix(in srgb, var(--primary) 52%, transparent);
    box-shadow:
      inset 0 0 18px 0 color-mix(in srgb, var(--primary) 7%, transparent),
      0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
    opacity: 1;
  }
}

@keyframes profileStudioAmbientPulse {
  0%,
  100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 24px 64px -48px color-mix(in srgb, var(--primary) 24%, transparent),
      0 8px 24px -16px rgba(15, 23, 42, 0.08),
      0 2px 10px -4px rgba(15, 23, 42, 0.06);
  }

  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 28px 72px -44px color-mix(in srgb, var(--primary) 38%, transparent),
      0 12px 32px -14px rgba(15, 23, 42, 0.1),
      0 4px 14px -4px rgba(15, 23, 42, 0.08),
      0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-pulse-surface,
  .settings-pulse-surface::after {
    animation: none !important;
  }
}
