/* ==========================================================================
   左下角悬浮按钮（样式与参考站一致）
   ========================================================================== */
.k-floatbtn {
    position: fixed; left: 22px; bottom: 40px; z-index: 1030;
    width: 56px; height: 56px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: #d9261c; color: #fff;
    box-shadow: 0 10px 28px -10px rgba(217, 38, 28, .55);
    transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease, background .2s ease;
}
.k-floatbtn i { font-size: 26px; line-height: 1; }
.k-floatbtn__badge {
    position: absolute; top: -4px; right: -6px;
    min-width: 22px; height: 22px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #111; color: #fff;
    border: 2px solid #fff; border-radius: 11px;
    font-size: 10px; font-weight: 800; letter-spacing: .02em; font-family: var(--k-font, inherit);
}
.k-floatbtn:hover {
    background: #b31b13;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 34px -12px rgba(217, 38, 28, .7);
}
@media (prefers-reduced-motion: reduce) {
    .k-floatbtn { transition: none; }
}
@media (max-width: 480px) {
    .k-floatbtn { left: 16px; bottom: 30px; width: 50px; height: 50px; }
    .k-floatbtn i { font-size: 23px; }
}

/* 免运费入口（位于新人券入口上方，黑色） */
.k-floatbtn--ship {
    bottom: 110px;
    background: #111;
    box-shadow: 0 10px 28px -10px rgba(17, 17, 17, .5);
}
.k-floatbtn--ship:hover {
    background: #000;
    box-shadow: 0 16px 34px -12px rgba(17, 17, 17, .6);
}
.k-floatbtn--ship .k-floatbtn__badge { background: #f5a623; color: #111; border-color: #fff; }
@media (max-width: 480px) {
    .k-floatbtn--ship { bottom: 92px; }
}
/* 桌面端放大 1.5 倍（56 → 84px）；移动端/平板维持原尺寸 */
@media (min-width: 993px) {
    .k-floatbtn { left: 24px; bottom: 44px; width: 84px; height: 84px; }
    .k-floatbtn i { font-size: 39px; }
    .k-floatbtn__badge { top: -6px; right: -9px; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; font-size: 13px; }
    .k-floatbtn--ship { bottom: 152px; }
}

/* ==========================================================================
   弹窗外壳（与参考站 .k-promo 完全一致）
   ========================================================================== */
.k-promo { position: fixed; inset: 0; z-index: 2147483001; display: none; align-items: center; justify-content: center; padding: 22px; }
.k-promo.is-open { display: flex; }
.k-promo__overlay { position: absolute; inset: 0; background: rgba(8, 8, 8, .78); opacity: 0; transition: opacity .3s ease; }
.k-promo.is-open .k-promo__overlay { opacity: 1; }

.k-promo__dialog {
    position: relative; z-index: 1;
    width: min(94vw, 460px); max-height: calc(100vh - 44px); overflow-y: auto;
    background: #fff; color: #111;
    border: 1px solid #111;
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .7);
    text-align: center;
    opacity: 0; transform: translateY(18px) scale(.97);
    transition: opacity .32s ease, transform .32s cubic-bezier(.2, .7, .3, 1);
}
.k-promo.is-open .k-promo__dialog { opacity: 1; transform: translateY(0) scale(1); }

/* 顶部黑带：小字大间距 */
.k-promo__top { background: #111; color: #fff; padding: 10px 52px 9px; border-bottom: 3px solid #d9261c; }
.k-promo__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.k-promo__close {
    position: absolute; top: 7px; right: 7px; z-index: 2;
    width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .7;
    transition: opacity .2s ease, transform .2s ease;
}
.k-promo__close:hover { opacity: 1; transform: rotate(90deg); }

.k-promo__main { padding: 26px 28px 24px; }

/* 爆炸星形：折扣数字最大最粗 */
.k-promo__burst { position: relative; width: 118px; height: 118px; margin: 0 auto 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.k-promo__burst svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #d9261c; }
.k-promo__burst-value { position: relative; font-size: 34px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.k-promo__burst-value i { font-size: 17px; font-style: normal; font-weight: 800; }
.k-promo__burst-off { position: relative; margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #fff; }

.k-promo__title { font-size: 25px; font-weight: 800; line-height: 1.2; margin: 0 0 10px; text-transform: uppercase; letter-spacing: -.01em; }
.k-promo__text { font-size: 13px; line-height: 1.65; color: #4a4a4a; margin: 0 0 16px; }

.k-promo__perks { list-style: none; margin: 0 0 18px; padding: 14px 0; display: grid; gap: 8px; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; text-align: left; }
.k-promo__perks li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.k-promo__tick { flex: 0 0 auto; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; background: #111; color: #fff; border-radius: 50%; }
.k-promo__tick svg { width: 11px; height: 11px; }

/* 倒计时：黑底白字方块 + 红色冒号 */
.k-promo__timer { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.k-promo__timer-label { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6b6b6b; }
.k-promo__clock { display: inline-flex; align-items: center; gap: 4px; }
.k-promo__clock b {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 32px; padding: 0 4px;
    background: #111; color: #fff;
    font-size: 16px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.k-promo__clock i { font-style: normal; font-size: 15px; font-weight: 800; color: #d9261c; }

.k-promo__cta {
    display: block; width: 100%; padding: 16px 20px;
    background: #d9261c; color: #fff;
    font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none; border: 0; cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.k-promo__cta:hover { background: #b31b13; color: #fff; transform: translateY(-1px); }
.k-promo__login { display: inline-block; margin-top: 12px; font-size: 12px; color: #6b6b6b; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.k-promo__login:hover { color: #111; }

/* 满减 / 运费档位行 */
.k-sale__tiers { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; text-align: left; }
.k-sale__tier {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e6e2d8; border-radius: 10px;
    background: #fff;
}
.k-sale__tier b { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #111; }
.k-sale__tier strong { font-size: 17px; font-weight: 700; color: #111; }
.k-sale__tier--best { border: 1.5px solid #111; background: #fbfaf7; }
.k-sale__tier-tag {
    position: absolute; top: -8px; right: 14px;
    padding: 0 6px;
    background: #fbfaf7;
    font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: #a09888;
}

/* 订阅弹窗内的表单与成功态 */
#spForm { margin: 0; }
#spForm .sp-input {
    width: 100%; height: 46px; padding: 0 14px; margin: 0 0 8px;
    border: 1px solid #111; background: #fff; color: #111;
    font-size: 14px; font-weight: 500; outline: none;
}
#spForm .sp-input:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
#spForm .sp-error { display: none; margin: 0 0 10px; font-size: 12px; color: #d9261c; text-align: left; }
#spForm .sp-error.is-on { display: block; }
#spForm .sp-shake { animation: spShake .4s ease; }
@keyframes spShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.sp-success { display: none; padding: 4px 0 0; }
.sp-success.is-on { display: block; }
.sp-success .sp-mail { font-size: 34px; margin-bottom: 6px; }
.sp-ok-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.sp-ok-sub { font-size: 13px; color: #4a4a4a; margin: 0 0 6px; }
.sp-ok-note { font-size: 12px; color: #6b6b6b; margin: 0 0 14px; }
.sp-shop { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px; background: #111; color: #fff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.sp-shop:hover { background: #000; color: #fff; }

@media (max-width: 480px) {
    .k-promo__main { padding: 22px 18px 20px; }
    .k-promo__title { font-size: 21px; }
    .k-promo__burst { width: 100px; height: 100px; }
    .k-promo__burst-value { font-size: 29px; }
}

/* 避免“最近订单”卡片与左下角悬浮按钮重叠 */
.lo-wrap { left: auto; right: 18px; }
@media (max-width: 640px) {
    .lo-wrap { left: 10px; right: 10px; bottom: 152px; }
}
