/* 用户中心样式 */

/* 登录注册表单样式 */
.form-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.form-tabs .tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-tabs .tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* 购物车样式 */
.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item .cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.cart-item .cart-item-info {
    flex: 1;
}

.cart-item .cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item .cart-item-price {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item .cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item .cart-item-quantity input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
}

.cart-item .remove-from-cart {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.cart-item .remove-from-cart:hover {
    color: #c82333;
}

.cart-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.cart-summary h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.cart-summary .cart-total {
    font-size: 24px;
    font-weight: 600;
    color: #dc3545;
}

/* 收藏样式 */
.favorites-list {
    margin-bottom: 20px;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.favorite-item .favorite-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.favorite-item .favorite-item-info {
    flex: 1;
}

.favorite-item .favorite-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.favorite-item .favorite-item-price {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 10px;
}

.favorite-item .remove-from-favorites {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.favorite-item .remove-from-favorites:hover {
    color: #c82333;
}

/* 个人中心样式 */
.uc-container {
    margin-top: 30px;
}

.uc-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.uc-sidebar .user-info {
    text-align: center;
    margin-bottom: 30px;
}

.uc-sidebar .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

.uc-sidebar .user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.uc-sidebar .user-email {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.uc-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uc-menu li {
    margin-bottom: 10px;
}

.uc-menu li a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.uc-menu li a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.uc-menu li.current-menu-item a {
    background: #007bff;
    color: #fff;
}

.uc-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.uc-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.uc-content .form-group {
    margin-bottom: 20px;
}

.uc-content .form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.uc-content .form-group input,
.uc-content .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.uc-content .form-group input:focus,
.uc-content .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.uc-content .btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uc-content .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
    color: #fff;
}

.uc-content .btn-primary:hover {
    background: #0069d9;
    border-color: #0062cc;
}

/* 用户中心菜单样式 */
.uc-menu-warp {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uc-menu-warp .menu-item {
    margin-bottom: 5px;
}

.uc-menu-warp .menu-item a {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.uc-menu-warp .menu-item a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.uc-menu-warp .current-menu-item a {
    background: var(--primary-color);
    color: #fff;
}

/* 头像样式 */
.avatar {
    position: relative;
    display: inline-block;
}

.avatar a:hover .avatar-img {
    transform: scale(1.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-xl {
   width: 80px;
    height: 80px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.badge-primary {
    color: #fff;
    background-color: var(--primary-color);
}

.badge-secondary {
    color: #fff;
    background-color: var(--secondary-color);
}

/* 背景透明度 */
.bg-opacity-10 {
    opacity: 0.1;
}

/* 文本颜色 */
.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* 背景颜色 */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}



/* 响应式 */
@media (max-width: 768px) {
    .uc-content {
        padding: 20px;
    }
    
    .uc-sidebar {
        margin-bottom: 20px;
    }
    
    .d-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: none !important;
    }
    
    @media (min-width: 992px) {
        .d-lg-block {
            display: block !important;
        }
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .uc-sidebar {
        margin-bottom: 20px;
    }
    
    .uc-content {
        padding: 20px;
    }
    
    .cart-item,
    .favorite-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item .cart-item-image,
    .favorite-item .favorite-item-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cart-item .cart-item-quantity {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-item .cart-item-quantity input {
        width: 80px;
    }
}

/* 收藏按钮样式 */
.favorite-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    color: #dc3545;
}

.favorite-btn.favorited {
    color: #dc3545;
}

/* 购物车数量显示 */
.cart-count {
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* 加载动画 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 消息提示 */
.form-message {
    margin-top: 15px;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.user-musa{
       display: block;
           border: none;
           padding: 20px;
}
.musers{
    padding: 10px;
}
 .menu-item a i{
    margin-right: 5px;
}
.p-md-user{
    padding: 2rem;
}