/* 修改用户名功能样式 */

/* 编辑按钮样式 */
.edit-username,
.edit-mobile,
.edit-email,
.edit-password {
    color: red;
    margin-left: 10px;
    cursor: pointer;
}

/* 用户名编辑容器 */
.username-edit {
    display: none;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.username-edit.show {
    display: flex;
}

/* 用户名输入框样式 */
.username-input {
    width: 120px;
    height: 28px;
    padding: 4px 8px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.username-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

/* 确认按钮样式 */
.confirm-username {
    margin-left: 0;
    padding: 4px 12px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
}

.confirm-username:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 取消按钮样式 */
.cancel-username {
    margin-left: 0;
    padding: 4px 12px;
    height: 28px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(245, 87, 108, 0.3);
}

.cancel-username:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* 用户名项目容器 */
.username-item {
    position: relative;
}

/* 显示状态 */
.username-display {
    display: block;
}

.username-display.hide {
    display: none;
}