body {
    font-family: Microsoft YaHei;
}
.container-wrapper {
    position: relative;
    height: 100%;
}

/* 自定义样式 */
.sidebar {
    min-height: 100vh;
    padding-top: 1rem;
    width: 250px;
    overflow-y: auto;
    background-color: rgb(228, 233, 242); /* 左侧背景色 */
    position: absolute;
    top: var(--enki-top-notification-total-height, 42px);
    bottom: 0;
    z-index: 1000;
}

@media (max-width: 1400px) {
    .sidebar {
        width: 200px;
    }
}

/* ipad pro 样式 */
@media (max-width: 1024px) {
    .sidebar {
        width: 172px;
    }
}

/* 通用滚动条样式优化（Webkit 浏览器：Chrome、Edge、Safari） */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
.content {
    margin-left: 250px;
    flex-grow: 1;
    overflow-y: auto;
    height: 100vh;
    background-color: #f8f9fa; /* 右侧背景色 */
}

@media (max-width: 1400px) {
    .content {
        margin-left: 200px;
    }
}

/* ipad pro 样式 */
@media (max-width: 1024px) {
    .content {
        margin-left: 172px;
    }
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
}
.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
}

.sidebar .child_nav-link .category-item {
    height: 30px;
    font-size: 14px;
    color: #000000;
}
.product-card img {
    object-fit: cover;
    height: 200px;
}
.promo-bar {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: bold;
}
.search-nav {
    background-color: #fff;
    padding: 0.25rem 0;
}
.search-nav .nav-link {
    padding: 0.05rem 0.75rem;
    font-weight: bold;
    color: red;
}
.search-nav .nav-link.active {
    color: #e74c3c;
}
.search-info span {
    margin-right: 1rem;
    color: #666;
    font-size: 0.9rem;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background-color: #fff;
    height: 64px;
    box-sizing: border-box;
}

.header-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 69px;
    width: 220px;
    margin-top: 5px;
}
.mascot-img {
    height: 24px;
    margin-left: 8px;
}

.header-center {
    flex: 1;
    display: flex;
}

.search-container {
    position: relative;
    width: 400px;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 16px;
    overflow: hidden;
    margin-left: 33px;
    background-color: #fff;
}
.search-container input {
    width: 100%;
    padding: 10px 50px 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}
.search-container button {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    border: none;
    background-color: #c30114;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-container button svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.action-btn,
.cart-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: none;
    border-radius: 16px;
    background-color: #f5f5f5;
    font-size: 14px;
    cursor: pointer;
}
.cart-btn {
    background-color: #c30114;
    color: #fff;
}
.cart-btn svg {
    fill: #fff;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}
.action-btn svg {
    fill: #25303b;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}
aside {
    background-color: #ffffff;
    border: none !important;
}
.list-group-item {
    border: none;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 4px;
    border-radius: 4px;
}
.list-group-item:hover {
    background-color: #f1f1f1;
}
hr {
    border-top: 1px solid #dee2e6;
}
/* Base style for pill-shaped links */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-radius: 16px;
    height: 35px;
    font-weight: 500;
    font-family: Microsoft YaHei;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    overflow: hidden;
}
/* 按钮样式 */
.btn-primary {
    background-color: #1f2f4f;
    border-color: #1f2f4f;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: #16253a;
    border-color: #16253a;
}
.bg-primary_new {
    background-color: #1f2f4f;
}
.filter_check_label {
    margin-left: 8px;
}
.filter_text {
    border-radius: 16px;
    margin-bottom: 13px;
    padding-bottom: 16px;
    height: 33px;
    line-height: 39px;
    background: rgb(228, 233, 242);
}
.sidebar .nav-yq-link {
    align-items: center;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    height: 35px;
    display: block;
    font-family: Microsoft YaHei;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.sidebar .nav-button {
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 0;
    margin-bottom: 1rem;
    border-radius: 16px;
    height: 35px;
    font-family: Microsoft YaHei;
    color: #333;
    font-size: 20px;
    line-height: 16px;
    text-decoration: none;
}

/* Plain style for the first three links */
.sidebar .nav-link.plain {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    height: auto;
    padding: 0.25rem 1rem;
}
/* Icon spacing */
.sidebar .nav-link .bi {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}
/* Adjust spacing for plain links */
.sidebar .nav-link.plain .bi {
    margin-right: 2.5rem;
}
/* "NEW" badge */
.sidebar .nav-link .badge-new {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: bold;
    color: #fff;
    background-color: #dc3545;
    border-radius: 1rem;
    padding: 0.25em 0.5em;
}
/* Active / hovered state for pill links */
.sidebar .nav-link:not(.plain).active,
.sidebar .nav-link:not(.plain):hover {
    background-color: #e9ecef;
    color: #000;
}
/* Separator lines */
.sidebar hr {
    margin: 1rem 0;
    border-color: #ddd;
}
.product-card {
    border: none;
}
.banner-row img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
}
.dropdown-toggle::after {
    display: none !important;
}
.banner-card {
    border: none;
}
.cate_item {
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    margin-top: 10px;
    padding: 5px;
}
.card-body .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 3px;
    font-family: Microsoft YaHei;
}
.card-body .card-line1 {
    display: inline-block;
    background: #ffec3d;
    color: #000;
    margin-bottom: 4px;
    padding: 0px 10px;
    border-radius: 16px;
    font-size: 24px;
    font-weight: bold;
    font-family: Microsoft YaHei;
}
.card-body .card-line_1 {
    display: inline-block;
    color: #b90a12;
    margin-bottom: 4px;
    padding: 2px 2px;
    border-radius: 2px;
    font-size: 24px;
    font-weight: bold;
    font-family: Microsoft YaHei;
    .card-body .card-line1;
}
.card-body .card-line2 {
    display: inline-block;
    color: #adadad;
    margin-bottom: 4px;
    padding: 2px 2px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    font-family: Microsoft YaHei;
}
.card-body .card-line3 {
    margin-top: 3px;
    font-family: Microsoft YaHei;
}
.card-text {
    width: 60%;
    text-align: center;
    border-radius: 8px;
    background: rgb(244, 213, 44);
}
.product-sale {
    font-weight: 700;
    font-size: 18px;
    color: #b90a12;
}
.product-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 360px;
    border-radius: 6px;
    padding: 12px 0;
    background: #fff;
}

/* 左侧信息 */
.info {
    flex: 1;
    line-height: 1.2;
}
.info .line1 {
    display: inline-block;
    background: #ffec3d;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
}
.info .line1 small {
    margin-left: 6px;
    font-size: 12px;
    font-weight: normal;
    color: #333;
}
.info .line2 {
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}
.info .line3 {
    margin-top: 6px;
    font-size: 20px;
    color: #d0021b;
    font-weight: bold;
}

.product-card .product-image {
    position: relative;
    margin-bottom: 12px;
}
.product-card .product-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease; /* 平滑过渡效果 */
}

.product-card .product-image img:hover {
    transform: scale(1.1); /* 鼠标悬停时放大1.1倍 */
}

.cart-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 6px 10px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-button span.text {
    display: none;
    margin-right: 20px;
}

.cart-button:hover {
    padding: 6px 18px;
}

.cart-button:hover span.text {
    display: inline;
}
.nav-button svg {
    width: 20px;
    height: 20px;
    margin-right: 40px;
    color: #0c1b33;
}
.price-box {
    font-size: 1rem;
    margin-bottom: 4px;
}

.price-box .price {
    background-color: #ffeb3b;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 8px;
}

.sales {
    color: red;
    font-weight: bold;
    margin-top: 6px;
}

.product-name {
    font-weight: bold;
    font-size: 1.2rem;
}
/* 右侧数量选择器（垂直）*/
.qty-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f6f6f6;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 16px;
    width: 48px;
}
.qty-picker button {
    width: 100%;
    height: 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}
.qty-picker button:focus {
    outline: none;
}
.qty-picker .qty-value {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    color: #1a1a1a;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.container-fluid {
    background-color: #ffffff;
}
.btn-outline-rounded {
    border-radius: 50px; /* 胶囊形 */
}
.btn-outline-rounded:hover {
    background-color: #f8f9fa; /* 悬停微光 */
}
.quantity-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
    padding: 0 7px;
    border: 2px solid #d0d8f0;
    border-radius: 16px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
}

.quantity-number {
    font-size: 18px;
    font-weight: bold;
    margin: 0 8px;
}

/* 可选：调整图标间距 */
.icon-button svg {
    width: 20px;
    height: 20px;
}

/* 订单列表 s*/
.order-search-wrap {
    padding: 1rem 1rem .3rem;
}
/* 订单列表 e*/


@media (min-width: 1200px) {
    .my-container {
        max-width: 1000px;

        padding: 5px;
    }
    .logo-img {
        height: 69px;
        width: 220px;
        margin-top: 5px;
    }
    .hot_search_nav {
        margin-left: 254px;
        font-size: 12px;
    }
}
@media (min-width: 1400px) {
    .my-container {
        max-width: 1200px;
        padding: 5px;
        margin-left: 5px;
    }
    .logo-img {
        height: 69px;
        width: 250px;
        margin-top: 5px;
    }
    .hot_search_nav {
        margin-left: 280px;
        font-size: 12px;
    }
    /* .top_search {
        max-width: 27%;
    } */
}

@media (min-width: 1600px) {
    .container,
    .my-container {
        max-width: 82%;
        padding: 5px;
        padding-top: 0;
    }
}

/* 移动端优先的响应式设计 */
@media (max-width: 767.98px) {
    /* 调整头部布局 */
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .logo-img {
        height: 50px;
        width: 160px;
        margin: 0 auto;
        display: block;
    }

    .search-container {
        width: 100%;
        margin-left: 0;
        border-radius: 16px;
    }

    /* 调整侧边栏 */
    .sidebar {
        min-height: auto;
        padding: 10px;
    }

    .sidebar .nav-link {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 14px;
        font-weight: 700;
    }

    /* 产品卡片调整 */
    .product-card {
        margin-bottom: 15px;
    }

    .product-card img {
        height: 150px;
    }

    /* 促销栏调整 */
    .promo-bar {
        padding: 0.3rem 0;
        font-size: 0.9rem;
    }

    /* 搜索导航调整 */
    .search-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0;
    }

    .search-nav .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    /* 产品面板调整 */
    .product-panel {
        width: 100%;
        flex-direction: column;
        padding: 10px;
    }

    .info {
        margin-bottom: 10px;
        text-align: center;
    }

    .qty-picker {
        margin-left: 0;
        flex-direction: row;
        width: 100px;
        height: 30px;
    }

    .qty-picker .qty-value {
        border-top: none;
        border-bottom: none;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }

    /* 数量选择器调整 */
    .quantity-container {
        width: 100px;
        bottom: 5px;
        right: 5px;
    }

    /* 隐藏不必要的元素 */
    .mascot-img {
        display: none;
    }

    /* 按钮调整 */
    .action-btn,
    .cart-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .cart-btn svg,
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* 平板设备适配 */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .header {
        padding: 0 10px;
    }

    .search-container {
        width: 500px;
        margin-left: 15px;
    }

    .logo-img {
        width: 180px;
        height: 56px;
    }

    .product-card img {
        height: 180px;
    }

    .product-panel {
        width: 300px;
    }
}

/* 通用移动端优化 */
@media (max-width: 991.98px) {
    /* 减少边距和填充 */
    body {
        padding-top: 0;
    }

    /* 调整卡片布局 */
    .product-card {
        margin-bottom: 15px;
    }

    /* 优化字体大小 */
    .card-body .card-title {
        font-size: 16px;
    }

    .product-sale {
        font-size: 16px;
    }

    /* 调整导航按钮 */
    .sidebar .nav-button {
        font-size: 16px;
        padding: 0.3rem 0.8rem;
    }

    /* 调整价格显示 */
    .price-box .price {
        padding: 1px 6px;
        font-size: 0.9rem;
    }

    /* 调整热搜索导航 */
    .hot_search_nav {
        margin-left: 0;
        font-size: 11px;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    /* 增大可点击区域 */
    .nav-link,
    .action-btn,
    .cart-btn,
    .icon-button {
        min-width: 44px;
        /* min-height: 44px; */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 调整悬停效果 */
    .sidebar .nav-link:hover {
        background-color: transparent;
    }

    .sidebar .nav-link:active {
        background-color: #e9ecef;
    }

    /* 禁用部分悬停动画 */
    .cart-button:hover {
        padding: 6px 10px;
    }

    .cart-button:hover span.text {
        display: none;
    }
}
