:root {
    --progress-height: 8px;
}

.product-shipping-progress-bar {
    width: 100%;
    display: block;
    box-sizing: border-box;
    position: relative;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    background: #eeeeee;
    border-radius: 6px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 3px; */
    display: block;
}

.progress-bar {
    height: var(--progress-height);
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    border-radius: 6px;
    width: var(--progress);
    position: relative;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 条纹动画 */
/* .progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    60deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.3) 15px,
    rgba(255, 255, 255, 0.3) 30px
  );
  animation: stripe 4s linear infinite;
} */

/* 渐变高光 */
/* .progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0)
  );
} */

.progress-text {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    color: var(--cart-color);
}

.progress-text svg {
    display: block;
    width: 4rem;
    height: auto;
}

.progress-tips {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 5px;
    text-align: center;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.progress-tips span em {
    color: #FF5317;
    font-style: normal !important;
}

.progress-tips img {
    display: block;
    margin-right: 5px;
}

@keyframes stripe {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.completed .progress-tips {
    color: #16c60c;
}

/* 在原有样式基础上添加以下代码 */
.completed .progress-bar {
    /* 覆盖原有渐变色 */
    background: linear-gradient(135deg, #8decb4 0%, #16c60c 100%);
    /* 光晕动画 */
    animation: progress-glow 1.5s ease-out;
}

/* 完成时的高光效果 */
.completed .progress-bar::after {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0));
}

/* 条纹动画调整 */
.completed .progress-bar::before {
    animation: stripe 4s linear infinite, color-shift 4s infinite;
}

/* 光晕动画 */
@keyframes progress-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(126, 211, 33, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(126, 211, 33, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(126, 211, 33, 0);
    }
}

/* 颜色流动效果 */
@keyframes color-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}