svg{max-width:48px!important;max-height:48px!important}
.bottom-nav-inner svg,.bottom-nav svg{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important}
.admin-sidebar svg{max-width:18px!important;max-height:18px!important}
.cm-notice{display:flex;align-items:center;gap:8px;background:var(--w,#fff);border-radius:10px;padding:10px 14px;margin:10px 0;box-shadow:0 1px 6px rgba(0,0,0,.04)}
.cm-notice a{flex:1;font-size:13px;color:var(--t2,#666);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-notice-tag{flex-shrink:0;background:var(--c-grad,#ff4655);color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px}
.cm-coupons{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cm-coupons::-webkit-scrollbar{display:none}
.cm-coupon{flex-shrink:0;display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#fff5f4,#fff);border:1px solid #ffe0db;border-radius:10px;padding:10px 12px;text-decoration:none;min-width:200px;transition:transform .2s}
.cm-coupon:active{transform:scale(.97)}
.cm-coupon-val{font-size:22px;font-weight:800;color:var(--c,#ff4655);line-height:1}.cm-coupon-val small{font-size:12px}
.cm-coupon-info{flex:1;min-width:0}.cm-coupon-name{font-size:13px;font-weight:600;color:var(--t1,#282828)}.cm-coupon-cond{font-size:11px;color:var(--t3,#999);margin-top:2px}
.cm-coupon-btn{flex-shrink:0;background:var(--c-grad,#ff4655);color:#fff;font-size:11px;font-weight:700;padding:5px 12px;border-radius:14px}
.cm-section{margin:0 -12px;padding:0 12px}
@media(min-width:769px){.cm-section{margin:0;padding:0}}
.cm-sec-header{display:flex;align-items:center;gap:10px;padding:14px 0 8px;flex-wrap:nowrap}
.cm-sec-title{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:800;color:var(--t1,#282828);flex-shrink:0}
.cm-sec-bar{display:inline-block;width:4px;height:18px;border-radius:2px;background:var(--c-grad,#ff4655)}
.cm-sec-more{font-size:12px;color:var(--t3,#999);text-decoration:none;flex-shrink:0;white-space:nowrap}
.cm-sec-right{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:auto}
.cm-cat-pills{display:flex;gap:4px;overflow-x:auto;flex:1;min-width:0;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cm-cat-pills::-webkit-scrollbar{display:none}
.cm-cat-pills a{flex-shrink:0;padding:5px 14px;border-radius:18px;font-size:12px;font-weight:500;color:var(--t2,#666);background:var(--w,#fff);text-decoration:none;transition:all .2s;white-space:nowrap}
.cm-cat-pills a.active{background:var(--c-grad,#ff4655);color:#fff;font-weight:600;box-shadow:0 2px 8px rgba(255,70,85,.25)}
.cm-cat-pills a:active{transform:scale(.95)}
.cm-view-toggle{
    flex-shrink:0;
    width:28px;height:28px;
    border-radius:8px;
    background:var(--w,#fff);
    color:var(--t2,#666);
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:all .25s ease;
    padding:0;
    border:1px solid #eee;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.cm-view-toggle:hover{
    background:linear-gradient(135deg,#fff5f6,#fff);
    color:#ff4655;
    border-color:#ff465533;
    box-shadow:0 2px 8px rgba(255,70,85,.12);
    transform:scale(1.05);
}
.cm-view-toggle:active{
    transform:scale(.92);
}
.cm-view-toggle svg{width:15px;height:15px;display:inline-block;transition:transform .3s ease}
.cm-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px;
    padding:6px 0 12px;
    transition:all .35s cubic-bezier(.4,0,.2,1);
}
@media(min-width:520px){.cm-grid{grid-template-columns:repeat(3,1fr);gap:10px}}
@media(min-width:900px){.cm-grid{grid-template-columns:repeat(4,1fr);gap:12px}}
@media(min-width:1200px){.cm-grid{grid-template-columns:repeat(5,1fr);gap:14px}}
.cm-grid-list{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    padding:6px 0 12px!important;
    transition:all .35s cubic-bezier(.4,0,.2,1);
}
.cm-card{display:flex;flex-direction:column;background:var(--w,#fff);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 1px 6px rgba(0,0,0,.05);transition:transform .2s,box-shadow .2s;position:relative;animation:cmCardIn .3s ease both}
@keyframes cmCardIn{
    from{opacity:0;transform:translateY(12px)}
    to{opacity:1;transform:translateY(0)}
}
@keyframes seckillBreath {
    0% {opacity: 0.9;transform: scale(1);filter: brightness(1);}
    50% {opacity: 1;transform: scale(1.02);filter: brightness(1.1);}
    100% {opacity: 0.9;transform: scale(1);filter: brightness(1);}
}

/* ===== 秒杀角标（统一修复） ===== */
.cm-card-img-wrap {
    position: relative !important;   /* 锁定子元素定位 */
    overflow: hidden !important;     /* 物理隔绝：角标不会溢出到导航栏 */
    /*border-radius: 8px !important;*/
}

.seckill-tag-animate {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;           /* 右上角 */
    left: auto !important;
    z-index: 2 !important;
    
    /* 尺寸与排版 */
    height: 20px !important;
    line-height: 20px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    
    /* 颜色与圆角 */
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 50%, #f5222d 100%) !important;
    color: #fff !important;
    border-radius: 0 8px 0 8px !important;  /* 右上角直角，左下圆角 */
    
    /* 呼吸动画 */
    animation: seckillBreath 1.2s ease-in-out infinite !important;
    box-shadow: 0 2px 8px rgba(245, 34, 45, 0.5), 0 0 12px rgba(255, 77, 79, 0.3) !important;
    text-shadow: 0 0 4px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.2) !important;
    
    /* 防止文字挤压 */
    white-space: nowrap !important;
    transform: scale(1) !important;  /* 消除动画中可能产生的缩放干扰 */
}

.cm-card-list-img-wrap {position: relative !important;display: block;}

.cm-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.1)}
.cm-card:active{transform:scale(.98)}
.cm-card-img{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:#f8f8f8}
.cm-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.cm-card:hover .cm-card-img img{transform:scale(1.05)}
.cm-card-ph{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.cm-card-ph .letter{font-size:32px;font-weight:800;opacity:.4}
.cm-card-ph .hint{font-size:11px;opacity:.3;margin-top:4px}
.cm-card-tag{position:absolute;top:0;left:0;padding:3px 10px;font-size:10px;font-weight:700;color:#fff;border-radius:0 0 10px 0}
.cm-card-tag.sec{background:linear-gradient(135deg,#ff9500,#ff5e3a)}
.cm-card-body{padding:10px;flex:1;display:flex;flex-direction:column}
.cm-card-name{font-size:13px;font-weight:600;line-height:1.45;color:var(--t1,#282828);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.cm-card-bottom{margin-top:auto;padding-top:6px}
.cm-card-price{display:flex;align-items:baseline;gap:6px}
.cm-card-price .now{font-size:18px;font-weight:800;color:var(--c,#ff4655);letter-spacing:-.5px}
.cm-card-price .now small{font-size:11px;font-weight:600}
.cm-card-price .old{font-size:11px;color:#ccc;text-decoration:line-through}
.cm-card-meta{display:flex;align-items:center;gap:5px;margin-top:5px;flex-wrap:wrap}
.cm-tag{font-size:10px;padding:1px 6px;border-radius:3px;font-weight:500}
.cm-tag.stock{background:#e8f9ee;color:#07c160}.cm-tag.low{background:#ffeded;color:#ff4655}.cm-tag.sales{background:#f5f5f5;color:#999}
.cm-cart-btn{position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:50%;background:var(--c-grad,#ff4655);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(255,70,85,.3);transition:all .2s;z-index:2;padding:0}
.cm-cart-btn svg{width:14px;height:14px}
.cm-cart-btn:hover{transform:scale(1.15)}.cm-cart-btn:active{transform:scale(.9)}
.cm-cart-btn.adding{opacity:.5;pointer-events:none}
.cm-cart-btn.added{background:#07c160!important;box-shadow:0 2px 8px rgba(7,193,96,.3)}
.cm-cat-mobile{display:block}.cm-cat-desktop{display:none}
@media(min-width:769px){.cm-cat-mobile{display:none}.cm-cat-desktop{display:flex;gap:20px;min-height:70vh}}
.cm-cat-topbar {display: flex;overflow-x: auto;-webkit-overflow-scrolling: touch;scrollbar-width: none;gap: 0px;padding: 0px 0;position: sticky;top: 0;z-index: 40;background: var(--bg, #ffffff33);margin: 0;padding-left: 12px;padding-right: 12px;}
.cm-cat-topbar::-webkit-scrollbar {display: none;}
.cm-cat-pill{flex-shrink:0;padding:7px 18px;border-radius:20px;font-size:13px;font-weight:500;color:var(--t2,#666);background:var(--w,#fff);text-decoration:none;transition:all .2s;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.cm-cat-pill.active{background:var(--c-grad,#ff4655);color:#fff;font-weight:600;box-shadow:0 2px 10px rgba(255,70,85,.25)}
.cm-cat-pill:active{transform:scale(.95)}
.cm-cat-sidebar{width:190px;flex-shrink:0;background:var(--w,#fff);border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,.05);align-self:flex-start;position:sticky;top:70px;max-height:calc(100vh - 90px);overflow-y:auto;scrollbar-width:thin}
.cm-cat-sidebar-hd{display:flex;align-items:center;gap:6px;padding:16px 16px 12px;font-size:14px;font-weight:700;color:var(--t1);border-bottom:1px solid var(--bd,#f0f0f0)}
.cm-cat-sidebar-list{padding:6px 0}
.cm-cat-sidebar-list a{display:block;padding:11px 16px;font-size:13px;font-weight:500;color:var(--t2,#666);text-decoration:none;transition:all .2s;border-left:3px solid transparent}
.cm-cat-sidebar-list a:hover{background:var(--bg,#ffffff);color:var(--t1)}
.cm-cat-sidebar-list a.active{color:var(--c,#ff4655);font-weight:700;background:rgba(255,70,85,.06);border-left-color:var(--c,#ff4655)}
.cm-cat-content{flex:1;min-width:0}
.cm-float-cart{position:fixed;right:16px;bottom:78px;z-index:90;width:48px;height:48px;border-radius:50%;background:var(--c-grad,#ff4655);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(255,70,85,.35);text-decoration:none;transition:all .3s}
.cm-float-cart svg{width:21px;height:21px}
.cm-float-cart:hover{transform:scale(1.1)}.cm-float-cart:active{transform:scale(.95)}
.cm-float-cart-badge{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;border-radius:9px;background:#ff4655;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;line-height:1}
.cm-fly{position:fixed;width:10px;height:10px;border-radius:50%;background:var(--c,#ff4655);z-index:9999;pointer-events:none;animation:cmFly .45s cubic-bezier(.2,.8,.3,1) forwards}
@keyframes cmFly{0%{transform:scale(1);opacity:1}50%{transform:scale(1.5) translateY(-25px);opacity:.7}100%{left:var(--tx);top:var(--ty);transform:scale(0);opacity:0}}
@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.cm-loading{text-align:center;padding:24px;color:var(--t3,#999);font-size:13px}
.cm-empty{grid-column:1/-1;text-align:center;padding:50px 0;color:var(--t3,#999);font-size:14px}
@media(max-width:520px){
    .cm-card-body{padding:8px}.cm-card-name{font-size:12px;min-height:32px}.cm-card-price .now{font-size:16px}
    .cm-float-cart{width:44px;height:44px;bottom:86px;right:12px}
    .cm-cart-btn{width:28px;height:28px;right:6px;bottom:6px}
}
*{box-sizing:border-box;margin:0;padding:0;}
body{background:#f7f8fa;font-family:system-ui,-apple-system,Segoe UI;font-size:14px;padding-top: 56px;}
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    padding: 0 14px;
    z-index: 999;
}
.nav-title {
    flex: 1;
    color: #222222;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
}
.wrap{padding:0px;max-width:100%;margin:0 auto;padding-bottom:60px;}
.cm-cat-mobile .cm-cat-topbar{
    display: flex;
    gap: 12px;
    width: 100%;
    margin: 0 0 16px;
    overflow-x: auto;
    padding-bottom:4px;
    background: #f7f8fa;
}
.cm-cat-pill {
    flex-shrink:0;
    padding:10px 20px;
    border-radius:999px;
    background:#fff;
    color:#666;
    text-decoration:none;
    white-space:nowrap;
}
.cm-cat-pill.active{
    background:#ff4655;
    color:#fff;
}
.cm-empty{text-align:center;padding:60px 0;color:#999}
.cm-loading{text-align:center;padding:30px;color:#999;font-size:13px}
.cm-no-more{text-align:center;padding:20px;color:#bbb;font-size:12px}

/* ========== 导航栏（未滚动）白色渐变 ========== */
.header-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,       /* 顶部纯白 */
        rgba(255, 255, 255, 0.54) 60%,   /* 中间过渡 */
        rgba(255, 255, 255, 0) 100%      /* 底部完全透明 */
    ) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    z-index: 9999;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* ========== 导航栏（滚动后）纯白色半透明 + 毛玻璃 ========== */
.header-top-bar.scroll-solid {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.89) !important;  /* 纯白色半透明 */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* ========== 搜索框布局（保持不变） ========== */
.header-logo-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    display: block;
}
.search-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 560px;
    height: 38px;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 0 12px;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.search-input-wrap:focus-within {
    background: #fff;
    border-color: #ff4655;
    box-shadow: 0 0 0 3px rgba(255,70,85,0.1);
}
.search-input-wrap form {
    flex: 1;
    height: 100%;
    min-width: 0;
}
.search-input-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}
.search-input-wrap input::placeholder {
    color: #999;
}

@media (min-width: 769px) {
    .header-top-bar {
        padding: 0 16px;
        gap: 12px;
    }
    .search-input-wrap {
        max-width: 100%;
        width: 100%;
        height: 40px;
    }
    .user-avatar {
        width: 38px;
        height: 38px;
    }
}
@media (min-width: 520px) and (max-width: 768px) {
    .search-wrapper {
        flex: 1;
    }
    .search-input-wrap {
        max-width: 100%;
        height: 36px;
    }
    .user-avatar {
        width: 36px;
        height: 36px;
    }
}
@media (max-width: 519px) {
    body {
        padding-top: 50px;
    }
    .header-top-bar {
        height: 50px;
        padding: 0 10px;
        gap: 8px;
    }
    .header-logo-box {
        display: flex;
        flex-shrink: 0;
    }
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    .search-wrapper {
        flex: 1;
        min-width: 0;
    }
    .search-input-wrap {
        max-width: 100%;
        height: 34px;
        padding: 0 10px;
        gap: 6px;
        border-radius: 17px;
    }
    .search-input-wrap input {
        font-size: 13px;
    }
/* 自动/人工发货角标 - 带呼吸动画 */
.tag-delivery {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.5;
}
.tag-auto {
    background: linear-gradient(135deg, #b8e6cf, #88d8b0); /* 马卡龙绿色渐变 */
}
.tag-manual {
    background: linear-gradient(135deg, #d4b8e6, #b388d8); /* 马卡龙紫色渐变 */
}

/* ★ 呼吸动画 */
.delivery-breathe {
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.08); }
}
