@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }
}
.navbar {
    padding: 0 !important;
}
.content {
    padding: 0 !important;
}



.swiper-pagination-bullet-active {
    background-color: #fff;
}
.swiper-pagination-bullet {
    width: 80px;
    height: 4px;
    border-radius: unset;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover; /* 图片按比例缩放并覆盖整个容器 */
}


@media (min-width: 1200px) {
    .container {
        width: 1900px;
        max-width: 1900px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
        max-width: 1900px;
    }
}
@media (min-width: 768px) {
    .container {
        width: 97%;
        max-width: 1900px;
    }
}
@media (max-width: 768px) {
    .swiper-pagination-bullet {
        width: 20px;
        height: 4px;
        border-radius: unset;
    }
    .swiper-slide img {
        height: 200px;
    }
}
.top-banner-height {
    max-height: 550px
}

.block {
    margin-top: 30px;
}
.block-title {
    font-size: 15px;
    color: #333333;
    font-weight: 700;
}

.new-goods-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    padding: 0;
    margin: 0;
}

.new-goods-items .item {
    position: relative;
    flex: 0 0 19.95%;
    box-sizing: border-box;
}

.new-goods-items .item a {
    display: block;
    text-decoration: none;
}

.new-goods-items .item img {
    width: 100%;
    height: 479px;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
    max-height: 100%;

}
/* 子容器（购物车图标容器）样式 */
.new-goods-items .item .cart-icon-container {
    position: absolute;
    bottom: 76px;
    left: 48%;
    opacity: 0; /* 默认隐藏 */
    pointer-events: none; /* 防止空白区域阻止点击事件 */
    transition: opacity 0.3s ease; /* 平滑过渡 */
}
/* 当鼠标悬停在父元素上时显示子元素 */
.new-goods-items .item:hover .cart-icon-container {
    opacity: 1; /* 显示子元素 */
    pointer-events: auto; /* 允许点击 */
}

.banner {
    max-width: 1905px;
    margin: 0 auto;
}

.banner-goods a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* 控制图片 */
.banner-goods img {
    width: 50%;
    height: auto;
    object-fit: contain;
}

.hot-goods-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    padding: 0;
    margin: 0;
}

.hot-goods-items .item {
    position: relative;
    flex: 0 0 19.95%;
    box-sizing: border-box;
}

.hot-goods-items .item a {
    display: block;
    text-decoration: none;
}

.hot-goods-items .item img {
    width: 100%;
    height: 479px;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
}
/* 子容器（购物车图标容器）样式 */
.hot-goods-items .item .cart-icon-container {
    position: absolute;
    bottom: 76px;
    left: 48%;
    opacity: 0; /* 默认隐藏 */
    pointer-events: none; /* 防止空白区域阻止点击事件 */
    transition: opacity 0.3s ease; /* 平滑过渡 */
}
/* 当鼠标悬停在父元素上时显示子元素 */
.hot-goods-items .item:hover .cart-icon-container {
    opacity: 1; /* 显示子元素 */
    pointer-events: auto; /* 允许点击 */
}
.goods-title {
    margin-top: 10px;
    text-align: center;
    color: black;
    display: block;
    margin-bottom: 5px;
}
.goods-price {
    text-align: center;
    color: #828282;
    margin-bottom: 10px;
    display: block;
}

/* 购物车图标容器样式 */
.cart-icon-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 15px;
    margin-top: 10px;
}

.cart-icon {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.cart-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: #333333;
}

/*手机端*/
@media (max-width: 767px) {
    .new-goods-items .item {
        flex: 0 0 49.8%;
        box-sizing: border-box;
    }
    .hot-goods-items .item {
        flex: 0 0 49.8%;
        box-sizing: border-box;
    }
    .new-goods-items .item img {
        height: 194px
    }

    .hot-goods-items .item img {
        height: 194px;
    }
    .el-drawer {
        width: 100% !important;
    }
}


.box-card {
    display: flex;
    align-items: center;     /* 垂直居中 */
    height: 100%;            /* 确保容器有足够的高度 */
}

/* 确保 item 内的内容上下居中 */
.box-card-item {
    cursor: default;
    display: flex;
    flex-direction: inherit;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}
.box-card-item img {
    margin-left: 16px;
    width: 90px;
    height: 90px;
    border-radius: 8px;
}
.cart-goods-info {
    margin-top: 15px;
    display: block;
    margin-left: 10px
}
.cart-goods-info .cart-title {
    font-weight: bolder;
}
.cart-goods-info .cart-specs {
    color: #a5a5a5;
}

.cart-goods-info .cart-price {
    font-weight: bolder;
}
.cart-goods-info .cart-price span {
    font-size: 20px;
    font-weight: bolder;
}

/* 购物车底部结算区域美化 */
.cart-buy {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 15px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    gap: 20px;
}

.cart-total {
    display: flex;
    align-items: center;
    flex: 1;
}

.total-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.total-price {
    font-size: 20px;
    color: #333333;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.2);
    display: flex;
    align-items: baseline;
}

.price-number {
    font-size: 26px;
    font-weight: 900;
    margin-left: 1px;
}

@keyframes priceGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px #333333;
        transform: scale(1.02);
    }
}

.price-desc {
    font-size: 11px;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.selected-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #495057;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

.selected-count strong {
    color: #333333;
    font-weight: 700;
}

.cart-checkout-btn {
    background: linear-gradient(135deg, #333333 0%, #333333 50%, #333333 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 20px #333333,
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 100px;
    max-width: 140px;
    text-align: center;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text {
    font-weight: 600;
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cart-checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.cart-checkout-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #333333 50%, #333333 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px  #333333,
        0 4px 15px  #333333,
        inset 0 1px 0  #333333;
}

.cart-checkout-btn:hover::before {
    left: 100%;
}

.cart-checkout-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.cart-checkout-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 15px #333333,
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition-duration: 0.1s;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .cart-summary {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .checkout-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .total-label {
        font-size: 13px;
    }
    
    .total-price {
        font-size: 18px;
    }
    
    .price-number {
        font-size: 22px;
    }
    
    .cart-checkout-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 90px;
        max-width: 120px;
        letter-spacing: 0.3px;
    }
}

.shopping-cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.shopping-cart-button .cart-icon-container .cart-icon:hover {
    background-color: #333333;
}
.el-card__body {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.shopping-cart-item {
    margin-bottom: 10px
}