/* ---- 商城顶栏：上层「选择网站」+ 下层主导航（滚动时固定顶部，对齐官网） ---- */
:root {
    --ky-mall-header-height: 109px; /* utility 34px + topbar 75px */
}

.ky-mall-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    flex-shrink: 0;
}

body:has(> .ky-mall-header) {
    padding-top: var(--ky-mall-header-height);
}

.ky-mall-utility {
    background: #001a2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ky-mall-utility-inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 clamp(5.25px, 1.3125vw, 26.25px);
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.ky-mall-site-picker {
    position: relative;
    padding-left: 18px;
}

.ky-mall-site-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    color: #c3c3c3;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.ky-mall-site-picker-trigger .iconfont {
    font-size: 10px;
    line-height: 1;
    transition: transform 0.2s;
}

.ky-mall-site-picker:hover .ky-mall-site-picker-trigger,
.ky-mall-site-picker:focus-within .ky-mall-site-picker-trigger {
    color: #fff;
}

.ky-mall-site-picker:hover .ky-mall-site-picker-trigger .iconfont,
.ky-mall-site-picker:focus-within .ky-mall-site-picker-trigger .iconfont {
    transform: rotate(180deg);
}

.ky-mall-site-picker-menu {
    display: none;
    position: absolute;
    left: 18px;
    top: 100%;
    margin: 0;
    padding: 6px 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e2e6ea;
    box-shadow: 0 4px 12px rgba(0, 35, 61, 0.12);
    list-style: none;
    z-index: 300;
}

.ky-mall-site-picker:hover .ky-mall-site-picker-menu,
.ky-mall-site-picker:focus-within .ky-mall-site-picker-menu {
    display: block;
}

.ky-mall-site-picker-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #132a3e;
    text-decoration: none;
    white-space: nowrap;
}

.ky-mall-site-picker-menu a:hover {
    background: #f7f8fa;
    color: #00a1e9;
}

/* ---- 商城统一顶栏（对齐官网：深色底 + Logo 左靠、操作区右靠） ---- */
.ky-mall-topbar {
    flex-shrink: 0;
    background: #00233d;
    border-bottom: none;
    box-shadow: none;
}

.ky-mall-topbar-inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 clamp(5.25px, 1.3125vw, 26.25px);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.ky-mall-topbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 75px;
    padding-left: 18px;
    margin-right: 42px;
}

.ky-mall-topbar-right {
    margin-left: auto;
    margin-right: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    flex-shrink: 0;
}

.ky-mall-topbar-logo img {
    display: block;
    max-height: 53px;
    width: auto;
    height: auto;
}

.ky-mall-topbar-logo:hover img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

/* 主导航（对齐官网：Logo 右侧「产品」+ 底边高亮） */
.ky-mall-topbar-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 75px;
    column-gap: 36px;
}

.ky-mall-topbar-nav-item {
    display: inline-flex;
    align-items: center;
    height: 75px;
    padding: 0 8px;
    color: #fff;
    font-family: var(--ky-font-medium);
    font-size: 18px;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-sizing: border-box;
}

.ky-mall-topbar-nav-item span {
    position: relative;
    display: inline-block;
    line-height: 1.25;
}

.ky-mall-topbar-nav-item:hover span::before,
.ky-mall-topbar-nav-item.is-active span::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-0.5 * (75px - 100%));
    height: 4px;
    background-color: #00a1e9;
    pointer-events: none;
}

.ky-mall-topbar-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #00a1e9;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.ky-mall-topbar-search-icon .iconfont {
    font-size: 20px;
    line-height: 1;
}

.ky-mall-topbar-search-icon:hover {
    opacity: 0.85;
    color: #00a1e9;
}

.ky-mall-topbar-link-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    background: #00a1e9;
    color: #fff !important;
    border-radius: 2px;
}

.ky-mall-topbar-link-login:hover {
    background: #0088c7;
    color: #fff !important;
}

.ky-mall-topbar-search {
    flex: 0 0 auto;
    width: 280px;
    display: flex;
    align-items: stretch;
}

.ky-mall-topbar-search-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-right: none;
    outline: none;
    box-sizing: border-box;
}

.ky-mall-topbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ky-mall-topbar-search-input:focus {
    border-color: #00a1e9;
    background: rgba(255, 255, 255, 0.12);
}

.ky-mall-topbar-search-btn {
    flex-shrink: 0;
    min-width: 72px;
    height: 40px;
    border: 1px solid #00a1e9;
    background: #00a1e9;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
}

.ky-mall-topbar-search-btn:hover {
    background: #00a1e9;
    border-color: #00a1e9;
}

.ky-mall-topbar-search-btn .iconfont {
    font-size: 16px;
}

.ky-mall-topbar-search-label {
    font-size: 14px;
}

.ky-mall-topbar-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
    font-size: 14px;
}

.ky-mall-topbar-link {
    color: #c3c3c3;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.ky-mall-topbar-link:hover {
    color: #fff;
}

.ky-mall-topbar-user {
    position: relative;
}

/* 填补触发区与下拉菜单之间的空隙，避免移入菜单时 hover 断开 */
.ky-mall-topbar-user::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.ky-mall-topbar-user-trigger .iconfont {
    font-size: 12px;
    margin-left: 4px;
}

.ky-mall-topbar-user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 6px 0;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e2e6ea;
    box-shadow: 0 4px 12px rgba(0, 35, 61, 0.1);
    list-style: none;
    z-index: 200;
}

.ky-mall-topbar-user:hover .ky-mall-topbar-user-menu {
    display: block;
}

.ky-mall-topbar-user-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #132a3e;
    text-decoration: none;
}

.ky-mall-topbar-user-menu li a:hover {
    background: #f7f8fa;
    color: #00a1e9;
}

.ky-mall-topbar-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: #00a1e9;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}

.ky-mall-topbar-cart:hover {
    background: #0088c7;
    color: #fff !important;
}

.ky-mall-topbar-cart .iconfont {
    font-size: 16px;
}

@media (max-width: 900px) {
    .ky-mall-utility-inner {
        padding: 0 16px;
    }

    .ky-mall-site-picker {
        padding-left: 0;
    }

    .ky-mall-site-picker-menu {
        left: 0;
    }

    .ky-mall-topbar-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 75px;
        padding: 12px 16px;
    }

    .ky-mall-topbar-logo {
        height: auto;
        padding-left: 0;
        margin-right: 16px;
    }

    .ky-mall-topbar-nav {
        height: auto;
        order: 3;
        width: 100%;
        column-gap: 36px;
    }

    .ky-mall-topbar-nav-item {
        height: 44px;
        font-size: 16px;
    }

    .ky-mall-topbar-nav-item:hover span::before,
    .ky-mall-topbar-nav-item.is-active span::before {
        bottom: -6px;
    }

    .ky-mall-topbar-right {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px 16px;
    }

    .ky-mall-topbar-search {
        width: 100%;
        max-width: 360px;
    }

    .ky-mall-topbar-actions {
        gap: 16px;
        font-size: 13px;
    }

    .ky-mall-topbar-logo img {
        max-height: 53px;
    }
}

/* ---- 旧版双栏导航（保留供购物车页局部样式引用） ---- */
#header {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 40px;
    background-color: #00233d;
}

#header .center {
    width: 1226px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .center ul li a {
    display: flex;
    align-items: center;
    height: 12px;
    font-size: 14px;
    color: #b0b0b0;
    padding: 0 8px;
    border-right: 1px solid #b0b0b0;
}

#header .center ul li:last-of-type a {
    border-right: none;
}

#header .center .fl {
    flex-shrink: 0;
    display: flex;
    width: 680px;
}

#header .center .fr {
    display: flex;
    height: 40px;
}

#header .center .fr .user {
    width: 120px;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    text-align: center;
    position: relative;
}

#header .center .fr .user:hover .username {
    color: #132a3e;
    background-color: #fff;
}

#header .center .fr .user:hover .selector {
    padding: 7px 0;
    height: 120px;
}

#header .center .fr .user .username {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 40px;
    color: #b0b0b0;
    position: relative;
    z-index: 201;
}

#header .center .fr .user .selector {
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    height: 0;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.2s;
}

#header .center .fr .user .selector li {
    width: 100%;
    height: 24px;
    margin-top: 4px;
}

#header .center .fr .user .selector li:hover a {
    color: #132a3e;
    background-color: #fafafa;
}

#header .center .fr .user .selector li a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 30px;
    padding: 0;
    border: 0;
}

#header .center .fr .login {
    display: flex;
    align-items: center;
    width: 98px;
    height: 40px;
}

#header .center .fr .login li a {
    display: flex;
    align-items: center;
    height: 12px;
    font-size: 12px;
    color: #b0b0b0;
    padding: 0 8px;
    border-right: 1px solid #b0b0b0;
}

#header .center .fr .login li:last-of-type a {
    border-right: none;
}

#header .center .fr .shopcart {
    display: flex;
    width: 120px;
    font-size: 12px;
    color: #fff;
    margin: 0 20px;
    justify-content: center;
    align-items: center;
    background-color: #00a1e9;
}


#nav {
    width: 100%;
    height: 100px;
    flex-shrink: 0;
    position: relative;
    background-color: #fff;
}

#nav .banner_x {
    width: 1226px;
    height: 100%;
    display: flex;
}

#nav .banner_x > a {
    display: block;
    height: 100%;
}

#nav .banner_x .logo {
    display: flex;
    align-items: center;
    width: 240px;
    height: 80px;
    margin-top: 10px;
}

#nav .banner_x .logo img {
    max-height: 56px;
    max-width: 220px;
    width: auto;
}

#nav .banner_x .icon-search {
    width: 100px;
    text-indent: -10000px;
    background: url("../image/search.png") no-repeat;
    background-size: 50%;
    background-position: center;
}

#nav .banner_x .list {
    display: flex;
    height: 100%;
    margin-left: 24px;
}

#nav .banner_x .list a {
    color: #132a3e;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

#nav .banner_x .list img {
    margin-left: 4px;
    height: 16px;
    width: 16px;
}

#nav .banner_x .list > li {
    display: flex;
    align-items: center;
    margin: 0 10px;
    font-size: 20px;
}

#nav .banner_x .fr {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    flex-grow: 1;
}

#nav .banner_x .fr .button {
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#nav .banner_x .fr .button:active {
    background-color: #132a3e;
    color: #fff;
}

#nav .banner_x .fr .search {
    position: relative;
}

#nav .banner_x .fr .search .text {
    box-sizing: border-box;
    width: 250px;
    height: 50px;
    border: 1px solid #ccc;
    padding: 0 10px;
}

#nav .banner_x .fr .search .text:focus {
    outline: none;
    border: 1px solid #132a3e;
}

#nav .banner_x .fr .search .text:focus ~ .keyword_list {
    display: block;
}

#nav .banner_x .fr .search .search_hot {
    position: absolute;
    top: 16px;
    right: 12px;
}

#nav .banner_x .fr .search .search_hot a {
    float: left;
    display: block;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
    margin-left: 5px;
    padding: 0 5px;
    background-color: #eee;
    color: #757575;
    transition: all 0.2s;
}

#nav .banner_x .fr .search .search_hot a:hover {
    color: #fff;
    background-color: #132a3e;
}

#nav .banner_x .fr .search .keyword_list {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 100;
    width: 250px;
    box-sizing: border-box;
    border: 1px solid #132a3e;
}

#nav .banner_x .fr .search .keyword_list li {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    padding: 6px 15px;
    background-color: #fff;
}

#nav .banner_x .fr .search .keyword_list li:hover {
    background-color: #fafafa;
}

#nav .banner_x .fr .search .keyword_list li a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 12px;
}

#nav .banner_x .fr .search .keyword_list li a .result {
    float: right;
    color: #b0b0b0;
}

.container {
    width: 1226px;
    *zoom: 1;
    margin-right: auto;
    margin-left: auto;
}

.container:before, .container:after {
    content: " ";
    display: table;
}
