/* 导航菜单换行修复 - 确保导航菜单在一行显示 */

/* 全局头部布局 - 完全重构 */
.e_container-7.s_layout {
    display: grid !important;
    grid-template-columns: 200px 1fr auto auto auto !important;
    grid-template-areas: "logo nav login cart lang" !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Logo区域 */
.cbox-7-0.p_item {
    grid-area: logo !important;
    width: auto !important;
    margin: 0 !important;
    padding-right: 20px !important;
}

/* 导航菜单区域 */
.cbox-7-1.p_item {
    grid-area: nav !important;
    margin: 0 !important;
    justify-content: center !important;
}

/* 登录区域 */
.cbox-7-2.p_item {
    grid-area: login !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

/* 购物车区域 */
.cbox-7-3.p_item {
    grid-area: cart !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

/* 语言切换区域 */
.cbox-7-4.p_item {
    grid-area: lang !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

/* PC端导航菜单样式修复 */
@media (min-width: 769px) {
    /* 确保导航容器有足够宽度 */
    #c_static_001-17303727654480 .e_navigationF-26 {
        display: flex;
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    /* 导航菜单列表样式 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navBox1 {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        list-style: none;
        position: static;
        background: transparent;
        height: auto;
        overflow: visible;
        z-index: auto;
        max-height: none;
        transition: none;
    }
    
    /* 导航菜单项样式 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navItem1 {
        display: inline-flex;
        position: relative;
        padding: 0 15px;
        border-bottom: none;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    /* 导航链接样式 - 移除强制颜色设置，使用原有样式 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navCon {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        line-height: 80px;
        transition: all ease .3s;
        text-decoration: none;
        white-space: nowrap;
    }
    
    /* 悬停效果 - 保持原有样式 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navCon:hover {
        opacity: 0.8;
    }
    
    /* 隐藏移动端按钮 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navButton {
        display: none !important;
    }
    
    /* 二级菜单样式保持不变 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navBox2 {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 0px 0 0px;
        opacity: 0;
        visibility: hidden;
        width: 160px;
        pointer-events: none;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        margin-top: 10px;
    }
    
    /* 悬停显示二级菜单 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navItem1:hover .p_navBox2 {
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        pointer-events: auto;
    }
    
    /* 二级菜单文字颜色保持黑色 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navCon2 {
        color: #7d7d7d;
    }
    
    #c_static_001-17303727654480 .e_navigationF-26 .p_navCon2:hover {
        color: #5349e2;
    }
}

/* 移动端保持原有样式 */
@media (max-width: 768px) {
    /* 移动端网格布局调整 */
    .e_container-7.s_layout {
        grid-template-columns: auto 1fr auto !important;
        grid-template-areas: 
            "logo . menu"
            "nav nav nav"
            "login cart lang" !important;
        grid-row-gap: 10px !important;
    }
    
    /* 移动端样式保持不变，使用原有的响应式设计 */
    #c_static_001-17303727654480 .e_navigationF-26 .p_navButton {
        display: flex !important;
        grid-area: menu !important;
    }
    
    #c_static_001-17303727654480 .e_navigationF-26 .p_navBox1 {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 0 15px;
        height: calc(0vh);
        overflow-y: scroll;
        z-index: 10;
        max-height: 1080px;
        transition: all ease .3s;
        margin-top: 10px;
        flex-direction: column;
    }
}

/* 语言切换器位置调整 - 移除强制颜色设置 */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    text-decoration: none;
    font-size: 14px;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 0.8;
    font-weight: 500;
}

.language-switcher span {
    opacity: 0.6;
    margin: 0 5px;
}

/* 登录区域字体颜色 - 移除强制颜色设置 */
#c_static_001-17303727654480 .e_quickLogin-32 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#c_static_001-17303727654480 .e_quickLogin-32 .js_login_before {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#c_static_001-17303727654480 .e_quickLogin-32 .p_text {
    font-weight: 400 !important;
    font-size: 14px !important;
}

#c_static_001-17303727654480 .e_quickLogin-32 .p_text:hover {
    opacity: 0.8 !important;
}

#c_static_001-17303727654480 .e_quickLogin-32 .p_split,
#c_static_001-17303727654480 .e_quickLogin-32 .p_afterSplit {
    opacity: 0.6 !important;
}

#c_static_001-17303727654480 .e_quickLogin-32 .js_info,
#c_static_001-17303727654480 .e_quickLogin-32 .js_exit {
    /* 保持原有颜色 */
}

/* 购物车图标颜色 - 移除强制颜色设置 */
#c_static_001-17303727654480 .e_floatingShoppingCart-33 .p_text-white path {
    /* 保持原有颜色 */
}

#c_static_001-17303727654480 .e_floatingShoppingCart-33 .btn-primary {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* 移动端购物车图标 */
#c_static_001-17303727654480 .e_floatingShoppingCart-33 .p_show_s .icon path {
    /* 保持原有颜色 */
}

/* 购物车数量标签 */
#c_static_001-17303727654480 .e_floatingShoppingCart-33 .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* LOGO颜色调整 - 如果需要 */
#c_static_001-17303727654480 .e_image-8 img {
    filter: brightness(1) !important;
    max-width: 100% !important;
}

/* 购物车下拉菜单样式 - 美化版本 */
.e_floatingShoppingCart-33 .p_mini_cart {
    position: relative;
}

/* 增加购物车悬停区域 */
.e_floatingShoppingCart-33 .p_mini_cart:hover .p_content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 购物车内容区域悬停保持 */
.e_floatingShoppingCart-33 .p_content:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 在购物车按钮下方添加透明悬停区域 */
.e_floatingShoppingCart-33 .p_show_l::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50px;
    right: -50px;
    height: 30px;
    background: transparent;
    z-index: 999;
}

/* 在购物车内容上方添加透明悬停区域 */
.e_floatingShoppingCart-33 .p_content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 998;
}

.e_floatingShoppingCart-33 .p_content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 450px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.e_floatingShoppingCart-33 .p_content.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 购物车内容标题 */
.e_floatingShoppingCart-33 .p_title {
    padding: 20px 25px 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

/* 关闭按钮 */
.e_floatingShoppingCart-33 .p_closeCart {
    position: absolute;
    top: 18px;
    right: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.e_floatingShoppingCart-33 .p_closeCart:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.e_floatingShoppingCart-33 .p_closeCart .icon {
    width: 14px;
    height: 14px;
}

/* 购物车商品列表 */
.e_floatingShoppingCart-33 .pj_list {
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #ffffff;
}

.e_floatingShoppingCart-33 .pj_list::-webkit-scrollbar {
    width: 4px;
}

.e_floatingShoppingCart-33 .pj_list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.e_floatingShoppingCart-33 .pj_list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.e_floatingShoppingCart-33 .pj_list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.e_floatingShoppingCart-33 .pj_list li {
    padding: 15px 25px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.e_floatingShoppingCart-33 .pj_list li:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

.e_floatingShoppingCart-33 .pj_list li:last-child {
    border-bottom: none;
}

/* 空购物车提示 */
.e_floatingShoppingCart-33 .pj_list .text-center {
    padding: 40px 25px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 15px;
    font-size: 14px;
}

/* 购物车底部统计 */
.e_floatingShoppingCart-33 .p_webstat {
    padding: 20px 25px;
    border-top: 2px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 16px 16px;
}

.e_floatingShoppingCart-33 .p_p_webstat_l {
    margin: 0;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.e_floatingShoppingCart-33 .p_p_webstat_l .text-danger {
    color: #dc3545 !important;
    font-weight: 700;
    font-size: 16px;
}

/* 进入购物车按钮 - 美化版本 */
.e_floatingShoppingCart-33 .p_p_webstat_r {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.e_floatingShoppingCart-33 .p_p_webstat_r::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.e_floatingShoppingCart-33 .p_p_webstat_r:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

.e_floatingShoppingCart-33 .p_p_webstat_r:hover::before {
    left: 100%;
}

.e_floatingShoppingCart-33 .p_p_webstat_r:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 购物车箭头指示器 - 美化版本 */
.e_floatingShoppingCart-33 .p_arrow {
    position: absolute;
    top: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
    z-index: 1001;
}

.e_floatingShoppingCart-33 .p_arrow::before {
    content: '';
    position: absolute;
    top: 1px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e0e0e0;
    z-index: -1;
}

/* 购物车按钮样式 - 美化版本 */
.e_floatingShoppingCart-33 .p_show_l {
    position: relative;
    background: transparent !important;
    border: none !important;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.e_floatingShoppingCart-33 .p_show_l:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%) !important;
    transform: scale(1.05);
}

.e_floatingShoppingCart-33 .p_show_l .icon {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.e_floatingShoppingCart-33 .p_show_l:hover .icon {
    transform: scale(1.1);
}

.e_floatingShoppingCart-33 .p_show_l .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #ffffff !important;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 商品项样式美化 */
.e_floatingShoppingCart-33 .pj_list .d-flex {
    align-items: center;
    gap: 12px;
}

.e_floatingShoppingCart-33 .pj_list img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.e_floatingShoppingCart-33 .pj_list img:hover {
    transform: scale(1.05);
}

.e_floatingShoppingCart-33 .pj_list .font-weight-bold {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 4px;
}

.e_floatingShoppingCart-33 .pj_list .text-muted {
    color: #6c757d;
    font-size: 12px;
}

/* 删除按钮美化 */
.e_floatingShoppingCart-33 .pj_list .btn-outline-danger {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dc3545;
    color: #dc3545;
    transition: all 0.3s ease;
}

.e_floatingShoppingCart-33 .pj_list .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .e_floatingShoppingCart-33 .p_content {
        width: 300px;
        right: -60px;
    }
    
    .e_floatingShoppingCart-33 .p_arrow {
        right: 70px;
    }
    
    .e_floatingShoppingCart-33 .p_webstat {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .e_floatingShoppingCart-33 .p_p_webstat_r {
        width: 100%;
        text-align: center;
    }
}

/* 购物车动画效果 */
@keyframes cartSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.e_floatingShoppingCart-33 .p_content.show {
    animation: cartSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}