

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.15rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    margin-bottom: 60px;
    font-size: 14px;
    min-width: 768px;
}

 请将自定义样式写在此文件中 

 商品卡片样式 
.merchandise-card {
    transition: transform 0.3s;
    border: 1px solid #dee2e6;
    position: relative;
    padding: 10px;
    overflow: hidden;
}

.merchandise-card:hover {
    transform: translateY(-5px);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corner-label {
    position: absolute;
    top: 14px;
    right: -25px;
    width: 100px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: scale(1) rotate(45deg);
}

.clickable-desc {
    cursor: pointer;
    color: #0d6efd;
    transition: color 0.3s;
}

.clickable-desc:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

 价格样式 
del.text-muted {
    font-size: 0.9em;
    margin-right: 8px;
}

.text-danger.h5 {
    font-weight: 700;
}

 /*响应式调整 */
@media (max-width: 768px) {
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.sticky-nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end; 
    padding: 0 20px 5px 20px; 
    background-color: #f8f9fa; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    z-index: 1000; 
}

.nav-list {
    list-style: none; 
    margin-top: 100px;
    padding: 0;
    gap: 40px;
    display: inline-grid;
}

    .nav-list li a {
        text-decoration: none; /*去掉链接下划线*/
        color: #333; 
        font-weight: 400;
        font-size: 10pt;
    }

.div_HeadNav {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border: none;
    grid-template-columns: 1fr 9fr;
    width: 50px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
}
.div_FootNav {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 110px;
    border: none;
    grid-template-columns: 1fr 9fr;
    width: 100%;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
}
.div_foot {
    position: relative;
    text-align: center;
    line-height: 80px;
    height: 80px;
    color: #99979C;
    font-size: 12pt;
    top: 130px;
    width: calc(100% - 50px);
    background-color: #282828;
}
.nav-footlist {
    position: absolute;
    height: 70px;
    line-height: 50px;
    text-align: center;
    width: 100%;
    top: 0;
    font-size:3vw;
    display: -webkit-inline-box;
}
    .nav-footlist li {
        display: flex;
        flex-direction: column;
        align-items: center;  /*水平居中 */
        justify-content: center;  /*垂直居中（如果需要） */
        text-align: center;
    }

        .nav-footlist li a {
            display: flex;
            flex-direction: column;
            align-items: center;  /*水平居中子元素 */
            color: #333;
            font-weight: 400;
            line-height: 30px;
            text-align: center;
            width: 100%;  /*使用100%宽度而不是固定宽度 */
        }

            .nav-footlist li a img {
                margin: 0 auto;  /*图片水平居中 */
            }

.footavatar {
    width: 2.5vh;
    height: 2.5vh;
    border-radius: 50%;
    object-fit: cover;
}

.div_search {
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    border: none;
    grid-template-columns: 1fr 9fr;
    width: 100%;
    background: linear-gradient(360deg, #e7d9d9, #f8f9fa);
}

#userInfoPopup { 
    z-index: 999;
    position: absolute;
    top:120px;
    right: 52px;
    width: 400px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-family: 'Microsoft YaHei', sans-serif;
    display:none;
}

.avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
    margin-right: 15px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-edit {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ffffff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.user-meta {
    flex: 1;
}

.user-level {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 16px;
    font-size: 0.85em;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.avatar2 {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    position: relative;
    z-index: 1; 
}

.editContent {
    position: absolute;
    display: none;
    text-align: center;
    line-height: 20px;
    top: 50%;
    width: 100%;
    left: 4px;
    font-size: 10pt;
    color: white;
    opacity: 0.6;
    height: 20px;
    cursor: pointer;
    z-index: 2;
}

 �����ͣЧ�� 
.nav-list li a:hover {
    color: #007bff; 
}

.avatar {
    width: 2.5vh;
    height: 2.5vh; 
    border-radius: 50%; 
    object-fit: cover; 
}

.main-nav {
    background: linear-gradient(45deg, #e9e9ef, #cee8ed);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 105px;
    left: 0;
    height: 43px;
    width: 100%;
}

.head-inner {
    position: relative;
    background-color: transparent;
    left: 100px;
    top: 25px;
    color: #333;
    /*overflow-x: auto;*/  /*允许横向滚动 */
    /*overflow-y: hidden;*/  /*隐藏纵向滚动 */
    width: calc(100% - 120px);
    display:block;
}

.main-nav-link {
    position: relative;
    background-color: transparent;
    display: inline-flex;
    height: 50px;
    line-height: 50px;
    text-align: center;
    list-style: none;
    gap: 20px;
}

.layui-nav .layui-nav-item a {
    color: #333;
}

    .layui-nav .layui-nav-item a:hover {
        color: blue;
    }

.layui-nav .layui-this:after {
    background-color: #F10180 !important;
}
.layui-nav-bar {
     display:none;
    background-color: rgba(241,1,128,0.5) !important;
}

.layui-nav-child a:hover {
    background-color: rgba(241,1,128,0.5) !important;
}

.category-popup {
    position: absolute;
    top: 30px;
    left: 200px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    /*width: 300px; */
    display: none;
}

.popup-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list {
    min-height: 500px;
    overflow-y: auto;
    text-align: center;
}

    .category-list a {
        text-decoration: none;
        color: #333;
    }

.SubCategory-list {
    display: none;
    width: 700px;
    min-height: 500px;
    overflow-y: auto;
    text-align: left;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
}

.sub-category-popup {
    position: absolute;
    background: linear-gradient(45deg, #e9e9ef, #cee8ed);
    display: flex;
     border-radius: 8px; /*边框倒角半径*/
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 700px;
    transition: opacity 0.2s, transform 0.2s;
}

.sub-category-item {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

    .sub-category-item:hover {
        background: rgba(0,0,0,0.05);
        color: #007bff;
    }

.category-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #3FE3FC;
    width: 156px;
    height: auto;
}

    .category-item:hover {
        background: rgba(0,0,0,0.03);
    }

.category-itemlist {
    padding: 3px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #3FE3FC;
    width: 156px;
    height: auto;
}

    .category-itemlist:hover {
        background: rgba(0,0,0,0.03);
    }


.div_recommend {
    position: relative;
    top: 20px;
    width: calc(100% - 50px);  /*100% 宽度减去 50px */
}

.card-img-top {
    max-height: 350px;
}

.recommend-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.125);
    justify-content: center;
    display: grid;
    padding-bottom: 10px;
    margin-left: 20px;
}

.recommend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

    .recommend-card img {
        height: 275px;
        max-height: 275px;
        max-width: 550px;
        object-fit: fill;
        /*border-bottom: 1px solid rgba(0,0,0,0.125);*/
    }

.recommend-card2 {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.125);
    justify-content: center;
    display: grid;
    padding-bottom: 10px;
    margin-left: 20px;
    background-size: contain; /* 保持原图比例，不拉伸 */
    background-repeat: no-repeat; /* 不重复 */
    background-position: center; /* 居中显示 */
    background-color: white; /* 留白部分背景色（可调整） */
}

    .recommend-card2:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

    .recommend-card2 img {
        max-height: 500px;
        max-width: 900px;
        object-fit: fill;
        /*border-bottom: 1px solid rgba(0,0,0,0.125);*/
    }

.card-body {
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
    padding: 1rem 0;
}

.price {
    padding-left: 10px;
    font-size: 24pt;
    font-weight: 700;
    text-align: left;
}
.o_price {
    padding-left: 5px;
    font-size: 16pt;
    font-weight: 500;
    text-align: left;
}
.remark {
    padding-left: 5px;
    font-size: 16pt;
    font-weight: 500;
    text-align: left;
    color: #111;
}

.stitle {
    background-color: #F10180;
    font-weight: 500;
    font-size: 16pt;
    padding: 0;
    line-height: 50px;
    color: white;
    height: 50px;
    margin-top:10px;
}

.input_userinfo {
    border: 1px solid #E0E0E0;
    width:210px;
    background: rgba(232, 240, 254, 0.8);
}

.carousel-item-img {
    width: 1900px;
    max-height:500px;
    object-fit: fill;
}

.ball-number {
    position: relative;
    top: 5px;
    z-index: 1;
    color:white;
}

    .ball-number::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background-color: #e74c3c;
        border-radius: 50%;
        z-index: -1;
    }


.merchandise-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;  /*或 space-between 根据需要 */
    gap: 15px;  /*设置商品之间的间距 */
    max-width: 1800px;  /*根据需要调整容器最大宽度 */
    margin: 0 auto;
}

.merchandise-item {
    width: calc(20% - 15px);  /*5个商品每行，考虑gap */
    min-width: 180px;  /*设置最小宽度防止过小时变形 */
    box-sizing: border-box;
}

.header1 {
    display: block;
}

.header3 {
    display: none;
}

.li_search {
    position: relative;
    top: -80px;
}
.li_more{
    display:none;
}
.search_input {
    width: 20vw;
    display: inline-block;
    line-height: 1.5;
    right: 150px;
    position: fixed;
    padding-right: 40px;
    z-index: 20;
    top: 20px;
    min-width: 150px;
}
.img_search {
    position: fixed;
    width: 25px;
    padding-top: 4px;
    right: 160px;
    cursor: pointer;
    z-index: 25;
    top: 20px;
}
#div_backend {
    top: 30px;
    right: 10px;
    position: absolute
}

@media (max-width: 1500px) {
    .merchandise-item {
        width: calc(25% - 15px);  /*小屏幕上每行4个 */
    }
}

@media (max-width: 1200px) {
    .merchandise-item {
        width: calc(33.33% - 15px);  /*小屏幕上每行3个 */
    }
}

@media (max-width: 1000px) {
    .merchandise-item {
        width: calc(50% - 15px);  /*小屏幕上每行2个 */
    }
    .header1{
        display:none;
    }
    .header3 {
        display:block;
    }
    .li_search {
        position: relative;
        top: 0px;
    }
    .li_more {
        position:absolute;
        right:80px;
        display: block;
    }
    .search_input {
        width: calc(100% - 450px);
        display: inline-block;
        line-height: 1.5;
        right: 150px;
        position: fixed;
        padding-right: 80px;
        z-index: 20;
        font-size:larger;
        top:5px;
    }
    .img_search{
        top:10px;
        width:50px;
    }
    .div_foot {
        position: relative;
        text-align: center;
        line-height: 80px;
        height: 200px;
        color: #99979C;
        font-size: 12pt;
        top: 130px;
        width: calc(100% - 50px);
        background-color: #282828;
    }
    #div_backend {
        top: 10px;
        right: 20px;
        position: absolute
    }
    .div_foot, .remark, .main-nav-link li a {
        font-size: 3vw;
        min-width: 150px;
    }
    body {
        font-size: 3vw;
    }
    .head-inner {
        display: none;
    }
}

@media (max-width: 768px) {
    .merchandise-item {
        width: calc(50% - 15px);  /*更小屏幕上每行2个 */
    }
}

@media (max-width: 500px) {
    .merchandise-item {
        width: calc(100% - 15px);  /*更小屏幕上每行1个 */
    }
}

#p_merchandise:hover {
    background-color: #4B5563 !important;
}

#p_kucun:hover {
    background-color: #D1D5DB !important;
}