/* 新头部主容器 - 撑满整个屏幕宽度 */
.wst-header-main-wrapper {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

/* 新头部内层容器 - 1200px居中 */
.wst-header-main {
    width: 1600px;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo区域 */
.wst-header-logo {
    flex-shrink: 0;
}

.wst-header-logo img {
    max-height: 60px;
    width: auto;
}

/* 导航菜单区域 */
.wst-header-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.wst-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.wst-nav-item {
    list-style: none;
}

.wst-nav-item a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.wst-nav-item a:hover {
    color: #1088cb;
}

/* 右侧区域：搜索框 + 图标 */
.wst-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 搜索框区域 - 小尺寸 */
.wst-header-search {
    flex-shrink: 0;
    width: 270px;
}

.wst-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 18px;
    padding: 0 10px;
    height: 32px;
}

.wst-search-box .search-ipt {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 12px;
    color: #333;
    padding: 0 8px;
    width: 0;
}

.wst-search-box .search-ipt::placeholder {
    color: #999;
    font-size: 12px;
}

.wst-search-box .search-btn {
    width: 16px;
    height: 16px;
    background-image: url(../img/1_07.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

/* 用户图标 */
.wst-header-user {
    position: relative;
}

.wst-user-link {
    display: block;
    position: relative;
}

.wst-icon-img {
    width: 28px;
    height: 28px;
    display: block;
}

/* 登录后：用户名 + 退出登录，直接展示，不再使用下拉 */
.wst-header-user-logged{
    display: flex;
    align-items: center;
    gap: 8px;
}

.wst-user-name{
    font-size: 14px;
    color: #333;
}

.wst-logout-link-inline{
    font-size: 14px;
    color: #ff0000;
    text-decoration: none;
}

.wst-logout-link-inline:hover{
    text-decoration: underline;
}

.wst-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

/* 旧的悬浮下拉不再使用，保留样式以兼容其他页面 */

.wst-user-info {
    padding: 5px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 5px;
}

.wst-user-info span {
    font-size: 14px;
    color: #333;
}

.wst-logout-link {
    display: block;
    color: #ff0000;
    font-size: 14px;
    text-decoration: none;
    padding: 5px 0;
}

.wst-logout-link:hover {
    text-decoration: underline;
}

/* 购物车图标 */
.wst-header-cart {
    position: relative;
}

.wst-cart-link {
    display: block;
    position: relative;
}

.wst-cart-num {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

.wst-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.wst-header-cart:hover .wst-cart-dropdown {
    display: block;
}

/* 覆盖原有购物车样式以适配新布局 */
.wst-header-cart.wst-cart-box {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin-top: 0 !important;
    background-color: transparent !important;
    border: none !important;
    cursor: default !important;
}

.wst-header-cart .wst-cart-link {
    cursor: pointer;
}

.wst-header-cart .wst-cart-dropdown.wst-cart-boxs {
    width: 332px !important;
    margin-top: 10px !important;
    left: auto !important;
    right: 0 !important;
    top: auto !important;
}

/* 兼容原有购物车样式 */
.wst-cart-dropdown .goods {
    float: left;
    width: 96.666666%;
    border-bottom: 1px dashed #f1f1f1;
    padding: 5px;
}

.wst-cart-dropdown .goods .imgs {
    float: left;
    width: 72px;
    height: 72px;
    text-align: center;
    vertical-align: middle;
    display: block;
    position: relative;
}

.wst-cart-dropdown .goods .imgs a {
    width: 72px;
    height: 72px;
    display: table-cell;
    vertical-align: middle;
}

.wst-cart-dropdown .goods .imgs img {
    max-width: 72px;
    max-height: 72px;
}

.wst-cart-dropdown .goods .number {
    float: left;
    width: 50%;
}

.wst-cart-dropdown .goods .number p {
    float: left;
    width: 92%;
    margin-top: 10px;
    padding-left: 10px;
}

.wst-cart-dropdown .goods .price {
    float: right;
    text-align: right;
}

.wst-cart-dropdown .goods .price p {
    float: right;
    width: 100%;
    line-height: 20px;
    font-weight: bold;
    color: #df2003;
}

.wst-cart-dropdown .goods .price span {
    float: right;
    width: 100%;
    line-height: 20px;
}

.wst-cart-dropdown .comm {
    float: left;
    width: 100%;
    font-weight: bold;
    line-height: 32px;
    padding: 10px;
}

.wst-cart-dropdown .comm span {
    font-size: 15px;
    color: #df2003;
}

.wst-cart-dropdown .btn {
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    background: #e3403a;
    border: 1px solid #da251f;
}

.wst-cart-dropdown .btn:hover {
    background: #e02c26;
    text-decoration: none;
}

/* 保留旧样式以防其他地方使用 */
.wst-top-header-wrapper {
    display: none;
}

/* 搜索容器外层 - 已移到导航栏内，保留样式以防其他地方使用 */
.wst-search-container-wrapper {
    width: 100%;
    display: none; /* 隐藏原来的搜索容器 */
}

/* 搜索容器内层 - 已移到导航栏内 */
.wst-search-container {
    width: 1200px;
    margin: 0 auto;
    display: none; /* 隐藏原来的搜索容器 */
}

/* 导航菜单外层 - 撑满整个屏幕宽度 */
.wst-nav-menus-wrapper {
    width: 100%;
    background: #DF2003;
    border-bottom: 2px solid #DF2003;
}

/* 导航菜单内层 - 1200px居中 */
.wst-nav-menus {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

/* 导航菜单容器 - 使用flex布局 */
.wst-nav-menus .nav-w {
    width: 100%;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wst-nav-menus .w-spacer {
    display: none;
}

/* 导航栏样式 - 左侧 */
#wst-nav-items {
    float: left !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    visibility: visible !important;
}

#wst-nav-items ul {
    float: left !important;
    overflow: visible !important;
    height: 36px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
}

#wst-nav-items li {
    float: left !important;
    list-style: none !important;
    display: block !important;
    visibility: visible !important;
}

#wst-nav-items a {
    color: white !important;
    font: 400 16px/36px "microsoft yahei" !important;
    height: 36px !important;
    padding: 0 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    float: left !important;
    visibility: visible !important;
    line-height: 36px !important;
}

#wst-nav-items a:hover {
    color: #00CCCC !important;
}

/* 搜索框容器 - 右侧 */
.wst-search-box-in-nav {
    float: right !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    margin-right: 20px !important;
}

.wst-search-box-in-nav .wst-search {
    border: none !important;
    height: 36px !important;
    margin: 0 !important;
    position: relative !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.wst-search-box-in-nav .wst-search .j-search-type {
    display: none !important;
}

.wst-search-box-in-nav .wst-search .search-ipt {
    border: none !important;
    color: #333 !important;
    font-family: Microsoft Yahei !important;
    font-size: 14px !important;
    line-height: 36px !important;
    padding: 0 20px !important;
    width: 300px !important;
    height: 36px !important;
    outline: 0 !important;
    background: #fff !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
}

.wst-search-box-in-nav .wst-search .search-ipt::placeholder {
    color: #999 !important;
}

.wst-search-box-in-nav .wst-search .search-btn {
    background-image: url(../img/1_07.png) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 18px !important;
    border: none !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}


