/* 用户信息弹窗样式 - 美化版本 */
.user_info_popup {
    position: absolute;
    top: 48px; /* 从 50px 改为 45px，减少间隙 */
    right: 0;
    width: 360px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}
.login_in {
    position: relative;
}

.login_in::before {
    content: '';
    position: absolute;
    top: 40px;  /* 头像底部位置 */
    left: 0;
    right: 0;
    height: 10px; /* 桥接高度，覆盖间隙 */
    background: transparent;
    z-index: 999;
}
/* 添加一个安全区域 */
.login_in::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    z-index: 999;
}
.popup_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ff6046 0%, #ff8c46 100%);
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.popup_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.popup_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.close_popup {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
}

.close_popup:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.popup_content {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.info_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 56px;
}

.info_item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 96, 70, 0.2);
}

.info_item:last-of-type {
    margin-bottom: 20px;
}

.info_item label {
    color: #666;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.info_item label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6046, #ff8c46);
    transition: width 0.3s ease;
}

.info_item:hover label::after {
    width: 100%;
}

.info_item span {
    color: #333;
    font-weight: 700;
    font-size: 15px;
    text-align: right;
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 96, 70, 0.1);
    color: #ff6046;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
}

/* 特殊样式用于套餐信息 */
.info_item:first-child span {
    background: linear-gradient(135deg, #ff6046, #ff8c46);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 96, 70, 0.3);
    min-height: 36px;
}

.order_entry {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed rgba(0, 0, 0, 0.08);
    position: relative;
}

.order_entry::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff6046, #ff8c46);
    border-radius: 1px;
}

.order_btn, .logout_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 44px;
}

.order_btn::before, .logout_btn::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 ease;
}

.order_btn:hover::before, .logout_btn:hover::before {
    left: 100%;
}

.order_btn {
    background: linear-gradient(135deg, #ff6046 0%, #ff8c46 100%);
}

.logout_btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.order_btn:hover {
    background: linear-gradient(135deg, #e55035 0%, #ff7a3d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 96, 70, 0.4);
}

.logout_btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}



/* 用户头像和用户名鼠标悬停效果 */
.user_img, .user_info_hover {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user_img:hover, .user_info_hover:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.user_img {
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 添加动画效果 */
.user_info_popup {
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user_info_popup {
        width: 320px;
        right: -20px;
    }
    
    .popup_content {
        padding: 20px;
    }
    
    .info_item {
        padding: 14px 16px;
    }
    
    .order_btn, .logout_btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* 添加图标支持 */
.info_item label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.info_item:nth-child(1) label::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6046"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.info_item:nth-child(2) label::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.info_item:nth-child(3) label::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
}

.info_item:nth-child(4) label::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>');
}

