 .coupon-popup-wrapper {
    position: absolute;
    right: 15px;
    bottom: 300px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.coupon-popup-wrapper .close-btn-outer {
    width: 16px;
    height: 16px;
    background: #F0F0F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #A2A2A2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 6px;
    margin-right: 0px;
    z-index: 10000;
    border: 1px solid white;
}
.coupon-popup-wrapper .close-btn-outer:hover {
    border-color: #BFBFBF;
    transform: scale(1.05);
}
.coupon-popup-wrapper .coupon-float-card {
    width: 80px;
    height: 110px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: -8px 12px 24px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(2px);
    background-image: url(../images/app/countdown.png);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.coupon-popup-wrapper .coupon-float-card .card-header {
    position: relative;
    padding: 2px 2px 4px 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 60px;
}
.coupon-popup-wrapper .coupon-float-card .card-header .coupon-name {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    color: rgb(250,56,50);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255, 235, 190, 0.8);
    word-break: break-word;
    max-width: 70px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    overflow: hidden;
}
.coupon-popup-wrapper .coupon-float-card .card-header .coupon-tips {
    margin-top: 4px;
    color: #000000;
    font-size: 12px;
    font-weight: 600px;
    font-family: "黑体", "Microsoft YaHei", monospace, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI";
}
.coupon-popup-wrapper .coupon-float-card .countdown-area {
    flex: 1;
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 6px;
}
.coupon-popup-wrapper .coupon-float-card .countdown-area .stopwatch-tips {
    text-align: center;
    font-size: 12px;
}
.coupon-popup-wrapper .coupon-float-card .countdown-area .stopwatch-timer {
    font-family: "Microsoft YaHei", monospace, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI";
    font-weight: 600;
    text-align: center;
    width: 100%;
    background-color: rgb(200, 29, 49);
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.coupon-popup-wrapper .coupon-float-card.expired {
    background: linear-gradient(145deg, #e0dedb, #cecbc6);
    border-color: #a0a0a0;
    opacity: 0.85;
}
.coupon-popup-wrapper .coupon-float-card.expired .coupon-name {
    color: #6f4e38;
    text-decoration: line-through;
}
.coupon-popup-wrapper .coupon-float-card.expired .expired-message {
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(2px);
    padding: 4px 4px;
    border-radius: 20px;
    color: #5a2e12;
    margin-top: 4px;
    text-align: center;
}
.promo-bar-wrap {
    box-sizing: border-box !important;
}
.promo-bar-wrap .promo-bar-container {
    position: fixed;
    right: 30px;
    bottom: 80px;
    z-index: 1000;
}
.promo-bar-wrap .floating-bar {
    display: flex;
    flex-direction: column;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
}
.promo-bar-wrap .floating-card {
    width: 50px;
    height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.promo-bar-wrap .floating-card:hover {
    color: #15a3f9; 
}
.promo-bar-wrap .floating-card .default-img {
    width: 48px;
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
}
.promo-bar-wrap .floating-card .hover-img {
    width: 48px;
    height: auto;
    position: absolute;
    top: 8px;
    left: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.promo-bar-wrap .floating-card:hover .default-img {
    opacity: 0;
}
.promo-bar-wrap .floating-card:hover .hover-img {
    opacity: 1;
}
.promo-bar-wrap #promo-card .hover-img,
.promo-bar-wrap #promo-card .default-img {
    animation: promo-bar-treeSway 2s ease-in-out infinite;
    transform-origin: bottom center;
    width: 40px; /* 比客服按钮小 */
    height: auto;
    top: 13px;
    left: 4px;
}
@keyframes promo-bar-treeSway {
    0% {
        transform: rotate(-7deg);
    }
    15% {
        transform: rotate(-4deg);
    }
    30% {
        transform: rotate(-1deg);
    }
    45% {
        transform: rotate(2deg);
    }
    60% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(3deg);
    }
    85% {
        transform: rotate(0deg);
    }
    92% {
        transform: rotate(-3deg);
    }
    100% {
        transform: rotate(-7deg);
    }
}
.promo-bar-wrap .card-icon {
    font-size: 24px;
}
.promo-bar-wrap .card-text {
    font-size: 14px;
    font-weight: 500;
}
.promo-bar-wrap .floating-panel {
    position: fixed;
    right: -400px;
    bottom: 70px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 0;
    opacity: 0;
    display: flex;
    align-items: center;
}
.promo-bar-wrap .floating-panel.active {
    right: 100px;
    opacity: 1;
    bottom: 130px;
}
.promo-bar-wrap .floating-panel::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #0072e7; /* 蓝色背景 */
}
.promo-bar-wrap .panel-content {
    position: relative;
    width: 100%;
}
.promo-bar-wrap .service-panel {
    width: 150px;
    height: 150px;
}
.promo-bar-wrap .coupon-panel {
    position: fixed;
    bottom: 20px;
    z-index: 999;
    opacity: 0;
    width: 173px;
}
.promo-bar-wrap .coupon-panel.active {
    right: 100px;
    opacity: 1;
    bottom: 90px;
}
.promo-bar-wrap .coupon-panel img {
    width: 173px;
}
.promo-bar-wrap .active-panel {
    position: fixed;
    right: -400px;
    bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 20px 13px;
    opacity: 0;
    display: flex;
    align-items: center;
}
.promo-bar-wrap .active-panel.active {
    right: 100px;
    opacity: 1;
    bottom: 60px;
    height: 120px;
}
.promo-bar-wrap .active-panel::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white; /* 白色背景 */
}
.promo-bar-wrap .active-panel {
    width: 330px;
    height: 170px;
}
.promo-bar-wrap .active-panel .panel-header {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 5px;
    position: relative;
    color: #373838;
}
.promo-bar-wrap .active-panel .panel-header:hover {
    background-color: #f3f8ff;
    border-radius: 8px;
    color: #15a3f9; 
}
.promo-bar-wrap .active-panel .panel-header .img-container {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}
.promo-bar-wrap .active-panel .panel-header img {
    width: 30px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
.promo-bar-wrap .active-panel .panel-tip {
    font-size: 13px;
    text-align: left;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-top: 10px;
    font-weight: normal;
    line-height: 10px;
}
.promo-bar-wrap .active-panel .panel-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 30px;
    margin: 0;
}
.promo-bar-wrap .active-panel .panel-description {
    font-size: 13px;
    line-height: 1.4;
}
.promo-bar-wrap .active-panel .panel-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.promo-bar-wrap .active-panel .panel-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    border-top: 2px solid #6c757d;
    border-right: 2px solid #6c757d;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.promo-bar-wrap .active-panel .panel-title:hover {
    color: #15a3f9; 
}
.promo-bar-wrap .active-panel .panel-text-content:hover {
    color: #15a3f9; 
}
.promo-bar-wrap .active-panel .panel-description:hover {
    color: #15a3f9; 
}
.promo-bar-wrap .active-panel .panel-arrow:hover {
    color: #15a3f9;
}
.promo-bar-wrap .qrcode-container {
    text-align: center;
}
.promo-bar-wrap .qrcode-img {
    width: 150px;
    height: auto;
}
.promo-bar-wrap .qrcode {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #eee;
}
@media (max-width: 768px) {
    .promo-bar-wrap .active-panel {
        width: 260px;
        height: 170px;
    }
    .promo-bar-wrap .active-panel.active{
        right: 80px;
        opacity: 1;
        height: 130px;
    }
    .promo-bar-wrap .promo-bar-container {
        right: 10px;
    }
    .promo-bar-wrap .floating-panel.active {
        right: 80px;
    }
}
