/* Logo、导航菜单和搜索框容器样式 */
.header-nav-container {
    background: #fff;
    width: 100%;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-nav-container .wst-logo {
    flex-shrink: 0;
    margin-left: 280px;
}

.header-nav-container .navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    position: relative;
}

/* 滑动指示器 */
.header-nav-container .navigation::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--indicator-left, 0);
    height: 3px;
    width: var(--indicator-width, 0);
    background: linear-gradient(90deg, #143fee, #667eea);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    opacity: 0;
}

.header-nav-container .navigation.has-indicator::after {
    opacity: 1;
}

.header-nav-container .navigation li {
    margin: 0 15px;
    position: relative;
    overflow: hidden;
}

.header-nav-container .navigation li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    z-index: 1;
}

/* 添加滑动背景元素 */
.header-nav-container .navigation li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 63, 238, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.header-nav-container .navigation li a:hover::before {
    left: 100%;
}

.header-nav-container .navigation li a:hover {
    background: #f0f0f0;
    color: #143fee;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 搜索框样式 */
.header-nav-container .wst-ipt {
    display: flex;
    align-items: center;
    border: 2px solid #ccc;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
  
    flex-shrink: 0;
    position: relative;
}

.header-nav-container .wst-ipt .ipt_text {
    background: #f5f5f5;
    border: none;
    outline: none;
    /* padding: 8px 15px 8px 40px; */
    color: #333;
    font-size: 14px;
    width: 200px;
}

.header-nav-container .wst-ipt .ipt_text::placeholder {
    color: #999;
}

/* 兼容各浏览器的placeholder颜色 */
.header-nav-container .wst-ipt input::-webkit-input-placeholder { color: #999; }
.header-nav-container .wst-ipt input:-moz-placeholder { color: #999; }
.header-nav-container .wst-ipt input::-moz-placeholder { color: #999; }
.header-nav-container .wst-ipt input:-ms-input-placeholder { color: #999; }

.header-nav-container .wst-ipt .ipt_btn {
    background: #ddd;
    color: #333;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-nav-container .wst-ipt .ipt_btn:hover {
    background: #f0f0f0;
}

.header-nav-container .wst-ipt:before {
    content: "";
    height: 16px;
    width: 16px;
    background: url(/wstmart/home/view/default/img/2_03.png) no-repeat;
    background-size: 100% 100%;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}
