.recommend p {
    font-size: 14px;
}

.category {
    padding: 40px 0;
}

.separator {
    display: block;
    width: 60px;
    height: 5px;
    margin: 15px auto 15px;
    background-color: #cccccc;
    position: relative;
    border: 1px solid #cccccc;
}

.separator:after {
    width: 30px;
    height: 5px;
    background: #333333;
    position: absolute;
    top: -1px;
    left: -1px;
    content: "";
}

.category-menus li {
    display: inline-block;
    margin: 4px;
}

.goods-buy {
    line-height: 40px;
    font-size: 13px;
}

.goods-introduction-cate {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.buy-form label {
    font-size: 16px;
}

/* ========================================= */
/* 电脑端优化：强制商品标题显示两行并优化排版 */
/* ========================================= */
.card-body .card-title.text-truncate {
    white-space: normal !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 14px !important; 
    line-height: 1.5 !important; 
    height: 42px !important; 
    margin-bottom: 10px !important; 
}

/* ========================================= */
/* 👇 手机端专属优化：防图片撑爆 + 导航栏外显 👇 */
/* ========================================= */

.card-body img, .good-card img {
    max-width: 100% !important; 
    height: auto !important;    
    object-fit: contain !important;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: none !important; 
    }
    .navbar-collapse.collapse {
        display: flex !important; 
        flex-basis: auto !important;
    }
    .navbar-nav {
        flex-direction: row !important; 
        justify-content: center !important; 
        width: 100%;
        flex-wrap: wrap; 
    }
    .navbar-nav .nav-item {
        margin: 0 8px !important; 
    }
    .navbar-nav .nav-link {
        font-size: 14px !important; 
        padding: 0.5rem 0 !important;
    }
} 

/* ========================================= */
/* 👇 独家定制：PC端动态折叠悬浮导航栏 (放大+动画版) 👇 */
/* ========================================= */
.right-float-bar {
    position: fixed;
    top: 50%;
    right: 10px; 
    transform: translateY(-50%);
    width: 160px; 
    background-color: #ffffff;
    border: 1px solid #4a90e2; 
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.right-float-bar.collapsed {
    right: -162px; 
}

.float-tab {
    position: absolute;
    left: -30px; 
    top: -1px; 
    width: 30px;
    height: 44px;
    background-color: #4a90e2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px 0 0 6px; 
    font-weight: bold;
    font-size: 18px;
    border: 1px solid #4a90e2;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.right-float-bar.collapsed .float-tab .arr {
    transform: rotate(180deg); 
}
.float-tab .arr {
    transition: transform 0.3s;
}

.right-float-bar .float-header {
    background-color: #4a90e2; 
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-size: 16px; 
    font-weight: bold;
}

.right-float-bar .float-item {
    display: block;
    padding: 12px 15px; 
    color: #333333;
    text-decoration: none;
    font-size: 14px; 
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

.right-float-bar .float-item:hover {
    background-color: #f0f7ff; 
    color: #4a90e2; 
    padding-left: 20px; 
}

.right-float-bar .float-qr {
    padding: 15px;
    text-align: center;
    background-color: #fafafa;
}

.right-float-bar .float-qr img {
    width: 120px; 
    height: 120px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}

.right-float-bar .float-qr span {
    display: block;
    font-size: 12px;
    color: #666;
}