/* 黄色进度条样式 */
.tom-progress-container {
  position: relative;
  width: 100%;
  height: 5px;
  background-color: #333; /* 深灰色底色 */
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

/* 进度条本身 */
.tom-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  border-radius: 3px;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 进度条动画效果 */
.tom-progress-bar.animating {
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 进度条闪光效果 */
.tom-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 不同尺寸的进度条 */
.tom-progress-container.small {
  width: 10%;
  min-width: 50px;
}

.tom-progress-container.medium {
  width: 30%;
  min-width: 100px;
}

.tom-progress-container.large {
  width: 50%;
  min-width: 200px;
}

.tom-progress-container.full {
  width: 100%;
}

/* 顶部固定进度条 */
.tom-progress-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 9999;
  margin: 0;
}

.tom-progress-top .tom-progress-bar {
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
}

.tom-progress-container.tom-progress-in-button {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 0;
  z-index: 2;
  pointer-events: none;
}

.tom-progress-container.tom-progress-in-button .tom-progress-bar {
  border-radius: 0;
}

/* 加载状态文本 */
.tom-progress-text {
  text-align: center;
  font-size: 12px;
  color: #ffd700;
  margin-top: 5px;
  font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
  .tom-progress-container {
    height: 4px;
  }
  
  .tom-progress-text {
    font-size: 11px;
  }
}

/* 禁用动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
  .tom-progress-bar,
  .tom-progress-bar::after {
    animation: none;
    transition: none;
  }
}
