/* 语言选择器容器 */
.lang_selector_container {
    float: right;
    margin: 23px 0 23px 15px;
}

.lang_selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    min-width: 100px;
}

.lang_selector:hover {
    border-color: #007bff;
}

/* 确保激活状态的分类有正确的样式 */
.cp_type .bd ul li.on {
    background: #f5f5f5;
}

.cp_type .bd ul li.on a {
    color: #007bff;
    font-weight: bold;
}

/* 购物车按钮样式 */
.web_cart {
    position: relative;
    float: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 23px 0 23px 20px;
}
.user_center {
    position: relative;
    float: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 23px 0 23px 20px;
}

.web_cart:hover {
    background: #0056b3;
}

.cart_icon {
    position: relative;
    margin-right: 8px;
}

.cart_icon svg {
    width: 24px;
    height: 24px;
}

.cart_count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 产品操作按钮容器 - 左右布局 */
.product_actions {
    display: flex;
    gap: 10px;
}

/* 查看详情按钮 */
.webpro_btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 添加到购物车按钮 */
.add_to_cart_btn {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.add_to_cart_btn:hover {
    background: #218838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .web_cart {
        margin-right: 10px;
        padding: 8px 12px;
    }

    .cart_panel {
        width: 100%;
        right: 0;
    }

    .webpro_right ul li {
        width: 100%;
    }
}


/* 语言切换按钮 */
.language-switcher {
    position: fixed;
    top: 5px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.language-switcher button {
    background: none;
    border: 1px solid #ddd;
    padding: 3px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.language-switcher button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.language-switcher button:hover {
    background: #0056b3;
    color: white;
}

/* 语言选择器容器 */
.lang_selector_container {
    float: right;
    margin: 23px 0 23px 15px;
}

.lang_selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    min-width: 100px;
}

.lang_selector:hover {
    border-color: #007bff;
}

/* 确保激活状态的分类有正确的样式 */
.cp_type .bd ul li.on {
    background: #f5f5f5;
}

.cp_type .bd ul li.on a {
    color: #007bff;
    font-weight: bold;
}


.cart_icon {
    position: relative;
    margin-right: 8px;
}

.cart_icon svg {
    width: 24px;
    height: 24px;
}


/* 产品操作按钮容器 - 左右布局 */
.product_actions {
    display: flex;
    gap: 10px;
}

/* 查看详情按钮 */
.webpro_btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 添加到购物车按钮 */
.add_to_cart_btn {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.add_to_cart_btn:hover {
    background: #218838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .web_cart {
        margin-right: 10px;
        padding: 8px 12px;
    }
}
