/* 顶部蓝色条样式 */
.wst-top-bar {
    background-color: #4A90E2;
    width: 100%;
    height: 35px;
    line-height: 35px;
}

.wst-top-bar-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wst-top-promo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
}

.promo-icon {
    margin-right: 8px;
    font-size: 16px;
}

.promo-text {
    color: #fff;
}

.wst-top-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.top-link:hover {
    text-decoration: underline;
}

.lang-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* 主头部白色区域 */
.wst-main-header {
    background-color: #fff;
    width: 100%;
    padding: 15px 0;
}

.wst-main-header-inner {
    width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wst-logo {
    flex-shrink: 0;
}

/* 搜索框样式 */
.wst-search-box {
    position: relative;
    height: 50px;
    line-height: 50px;
    border: 1px solid #ddd;
    border-radius: 25px;
   
}

.ipt_text {
    flex: 1;
    height: 48px;
    border: 0;
    font-size: 14px;
    outline: none;
    padding: 0 60px 0 20px;
    background: transparent;
    z-index: 2;
    color: #333;
}

.ipt_text::placeholder {
    color: #999;
}

.ipt_btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 3;
    background: url(../img/2_03.png) no-repeat center center;
    background-size: 60% 60%;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.ipt_btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 导航链接 */
.wst-nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-right: 20px;
    margin-left: 20px;
}

.wst-nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.wst-nav-links a:hover {
    color: #4285F4;
}

/* 用户图标区域 */
.wst-user-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.user-icon:hover {
    opacity: 0.8;
}

/* 用户名链接样式 */
.user-name-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 5px;
}

.user-name-link:hover {
    color: #4285F4;
}

/* 清除浮动 */
.wst-clear {
    clear: both;
}

/* ========== 主头部：Logo + 导航 + 悬停搜索 + 登录注册（青绿色主题） ========== */
:root {
    --hdr-teal: #00a9b7;
    --hdr-teal-dark: #008c96;
    --hdr-nav-color: #666;
    --hdr-border: #e8e8e8;
}

.header-main-bar {
    background: #fff;
    border-bottom: 1px solid var(--hdr-border);
}

.header-main-bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.header-main-logo {
    flex-shrink: 0;
}

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

.header-main-logo img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.header-main-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: 0;
}

.header-inline-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0 28px;
    font-size: 16px;
}

.header-inline-nav li {
    position: relative;
    flex-shrink: 0;
}

.header-inline-nav li a {
    display: inline-block;
    padding: 8px 0;
    text-decoration: none;
    color: var(--hdr-nav-color);
    transition: color 0.2s;
}

.header-inline-nav li a:hover {
    color: var(--hdr-teal);
}

.header-inline-nav li.is-active a {
    color: var(--hdr-teal);
    font-weight: 600;
}

.header-inline-nav li.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--hdr-teal);
    border-radius: 1px;
}

/* 悬停搜索 */
.header-search-hover {
    position: relative;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.header-search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-search-trigger:hover {
    background: rgba(0, 166, 178, 0.08);
}

.header-search-trigger img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.header-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 10px;
    z-index: 2000;
    min-width: 280px;
}

.header-search-hover:hover .header-search-dropdown,
.header-search-hover:focus-within .header-search-dropdown,
.header-search-dropdown:hover {
    display: block;
}

.header-search-dropdown-inner {
    position: relative;
    background: #fff;
    border: 1px solid var(--hdr-teal);
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.header-search-dropdown-inner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 7px 8px 7px;
    border-color: transparent transparent var(--hdr-teal) transparent;
}

.header-search-dropdown-inner::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 7px 6px;
    border-color: transparent transparent #fff transparent;
}

.header-search-dropdown-inner .ipt_text {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--hdr-border);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.header-search-dropdown-inner .ipt_text:focus {
    border-color: var(--hdr-teal);
}

.header-search-dropdown-inner .ipt_text::placeholder {
    color: #aaa;
}

.header-search-go {
    margin-top: 10px;
    width: 100%;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--hdr-teal);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search-go:hover {
    background: var(--hdr-teal-dark);
}

/* 登录 / 注册 */
.header-main-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-auth-btns {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--hdr-teal);
    border-radius: 4px;
    overflow: hidden;
    font-size: 14px;
}

.header-btn-login,
.header-btn-reg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 36px;
    padding: 0 16px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}

.header-btn-login {
    background: var(--hdr-teal);
    color: #fff;
    border: none;
}

.header-btn-login:hover {
    background: var(--hdr-teal-dark);
    color: #fff;
}

.header-btn-reg {
    background: #fff;
    color: #555;
    border-left: 1px solid var(--hdr-teal);
}

.header-btn-reg:hover {
    background: rgba(0, 166, 178, 0.06);
    color: #333;
}

.header-user-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-user-cart img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

.header-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #555;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
}

.header-user-avatar:hover {
    opacity: 0.9;
    color: #fff;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .header-main-center {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .header-inline-nav {
        flex-wrap: wrap;
        gap: 8px 20px;
    }
}

