/* ========================================
   高级视觉效果补充样式
   ======================================== */

/* 加载与成功状态反馈 */
.cta-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.cta-button.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid transparent;
  border-top-color: rgba(26, 20, 16, 0.8);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 成功状态 */
.cta-button.success {
  background: linear-gradient(135deg, rgba(74, 155, 127, 0.95), rgba(95, 191, 154, 0.98)) !important;
}

.cta-button.success::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: inherit;
  border-radius: inherit;
  z-index: 10;
}

@keyframes successPop {
  0% { 
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% { 
    transform: scale(1.3) rotate(180deg);
  }
  100% { 
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

/* 错误状态 */
.cta-button.error {
  background: linear-gradient(135deg, rgba(220, 60, 60, 0.95), rgba(180, 40, 40, 0.98)) !important;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* 脉冲提示效果 */
.pulse-hint {
  animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(247, 192, 92, 0.7);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(247, 192, 92, 0);
  }
}

/* 渐进式图片加载 */
.progressive-image {
  filter: blur(20px);
  transition: filter 0.8s ease;
}

.progressive-image.loaded {
  filter: blur(0);
}

/* 骨架屏加载 */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(26, 20, 16, 0.8) 0%,
    rgba(247, 192, 92, 0.15) 50%,
    rgba(26, 20, 16, 0.8) 100%
  );
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmerLoad {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 页面过渡效果 */
.page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(247, 192, 92, 0.2), #06070a);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

/* 工具提示样式 */
.tooltip {
  position: absolute;
  padding: 8px 14px;
  background: rgba(6, 7, 10, 0.95);
  border: 1px solid rgba(247, 192, 92, 0.4);
  border-radius: 6px;
  color: var(--color-accent-strong, #f7e7ad);
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(247, 192, 92, 0.4);
}

/* 进度条 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
  width: 0%;
  transition: width 0.3s ease;
  z-index: 10001;
  box-shadow: 0 0 10px var(--color-accent);
}

/* 通知消息 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(6, 7, 10, 0.95), rgba(26, 20, 16, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 192, 92, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10001;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  border-color: rgba(74, 155, 127, 0.6);
}

.notification.error {
  border-color: rgba(220, 60, 60, 0.6);
}

/* 模态遮罩 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9998;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 滚动指示器 */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator::after {
  content: "↓";
  font-size: 20px;
}
