 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    height: 100%;
    min-height: 100%;
}

html body {
    background-color: #f1f3f5;
    color: #333;
    min-height: 100%;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto;
    display: flex !important;
    flex-direction: column !important;
}

/* 语种 zoom 时抬高布局高度，避免页脚下方露白（须 !important 才能盖过上面的 100vh） */
html[data-cdp-lang-scale] body {
    min-height: calc(100vh / var(--cdp-lang-font-scale, 1)) !important;
    min-height: calc(100dvh / var(--cdp-lang-font-scale, 1)) !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

/*
 * Sticky footer：无论内容多少、何种语种，页脚始终在页面最底部。
 * body 纵向 flex，主内容区撑满剩余空间，footer 靠 margin-top:auto 贴底。
 */
body > .header,
body > header.header {
    flex-shrink: 0;
}
body > .container,
body > .order-container,
body > .mallcontainer,
body > .uscontainer,
body > .main,
body > main {
    flex: 1 1 auto;
    width: 100%;
}
body > footer {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto;
    width: 100%;
}
      
/* 1--公共顶部的header样式 */

/* 顶部导航栏容器 */
.header {
    background: #fff;
    color: #222;
    padding: 0 30px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px -4px rgba(31,35,41,.02),0 4px 8px rgba(31,35,41,.02),0 4px 16px 4px rgba(31,35,41,.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.toper-logo {
    display: flex;
    align-items: center; 
    text-decoration: none; 
}
.toper-logo img {
    height: 34px;
    margin-right: 10px;
} 
.toper-logo span {
background: #C3E6FF;
color: #1A4BC9; 
    padding: 6px 12px;
    font-weight: bold;
    font-size: 16px;
    margin-left: 6px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}


        
.toper-menu {
    display: flex;
    list-style: none;
}
.toper-menu li {
    margin: 0 15px;
    position: relative;
}
.toper-menu a {
    color: #333;
    text-decoration: none; 
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.toper-menu a:hover {
    background-color: #f3f4f5;
}
.toper-menu .active{
    background-color: #f3f4f5;
    color: #1f286f;
} 


/* 搜索框 */
.toper-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #c4c4c4;
    border-radius: 30px;
    padding: 4px 15px;
    width: 330px;
    transition: all 0.3s ease;
}

.toper-search:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toper-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #222;
    width: 100%;
    padding: 5px;
}
.toper-search input::placeholder {
    color: #8b8b8b;
}
.toper-search button {
    background: transparent;
    border: none;
    color: #222;
    cursor: pointer;
}



/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    text-decoration: none;
    margin-left: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 0 15px;
    height: 36px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.user-actions a:hover {
    transform: translateY(-2px);
}

.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
}




.user-cart{ 
    color: #6b3d1e;
    background: linear-gradient(90deg,#fceee1,#fcdac1);
} 
.user-login{
    color: #fff;
    background-color: rgb(30, 111, 255);
}




.user-center{
    margin-left: 20px;
}

.user-center .layui-nav{
    background: none;
    padding: 0;
    margin-bottom: 0;
}
.user-center .layui-nav .layui-nav-item{
    line-height: 36px;
}
.user-center .layui-nav-img{margin-right: 6px;}
.user-center .layui-nav .layui-nav-item a{margin-left: 0; color: #222;  padding: 0 20px 0 10px;height: 36px; line-height: 36px}

.user-center .layui-nav-child{top: 40px;}


/* 响应式设计 - 在较小屏幕上调整布局 */
@media (max-width: 1200px) {
    .header {
        padding: 0 3%;
    }
    .toper-menu li {
        margin: 0 10px;
    }
    .search-box {
        width: 200px;
    }
    .toper-menu{
        display: none;
    }
}

@media (max-width: 992px) {
    .search-box {
        display: none;
    }
    .toper-menu{
        display: none;
    }
}



/* 2--页面路径 */
        .breadcrumb {
            display: flex;
            margin-bottom: 10px;
            color: #666;
            font-size: 14px;
        }
        
        .breadcrumb a {
            color: #1a73e8;
            text-decoration: none;
            margin: 0 5px;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        .breadcrumb span {
            margin: 0 5px;
        }


/* 2--公共底部的footer样式 */

footer { 
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    width: 100%;
    margin-top: auto !important;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

.copyright {
    color: #aaa;
    font-size: 14px;
}
 .copyright a{
     color: #c0c0c0!important;
     font-size: 14px;
 }

 @media (max-width: 768px) {
     footer{
         padding: 10px 15px;
         font-size: 12px;
     }
     .footer-links{
         margin-bottom: 10px;
     }
     .footer-links a{
         margin: 0 6px;
     }
     .copyright{
         font-size: 12px;
     }

     .toper-logo img {
         height: 24px;
         margin-right: 2px;
     }
     .toper-logo span {
          padding: 4px 8px;
          font-weight: bold;
          font-size: 14px;
          margin-left: 6px;
      }
 }