/* 紧迫感促销 - 成交滚动（与首页楼层同宽） */
.urgencypromo-scroll-wrap {
    margin: 10px auto 14px;
    box-sizing: border-box;
}

.urgencypromo-scroll-ticker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.urgencypromo-scroll-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid #eee;
    white-space: nowrap;
}

.urgencypromo-scroll-stat {
    font-size: 12px;
    color: #888;
    line-height: 1;
}

.urgencypromo-scroll-stat strong {
    margin-right: 3px;
    font-size: 15px;
    font-weight: 700;
    color: #ff6b35;
}

.urgencypromo-scroll-stat-divider {
    color: #ddd;
    font-size: 12px;
}

.urgencypromo-scroll-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.urgencypromo-scroll-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
}

.urgencypromo-scroll-track {
    flex: 1;
    overflow: hidden;
    height: 22px;
    position: relative;
    min-width: 120px;
}

.urgencypromo-scroll-inner {
    position: relative;
    height: 22px;
}

.urgencypromo-scroll-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 22px;
    line-height: 22px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.45s ease, opacity 0.45s ease, visibility 0.45s ease;
}

.urgencypromo-scroll-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.urgencypromo-scroll-item.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.urgencypromo-scroll-user {
    color: #ff6b35;
    font-style: normal;
    font-weight: 600;
}

.urgencypromo-scroll-action {
    margin: 0 4px;
    color: #666;
}

.urgencypromo-scroll-goods {
    color: #333;
    font-style: normal;
    font-weight: 500;
}

.urgencypromo-scroll-time {
    color: #aaa;
    font-style: normal;
    margin-left: 6px;
    font-size: 12px;
}

.urgencypromo-scroll-live {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fff7f6;
    border: 1px solid #ffd8d2;
    border-radius: 20px;
    font-size: 11px;
    color: #e85d4c;
    white-space: nowrap;
}

.urgencypromo-scroll-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e85d4c;
    animation: urgencypromo-pulse 1.8s ease-in-out infinite;
}

@keyframes urgencypromo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

/* 限时倒计时 */
.urgencypromo-flash-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    font-size: 13px;
}

.urgencypromo-flash-countdown-label {
    color: #cf1322;
    font-weight: 600;
}

.urgencypromo-flash-countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: monospace;
    font-weight: 700;
    color: #cf1322;
}

.urgencypromo-flash-countdown-timer em {
    display: inline-block;
    min-width: 22px;
    padding: 1px 4px;
    background: #cf1322;
    color: #fff;
    border-radius: 3px;
    font-style: normal;
    text-align: center;
}

.urgencypromo-flash-countdown-tip {
    color: #999;
    font-size: 12px;
}

.urgencypromo-flash-label {
    display: inline-block;
    padding: 1px 6px;
    background: #cf1322;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 4px;
}

/* 库存紧张 */
.urgencypromo-low-stock-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    color: #d48806;
    font-size: 13px;
}

.urgencypromo-low-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 2px 8px;
    background: rgba(212, 136, 6, 0.92);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    line-height: 1.4;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgencypromo-grid-flash-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 2px 8px;
    background: #cf1322;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
}

.module-goods-grid-base .item {
    position: relative;
}

@media (max-width: 768px) {
    .urgencypromo-scroll-ticker {
        flex-direction: column;
        align-items: stretch;
        border-radius: 14px;
        padding: 10px 14px;
        gap: 8px;
    }
    .urgencypromo-scroll-stats {
        border-right: 0;
        padding-right: 0;
        justify-content: center;
    }
    .urgencypromo-scroll-live {
        display: none;
    }
    .urgencypromo-scroll-item {
        font-size: 12px;
    }
}
